From c2ab1002bf7262aa4bec73bc92ffe5e441a723c3 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 18 Oct 2023 12:00:05 +0000 Subject: [PATCH] Bug 34020: Preserve order of subfields in 264 display When ordered $a$b$a$b$c in the MARC object, 264 subfields are displayed $a$a$b$b$c. This goes against the standard. This patch preserves the order. 1) Edit a record and add/update a 264 fields to have subfields a, b, a, b, c in that order 1) Search for record in staff and opac, see subfields displayed in order "aabbc" in results 2) View the details page for the record in staff and opac, note same order 3) Apply the patch, restart all 4) Confirm staff and opac, results and details now follow the order of the subfields in the record's field Signed-off-by: Owen Leonard --- .../prog/en/xslt/MARC21slimUtils.xsl | 59 ++++++++----------- .../bootstrap/en/xslt/MARC21slimUtils.xsl | 58 ++++++++---------- 2 files changed, 52 insertions(+), 65 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl index 3c3cecb6ff..5da84927a0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl @@ -281,41 +281,34 @@ - - - a - - - - - - - - - /cgi-bin/koha/catalogue/search.pl?q=Provider: - - b - - - - - - - - b - + + + + + + + + + /cgi-bin/koha/catalogue/search.pl?q=Provider: + + + + + + + - - - - - - - c + + + + + - - - + + + + + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl index b0a8ad1b59..62465adf27 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl @@ -279,40 +279,34 @@ - - - a - - - - - - - - - /cgi-bin/koha/opac-search.pl?q=Provider: - - b - - - - - - - - b - + + + + + + + + + /cgi-bin/koha/opac-search.pl?q=Provider: + + + + + + + - - - - - - - c + + + + + - - + + + + + -- 2.30.2