Bugzilla – Attachment 140403 Details for
Bug 30162
XSLT has broken link for traced series because of OPAC/staff interface confusion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30162 - XSLT has broken link for traced series because of OPAC/staff interface confusion
Bug-30162---XSLT-has-broken-link-for-traced-series.patch (text/plain), 2.21 KB, created by
Mark Hofstetter
on 2022-09-11 14:25:16 UTC
(
hide
)
Description:
Bug 30162 - XSLT has broken link for traced series because of OPAC/staff interface confusion
Filename:
MIME Type:
Creator:
Mark Hofstetter
Created:
2022-09-11 14:25:16 UTC
Size:
2.21 KB
patch
obsolete
>From c2e45d265b77bafcb60506e7a34f31656094b0ab Mon Sep 17 00:00:00 2001 >From: Mark Hofstetter <mark@hofstetter.at> >Date: Sun, 11 Sep 2022 16:06:18 +0200 >Subject: [PATCH] Bug 30162 - XSLT has broken link for traced series because of > OPAC/staff interface confusion > >the link to for series defined in 830$w in OPAC is generated incorrectly this patch >creates the link properly > >to test: >1. set UseControlNumber to "Use" >2. for the BKS Framework make 830 $0 $w $t $v editable >3. choose two records: > A (eg Perl best practices / Damian Conway. (Record number 5)) as child > B Programming Perl / Tom Christiansen, Brian D. Foy & Larry Wall. (Record number 262) as parent record >4. edit the child record, > - set 490 indicator 1 to 1 > - set 830$w (and maybe 830$0 to control-number of the parent in my case 17259930) > - set 830$t = "perl series title" and 830$v = "Volume 1" >5. before the pathc you'll get a 404 error because of the wrong >6. apply patch >7. the link should now work, and point to the series, (not to the parent record) >--- > koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >index 20d2c0ae83..21f0064629 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >@@ -470,7 +470,7 @@ > <xsl:for-each select="marc:datafield[@tag=830]"> > <xsl:choose> > <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> >- <a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=control-number:<xsl:value-of select="str:encode-uri(marc:subfield[@code='w'], true())"/></xsl:attribute> >+ <a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=rcn:<xsl:value-of select="str:encode-uri(marc:subfield[@code='w'], true())"/></xsl:attribute> > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >-- >2.20.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 30162
:
140360
|
140403
|
146610
|
147329
|
148111
|
148809