From 1da312ce43e68eb82c511e7563c16dabcb4e6c8b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 9 Apr 2013 10:52:12 -0400 Subject: [PATCH] Bug 10010 - Use jQueryUI Accordion to display constraints in MARC subfield editor The jQueryUI Accordion widget, included by default in Koha, is well-suited to handle the kind of show/hide actions which are used in the MARC subfield editor. This patch replaces the custom-writted JS with jQueryUI JS and markup. To test, load the tag subfield editor: Admin -> MARC frameworks -> MARC structure -> Subfields -> Edit. Confirm that basic, advanced, and other contraints panels are show/hidden correctly. Confirm that tabs work, and that edit operations are not disrupted. Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Looks nice, passes all tests and QA script. Signed-off-by: Galen Charlton --- .../prog/en/css/staff-global.css | 5 +- .../modules/admin/marc_subfields_structure.tt | 46 ++++++++----------- 2 files changed, 24 insertions(+), 27 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 3439e23290..2ceafe778d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -2384,7 +2384,10 @@ div.authorizedheading { .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; } /* jQuery UI Accordion */ -.ui-accordion-header { font-weight: bold; font-size : 110%; } +.ui-accordion-header, +.ui-widget-content .ui-accordion-header { + font-weight: bold; font-size : 110%; +} video { width: 480px; 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 716b129e57..157d51b719 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 @@ -4,19 +4,9 @@ [% INCLUDE 'doc-head-close.inc' %]