From 9de53eb9afe6fb21e55ede72d828f45558fa00ae Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 3 Nov 2023 10:17:23 +0000 Subject: [PATCH] Bug 35245: Set default width for select2 in authorities Test plan: 1) Edit a authority Marc framework, e.g. 'CHRON_TERM', visit: /cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=CHRON_TERM 2) Pick any field to turn into a AV field, e.g. 371, and edit its subfields: /cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=371&authtypecode=CHRON_TERM 3) Pick a subfield e.g. 'd' and click edit, visit: /cgi-bin/koha/admin/auth_subfields_structure.pl?op=add_form&tagfield=371&tagsubfield=d&authtypecode=CHRON_TERM#subdfield 4) Pick a Authorized value list e.g. DEPARTMENT, click Submit 5) Create a new authority of the same type 'CHRON_TERM', visit: /cgi-bin/koha/authorities/authorities.pl?authtypecode=CHRON_TERM 6) Click on Tab '3' and click on field 371 ADDRESS to expand it 7) Notice field 'd' select2 width is very narrow 8) Apply patch. Repeat. Notice its not narrow anymore Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit f918c3ff803d811ad025bff42e1263e3b3aafa83) Signed-off-by: Fridolin Somers (cherry picked from commit c577710c40a60236549e88700c654d718da5f7df) Signed-off-by: Pedro Amorim --- .../intranet-tmpl/prog/en/modules/authorities/authorities.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt index 8624f5110c..a8af241899 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -5,14 +5,15 @@ [% IF ( authid ) %]Modify authority #[% authid | html %] ([% authtypetext | html %])[% ELSE %]Adding authority ([% authtypetext | html %])[% END %] › Authorities › Koha [% INCLUDE 'doc-head-close.inc' %] [% Asset.js("lib/hc-sticky.js") | $raw %] +[% INCLUDE 'select2.inc' %] -[% INCLUDE 'select2.inc' %] [% Asset.js("js/cataloging.js") | $raw %]