From 32ea6abb1e3bcdd6f6099bed87aea03a8c6147cb Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 20 Oct 2025 12:05:48 +0000 Subject: [PATCH] Bug 41054: Sort metadata keys alphabetically case insensitive This coincidentally+nicely puts eISSN before ISSN on the 'manage request page' while keeping the rest of the order as before Test plan: 1) Enable ILLModule 2) Create a new ILL request, visit: /cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard 3) Pick type one of 'journal article', 'conference', 'journal', 'generic resource' 4) Enter cardnumber, library, eISSN and other data if you want 5) Notice 'eISSN' shows on the 'Manage request' page. 6) Test again by creating an OPAC request, visit: /cgi-bin/koha/opac-illrequests.pl?op=add_form&backend=Standard Signed-off-by: Richard Bridgen Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index f579fe8aec..b503079701 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -750,11 +750,12 @@

Details from supplier ([% request.backend | html %])

    - [% FOREACH meta IN request.metadata %] - [% IF meta.value %] -
  1. - [% meta.key.replace('_',' ') | html %]: - [% meta.value | html %] + [% FOREACH meta IN request.metadata.keys.sort('lower') %] + [% val = request.metadata.${meta} %] + [% IF val %] +
  2. + [% meta.replace('_',' ') | html %]: + [% val | html %]
  3. [% END %] [% END %]