From e56d8a0ed9e2869c0e476e1c1b4c3e92938ca50a Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 11 Jun 2018 11:34:22 -0300 Subject: [PATCH] Bug 20910: Display 773$g when $0 is present too This patch makes the XSLT logic add the $g subfield in the 773 display in both the OPAC and staff interface MARC21 record detail pages. The XSLT chooses between different ways to create the link for the related content, but then it only adds the $g in two of the cases. There's no obvious reason for a different display. To test: - Have a record with: =773 $tHost title $gp4. => SUCCESS: Notice the Detail view shows: In: Host title p4. - Have another record with: =773 $tHost title $gp4. $w100 - Enable UseControlNumber (only to cover the case): => SUCCESS: Notice the detail view shows In: Host title p4. - Have another record with: =773 $tHost title $gp4. $0456 => FAIL: The Detail view doesn't show p4. - Apply this patch - Reload => SUCCESS: The Detail view displays p4.! - Sign off :-D Sponsored-by: Escuela de Orientacion Lacaniana --- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 6 ++++-- .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index cf39ec4bf0..3137370f60 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -992,7 +992,6 @@ /cgi-bin/koha/catalogue/search.pl?q=Control-number: - /cgi-bin/koha/catalogue/detail.pl?biblionumber= @@ -1003,9 +1002,12 @@ /cgi-bin/koha/catalogue/search.pl?q=ti,phr: - + + + + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index f31b1beba5..a0f2b6bf60 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -1061,7 +1061,6 @@ /cgi-bin/koha/opac-search.pl?q=Control-number: - /cgi-bin/koha/opac-detail.pl?biblionumber= @@ -1072,9 +1071,11 @@ /cgi-bin/koha/opac-search.pl?q=ti,phr: - + + + -- 2.17.1