-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ORDERLABEL and LABEL are now MODS metadata instead of METS attributes #5110
Comments
Can you check that |
@matthias-ronge : Do you mean the <key id="LABEL" domain="mets:div">
<label>main title ‹METS›</label>
<label lang="de">Haupttitel ‹METS›</label>
</key>
<key id="ORDERLABEL" domain="mets:div">
<label>main title (sorting) ‹METS›</label>
<label lang="de">Haupttitel (Sortierung) ‹METS›</label>
</key> Or do we have to define it somewhere else? |
No, that’s correct. So this is a bug. |
Could you imagine the reason for the bug? |
I'm sure my imagination skills are good 😉 but with software it's more a question of research. 💻 Just to be clear, is this in the internal METS file, or only after the export, or both? |
The examples are both internal METS files. In the exported METS file it is different because of the export XSL:
Example of the exported file of an newspaper issue
<mets:structMap TYPE="LOGICAL">
<mets:div ID="uuid-f51ffabc-0558-473c-8585-6621e6196ec9" TYPE="newspaper">
<mets:mptr LOCTYPE="URL" xlink:href="https://digital.slub-dresden.de/data/kitodo/LiteNo_425465705/LiteNo_425465705.xml"/>
<mets:div ID="uuid-2956eb68-0d22-4747-bcfe-51204edbcba5" TYPE="year" ORDERLABEL="1850">
<mets:mptr LOCTYPE="URL" xlink:href="https://digital.slub-dresden.de/data/kitodo/LiteNo_425465705-1850/LiteNo_425465705-1850.xml"/>
<mets:div TYPE="month" ORDERLABEL="1850-01" ID="uuid-3cceb16c-f493-4731-ab22-11ca4fa52a4f" ADMID="AMD">
<mets:div TYPE="day" ID="uuid-bd0acc78-8d37-44e2-8ac9-8d2b5d4c39f7" ORDERLABEL="1850-01-28">
<mets:div ID="uuid-27c8b504-daea-464f-841e-a80d8659e917" LABEL="Haupttitel" ORDERLABEL="Haupttitel (Sortierung)" DMDID="uuid-cee50d9a-1c5a-3118-9d62-fff7c597ab8b" TYPE="issue" ORDER="1"/>
</mets:div>
</mets:div>
</mets:div>
</mets:div>
</mets:structMap> |
@matthias-ronge : I am sorry for the confusion! Two aspects led me to the above described conclusion:
If only one aspect had occurred, i might have search more carefully for the reason. Nevertheless, i can now create processes, with correct ORDER and ORDERLABEL and the export files of newspaper issues are correct. I close the issue, because the problem does not exist. Thanks to @henning-gerhardt for the hint with the migrated data. |
Problem
Until around the end of the last year, the METS attributes
ORDERLABEL
andLABEL
have been written directly in the attributes in the first<mets:div>
of the METS-section<mets:structMap TYPE="LOGICAL">
, when the keys were specified in the ruleset by the attributedomain="mets:div"
.Now, the keys are written as MODS metadata in the
<mets:dmdSec>
(see examples below). Because of this behaviour, my solution for #4852 does not work anymore.Solution / Question
The METS attributes ORDERLABEL and LABEL should be written in the internal metadata file in the first
<mets:div>
of the METS-section<mets:structMap TYPE="LOGICAL">
and not in<mets:dmdSec>
.Is there a reason for the change? Do i have a mistake in the configuration? See the next section.
Configuration
Example
ORDERLABEL and LABEL in METS
<metsHdr CREATEDATE="2020-03-25T14:31:53.274+01:00" LASTMODDATE="2020-04-07T09:24:31.595+02:00">
ORDERLABEL and LABEL in MODS
<mets:metsHdr CREATEDATE="2021-06-21T13:13:00.000+02:00" LASTMODDATE="2022-04-27T12:57:44.632+02:00">
The text was updated successfully, but these errors were encountered: