|
18 | 18 | <creator>
|
19 | 19 | <creatorName>{ $creator/mrd:name/text() }</creatorName>
|
20 | 20 | <nameIdentifier>{$creator/mrd:identifier/text()}</nameIdentifier>
|
21 |
| - <affiliation>{$creator/mrd:member_of/mrd:identifier/text()}</affiliation> |
22 | 21 | {
|
23 | 22 | for $label in $creator/mrd:member_of/mrd:name/* return
|
24 |
| - <affliation xml:lang="{$label/name()}">{$label/text()}</affliation> |
| 23 | + <affiliation identifier="{$creator/mrd:member_of/mrd:identifier/text()}" xml:lang="{$label/name()}">{$label/text()}</affiliation> |
25 | 24 | }
|
26 | 25 | </creator>
|
27 | 26 | }
|
|
37 | 36 | for $keyword in mrd:researchdataset/mrd:keyword/* return
|
38 | 37 | <subject>{$keyword/text()}</subject>
|
39 | 38 | }
|
40 |
| - { |
41 |
| - for $fs in mrd:researchdataset/mrd:field_of_science/mrd:item return |
42 |
| - <subject schemeURI="{$fs/mrd:in_scheme/mrd:item[1]/mrd:identifier/text()}" |
43 |
| - subjectScheme="{$fs/mrd:in_scheme/mrd:item[1]/mrd:pref_label/mrd:en/text()}">{$fs/mrd:identifier/text()}</subject> |
44 |
| - } |
| 39 | + |
45 | 40 | {
|
46 | 41 | for $fs in mrd:researchdataset/mrd:field_of_science/mrd:item/mrd:pref_label/* return
|
47 | 42 | <subject schemeURI="{$fs/../../mrd:in_scheme/mrd:item[1]/mrd:identifier/text()}"
|
48 | 43 | subjectScheme="{$fs/../../mrd:in_scheme/mrd:item[1]/mrd:pref_label/mrd:en/text()}" xml:lang="{$fs/name()}"
|
| 44 | + identifier="{$fs/../../mrd:identifier/text()}" |
49 | 45 | >{$fs/text()}</subject>
|
50 | 46 | }
|
51 |
| - { |
52 |
| - for $fs in mrd:researchdataset/mrd:theme/mrd:item return |
53 |
| - <subject schemeURI="{$fs/mrd:in_scheme/mrd:item[1]/mrd:identifier/text()}" |
54 |
| - subjectScheme="{$fs/mrd:in_scheme/mrd:item[1]/mrd:pref_label/mrd:en/text()}">{$fs/mrd:identifier/text()}</subject> |
55 |
| - } |
56 | 47 | {
|
57 | 48 | for $fs in mrd:researchdataset/mrd:theme/mrd:item/mrd:pref_label/* return
|
58 | 49 | <subject schemeURI="{$fs/../../mrd:in_scheme/mrd:item[1]/mrd:identifier/text()}"
|
59 | 50 | subjectScheme="{$fs/../../mrd:in_scheme/mrd:item[1]/mrd:pref_label/mrd:en/text()}" xml:lang="{$fs/name()}"
|
| 51 | + identifier="{$fs/../../mrd:identifier/text()}" |
60 | 52 | >{$fs/text()}</subject>
|
61 | 53 | }
|
62 | 54 | </subjects>
|
|
82 | 74 | <contributor contributorType="{$c/mrd:contributor_role/mrd:identifier/text()}">
|
83 | 75 | <contributorName>{$c/mrd:name/text()}</contributorName>
|
84 | 76 | <nameIdentifier>{$c/mrd:identifier/text()}</nameIdentifier>
|
85 |
| - <affiliation>{$c/mrd:member_of/mrd:identifier/text()}</affiliation> |
| 77 | + |
86 | 78 | {
|
87 | 79 | for $label in $c/mrd:member_of/mrd:name/* return
|
88 |
| - <affliation xml:lang="{$label/name()}">{$label/text()}</affliation> |
| 80 | + <affiliation identifier="{$c/mrd:member_of/mrd:identifier/text()}" xml:lang="{$label/name()}">{$label/text()}</affiliation> |
89 | 81 | }
|
90 | 82 |
|
91 | 83 | </contributor>
|
92 | 84 | }
|
93 | 85 |
|
94 | 86 | </contributors>
|
95 |
| - <language>{mrd:researchdataset/mrd:language[1]/mrd:item/mrd:identifier/text()}</language> |
| 87 | + <language>{substring-after(mrd:researchdataset/mrd:language[1]/mrd:item/mrd:identifier/text(), 'http://lexvo.org/id/iso639-3/')}</language> |
96 | 88 | <contributor contributorType="RightsHolder">
|
97 | 89 | {
|
98 | 90 | for $label in mrd:researchdataset/mrd:rights_holder/mrd:name/* return
|
|
105 | 97 | </contributor>
|
106 | 98 | {
|
107 | 99 | for $pub in mrd:researchdataset/mrd:publisher/mrd:name/* return
|
108 |
| - <publisher xml:lang="{$pub/name()}">{$pub/text()}</publisher> |
| 100 | + <publisher identifier="{$pub/../../mrd:identifier/text()}" xml:lang="{$pub/name()}">{$pub/text()}</publisher> |
109 | 101 | }
|
110 |
| - <publisher>{mrd:researchdataset/mrd:publisher/mrd:identifier/text()}</publisher> |
111 | 102 | <geoLocations>
|
112 | 103 | {
|
113 | 104 | for $geo in mrd:researchdataset/mrd:spatial/mrd:item return
|
|
0 commit comments