Commit 2bb44f74 authored by Gerrit Hübbers's avatar Gerrit Hübbers 🃏
Browse files

WIP

parent f6fef92a
......@@ -141,6 +141,7 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo
}
public Bundle getBundle(String oaiPmhIdentifier) {
LOG.info("DEBUG!! with oaiPmhIdentifier={}", oaiPmhIdentifier);
//Bundle bundleResult = new AutonomouslyContentResolvingBundle(ImmutableSet.of() );
Set<Metadatum> bundleMetadata = new HashSet<>();
Set<String> metadataPrefixes = metadataPrefix2XsltMap.keySet();
......
......@@ -685,6 +685,21 @@ public class XsltTransformerOaiPmhBundlesStreamSourceTest {
Bundle bundle = bss.getBundle("oai:ojs.www.librelloph.com:article/138");
assertNull(bundle);
bss.getBundlesStream().forEach(b -> {
b.getMetadata().stream().filter(m -> m.getKey().equals("internal.dda.reference")).forEach(refM -> {
String refValue = refM.getValue();
LOG.info("checking {} for to-be-filtered away editorial publication", refValue);
// following strings indicate editorials
assertFalse(refValue.contains("oai:ojs.www.librelloph.com:article/12"));
assertFalse(refValue.contains("oai:ojs.www.librelloph.com:article/138"));
assertFalse(refValue.contains("oai:ojs.www.librelloph.com:article/216"));
assertFalse(refValue.contains("oai:ojs.www.librelloph.com:article/224"));
assertFalse(refValue.contains("oai:ojs.www.librelloph.com:article/259"));
assertFalse(refValue.contains("oai:ojs.www.librelloph.com:article/320"));
assertFalse(refValue.contains("oai:ojs.www.librelloph.com:article/366"));
});
});
}
@Test
public void getSinglePublicationCis() throws IOException {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment