Skip to content

Commit

Permalink
IM-150 set default work type to "other", remove usage of deprecated type
Browse files Browse the repository at this point in the history
"edited-book" and add mapping for lecture
  • Loading branch information
kkrebs committed Oct 18, 2024
1 parent 79dadc2 commit 372fc3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/setup/classifications/orcidWorkType.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<label xml:lang="de" text="Buch"/>
<label xml:lang="en" text="Book"
description="Books written by a single author or collaboratively based on research or scholarly findings generally derived from peer reviewed funding."/>
<label xml:lang="x-mapping-xpath" text="{pattern:genre(book)} and (not(mods:relatedItem[@type='host']) or {pattern:host-genre(series)})" />
<label xml:lang="x-mapping-xpath" text="({pattern:genre(book)} and (not(mods:relatedItem[@type='host']) or {pattern:host-genre(series)})) or ({pattern:genre(collection)} and (not(mods:relatedItem[@type='host']) or {pattern:host-genre(series)})) or ({pattern:genre(proceedings)} and (not(mods:relatedItem[@type='host']) or {pattern:host-genre(series)})) or ({pattern:genre(lexicon)} and (not(mods:relatedItem[@type='host']) or {pattern:host-genre(series)})) or ({pattern:genre(festschrift)} and (not(mods:relatedItem[@type='host']) or {pattern:host-genre(series)}))" />
</category>
<category ID="book-chapter">
<label xml:lang="de" text="Buchkapitel"/>
Expand Down Expand Up @@ -49,7 +49,6 @@
<label xml:lang="de" text="Herausgegebenes Buch"/>
<label xml:lang="en" text="Edited book"
description="Books edited by a single author or collaboratively for the dissemination of research or scholarly findings that generally result from peer reviewed funding."/>
<label xml:lang="x-mapping-xpath" text="({pattern:genre(collection)} and (not(mods:relatedItem[@type='host']) or {pattern:host-genre(series)})) or ({pattern:genre(proceedings)} and (not(mods:relatedItem[@type='host']) or {pattern:host-genre(series)})) or ({pattern:genre(lexicon)} and (not(mods:relatedItem[@type='host']) or {pattern:host-genre(series)})) or ({pattern:genre(festschrift)} and (not(mods:relatedItem[@type='host']) or {pattern:host-genre(series)}))" />
</category>
<category ID="encyclopaedia-entry">
<label xml:lang="de" text="Enzyklopädieeintrag"/>
Expand All @@ -76,6 +75,7 @@
<category ID="manual">
<label xml:lang="de" text="Handbuch"/>
<label xml:lang="en" text="Manual" description="Course and assignment materials produced for teaching purposes."/>
<label xml:lang="x-mapping-xpath" text="{pattern:genre(lecture)} and (not(mods:relatedItem[@type='host']) or {pattern:host-genre(blog)})" />
</category>
<category ID="newsletter-article">
<label xml:lang="de" text="Newsletter Artikel"/>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/xslt/orcid2/v3/mcr2work.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<xsl:import href="resource:xslt/orcid2/v3/mcr2work_generic.xsl"/>

<xsl:param name="MCR.ORCID2.Genre.Mapping.Default.Genre" select="'journal-article'"/>
<xsl:param name="MCR.ORCID2.Genre.Mapping.Default.Genre" select="'other'"/>

<xsl:template name="workType">
<xsl:choose>
Expand Down

0 comments on commit 372fc3d

Please sign in to comment.