Skip to content

Commit

Permalink
#550 HISinOne treats journals and newspaper the same way
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Aug 28, 2024
1 parent 31af8b7 commit ae06146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<label xml:lang="x-hosts" text="journal collection book newspaper video others"/>
<label xml:lang="x-color" text="#7dabd0"/>
<label xml:lang="x-mapping" text="marcgt:article orcidWorkType:journal-article"/>
<label xml:lang="x-mapping-his-genre" text="journal:Journalartikel, default:Sonstiger Publikationstyp"/>
<label xml:lang="x-mapping-his-genre" text="journal:Journalartikel, newspaper:Journalartikel, default:Sonstiger Publikationstyp"/>
<label xml:lang="x-mapping-his-docType" text="journal:Wissenschaftlicher Artikel"/>
<label xml:lang="x-marcgt" text="article"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<xsl:template name="related-item-host">
<xsl:choose>
<!-- Resolve journal-->
<xsl:when test="mods:relatedItem[@type = 'host'][mods:genre[@type='intern'][fn:contains('journal', fn:substring-after(@valueURI, '#'))]][1]">
<xsl:when test="mods:relatedItem[@type = 'host'][mods:genre[@type='intern'][fn:contains('journal newspaper', fn:substring-after(@valueURI, '#'))]][1]">
<xsl:variable name="title" select="mods:relatedItem[@type = 'host'][mods:genre[fn:contains(@valueURI, '#journal')]][1]/mods:titleInfo/mods:title"/>
<xsl:variable name="his-id" select="fn:document(concat('hisinone:resolve:id:journal:', fn:encode-for-uri($title)))"/>

Expand Down

0 comments on commit ae06146

Please sign in to comment.