From 845771e960ecf16ce9002fe5c2e0330708f6d898 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 30 Aug 2023 16:00:15 +0000 Subject: [PATCH] Bug 34566: Update MARC21 cataloging plugins with consistent footers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch updates MARC21 cataloging plugin templates so that submit and cancel controls are consistently displayed in a fixed footer. To test, apply the patch and go to Cataloging. - Create or edit a bibliographic record - Test the cataloging plugins for these fields: - 000 (Leader) - 006 - 007 - 008 - In each case, confirm that the correct popup window is shown when you click the plugin link. - Confirm that clicking the "Cancel" button closes the window without copying any data to the field in the MARC editor. * Note that if the plugin is also triggered by cursor focus in the input field, some data may be automatically filled anyway. - Confirm that filing in data and clicking "Submit" will copy the correct information into the field. - Go to Authorities and create or edit an authority record. - Test the plugin for these fields: - 000 (Leader) - 008 - Perform the same tests as above. I don't think the marc21_field_008_classifications is used at all, but the template has been updated anyway. To test, edit your authority record to use the plugin: - Administration -> Authority types -> Default -> MARC structure -> 008 -> Subfields -> Edit. - Under Advanced constraints -> Plugin, select "marc21_field_008_classifcations.pl" - Re-test the behavior of the authority editor's tag 008 plugin to confirm that this plugin is used and works correctly. Signed-off-by: Émily-Rose Francoeur Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../cataloguing/value_builder/EXAMPLE.tt | 15 +- .../value_builder/marc21_field_006.tt | 10 +- .../value_builder/marc21_field_007.tt | 9 +- .../value_builder/marc21_field_008.tt | 9 + .../marc21_field_008_authorities.tt | 9 +- .../marc21_field_008_classifications.tt | 395 +++++++++--------- .../value_builder/marc21_leader.tt | 9 +- .../marc21_leader_authorities.tt | 10 +- .../intranet-tmpl/prog/js/staff-global.js | 5 +- 9 files changed, 269 insertions(+), 202 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/EXAMPLE.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/EXAMPLE.tt index f88e6f5f05..464af8b939 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/EXAMPLE.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/EXAMPLE.tt @@ -18,11 +18,18 @@

I will pass back what you type here, if you press OK.

+ -

- - Cancel -

+ + +