forked from D-Net/dnet-hadoop
code formatting
This commit is contained in:
parent
b695932ae4
commit
ae5c28e54f
|
@ -28,7 +28,9 @@ public class OdfToOafMapper extends AbstractMdRecordToOafMapper {
|
|||
@Override
|
||||
protected List<StructuredProperty> prepareTitles(final Document doc, final DataInfo info) {
|
||||
return prepareListStructProps(
|
||||
doc, "//*[local-name()='titles']/*[local-name()='title']|//*[local-name()='resource']/*[local-name()='title']", MAIN_TITLE_QUALIFIER, info);
|
||||
doc,
|
||||
"//*[local-name()='titles']/*[local-name()='title']|//*[local-name()='resource']/*[local-name()='title']",
|
||||
MAIN_TITLE_QUALIFIER, info);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -331,7 +331,7 @@ public class MappersTest {
|
|||
void testOdfBielefeld() throws IOException {
|
||||
final String xml = IOUtils.toString(getClass().getResourceAsStream("odf_bielefeld.xml"));
|
||||
|
||||
final List<Oaf> list = new OdfToOafMapper(vocs, false).processMdRecord(xml);
|
||||
final List<Oaf> list = new OdfToOafMapper(vocs, false, true).processMdRecord(xml);
|
||||
|
||||
assertEquals(1, list.size());
|
||||
assertTrue(list.get(0) instanceof Publication);
|
||||
|
|
Loading…
Reference in New Issue