Compare commits

..

8 Commits

Author SHA1 Message Date
73e749160c Changed lido:resourceRepresentation@lido:type for pdf from 'text' to 'provided_text' for DDB compatibilityMerge remote-tracking branch 'upstream/master' 2024-10-02 17:47:55 +02:00
6c2b829daa changed lido:resourceRepresentation@lido:type for pdf from 'text' to 'provided_text' for DDB compatibility 2024-10-02 17:06:15 +02:00
c9c7b63434
Display objectWorkType via tags in EODEM and LIDO 1.1 exports, and only
that in case both object_type tags exist and an object type is present
in md

See #5

Background for the disabling of exports of the regular object type in
case both exist: The German Digital Library (DDB) is unable to handle
duplicate names in work types unless both contain different links to
norm data repositories. This fix allows the DDB to more easily import
while supposedly not losing meaningful data.
2023-08-03 23:11:08 +02:00
2ff939c6db Cover controlled terms for objectWorkType and material / tech in LIDO
1.0 exports
2023-07-09 22:18:25 +02:00
4ac221bee2
Update README to reflect LIDO 1.1. and EODEM support 2023-06-24 01:39:54 +02:00
f7245187f0
Bump year in LICENSE 2023-06-24 01:37:00 +02:00
12326d4d3d
Cover object to object links in export selections 2023-05-31 16:55:00 +02:00
0ea0d77192 Merge pull request 'minor fix of xsi:schemaLocation' (#2) from awinkler/musdb-md-xm-xsls:master into master
Reviewed-on: museum-digital/musdb-md-xm-xsls#2
Reviewed-by: Joshua Ramon Enslin <joshua@jrenslin.de>
2023-02-28 18:49:47 +01:00
8 changed files with 500 additions and 220 deletions

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2022
Copyright (c) 2022-2023 museum-digital
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -3,14 +3,30 @@
## Formats covered thus far
- `LIDO 1.0`
(Primary exchange export format)
(Primary exchange export format). See <https://lido-schema.org>
- LIDO 1.1
Updated version of the LIDO standard, as of 2022. See <https://lido-schema.org>
- EODEM
A LIDO profile (based on LIDO 1.1) specifically designed for the automation of the exchange of loan object information. Contrary to LIDO, it thus also covers some internal fields. See: <https://cidoc.mini.icom.museum/working-groups/documentation-standards/eodem-home/>
## Repository structure
### /src
### [/src](./src)
Contains the relevant .xsl files used for converting md:xml to other formats.
### /sample
#### [/src/schemas](./src/schemas)
This directory contains schemas for validating the different formats.
#### [/src/selections](./src/selections)
This directory contains JSON files listing which bits and pieces should be made available during an export from musdb when exporting to a given format. E.g., LIDO cannot represent internal information like insurance values. It thus does not make sense to export such information during the export to md:xml pre-transformation in the first place.
### [/sample](./sample)
Here you can find sample mx:xml files.
## License
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for the full license text.

View File

@ -34,70 +34,133 @@
</xsl:if>
<lido:objectClassificationWrap>
<lido:objectWorkTypeWrap>
<lido:objectWorkType>
<xsl:for-each select="objektart_gnd">
<lido:conceptID>
<xsl:attribute name="lido:source">gnd</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://d-nb.info/gnd/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_grobsystematik">
<lido:conceptID>
<xsl:attribute name="lido:source">grobsystematik</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/grobsystematik/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_oberbegriffsdatei">
<lido:conceptID>
<xsl:attribute name="lido:source">oberbegriffsdatei</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/oberbegriffsdatei/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_aat">
<lido:conceptID>
<xsl:attribute name="lido:source">aat</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://vocab.getty.edu/aat/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_lcsh">
<lido:conceptID>
<xsl:attribute name="lido:source">lcsh</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://id.loc.gov/authorities/subjects/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_md_tag">
<lido:conceptID>
<xsl:attribute name="lido:source">md:term</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/md-de/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:if test="objektart!=''">
<xsl:for-each select="objektart">
<lido:term>
<xsl:attribute name="xml:lang">de</xsl:attribute>
<xsl:value-of select="." />
</lido:term>
</xsl:for-each>
</xsl:if>
<xsl:if test="objekt_record_set/objektart!=''">
<xsl:for-each select="objekt_record_set">
<xsl:if test="substring(objekt_record_weitergabe,1,1)=0">
<lido:term>
<xsl:attribute name="xml:lang">
<xsl:value-of select="objekt_record_lang" />
</xsl:attribute>
<xsl:value-of select="objektart" />
</lido:term>
<xsl:choose>
<xsl:when test="
tagSet[0]/relation_type[. = 'object_type']
| tagSet[1]/relation_type[. = 'object_type']
| tagSet[2]/relation_type[. = 'object_type']
| tagSet[3]/relation_type[. = 'object_type']
| tagSet[4]/relation_type[. = 'object_type']
| tagSet[5]/relation_type[. = 'object_type']
| tagSet[6]/relation_type[. = 'object_type']
| tagSet[7]/relation_type[. = 'object_type']
| tagSet[8]/relation_type[. = 'object_type']
| tagSet[9]/relation_type[. = 'object_type']
| tagSet[10]/relation_type[. = 'object_type']
| tagSet[11]/relation_type[. = 'object_type']
| tagSet[12]/relation_type[. = 'object_type']
| tagSet[13]/relation_type[. = 'object_type']
| tagSet[14]/relation_type[. = 'object_type']
| tagSet[15]/relation_type[. = 'object_type']
| tagSet[16]/relation_type[. = 'object_type']
| tagSet[17]/relation_type[. = 'object_type']
| tagSet[18]/relation_type[. = 'object_type']
">
<!-- objectWorkType exists via tags -->
<xsl:for-each select="tagSet/tag_id">
<xsl:if test="../relation_type = 'object_type'">
<lido:objectWorkType>
<xsl:for-each select="../noda_tag_Set/noda_source">
<xsl:if test="string-length(../noda_link)!=0">
<lido:conceptID>
<xsl:attribute name="lido:source">
<xsl:value-of select="../noda_source"/>
</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="../noda_link"/>
</lido:conceptID>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="../tag_name">
<lido:term>
<xsl:attribute name="lido:addedSearchTerm">no</xsl:attribute>
<xsl:if test="string-length(./@lang)!=0">
<xsl:attribute name="xml:lang">
<xsl:value-of select="./@lang"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/>
<xsl:variable name="objektartschlagwort" select="." />
</lido:term>
</xsl:for-each>
</lido:objectWorkType>
</xsl:if>
</xsl:for-each>
</xsl:if>
</lido:objectWorkType>
</xsl:when>
<xsl:otherwise>
<lido:objectWorkType>
<xsl:for-each select="objektart_gnd">
<lido:conceptID>
<xsl:attribute name="lido:source">gnd</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://d-nb.info/gnd/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_grobsystematik">
<lido:conceptID>
<xsl:attribute name="lido:source">grobsystematik</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/grobsystematik/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_oberbegriffsdatei">
<lido:conceptID>
<xsl:attribute name="lido:source">oberbegriffsdatei</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/oberbegriffsdatei/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_aat">
<lido:conceptID>
<xsl:attribute name="lido:source">aat</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://vocab.getty.edu/aat/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_lcsh">
<lido:conceptID>
<xsl:attribute name="lido:source">lcsh</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://id.loc.gov/authorities/subjects/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_md_tag">
<lido:conceptID>
<xsl:attribute name="lido:source">md:term</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/md-de/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:if test="objektart!=''">
<xsl:for-each select="objektart">
<lido:term>
<xsl:attribute name="xml:lang">de</xsl:attribute>
<xsl:value-of select="." />
</lido:term>
</xsl:for-each>
</xsl:if>
<xsl:if test="objekt_record_set/objektart!=''">
<xsl:for-each select="objekt_record_set">
<xsl:if test="substring(objekt_record_weitergabe,1,1)=0">
<lido:term>
<xsl:attribute name="xml:lang">
<xsl:value-of select="objekt_record_lang" />
</xsl:attribute>
<xsl:value-of select="objektart" />
</lido:term>
</xsl:if>
</xsl:for-each>
</xsl:if>
</lido:objectWorkType>
</xsl:otherwise>
</xsl:choose>
</lido:objectWorkTypeWrap>
<lido:classificationWrap>
<xsl:for-each select="collectionSet">

View File

@ -33,72 +33,135 @@
</xsl:if>
<lido:objectClassificationWrap>
<lido:objectWorkTypeWrap>
<lido:objectWorkType>
<xsl:for-each select="objektart_gnd">
<lido:conceptID>
<xsl:attribute name="lido:source">gnd</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://d-nb.info/gnd/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_grobsystematik">
<lido:conceptID>
<xsl:attribute name="lido:source">grobsystematik</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/grobsystematik/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_oberbegriffsdatei">
<lido:conceptID>
<xsl:attribute name="lido:source">oberbegriffsdatei</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/oberbegriffsdatei/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_aat">
<lido:conceptID>
<xsl:attribute name="lido:source">aat</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://vocab.getty.edu/aat/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_lcsh">
<lido:conceptID>
<xsl:attribute name="lido:source">lcsh</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://id.loc.gov/authorities/subjects/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_md_tag">
<lido:conceptID>
<xsl:attribute name="lido:source">md:term</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/md-de/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:if test="objektart!=''">
<xsl:for-each select="objektart">
<lido:term>
<xsl:attribute name="xml:lang">de</xsl:attribute>
<xsl:value-of select="." />
</lido:term>
</xsl:for-each>
</xsl:if>
<xsl:if test="objekt_record_set/objektart!=''">
<xsl:for-each select="objekt_record_set">
<xsl:if test="substring(objekt_record_weitergabe,1,1)=0">
<lido:term>
<xsl:attribute name="xml:lang">
<xsl:value-of select="objekt_record_lang" />
</xsl:attribute>
<xsl:value-of select="objektart" />
</lido:term>
<xsl:choose>
<xsl:when test="
tagSet[0]/relation_type[. = 'object_type']
| tagSet[1]/relation_type[. = 'object_type']
| tagSet[2]/relation_type[. = 'object_type']
| tagSet[3]/relation_type[. = 'object_type']
| tagSet[4]/relation_type[. = 'object_type']
| tagSet[5]/relation_type[. = 'object_type']
| tagSet[6]/relation_type[. = 'object_type']
| tagSet[7]/relation_type[. = 'object_type']
| tagSet[8]/relation_type[. = 'object_type']
| tagSet[9]/relation_type[. = 'object_type']
| tagSet[10]/relation_type[. = 'object_type']
| tagSet[11]/relation_type[. = 'object_type']
| tagSet[12]/relation_type[. = 'object_type']
| tagSet[13]/relation_type[. = 'object_type']
| tagSet[14]/relation_type[. = 'object_type']
| tagSet[15]/relation_type[. = 'object_type']
| tagSet[16]/relation_type[. = 'object_type']
| tagSet[17]/relation_type[. = 'object_type']
| tagSet[18]/relation_type[. = 'object_type']
">
<!-- objectWorkType exists via tags -->
<xsl:for-each select="tagSet/tag_id">
<xsl:if test="../relation_type = 'object_type'">
<lido:objectWorkType>
<xsl:for-each select="../noda_tag_Set/noda_source">
<xsl:if test="string-length(../noda_link)!=0">
<lido:conceptID>
<xsl:attribute name="lido:source">
<xsl:value-of select="../noda_source"/>
</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="../noda_link"/>
</lido:conceptID>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="../tag_name">
<lido:term>
<xsl:attribute name="lido:addedSearchTerm">no</xsl:attribute>
<xsl:if test="string-length(./@lang)!=0">
<xsl:attribute name="xml:lang">
<xsl:value-of select="./@lang"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/>
<xsl:variable name="objektartschlagwort" select="." />
</lido:term>
</xsl:for-each>
</lido:objectWorkType>
</xsl:if>
</xsl:for-each>
</xsl:if>
</lido:objectWorkType>
</xsl:when>
<xsl:otherwise>
<lido:objectWorkType>
<xsl:for-each select="objektart_gnd">
<lido:conceptID>
<xsl:attribute name="lido:source">gnd</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://d-nb.info/gnd/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_grobsystematik">
<lido:conceptID>
<xsl:attribute name="lido:source">grobsystematik</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/grobsystematik/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_oberbegriffsdatei">
<lido:conceptID>
<xsl:attribute name="lido:source">oberbegriffsdatei</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/oberbegriffsdatei/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_aat">
<lido:conceptID>
<xsl:attribute name="lido:source">aat</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://vocab.getty.edu/aat/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_lcsh">
<lido:conceptID>
<xsl:attribute name="lido:source">lcsh</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://id.loc.gov/authorities/subjects/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_md_tag">
<lido:conceptID>
<xsl:attribute name="lido:source">md:term</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/md-de/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:if test="objektart!=''">
<xsl:for-each select="objektart">
<lido:term>
<xsl:attribute name="xml:lang">de</xsl:attribute>
<xsl:value-of select="." />
</lido:term>
</xsl:for-each>
</xsl:if>
<xsl:if test="objekt_record_set/objektart!=''">
<xsl:for-each select="objekt_record_set">
<xsl:if test="substring(objekt_record_weitergabe,1,1)=0">
<lido:term>
<xsl:attribute name="xml:lang">
<xsl:value-of select="objekt_record_lang" />
</xsl:attribute>
<xsl:value-of select="objektart" />
</lido:term>
</xsl:if>
</xsl:for-each>
</xsl:if>
</lido:objectWorkType>
</xsl:otherwise>
</xsl:choose>
</lido:objectWorkTypeWrap>
<lido:classificationWrap>
<lido:classificationWrap>
<xsl:for-each select="collectionSet">
<lido:classification>
<xsl:attribute name="lido:type">Sammlung</xsl:attribute>
@ -861,7 +924,44 @@
</lido:termMaterialsTech>
</lido:materialsTech>
</lido:eventMaterialsTech>
</xsl:if>
</xsl:if>
<xsl:for-each select="tagSet/tag_id">
<xsl:if test="../relation_type = 'material'">
<lido:eventMaterialsTech>
<lido:materialsTech>
<lido:termMaterialsTech lido:type="material">
<xsl:for-each select="../noda_tag_Set/noda_source">
<xsl:if test="string-length(../noda_link)!=0">
<lido:conceptID>
<xsl:attribute name="lido:source">
<xsl:value-of select="../noda_source"/>
</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="../noda_link"/>
</lido:conceptID>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="../tag_name">
<lido:term>
<xsl:attribute name="lido:addedSearchTerm">no</xsl:attribute>
<xsl:if test="string-length(./@lang)!=0">
<xsl:attribute name="xml:lang">
<xsl:value-of select="./@lang"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/>
</lido:term>
</xsl:for-each>
</lido:termMaterialsTech>
</lido:materialsTech>
</lido:eventMaterialsTech>
</xsl:if>
</xsl:for-each>
<xsl:if test="technik2!=''">
<lido:eventMaterialsTech>
<lido:materialsTech>
@ -872,8 +972,42 @@
</lido:termMaterialsTech>
</lido:materialsTech>
</lido:eventMaterialsTech>
</xsl:if>
</lido:event>
</xsl:if>
<xsl:for-each select="tagSet/tag_id">
<xsl:if test="../relation_type = 'technique'">
<lido:eventMaterialsTech>
<lido:materialsTech>
<lido:termMaterialsTech lido:type="technique">
<xsl:for-each select="../noda_tag_Set/noda_source">
<xsl:if test="string-length(../noda_link)!=0">
<lido:conceptID>
<xsl:attribute name="lido:source">
<xsl:value-of select="../noda_source"/>
</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="../noda_link"/>
</lido:conceptID>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="../tag_name">
<lido:term>
<xsl:attribute name="lido:addedSearchTerm">no</xsl:attribute>
<xsl:if test="string-length(./@lang)!=0">
<xsl:attribute name="xml:lang">
<xsl:value-of select="./@lang"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/>
</lido:term>
</xsl:for-each>
</lido:termMaterialsTech>
</lido:materialsTech>
</lido:eventMaterialsTech>
</xsl:if>
</xsl:for-each>
</lido:event>
</lido:eventSet>
</xsl:if>
@ -1191,39 +1325,40 @@
</xsl:if>
<xsl:for-each select="tagSet/tag_id">
<lido:subjectSet>
<lido:subject>
<lido:subjectConcept>
<xsl:for-each select="../noda_tag_Set/noda_source">
<xsl:if test="string-length(../noda_link)!=0">
<lido:conceptID>
<xsl:attribute name="lido:source">
<xsl:value-of select="../noda_source"/>
</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="../noda_link"/>
</lido:conceptID>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="../tag_name">
<lido:term>
<xsl:attribute name="lido:addedSearchTerm">no</xsl:attribute>
<xsl:if test="string-length(./@lang)!=0">
<xsl:attribute name="xml:lang">
<xsl:value-of select="./@lang"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/>
</lido:term>
<xsl:if test="(../relation_type != 'object_type') and (../relation_type != 'material') and (../relation_type != 'technique')">
<lido:subjectSet>
<lido:subject>
<lido:subjectConcept>
<xsl:for-each select="../noda_tag_Set/noda_source">
<xsl:if test="string-length(../noda_link)!=0">
<lido:conceptID>
<xsl:attribute name="lido:source">
<xsl:value-of select="../noda_source"/>
</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="../noda_link"/>
</lido:conceptID>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="../tag_name">
<lido:term>
<xsl:attribute name="lido:addedSearchTerm">no</xsl:attribute>
<xsl:if test="string-length(./@lang)!=0">
<xsl:attribute name="xml:lang">
<xsl:value-of select="./@lang"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/>
</lido:term>
</xsl:for-each>
</lido:subjectConcept>
</lido:subject>
</lido:subjectSet>
</xsl:if>
</xsl:for-each>
</lido:subjectWrap>
<lido:relatedWorksWrap>
<xsl:for-each select="vergleichsobjekte2">
<lido:relatedWorkSet>
<lido:relatedWork>
@ -1758,7 +1893,7 @@
</xsl:for-each>
</lido:resourceRepresentation>
<lido:resourceRepresentation>
<xsl:attribute name="lido:type">text</xsl:attribute>
<xsl:attribute name="lido:type">provided_text</xsl:attribute>
<xsl:for-each select="../resource_location">
<xsl:if test="position() = 1">
<lido:linkResource>

View File

@ -33,70 +33,133 @@
</xsl:if>
<lido:objectClassificationWrap>
<lido:objectWorkTypeWrap>
<lido:objectWorkType>
<xsl:for-each select="objektart_gnd">
<lido:conceptID>
<xsl:attribute name="lido:source">gnd</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://d-nb.info/gnd/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_grobsystematik">
<lido:conceptID>
<xsl:attribute name="lido:source">grobsystematik</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/grobsystematik/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_oberbegriffsdatei">
<lido:conceptID>
<xsl:attribute name="lido:source">oberbegriffsdatei</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/oberbegriffsdatei/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_aat">
<lido:conceptID>
<xsl:attribute name="lido:source">aat</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://vocab.getty.edu/aat/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_lcsh">
<lido:conceptID>
<xsl:attribute name="lido:source">lcsh</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://id.loc.gov/authorities/subjects/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_md_tag">
<lido:conceptID>
<xsl:attribute name="lido:source">md:term</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/md-de/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:if test="objektart!=''">
<xsl:for-each select="objektart">
<lido:term>
<xsl:attribute name="xml:lang">de</xsl:attribute>
<xsl:value-of select="." />
</lido:term>
</xsl:for-each>
</xsl:if>
<xsl:if test="objekt_record_set/objektart!=''">
<xsl:for-each select="objekt_record_set">
<xsl:if test="substring(objekt_record_weitergabe,1,1)=0">
<lido:term>
<xsl:attribute name="xml:lang">
<xsl:value-of select="objekt_record_lang" />
</xsl:attribute>
<xsl:value-of select="objektart" />
</lido:term>
<xsl:choose>
<xsl:when test="
tagSet[0]/relation_type[. = 'object_type']
| tagSet[1]/relation_type[. = 'object_type']
| tagSet[2]/relation_type[. = 'object_type']
| tagSet[3]/relation_type[. = 'object_type']
| tagSet[4]/relation_type[. = 'object_type']
| tagSet[5]/relation_type[. = 'object_type']
| tagSet[6]/relation_type[. = 'object_type']
| tagSet[7]/relation_type[. = 'object_type']
| tagSet[8]/relation_type[. = 'object_type']
| tagSet[9]/relation_type[. = 'object_type']
| tagSet[10]/relation_type[. = 'object_type']
| tagSet[11]/relation_type[. = 'object_type']
| tagSet[12]/relation_type[. = 'object_type']
| tagSet[13]/relation_type[. = 'object_type']
| tagSet[14]/relation_type[. = 'object_type']
| tagSet[15]/relation_type[. = 'object_type']
| tagSet[16]/relation_type[. = 'object_type']
| tagSet[17]/relation_type[. = 'object_type']
| tagSet[18]/relation_type[. = 'object_type']
">
<!-- objectWorkType exists via tags -->
<xsl:for-each select="tagSet/tag_id">
<xsl:if test="../relation_type = 'object_type'">
<lido:objectWorkType>
<xsl:for-each select="../noda_tag_Set/noda_source">
<xsl:if test="string-length(../noda_link)!=0">
<lido:conceptID>
<xsl:attribute name="lido:source">
<xsl:value-of select="../noda_source"/>
</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="../noda_link"/>
</lido:conceptID>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="../tag_name">
<lido:term>
<xsl:attribute name="lido:addedSearchTerm">no</xsl:attribute>
<xsl:if test="string-length(./@lang)!=0">
<xsl:attribute name="xml:lang">
<xsl:value-of select="./@lang"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/>
<xsl:variable name="objektartschlagwort" select="." />
</lido:term>
</xsl:for-each>
</lido:objectWorkType>
</xsl:if>
</xsl:for-each>
</xsl:if>
</lido:objectWorkType>
</xsl:when>
<xsl:otherwise>
<lido:objectWorkType>
<xsl:for-each select="objektart_gnd">
<lido:conceptID>
<xsl:attribute name="lido:source">gnd</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://d-nb.info/gnd/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_grobsystematik">
<lido:conceptID>
<xsl:attribute name="lido:source">grobsystematik</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/grobsystematik/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_oberbegriffsdatei">
<lido:conceptID>
<xsl:attribute name="lido:source">oberbegriffsdatei</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/oberbegriffsdatei/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_aat">
<lido:conceptID>
<xsl:attribute name="lido:source">aat</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://vocab.getty.edu/aat/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_lcsh">
<lido:conceptID>
<xsl:attribute name="lido:source">lcsh</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('http://id.loc.gov/authorities/subjects/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:for-each select="objektart_md_tag">
<lido:conceptID>
<xsl:attribute name="lido:source">md:term</xsl:attribute>
<xsl:attribute name="lido:type">uri</xsl:attribute>
<xsl:value-of select="concat('https://term.museum-digital.de/md-de/tag/', .)" />
</lido:conceptID>
</xsl:for-each>
<xsl:if test="objektart!=''">
<xsl:for-each select="objektart">
<lido:term>
<xsl:attribute name="xml:lang">de</xsl:attribute>
<xsl:value-of select="." />
</lido:term>
</xsl:for-each>
</xsl:if>
<xsl:if test="objekt_record_set/objektart!=''">
<xsl:for-each select="objekt_record_set">
<xsl:if test="substring(objekt_record_weitergabe,1,1)=0">
<lido:term>
<xsl:attribute name="xml:lang">
<xsl:value-of select="objekt_record_lang" />
</xsl:attribute>
<xsl:value-of select="objektart" />
</lido:term>
</xsl:if>
</xsl:for-each>
</xsl:if>
</lido:objectWorkType>
</xsl:otherwise>
</xsl:choose>
</lido:objectWorkTypeWrap>
<lido:classificationWrap>
<xsl:for-each select="collectionSet">

View File

@ -9,6 +9,7 @@
"show_markings": true,
"show_transcripts": true,
"show_links": true,
"show_object_to_object_links": true,
"show_images": true,
"show_hidden_images": false,
"show_objekt_inventarnr": true,

View File

@ -9,6 +9,7 @@
"show_markings": true,
"show_transcripts": true,
"show_links": true,
"show_object_to_object_links": true,
"show_images": true,
"show_hidden_images": false,
"show_objekt_inventarnr": true,

View File

@ -9,6 +9,7 @@
"show_markings": true,
"show_transcripts": true,
"show_links": true,
"show_object_to_object_links": true,
"show_images": true,
"show_hidden_images": false,
"show_objekt_inventarnr": true,