Bug 31718: Change the IF ELSE values in marc_subfields_structure breadcrumbs to facil...
authorCaroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Fri, 7 Oct 2022 20:45:02 +0000 (16:45 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 24 Oct 2022 14:37:46 +0000 (11:37 -0300)
This patch changes the strings in the IF ELSE for the framework
name in the breadcrumbs on the marc_subfields_structure.pl page.

To test:
1) Apply patch
2) In the intranet, go to Administration > MARC bibliographic framework
3) Click 'Actions' next to the default framework and choose 'MARC
structure'
4) Click 'Actions' next to a MARC tag and choose 'View subfields'
5) Check the breadcrumbs, they should show
Home > Administration > MARC frameworks > Default framework structure >
...
6) Redo steps 2-5, using a different framework, e.g. ACQ
The breadcrumbs for ACQ should look like
Home > Administration > MARC frameworks > ACQ framework structure > ...

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt

index 402a770..c47840b 100644 (file)
             <li>
                 <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode | uri %]&amp;searchfield=[% tagfield | uri %]">
                     [% IF ( frameworkcode ) %]
-                        [% frameworkcode | html %]
+                        <span>[% frameworkcode | html %] framework structure</span>
                     [% ELSE %]
-                        <span>Default</span>
-                    [% END %] <span>framework structure</span>
+                        <span>Default framework structure</span>
+                    [% END %]
                 </a>
             </li>