From c4e04e2cbaff0a9af124dc5a28ddbdc7058405d0 Mon Sep 17 00:00:00 2001
From: Nick Clemens
Date: Fri, 11 Sep 2020 18:44:13 +0000
Subject: [PATCH] Bug 5927: [Alternate] Show series information in staff and
opac results pages
This moves the series info to a template in the XSLT utils files and adds a
few variables to make it work right.
To test:
1 - Create a catalog records with:
440 series fields
490 traced series fields
490 untraced series fields
2 - View the details pages for these records and note the display and the links formed
3 - Apply patch
4 - Confirm the details pages look the same
5 - Search on staff and opac to return the records
6 - Confirm the results pages form the same series as on details
7 - Confirm the links work the same
Signed-off-by: Katrin Fischer
Signed-off-by: Jonathan Druart
---
.../en/xslt/MARC21slim2intranetDetail.xsl | 160 +----------------
.../en/xslt/MARC21slim2intranetResults.xsl | 7 +
.../prog/en/xslt/MARC21slimUtils.xsl | 161 ++++++++++++++++++
.../en/xslt/MARC21slim2OPACDetail.xsl | 158 +----------------
.../en/xslt/MARC21slim2OPACResults.xsl | 8 +
.../bootstrap/en/xslt/MARC21slimUtils.xsl | 161 ++++++++++++++++++
6 files changed, 347 insertions(+), 308 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
index 7a84705612..bd75f364d5 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
@@ -190,135 +190,12 @@
se
-
-
-
- Series:
-
-
- /cgi-bin/koha/catalogue/search.pl?q=se,phr:""
-
-
-
- av
-
-
-
-
-
-
-
-
- ;
-
-
- ;
-
-
-
-
-
- /cgi-bin/koha/catalogue/search.pl?q=se,phr:""
-
-
-
- av
-
-
-
-
-
- ;
-
-
-
-
-
-
- /cgi-bin/koha/catalogue/search.pl?q=rcn:
-
-
-
- a_t
-
-
-
-
-
-
- /cgi-bin/koha/catalogue/search.pl?q=an:
-
-
-
- a_t
-
-
-
-
-
-
- /cgi-bin/koha/catalogue/search.pl?q=se,phr:""&q=au:""
-
-
-
- a_t
-
-
-
-
-
-
-
- :
-
- ;
-
-
-
-
-
-
-
-
- a_t
-
-
-
-
-
-
- /cgi-bin/koha/catalogue/search.pl?q=an:
-
-
-
- a_t
-
-
-
-
-
-
- /cgi-bin/koha/catalogue/search.pl?q=se,phr:""
-
-
-
- a_t
-
-
-
-
-
-
-
- :
-
- ;
-
-
-
-
-
+
+ /cgi-bin/koha/catalogue/search.pl
+
+
+
@@ -1479,33 +1356,6 @@
-
-
-
- n
- n
- fghkdlmor
-
-
-
-
- p
- p
- fghkdlmor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl
index be70b9abcb..d263de1ea1 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl
@@ -16,6 +16,7 @@
+
@@ -839,6 +840,12 @@
+
+ /cgi-bin/koha/catalogue/search.pl
+
+
+
+
diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl
index d43e6edb78..5cec90738e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl
@@ -403,6 +403,167 @@
+
+
+
+ n
+ n
+ fghkdlmor
+
+
+
+
+ p
+ p
+ fghkdlmor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Series:
+
+
+ ?q=se,phr:""
+
+
+
+ av
+
+
+
+
+
+
+
+
+ ;
+
+
+ ;
+
+
+
+
+
+ ?q=se,phr:""
+
+
+
+ av
+
+
+
+
+
+ ;
+
+
+
+
+
+
+ ?q=rcn:
+
+
+
+ a_t
+
+
+
+
+
+
+ ?q=an:
+
+
+
+ a_t
+
+
+
+
+
+
+ ?q=se,phr:""&q=au:""
+
+
+
+ a_t
+
+
+
+
+
+
+
+ :
+
+ ;
+
+
+
+
+
+
+
+
+
+ a_t
+
+
+
+
+
+
+ ?q=an:
+
+
+
+ a_t
+
+
+
+
+
+
+ ?q=se,phr:""
+
+
+
+ a_t
+
+
+
+
+
+
+
+ :
+
+ ;
+
+
+
+
+
+
+
-
- Series:
-
-
- /cgi-bin/koha/opac-search.pl?q=se,phr:""
-
-
-
- av
-
-
-
-
-
-
-
-
- ;
-
-
- ;
-
-
-
-
-
- /cgi-bin/koha/opac-search.pl?q=se,phr:""
-
-
-
- av
-
-
-
-
-
- ;
-
-
-
-
-
-
- /cgi-bin/koha/opac-search.pl?q=rcn:
-
-
-
- a_t
-
-
-
-
-
-
- /cgi-bin/koha/opac-search.pl?q=an:
-
-
-
- a_t
-
-
-
-
-
-
- /cgi-bin/koha/opac-search.pl?q=se,phr:""&q=au:""
-
-
-
- a_t
-
-
-
-
-
-
-
- :
-
- ;
-
-
-
-
-
-
-
-
- a_t
-
-
-
-
-
-
- /cgi-bin/koha/opac-search.pl?q=an:
-
-
-
- a_t
-
-
-
-
-
-
- /cgi-bin/koha/opac-search.pl?q=se,phr:""
-
-
-
- a_t
-
-
-
-
-
-
-
- :
-
- ;
-
-
-
-
+
+ /cgi-bin/koha/opac-search.pl
+
+
+
@@ -1964,33 +1843,6 @@
-
-
-
- n
- n
- fghkdlmor
-
-
-
-
- p
- p
- fghkdlmor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl
index a0879f65d4..78aa361918 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl
@@ -22,6 +22,8 @@
+
+
@@ -638,6 +640,12 @@
+
+ /cgi-bin/koha/opac-search.pl
+
+
+
+
Edition:
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl
index a8be280c4b..c7e13cefa3 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl
@@ -367,6 +367,167 @@
+
+
+
+
+
+
+ Series:
+
+
+ ?q=se,phr:""
+
+
+
+ av
+
+
+
+
+
+
+
+
+ ;
+
+
+ ;
+
+
+
+
+
+ ?q=se,phr:""
+
+
+
+ av
+
+
+
+
+
+ ;
+
+
+
+
+
+
+ ?q=rcn:
+
+
+
+ a_t
+
+
+
+
+
+
+ ?q=an:
+
+
+
+ a_t
+
+
+
+
+
+
+ ?q=se,phr:""&q=au:""
+
+
+
+ a_t
+
+
+
+
+
+
+
+ :
+
+ ;
+
+
+
+
+
+
+
+
+
+ a_t
+
+
+
+
+
+
+ ?q=an:
+
+
+
+ a_t
+
+
+
+
+
+
+ ?q=se,phr:""
+
+
+
+ a_t
+
+
+
+
+
+
+
+ :
+
+ ;
+
+
+
+
+
+
+
+
+
+
+ n
+ n
+ fghkdlmor
+
+
+
+
+ p
+ p
+ fghkdlmor
+
+
+
+
+
+
+
+
+
+
+
+
+
+