Skip to content
Snippets Groups Projects
Commit a804d916 authored by mbrodhu's avatar mbrodhu
Browse files

some tests

parent b48495bf
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.SearchHit;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.elasticsearch.search.fetch.subphase.FetchSourceContext;
import info.textgrid.middleware.oaipmh.ContributorType;
import info.textgrid.middleware.oaipmh.HeaderType;
import info.textgrid.middleware.oaipmh.ListIdentifiersType;
import info.textgrid.middleware.oaipmh.ResumptionTokenType;
......@@ -78,8 +80,8 @@ public class IdentifierListDelivererDC extends IdentifierListDelivererAbstract {
private static ListIdentifiersType setListIdentifierHeader(String datestamp, String identifier,
ListIdentifiersType lit, String set) {
// FIXME Delete this function and check for empty set string in setListIdentifierHeaderWithSet
// FIXME Delete this function and check for empty set string in setListIdentifierHeaderWithSet
HeaderType header = new HeaderType();
header.setDatestamp(datestamp);
header.setIdentifier(identifier);
......
<?xml version="1.0"?>
<jxb:bindings version="1.0"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:namespace="http://jaxb2-commons.dev.java.net/namespace-prefix"
xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb https://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd
http://jaxb2-commons.dev.java.net/namespace-prefix https://raw.githubusercontent.com/Siggen/jaxb2-namespace-prefix/master/src/main/resources/prefix-namespace-schema.xsd">
<jxb:bindings schemaLocation="oai_pmh.xsd">
<jxb:schemaBindings>
<jxb:package name="info.textgrid.middleware.oaipmh" />
</jxb:schemaBindings>
<jxb:bindings>
<!-- We want no prefix for default namespace... -->
<namespace:prefix name="" />
</jxb:bindings>
<jxb:bindings>
<!-- ...but we want prefixes for oai_dc and dc! -->
<namespace:prefix
namespaceURI="http://www.openarchives.org/OAI/2.0/oai_dc/"
name="oai_dc" />
<namespace:prefix
namespaceURI="http://purl.org/dc/elements/1.1/" name="dc" />
</jxb:bindings>
</jxb:bindings>
<!--jxb:bindings schemaLocation="openaire.xsd">
<jxb:bindings>
<jxb:nameXmlTransform>
<jxb:elementName suffix="Element"/>
</jxb:nameXmlTransform>
<jxb:bindings node="//xs:attribute[@ref='xml:lang']">
<jxb:property name="secondlang"/>
</jxb:bindings>
</jxb:bindings>
</jxb:bindings-->
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:namespace="http://jaxb2-commons.dev.java.net/namespace-prefix"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb https://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd
http://jaxb2-commons.dev.java.net/namespace-prefix https://raw.githubusercontent.com/Siggen/jaxb2-namespace-prefix/master/src/main/resources/prefix-namespace-schema.xsd">
<jxb:bindings schemaLocation="oai_pmh.xsd">
<jxb:schemaBindings>
<jxb:package name="info.textgrid.middleware.oaipmh" />
</jxb:schemaBindings>
<jxb:bindings>
<!-- We want no prefix for default namespace... -->
<namespace:prefix name="" />
</jxb:bindings>
<jxb:bindings>
<!-- ...but we want prefixes for oai_dc and dc! -->
<namespace:prefix
namespaceURI="http://www.openarchives.org/OAI/2.0/oai_dc/"
name="oai_dc" />
<namespace:prefix
namespaceURI="http://purl.org/dc/elements/1.1/" name="dc" />
</jxb:bindings>
</jxb:bindings>
<jxb:bindings schemaLocation="oaf-project-1.0.xsd">
<jxb:bindings node=".//xs:attribute[@type='qualifierType']">
<jxb:property type="projectqualifierType"/>
</jxb:bindings>
</jxb:bindings>
</jxb:bindings>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment