From 0f2bd80ad6afe22f4bfa35d446519282159d7ec8 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. --- .../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 839f358a9c..770fb00f35 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 b5b07f3ee8..8361875491 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: