From a567f9b818f2e85a4e91228fa3c3e01aff92a30e Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Thu, 5 Sep 2024 17:16:28 -0700 Subject: [PATCH] Bug 37293: MARC bibliographic framework text for librarians and OPAC limited to 100 characters The database columns for liblibrarian and libopac in marc_tag_structure and marc_subfield_structure are 255 characters, but the HTML maxlength in /koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt and /koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt limit tags to 100 characters and subfields to 80 characters. Test plan: 1. Apply patch, restart_all 2. Administration - MARC bibliographic framework - for Default, Actions - MARC Structure 3. For the 000 tag, Actions - Edit tag 4. In both the "Description in staff interface" and "Description in OPAC" paste the 255 character string 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 12 and click Save changes 5. Verify that the display shows all 255 characters, then Actions - Edit tag and verify that the two inputs reloaded with all 255 characters, and that you cannot type a 256th character, then click Cancel 6. For the 000 tag, Actions - Edit subfields 7. Paste the same string in both the staff interface and OPAC inputs, Save changes, verify that all 255 characters show, click Edit subfields, verify that all 255 characters reloaded in the inputs, verify that you cannot type a 256th character Sponsored-by: Chetco Community Public Library Signed-off-by: Shi Yao Wang Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer (cherry picked from commit a9044f4b3487d7b3eea7aaec7653edff48463ea3) Signed-off-by: Paul Derscheid --- .../prog/en/modules/admin/marc_subfields_structure.tt | 4 ++-- .../intranet-tmpl/prog/en/modules/admin/marctagstructure.tt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt index 39cbe8a3f1..699df96c25 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt @@ -148,11 +148,11 @@ [% END %]
  • - +
  • - +
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt index ed8c5993f1..850a8988a7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt @@ -133,8 +133,8 @@ Required [% END %]
  • -
  • -
  • +
  • +
  • [% IF ( repeatable ) %]