View | Details | Raw Unified | Return to bug 37161
Collapse All | Expand All

(-)a/admin/marctagstructure.pl (-1 / +2 lines)
Lines 180-186 if ($op eq 'add_form') { Link Here
180
    $cache->clear_from_cache("MarcStructure-1-$frameworkcode");
180
    $cache->clear_from_cache("MarcStructure-1-$frameworkcode");
181
    $cache->clear_from_cache("MarcSubfieldStructure-$frameworkcode");
181
    $cache->clear_from_cache("MarcSubfieldStructure-$frameworkcode");
182
    $cache->clear_from_cache("MarcCodedFields-$frameworkcode");
182
    $cache->clear_from_cache("MarcCodedFields-$frameworkcode");
183
    $template->param( searchfield => $searchfield );
183
    print $input->redirect("/cgi-bin/koha/admin/marctagstructure.pl?searchfield=$searchfield&frameworkcode=$frameworkcode");
184
    exit;
184
													# END $OP eq DELETE_CONFIRMED
185
													# END $OP eq DELETE_CONFIRMED
185
################## ITEMTYPE_CREATE ##################################
186
################## ITEMTYPE_CREATE ##################################
186
# called automatically if an unexisting  frameworkis selected
187
# called automatically if an unexisting  frameworkis selected
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt (-26 lines)
Lines 15-23 Link Here
15
    [% IF ( delete_confirm ) %]
15
    [% IF ( delete_confirm ) %]
16
        [% tx("Confirm deletion of tag {searchfield}", { searchfield = searchfield }) | html %] ›
16
        [% tx("Confirm deletion of tag {searchfield}", { searchfield = searchfield }) | html %] ›
17
    [% END %]
17
    [% END %]
18
    [% IF ( delete_confirmed ) %]
19
        [% t("Data deleted") | html %] ›
20
    [% END %]
21
    [% IF framework %]
18
    [% IF framework %]
22
        [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) ›
19
        [% framework.frameworktext | html %] ([% framework.frameworkcode | html %]) ›
23
    [% ELSE %]
20
    [% ELSE %]
Lines 84-103 Link Here
84
            [% WRAPPER breadcrumb_item bc_active= 1%]
81
            [% WRAPPER breadcrumb_item bc_active= 1%]
85
                [% tx("Confirm deletion of tag {searchfield}", { searchfield = searchfield }) | html %]
82
                [% tx("Confirm deletion of tag {searchfield}", { searchfield = searchfield }) | html %]
86
            [% END %]
83
            [% END %]
87
88
        [% ELSIF ( delete_confirmed ) %]
89
            [% WRAPPER breadcrumb_item %]
90
                <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode | uri %]">
91
                    [% IF framework %]
92
                        <span>[% framework.frameworktext | html %] ([% framework.frameworkcode | html %])</span>
93
                    [% ELSE %]
94
                        <span>Default framework</span>
95
                    [% END %]
96
                </a>
97
            [% END %]
98
            [% WRAPPER breadcrumb_item bc_active= 1%]
99
                <span>Data deleted</span>
100
            [% END %]
101
        [% END %]
84
        [% END %]
102
    [% END #/ WRAPPER breadcrumbs %]
85
    [% END #/ WRAPPER breadcrumbs %]
103
[% END #/ WRAPPER sub-header.inc %]
86
[% END #/ WRAPPER sub-header.inc %]
Lines 212-225 Link Here
212
    </div>
195
    </div>
213
[% END %]
196
[% END %]
214
197
215
[% IF ( delete_confirmed ) %]
216
217
    <div class="dialog message"><h3>Tag deleted</h3>
218
    <form action="[% script_name | html %]" method="post"><input type="hidden" name="frameworkcode" value="[% framework.frameworkcode | html %]" />
219
        [% INCLUDE 'csrf-token.inc' %]
220
        <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button>
221
    </form></div>
222
[% END %]
223
[% IF ( framework_create ) %]
198
[% IF ( framework_create ) %]
224
199
225
    <form action="[% script_name | html %]" method="post">
200
    <form action="[% script_name | html %]" method="post">
226
- 

Return to bug 37161