Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DARIAH-DE OAI-PMH Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DARIAH-DE
DARIAH-DE OAI-PMH Services
Commits
a804d916
Commit
a804d916
authored
4 years ago
by
mbrodhu
Browse files
Options
Downloads
Patches
Plain Diff
some tests
parent
b48495bf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
oaipmh-core/src/main/java/info/textgrid/middleware/IdentifierListDelivererDC.java
+4
-2
4 additions, 2 deletions
...a/info/textgrid/middleware/IdentifierListDelivererDC.java
oaipmh-core/src/main/resources/bindings.xjb
+35
-32
35 additions, 32 deletions
oaipmh-core/src/main/resources/bindings.xjb
with
39 additions
and
34 deletions
oaipmh-core/src/main/java/info/textgrid/middleware/IdentifierListDelivererDC.java
+
4
−
2
View file @
a804d916
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
oaipmh-core/src/main/resources/bindings.xjb
+
35
−
32
View file @
a804d916
<?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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment