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
819ced27
Commit
819ced27
authored
4 years ago
by
mbrodhu
Browse files
Options
Downloads
Patches
Plain Diff
correct datestamps in recorddates for metsMods in idiom
parent
319aa735
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
oaipmh-core/pom.xml
+1
-1
1 addition, 1 deletion
oaipmh-core/pom.xml
oaipmh-core/src/main/java/info/textgrid/middleware/RecordDelivererIDIOM.java
+8
-7
8 additions, 7 deletions
...n/java/info/textgrid/middleware/RecordDelivererIDIOM.java
with
9 additions
and
8 deletions
oaipmh-core/pom.xml
+
1
−
1
View file @
819ced27
...
...
@@ -85,7 +85,7 @@
<dependency>
<groupId>
org.classicmayan.tools
</groupId>
<artifactId>
metsModsMapping
</artifactId>
<version>
1.1.1
1
</version>
<version>
1.1.1
3
</version>
</dependency>
<dependency>
<groupId>
de.shadowhunt.maven.plugins
</groupId>
...
...
This diff is collapsed.
Click to expand it.
oaipmh-core/src/main/java/info/textgrid/middleware/RecordDelivererIDIOM.java
+
8
−
7
View file @
819ced27
...
...
@@ -30,9 +30,9 @@ public class RecordDelivererIDIOM extends RecordDelivererAbstract {
private
String
dateOfLastOblectModification
;
private
OAI_ESClient
oaiEsClient
;
static
MetadataType
metadataMets
=
new
MetadataType
();
RecordType
record
=
new
RecordType
();
ClassicMayanMetsMods
metsmods
;
//
ClassicMayanMetsMods metsmods;
private
static
org
.
apache
.
commons
.
logging
.
Log
log
=
LogFactory
.
getLog
(
RecordDelivererIDIOM
.
class
);
...
...
@@ -90,7 +90,7 @@ public class RecordDelivererIDIOM extends RecordDelivererAbstract {
*/
public
GetRecordType
getRecordById
(
String
id
)
{
ClassicMayanMetsMods
metsmods
;
GetRecordType
grt
=
new
GetRecordType
();
setDatestamps
(
id
);
...
...
@@ -101,11 +101,11 @@ public class RecordDelivererIDIOM extends RecordDelivererAbstract {
textgridBaseURI_FromID
=
id
;
}
log
.
info
(
"ID for generating the METS/MODS file is: "
+
textgridBaseURI_FromID
);
this
.
metsmods
=
new
ClassicMayanMetsMods
(
metsmods
=
new
ClassicMayanMetsMods
(
textgridBaseURI_FromID
,
this
.
dateOfObjectCreation
,
this
.
dateOfLastOblectModification
);
this
.
record
.
setMetadata
(
idiomMets
());
this
.
record
.
setMetadata
(
idiomMets
(
metsmods
));
try
{
if
(!
id
.
startsWith
(
"textgrid:"
))
{
setRecordHeader
(
this
.
dateOfObjectCreation
,
"textgrid:"
+
id
);
...
...
@@ -133,14 +133,15 @@ public class RecordDelivererIDIOM extends RecordDelivererAbstract {
* @return metadata XML-Elment
*/
private
MetadataType
idiomMets
()
{
private
MetadataType
idiomMets
(
ClassicMayanMetsMods
metsmods
)
{
MetadataType
metadataMets
=
new
MetadataType
();
DocumentBuilderFactory
factory
=
DocumentBuilderFactory
.
newInstance
();
DocumentBuilder
builder
;
try
{
builder
=
factory
.
newDocumentBuilder
();
Document
doc
=
builder
.
parse
(
new
InputSource
(
new
StringReader
(
this
.
metsmods
.
getMets
())));
Document
doc
=
builder
.
parse
(
new
InputSource
(
new
StringReader
(
metsmods
.
getMets
())));
metadataMets
.
setAny
(
doc
.
getDocumentElement
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
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