From 7bef702b2440cb60249f783245e52dd039e94a61 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 21 Dec 2016 02:46:57 +0000 Subject: [PATCH] [SIGNED-OFF] Bug 17799: MARC bibliographic frameworks breadcrumbs broken for Default framework To test: 1) Go to Admin -> MARC frameworks -> Default framework actions -> MARC structure 2) Click New tag 3) Notice the breadcrumbs say '()' instead of 'Default MARC framework' or something more appropriate 4) Apply patch and refresh page 5) Confirm breadcrumbs are now filled correctly 6) Go back to tag structure and try deleting a tag (Actions -> Delete) 7) Confirm breadcrubs are filled correctly Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 249991d..75e3caa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt @@ -39,15 +39,15 @@ $(document).ready(function() { › AdministrationMARC frameworks [% IF ( add_form ) %] -› [% framework.frameworktext %] ([% framework.frameworkcode %]) +› [% IF framework %][% framework.frameworktext %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END%] › [% action %] [% searchfield %] [% ELSIF ( else ) %] › [% IF framework %][% framework.frameworktext %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END %] [% ELSIF ( delete_confirm ) %] -› [% framwork.frameworktext %] ([% framework.frameworkcode %]) +› [% IF framework %][% framework.frameworktext %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END %] › Confirm deletion of tag '[% searchfield %]' [% ELSIF ( delete_confirmed ) %] -› [% framework.frameworktext %] ([% framework.frameworkcode %]) +› [% IF framework %][% framework.frameworktext %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END %] › Data deleted [% END %] -- 2.1.4