From faae053db6703c79e4735903c55d76318f4cda8b Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Thu, 3 Apr 2025 09:11:32 +0000 Subject: [PATCH] Bug 34025: Make more controlled fields linkable (130, 240, 730 + 7XX $a + $t) [XSLT] MARC21 contain linking fields (130, 240, 730 + 7XX $a + $t) that currently currently are not 'clickable'. This patch adds the links, similarly to the links created for contributors', both in OPAC and staff interface. Test plan: ========== 1. Add some 130, 240, 730 + 7XX $a + $t fields to a record. Note that 730 and 7XX $a + $t fields have to have 2nd indicator set to 2. You can link the fields to authority records. 2. Not that the information displayed from these fields is not 'clickable' neither in OPAC, nor in the staff interface. 3. Apply the patch ; restart all. 4. You should be able to see and use the links now. If the fields are linked to authotiry record and UseAuthoritiesForTracings systempreference is set, the search will be performed with authid identifier. There should be also a magnifying glass icon with a link to the authority record. Signed-off-by: Roman Dolny Signed-off-by: Bernard Scaife Signed-off-by: Martin Renvoize --- .../en/xslt/MARC21slim2intranetDetail.xsl | 82 +++++++++++++++- .../en/xslt/MARC21slim2OPACDetail.xsl | 97 +++++++++++++++++-- 2 files changed, 169 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 9167240766c..1023867e19e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -549,21 +549,55 @@ - + Uniform titles: - + i + + + + + /cgi-bin/koha/catalogue/search.pl?q=an: + + + &sort_by= + + _ + + + + + + + /cgi-bin/koha/catalogue/search.pl?q=au:" + + " + + + + + + + + + + + | @@ -617,6 +651,39 @@ Contained works: + + + + + + /cgi-bin/koha/catalogue/search.pl?q=an: + + + &sort_by= + + _ + + + + + + + /cgi-bin/koha/catalogue/search.pl?q=au:" + + " + + &sort_by= + + _ + + + + + + abcdfghiklmnporstux @@ -648,6 +715,17 @@ ] + + + + + + + + + + | diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index ea7c985eccc..6ad76dbf9f5 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -654,11 +654,11 @@ - + Uniform titles: