Bugzilla – Attachment 175387 Details for
Bug 38682
Add series ISSN from 490$x and 8XX$x to XSLT detail and search results' show-serial().
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38682 - Add series ISSN from 490$x and 8XX$x to XSLT detail and search results' show-serial().
0001-Bug-38682-Add-series-ISSN-from-490-x-and-8XX-x-to-XS.patch (text/plain), 5.09 KB, created by
Olli-Antti Kivilahti
on 2024-12-12 09:10:56 UTC
(
hide
)
Description:
Bug 38682 - Add series ISSN from 490$x and 8XX$x to XSLT detail and search results' show-serial().
Filename:
MIME Type:
Creator:
Olli-Antti Kivilahti
Created:
2024-12-12 09:10:56 UTC
Size:
5.09 KB
patch
obsolete
>From 47586d6915d738e07a74d1383a5881e148825176 Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <olli-antti.kivilahti@hypernova.fi> >Date: Thu, 12 Dec 2024 09:55:32 +0200 >Subject: [PATCH] Bug 38682 - Add series ISSN from 490$x and 8XX$x to XSLT > detail and search results' show-serial(). > >Series statement ISSN from fields 490$x or 8XX$x are not shown in XSLT-templates. >This patch makes them visible in search results and the biblio detail-view, both in OPAC and the staff client. > >TEST PLAN: > >490: > >1. Create a bib record with 490i1=0, 490$x >2. Search for the record in the OPAC >3. Observe the ISSN after the series statement in the search results listing >4. Open the record to biblio detail view >5. Observe the ISSN after the series statement in the detail -page. > >6. Search for the record in the staff client >7. Observe the ISSN after the series statement in the search results listing >8. Open the record to biblio detail view >9. Observe the ISSN after the series statement in the detail -page. > >800: > >1. Create a bib record with 800$x >2-9. Repeat test steps in TEST PLAN 490 > >830: > >1. Create a bib record with 830$x >2-9. Repeat test steps in TEST PLAN 490 >--- > .../intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 9 +++++++++ > .../opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl | 9 +++++++++ > 2 files changed, 18 insertions(+) > >diff --git a/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >index 45e0ee2..80a8eb7 100644 >--- a/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >+++ b/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >@@ -451,6 +451,9 @@ > <xsl:if test="marc:subfield[@code='v']"> > <xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='v']" /> > </xsl:if> >+ <xsl:if test="marc:subfield[@code='x']"> >+ <xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='x']" /> >+ </xsl:if> > <xsl:choose> > <xsl:when test="position()=last()"> > <xsl:if test="../marc:datafield[(@tag=800 or @tag=810 or @tag=811) and @ind1!='z'] or ../marc:datafield[@tag=830 and @ind1!='z']"> >@@ -501,6 +504,9 @@ > <xsl:call-template name="part"/> > <xsl:text> ; </xsl:text> > <xsl:value-of select="marc:subfield[@code='v']" /> >+ <xsl:if test="marc:subfield[@code='x']"> >+ <xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='x']" /> >+ </xsl:if> > <xsl:choose> > <xsl:when test="position()=last()"> > <xsl:if test="../marc:datafield[@tag=830 and @ind1!='z']"> >@@ -553,6 +559,9 @@ > <xsl:if test="marc:subfield[@code='v']"> > <xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='v']" /> > </xsl:if> >+ <xsl:if test="marc:subfield[@code='x']"> >+ <xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='x']" /> >+ </xsl:if> > <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class="separator"> | </span></xsl:otherwise></xsl:choose> > </xsl:for-each> > >diff --git a/opac/htdocs/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl b/opac/htdocs/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >index 9d35b9f..cdcbbc8 100644 >--- a/opac/htdocs/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >+++ b/opac/htdocs/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >@@ -416,6 +416,9 @@ > <xsl:if test="marc:subfield[@code='v']"> > <xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='v']" /> > </xsl:if> >+ <xsl:if test="marc:subfield[@code='x']"> >+ <xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='x']" /> >+ </xsl:if> > <xsl:choose> > <xsl:when test="position()=last()"> > <xsl:if test="../marc:datafield[(@tag=800 or @tag=810 or @tag=811) and @ind1!='z'] or ../marc:datafield[@tag=830 and @ind1!='z']"> >@@ -465,6 +468,9 @@ > <xsl:call-template name="part"/> > <xsl:text> ; </xsl:text> > <xsl:value-of select="marc:subfield[@code='v']" /> >+ <xsl:if test="marc:subfield[@code='x']"> >+ <xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='x']" /> >+ </xsl:if> > <xsl:choose> > <xsl:when test="position()=last()"> > <xsl:if test="../marc:datafield[@tag=830 and @ind1!='z']"> >@@ -517,6 +523,9 @@ > <xsl:if test="marc:subfield[@code='v']"> > <xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='v']" /> > </xsl:if> >+ <xsl:if test="marc:subfield[@code='x']"> >+ <xsl:text> ; </xsl:text><xsl:value-of select="marc:subfield[@code='x']" /> >+ </xsl:if> > <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class="separator"> | </span></xsl:otherwise></xsl:choose> > </xsl:for-each> > >-- >2.34.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38682
: 175387