Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kitodo-diglib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dmj
kitodo-diglib
Commits
3fef9c88
Commit
3fef9c88
authored
7 years ago
by
David Maus
Browse files
Options
Downloads
Patches
Plain Diff
Erzeuge PREMIS:EVENT für Normalisierung
parent
924f0fd9
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
src/xproc/publish.xpl
+17
-7
17 additions, 7 deletions
src/xproc/publish.xpl
src/xslt/mets.xsl
+16
-1
16 additions, 1 deletion
src/xslt/mets.xsl
with
33 additions
and
8 deletions
src/xproc/publish.xpl
+
17
−
7
View file @
3fef9c88
...
...
@@ -6,13 +6,20 @@
<p:option name="objectId" required="true"/>
<p:option name="targetUri" required="true"/>
<p:uuid name="uuid-source" version="4" match="@create">
<p:input port="source">
<p:inline>
<uuid create=""/>
</p:inline>
</p:input>
</p:uuid>
<p:group name="uuid-source">
<p:output port="result"/>
<p:identity>
<p:input port="source">
<p:inline>
<uuid/>
</p:inline>
</p:input>
</p:identity>
<p:add-attribute match="uuid" attribute-name="create" attribute-value=""/>
<p:uuid version="4" match="@create"/>
<p:add-attribute match="uuid" attribute-name="normalize" attribute-value=""/>
<p:uuid version="4" match="@normalize"/>
</p:group>
<p:choose>
<p:when test="doc-available(resolve-uri($targetUri))">
...
...
@@ -42,6 +49,9 @@
<p:with-param name="eventCreateUUID" select="/uuid/@create">
<p:pipe step="uuid-source" port="result"/>
</p:with-param>
<p:with-param name="eventNormalizeUUID" select="/uuid/@normalize">
<p:pipe step="uuid-source" port="result"/>
</p:with-param>
<p:input port="source">
<p:pipe step="validate-kitodo" port="result"/>
</p:input>
...
...
This diff is collapsed.
Click to expand it.
src/xslt/mets.xsl
+
16
−
1
View file @
3fef9c88
...
...
@@ -12,6 +12,7 @@
<!-- Normalisiert die von Kitodo.Production erzeugte METS-Datei -->
<xsl:param
name=
"objectId"
as=
"xs:string"
required=
"yes"
/>
<xsl:param
name=
"eventCreateUUID"
as=
"xs:string"
required=
"yes"
/>
<xsl:param
name=
"eventNormalizeUUID"
as=
"xs:string"
required=
"yes"
/>
<xsl:key
name=
"files"
match=
"file"
use=
"@ID"
/>
...
...
@@ -46,6 +47,20 @@
</xmlData>
</mdWrap>
</digiprovMD>
<digiprovMD
ID=
"id.{$eventNormalizeUUID}"
CREATED=
"{current-dateTime()}"
>
<mdWrap
MDTYPE=
"PREMIS:EVENT"
>
<xmlData>
<premis:event
xmlns:premis=
"http://www.loc.gov/premis/v3"
>
<premis:eventIdentifier>
<premis:eventIdentifierType>
UUID
</premis:eventIdentifierType>
<premis:eventIdentifierValue><xsl:value-of
select=
"$eventNormalizeUUID"
/></premis:eventIdentifierValue>
</premis:eventIdentifier>
<premis:eventType
valueURI=
"http://id.loc.gov/vocabulary/preservation/eventType/normalization"
>
normalization
</premis:eventType>
<premis:eventDataTime><xsl:value-of
select=
"current-dateTime()"
/></premis:eventDataTime>
</premis:event>
</xmlData>
</mdWrap>
</digiprovMD>
</amdSec>
</xsl:template>
...
...
@@ -58,7 +73,7 @@
</xsl:template>
<xsl:template
match=
"metsHdr"
>
<metsHdr
CREATEDATE=
"{@CREATEDATE}"
LASTMODDATE=
"{current-dateTime()}"
ADMID=
"id.{$eventCreateUUID}"
>
<metsHdr
CREATEDATE=
"{@CREATEDATE}"
LASTMODDATE=
"{current-dateTime()}"
ADMID=
"id.{$eventCreateUUID}
id.{$eventNormalizeUUID}
"
>
<agent
ROLE=
"CUSTODIAN"
TYPE=
"ORGANIZATION"
>
<name>
Herzog August Bibliothek Wolfenbüttel
</name>
</agent>
...
...
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