From df03005410980d344f67ffd1ca7cb93c52ef65e1 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Fri, 8 Aug 2025 00:46:34 +0000 Subject: [PATCH] Bug 40621: Show MARC21 767 translation entry in OPAC and staff detail XSLT Test plan: 1. Go to Koha Administration -> MARC bibliographic frameworks. Using the Default framework, view MARC subfields for the 767 tag and ensure that $a, $d, $t, and $w are visible in the staff interface, OPAC, and editor. 2. Go to system preferences and search for UseControlNumber. Ensure it is disabled. 3. In another tab, search for a record using the Default framework or create a new one. Go to edit the record. 4. Add a 767 with $t, $a, and $d. Put (orgcode)cnum value into $w. Put orgcode in 003 and cnum in 001. 5. View the staff interface detail page. Confirm you see "Translated as:" with your 767 values as a clickable link that is title-based only. 6. Enable UseControlNumber. 7. Repeat Step 5. Confirm you see "Translated as:" with your 767 values as a clickable link that is uses the orgcode and cnum. 8. Edit the record and set $w to the cnum only. 9. Repeat Step 5. Confirm you see "Translated as:" with your 767 values as a clickable link that uses the cnum only. 10. Click to open the record in the OPAC view and confirm the 767 shows as expected. Sponsored-by: Secretariat of the Pacific Community --- .../en/xslt/MARC21slim2intranetDetail.xsl | 34 +++++++++++++++++++ .../en/xslt/MARC21slim2OPACDetail.xsl | 34 +++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 9167240766c..1cc90397049 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -1206,6 +1206,40 @@ + + + + Translated as: + + + + + + + + + + + tad + , + + + + + + + + + + + + + + + + + + Supplement: diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index ea7c985eccc..7ae9e267657 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -1414,6 +1414,40 @@ + + + + Translated as: + + + + + + + + + + + tad + , + + + + + + + + + + + + + + + + + + -- 2.39.5