Bugzilla – Attachment 140360 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]
the Series link koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl is not generated correctly
the-Series-link-koha-tmplopac-tmplbootstrapenxsltM.patch (text/plain), 3.25 KB, created by
Mark Hofstetter
on 2022-09-09 06:21:02 UTC
(
hide
)
Description:
the Series link koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl is not generated correctly
Filename:
MIME Type:
Creator:
Mark Hofstetter
Created:
2022-09-09 06:21:02 UTC
Size:
3.25 KB
patch
obsolete
>From d1468bb218a2098a0f11a369c2b368f97974c372 Mon Sep 17 00:00:00 2001 >From: Mark Hofstetter <mark@hofstetter.at> >Date: Fri, 9 Sep 2022 08:18:39 +0200 >Subject: [PATCH] the Series link > koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl is not generated > correctly > >to reproduce > >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. apply the patch as suggested by Katrin Fischer 2022-02-23 14:18:34 UTC > >6. go to the child record, the "Series" link will be something like >opac-search.pl?q=rcn:17259930 > >7. if you click the link it leads to the child record itself and not to the parent record > >8. I would suggest the following patch point to the control-number >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >index b734afd754..20d2c0ae83 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 href="/cgi-bin/koha/catalogue/search.pl?q=rcn:{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> > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> > >https://bugs.koha-community.org/show_bug.cgi?id=30162 >--- > 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 b734afd754..20d2c0ae83 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 href="/cgi-bin/koha/catalogue/search.pl?q=rcn:{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> > <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