From 26c41a8463cd0614627fd9f19fe49c961f391510 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 4 Jul 2022 21:09:05 -0300 Subject: [PATCH] Bug 29418: (follow-up) Fix links generated in XSLTs This patch addresses the case of links that are generated on the XSLT side, those linking to host records using 773$t and 773$a. To test: 1. Repeat the test plan from the other patches 2. When sitting on the detail view of the host record, click on the link to open the child. => SUCCESS: The link works, because of the previous patches 3. Click on the 'In:' link so the search takes you to the host record => FAIL: The link leads no results 4. Apply this patch 5. Restart all 6. Reload the child record page and click on the link => SUCCESS: Voila! The host record is retrieved! 7. Bonus points: Retry the full test plan, but add a " or ? to the author in both host and child records => SUCCESS: Things don't work before this patch, and work afterwards. 8. Sign off :-D Sponsored-by: Theke Solutions Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize --- .../en/xslt/MARC21slim2intranetDetail.xsl | 17 ++++++++++- .../prog/en/xslt/MARC21slimUtils.xsl | 30 +++++++++++++++++++ .../en/xslt/MARC21slim2OPACDetail.xsl | 17 ++++++++++- .../bootstrap/en/xslt/MARC21slimUtils.xsl | 30 +++++++++++++++++++ 4 files changed, 92 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index e0dcfe4fbb..1fda2eaaa2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -1087,8 +1087,23 @@ + + + + + + + + + + + + + + - /cgi-bin/koha/catalogue/search.pl?q=ti,phr:+AND+au: + /cgi-bin/koha/catalogue/search.pl?q=ti,phr:("")+AND+au:("") + diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl index dfc9cc0186..814bcc93fc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl @@ -578,6 +578,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +