Bugzilla – Attachment 148111 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: Fix staff interface link in OPAC XSLT files for 830$w
Bug-30162-Fix-staff-interface-link-in-OPAC-XSLT-fi.patch (text/plain), 3.23 KB, created by
David Nind
on 2023-03-12 17:51:31 UTC
(
hide
)
Description:
Bug 30162: Fix staff interface link in OPAC XSLT files for 830$w
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-03-12 17:51:31 UTC
Size:
3.23 KB
patch
obsolete
>From 708ffe1697b95ebe2685115a854ea1d6f517d31d Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer@bsz-bw.de> >Date: Tue, 14 Feb 2023 09:36:45 +0000 >Subject: [PATCH] Bug 30162: Fix staff interface link in OPAC XSLT files for > 830$w >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >All the links in the Utils files shoudl be built using the $searchurl >variable to adapt the link to either staff or OPAC. > >To test: >* Enable UseControlNumber system preference >* Create a record with the following fields: > >490 1 _ â¡aEffective software development series >830 _ 0 â¡aEffective software development series.â¡w13736978 > > $w can be anything for this use case or another $w from your catalog. > Easiest might be to enable the Advanced cataloguing editor to be > able to insert these lines easily. If you are using the sample data, > the example shoudl work as is. > >* Save the record and open it in the staff interface and the OPAC >* The link in the OPAC should be broken, staff should work >* Apply patch >* Now both links should work > >Co-authored-by: Anke Bruns <Anke.Bruns@gwdg.de> >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >index d9a49ffcf5..470a3f247e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >@@ -515,7 +515,7 @@ > <xsl:for-each select="marc:datafield[@tag=830 and @ind1!='z']"> > <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=rcn:<xsl:value-of select="marc:subfield[@code='w']"/></xsl:attribute> > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >index e899b81099..7e6e702064 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >@@ -478,7 +478,7 @@ > <xsl:for-each select="marc:datafield[@tag=830 and @ind1!='z']"> > <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=rcn:<xsl:value-of select="marc:subfield[@code='w']"/></xsl:attribute> > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >-- >2.30.2
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