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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt (-7 / +25 lines)
Lines 4-13 Link Here
4
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
<title>[% FILTER collapse %]
6
<title>[% FILTER collapse %]
7
    [% t("Authority MARC subfield structure") | html %] &rsaquo;
7
    [% IF ( add_form ) %]
8
        [% t("Edit subfields constraints") | html %] &rsaquo;
9
    [% END %]
10
11
    [% IF ( delete_confirm ) %]
12
        [% tx("Confirm deletion of subfield '{subfield}'", {subfield = ass.tagsubfield }) | html %] &rsaquo;
13
    [% END %]
14
15
    [% IF ( add_form || delete_confirm || else ) %]
16
        [% tx("Tag {tag}", { tag = tagfield}) | html %] &rsaquo;
17
    [% END %]
18
19
    [% IF ( authtypecode ) %]
20
        [% tx("'{authtypecode}' framework", { authtypecode = authtypecode }) | html %]
21
    [% ELSE %]
22
        [% t("Default framework") | html %]
23
    [% END %] &rsaquo;
24
    [% t("Authority types") | html %] &rsaquo;
8
    [% t("Administration") | html %] &rsaquo;
25
    [% t("Administration") | html %] &rsaquo;
9
    [% t("Koha") | html %]
26
    [% t("Koha") | html %]
10
[% END %]</title>
27
[% END %]</title>
28
11
[% INCLUDE 'doc-head-close.inc' %]
29
[% INCLUDE 'doc-head-close.inc' %]
12
</head>
30
</head>
13
31
Lines 30-36 Link Here
30
48
31
        [% IF ( authtypecode ) %]
49
        [% IF ( authtypecode ) %]
32
            [% WRAPPER breadcrumb_item %]
50
            [% WRAPPER breadcrumb_item %]
33
                <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri%]">[% authtypecode | html %] framework</a>
51
                <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri%]">[% tx("'{authtypecode}' framework", { authtypecode = authtypecode }) | html %]</a>
34
            [% END %]
52
            [% END %]
35
        [% ELSE %]
53
        [% ELSE %]
36
            [% WRAPPER breadcrumb_item %]
54
            [% WRAPPER breadcrumb_item %]
Lines 40-56 Link Here
40
58
41
        [% IF ( else ) %]
59
        [% IF ( else ) %]
42
            [% WRAPPER breadcrumb_item bc_active= 1 %]
60
            [% WRAPPER breadcrumb_item bc_active= 1 %]
43
                <span>Authority MARC subfield structure for [% tagfield | html %]</span>
61
                [% tx("Tag {tag}", { tag = tagfield}) | html %]
44
            [% END %]
62
            [% END %]
45
        [% ELSE %]
63
        [% ELSE %]
46
            [% WRAPPER breadcrumb_item %]
64
            [% WRAPPER breadcrumb_item %]
47
                <a href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;tagsubfield=[% tagsubfield | uri %]&amp;authtypecode=[% authtypecode |uri %]">Authority MARC subfield structure for [% tagfield | html %]</a>
65
                <a href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;tagsubfield=[% tagsubfield | uri %]&amp;authtypecode=[% authtypecode |uri %]">[% tx("Tag {tag}", { tag = tagfield}) | html %]</a>
48
            [% END %]
66
            [% END %]
49
        [% END %]
67
        [% END %]
50
68
51
        [% IF ( delete_confirm ) %]
69
        [% IF ( delete_confirm ) %]
52
            [% WRAPPER breadcrumb_item bc_active= 1 %]
70
            [% WRAPPER breadcrumb_item bc_active= 1 %]
53
                <span>Confirm deletion of subfield [% tagsubfield | html %]?</span>
71
                [% tx("Confirm deletion of subfield '{tagsubfield}'", { tagsubfield = ass.tagsubfield }) | html %]
54
            [% END %]
72
            [% END %]
55
        [% END %]
73
        [% END %]
56
74
Lines 58-64 Link Here
58
            [% IF ( use_heading_flags_p ) %]
76
            [% IF ( use_heading_flags_p ) %]
59
                [% IF ( heading_edit_subfields_p ) %]
77
                [% IF ( heading_edit_subfields_p ) %]
60
                    [% WRAPPER breadcrumb_item bc_active= 1 %]
78
                    [% WRAPPER breadcrumb_item bc_active= 1 %]
61
                        <span>Edit MARC subfields constraints</span>
79
                        <span>Edit subfields constraints</span>
62
                    [% END %]
80
                    [% END %]
63
                [% END %]
81
                [% END %]
64
            [% ELSE %]
82
            [% ELSE %]
Lines 282-288 Link Here
282
[% IF ( delete_confirm ) %]
300
[% IF ( delete_confirm ) %]
283
301
284
    <div class="dialog alert">
302
    <div class="dialog alert">
285
        <h1>Delete subfield <span class="ex">'[% ass.tagsubfield | html %]'?</span></h1>
303
        <h1>Confirm deletion of subfield <span class="ex">'[% ass.tagsubfield | html %]'?</span></h1>
286
        <form action="[% delete_link | html %]" method="post">
304
        <form action="[% delete_link | html %]" method="post">
287
            <input type="hidden" name="op" value="delete_confirmed" />
305
            <input type="hidden" name="op" value="delete_confirmed" />
288
            <table>
306
            <table>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt (-55 / +49 lines)
Lines 6-49 Link Here
6
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
<title>[% FILTER collapse %]
7
<title>[% FILTER collapse %]
8
    [% IF ( add_form ) %]
8
    [% IF ( add_form ) %]
9
        [% IF ( use_heading_flags_p ) %]
9
        [% IF ( heading_modify_tag_p ) %]
10
            [% IF ( heading_modify_tag_p ) %]
10
            [% tx("Modify tag '{searchfield}'", { searchfield = searchfield }) | html %] &rsaquo;
11
                [% t("Modify tag ") | html %] &rsaquo;
11
        [% END %]
12
                [% IF ( authtypecode ) %]
12
        [% IF ( heading_add_tag_p ) %]
13
                    [% tx("{authtypecode} framework", { authtypecode = authtypecode }) | html %]
13
            [% t("New tag") | html %] &rsaquo;
14
                [% ELSE %]
15
                    [% t("Default framework") | html %]
16
                [% END %] &rsaquo;
17
            [% END %]
18
            [% IF ( heading_add_tag_p ) %]
19
                [% t("New tag") | html %] &rsaquo;
20
                [% IF ( authtypecode ) %]
21
                    [% tx("{authtypecode} framework", { authtypecode = authtypecode }) | html %]
22
                [% ELSE %]
23
                    [% t("Default framework") | html %]
24
                [% END %] &rsaquo;
25
            [% END %]
26
        [% ELSE %]
27
           [% action | html %] &rsaquo;
28
        [% END %]
14
        [% END %]
29
    [% END %]
15
    [% END %]
30
    [% IF ( delete_confirm ) %]
16
    [% IF ( delete_confirm ) %]
31
        [% t("Confirm deletion") | html %] &rsaquo;
17
        [% tx("Confirm deletion of tag '{searchfield}'", { searchfield = searchfield }) | html %] &rsaquo;
32
        [% IF ( authtypecode ) %]
33
            [% tx("{authtypecode} framework", { authtypecode = authtypecode }) | html %]
34
        [% ELSE %]
35
            [% t("Default framework") | html %]
36
        [% END %] &rsaquo;
37
    [% END %]
18
    [% END %]
38
    [% IF ( delete_confirmed ) %]
19
    [% IF ( delete_confirmed ) %]
39
        [% t("Data deleted") | html %] &rsaquo;
20
        [% t("Data deleted") | html %] &rsaquo;
40
        [% IF ( authtypecode ) %]
41
            [% tx("{authtypecode} framework", { authtypecode = authtypecode }) | html %]
42
        [% ELSE %]
43
            [% t("Default framework") | html %]
44
        [% END %] &rsaquo;
45
    [% END %]
21
    [% END %]
46
    [% t("Authority MARC framework") | html %] &rsaquo;
22
    [% IF ( authtypecode ) %]
23
        [% tx("'{authtypecode}' framework", { authtypecode = authtypecode }) | html %]
24
    [% ELSE %]
25
        [% t("Default framework") | html %]
26
    [% END %] &rsaquo;
27
    [% t("Authority types") | html %] &rsaquo;
47
    [% t("Administration") | html %] &rsaquo;
28
    [% t("Administration") | html %] &rsaquo;
48
    [% t("Koha") | html %]
29
    [% t("Koha") | html %]
49
[% END %]</title>
30
[% END %]</title>
Lines 68-74 Link Here
68
        [% IF ( add_form || delete_confirm || delete_confirmed ) %]
49
        [% IF ( add_form || delete_confirm || delete_confirmed ) %]
69
            [% IF ( authtypecode ) %]
50
            [% IF ( authtypecode ) %]
70
                [% WRAPPER breadcrumb_item %]
51
                [% WRAPPER breadcrumb_item %]
71
                    <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] Framework</a>
52
                    <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% tx("'{authtypecode}' framework", { authtypecode = authtypecode }) | html %]</a>
72
                [% END %]
53
                [% END %]
73
            [% ELSE %]
54
            [% ELSE %]
74
                [% WRAPPER breadcrumb_item %]
55
                [% WRAPPER breadcrumb_item %]
Lines 81-87 Link Here
81
            [% IF ( use_heading_flags_p ) %]
62
            [% IF ( use_heading_flags_p ) %]
82
                [% IF ( heading_modify_tag_p ) %]
63
                [% IF ( heading_modify_tag_p ) %]
83
                    [% WRAPPER breadcrumb_item bc_active= 1 %]
64
                    [% WRAPPER breadcrumb_item bc_active= 1 %]
84
                        <span>Modify tag</span>
65
                        [% tx("Modify tag {searchfield}", { searchfield = searchfield }) | html %]
85
                    [% END %]
66
                    [% END %]
86
                [% END %]
67
                [% END %]
87
68
Lines 100-106 Link Here
100
        [% ELSE %]
81
        [% ELSE %]
101
            [% IF ( delete_confirm ) %]
82
            [% IF ( delete_confirm ) %]
102
                [% WRAPPER breadcrumb_item bc_active= 1 %]
83
                [% WRAPPER breadcrumb_item bc_active= 1 %]
103
                    <span>Confirm deletion</span>
84
                    [% tx("Confirm deletion of tag '{searchfield}'", { searchfield = searchfield }) | html %]
104
                [% END %]
85
                [% END %]
105
            [% ELSE %]
86
            [% ELSE %]
106
                [% IF ( delete_confirmed ) %]
87
                [% IF ( delete_confirmed ) %]
Lines 110-116 Link Here
110
                [% ELSE %]
91
                [% ELSE %]
111
                    [% IF ( authtypecode ) %]
92
                    [% IF ( authtypecode ) %]
112
                        [% WRAPPER breadcrumb_item bc_active= 1 %]
93
                        [% WRAPPER breadcrumb_item bc_active= 1 %]
113
                            [% authtypecode | html %] Framework
94
                            [% tx("{authtypecode} framework", { authtypecode = authtypecode }) | html %]
114
                        [% END %]
95
                        [% END %]
115
                    [% ELSE %]
96
                    [% ELSE %]
116
                        [% WRAPPER breadcrumb_item bc_active= 1 %]
97
                        [% WRAPPER breadcrumb_item bc_active= 1 %]
Lines 129-142 Link Here
129
        <div class="col-sm-10 col-sm-push-2">
110
        <div class="col-sm-10 col-sm-push-2">
130
            <main>
111
            <main>
131
112
132
<h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode | html %][% ELSE %]default framework[% END %]</h1>
113
                [% IF ( else ) %]
114
                    <div id="toolbar" class="btn-toolbar">
115
                        <div class="btn-group"><a class="btn btn-default" id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&amp;authtypecode=[% authtypecode | uri %]"><i class="fa fa-plus"></i> New tag</a></div>
116
                        <a class="btn btn-default" id="edit_authtype" href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&authtypecode=[% authtypecode | uri %]"><i class="fa fa-pencil"></i> Edit authority type</a>
117
                    </div>
118
                [% END %]
119
120
<h1>
121
    [% IF ( authtypecode ) %]
122
        [% tx("Authority MARC framework for '{authtypecode}'", { authtypecode = authtypecode }) | html %]
123
    [% ELSE %]
124
        [% t("Default authority MARC framework") | html %]
125
    [% END %]
126
</h1>
133
127
134
128
135
[% IF ( add_form ) %]
129
[% IF ( add_form ) %]
136
130
137
    <h2>
131
    <h2>
138
        [% IF ( heading_modify_tag_p ) %]
132
        [% IF ( heading_modify_tag_p ) %]
139
            <span>Modify tag</span>
133
            [% tx("Modify tag '{searchfield}'", { searchfield = searchfield }) | html %]
140
        [% END %]
134
        [% END %]
141
        [% IF ( heading_add_tag_p ) %]
135
        [% IF ( heading_add_tag_p ) %]
142
            <span>New tag</span>
136
            <span>New tag</span>
Lines 196-202 Link Here
196
190
197
[% IF ( delete_confirm ) %]
191
[% IF ( delete_confirm ) %]
198
    <div class="dialog alert">
192
    <div class="dialog alert">
199
        <h3>Confirm deletion</h3>
193
        <h3>[% tx("Confirm deletion of tag '{searchfield}'", { searchfield = searchfield }) | html %]</h3>
200
        <form action="[% script_name | html %]" method="post">
194
        <form action="[% script_name | html %]" method="post">
201
            <table>
195
            <table>
202
                <tr><th scope="row">Tag: </th><td>[% searchfield | html %] [% liblibrarian | html %]</td></tr>
196
                <tr><th scope="row">Tag: </th><td>[% searchfield | html %] [% liblibrarian | html %]</td></tr>
Lines 243-266 Link Here
243
237
244
[% IF ( else ) %]
238
[% IF ( else ) %]
245
239
246
<div id="toolbar" class="btn-toolbar">
247
    <div class="btn-group"><a class="btn btn-default" id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&amp;authtypecode=[% authtypecode | uri %]"><i class="fa fa-plus"></i> New tag</a></div>
248
</div>
249
250
<h2>Select an authority framework</h2>
251
<form action="[% script_name | html %]" method="post">
240
<form action="[% script_name | html %]" method="post">
252
    <select name="authtypecode">
241
    <fieldset>
253
    [% FOREACH authority_type IN authority_types%]
242
        <label for="searchfield"><strong>Search for tag:</strong></label>
254
        [% IF authority_type.authtypecode == authtypecode%]
243
        <input type="text" id="searchfield" name="searchfield" size="4" value="[% searchfield | html %]" />
255
        <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
244
        <label for="authtypecode"><strong>In framework:</strong> </label>
256
        [% ELSE %]
245
        <select id="authtypecode" name="authtypecode">
257
        <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
246
            [% FOREACH authority_type IN authority_types%]
258
        [% END %]
247
                [% IF authority_type.authtypecode == authtypecode%]
259
    [% END %]
248
                    <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
260
    </select>
249
                [% ELSE %]
261
    <input type="text" name="searchfield" value="[% searchfield | html %]" />
250
                    <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
262
    <input type="submit" value="OK" class="btn btn-primary" />
251
                [% END %]
263
</form><br />
252
            [% END %]
253
        </select>
254
        <input type="submit" class="btn btn-primary" value="Search" />
255
    </fieldset>
256
</form>
257
264
<div id="pagertable_authtagstructure">
258
<div id="pagertable_authtagstructure">
265
</div>
259
</div>
266
260
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt (-17 / +38 lines)
Lines 6-17 Link Here
6
<title>[% FILTER collapse %]
6
<title>[% FILTER collapse %]
7
    [% IF op == 'add_form' %]
7
    [% IF op == 'add_form' %]
8
        [% IF authority_type.authtypecode.defined %]
8
        [% IF authority_type.authtypecode.defined %]
9
            [% t("Modify authority type") | html %]
9
            [% IF authority_type.authtypecode %]
10
                [% tx("Modify authority type '{authority_type_code}'", { authority_type_code= authority_type.authtypecode }) | html %]
11
            [% ELSE %]
12
                [% t("Modify default authority type") | html %]
13
            [% END %]
10
        [% ELSE %]
14
        [% ELSE %]
11
            [% t("New authority type") | html %]
15
            [% t("New authority type") | html %]
12
        [% END %] &rsaquo;
16
        [% END %] &rsaquo;
13
    [% ELSIF op == 'delete_confirm' %]
17
    [% ELSIF op == 'delete_confirm' %]
14
        [% t("Confirm deletion of authority type") | html %] &rsaquo;
18
        [% IF authorities_using_it %]
19
            [% t("Authority type cannot be deleted") | html %]
20
        [% ELSE %]
21
            [% tx("Confirm deletion of authority type '{authority_type_code}'", { authority_type_code= authority_type.authtypecode } ) | html %]
22
        [% END %] &rsaquo;
15
    [% END %]
23
    [% END %]
16
    [% t("Authority types") | html %] &rsaquo;
24
    [% t("Authority types") | html %] &rsaquo;
17
    [% t("Administration") | html %] &rsaquo;
25
    [% t("Administration") | html %] &rsaquo;
Lines 44-50 Link Here
44
        [% IF op == 'add_form' %]
52
        [% IF op == 'add_form' %]
45
            [% WRAPPER breadcrumb_item bc_active= 1 %]
53
            [% WRAPPER breadcrumb_item bc_active= 1 %]
46
                [% IF authority_type.authtypecode.defined %]
54
                [% IF authority_type.authtypecode.defined %]
47
                    <span>Modify authority type</span>
55
                    [% IF authority_type.authtypecode %]
56
                        [% tx("Modify authority type '{authority_type_code}'", { authority_type_code= authority_type.authtypecode }) | html %]
57
                    [% ELSE %]
58
                        [% t("Modify default authority type") | html %]
59
                    [% END %]
48
                [% ELSE %]
60
                [% ELSE %]
49
                    <span>New authority type</span>
61
                    <span>New authority type</span>
50
                [% END %]
62
                [% END %]
Lines 52-58 Link Here
52
64
53
        [% ELSIF op == 'delete_confirm' %]
65
        [% ELSIF op == 'delete_confirm' %]
54
            [% WRAPPER breadcrumb_item bc_active= 1 %]
66
            [% WRAPPER breadcrumb_item bc_active= 1 %]
55
                <span>Confirm deletion of authority type</span>
67
                [% IF authorities_using_it %]
68
                    [% t("Authority type cannot be deleted") | html %]
69
                [% ELSE %]
70
                    [% tx("Confirm deletion of authority type '{authority_type_code}'", { authority_type_code= authority_type.authtypecode } ) | html %]
71
                [% END %]
56
            [% END %]
72
            [% END %]
57
73
58
        [% END %]
74
        [% END %]
Lines 89-104 Link Here
89
105
90
[% IF op == 'add_form' %]
106
[% IF op == 'add_form' %]
91
    <form action="/cgi-bin/koha/admin/authtypes.pl" name="Aform" method="post" class="validated">
107
    <form action="/cgi-bin/koha/admin/authtypes.pl" name="Aform" method="post" class="validated">
92
        <fieldset class="rows">
108
        <h1>
93
            <legend>
109
            [% IF authority_type.authtypecode.defined %]
94
                <h1>
110
                [% IF authority_type.authtypecode %]
95
                [% IF authority_type.authtypecode.defined %]
111
                    [% tx("Modify authority type '{authority_type_code}'", { authority_type_code= authority_type.authtypecode }) | html %]
96
                    Modify authority type
97
                [% ELSE %]
112
                [% ELSE %]
98
                    New authority type
113
                    [% t("Modify default authority type") | html %]
99
                [% END %]
114
                [% END %]
100
                </h1>
115
            [% ELSE %]
101
            </legend>
116
                <span>New authority type</span>
117
            [% END %]
118
        </h1>
119
        <fieldset class="rows">
120
            <legend class="sr-only">Enter authority type details</legend>
102
            <ol>
121
            <ol>
103
                <li>
122
                <li>
104
                    [% IF authority_type.authtypecode.defined %]
123
                    [% IF authority_type.authtypecode.defined %]
Lines 107-116 Link Here
107
                            <input type="hidden" name="checked" value="0" />
126
                            <input type="hidden" name="checked" value="0" />
108
                            <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />[% authority_type.authtypecode | html %]
127
                            <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />[% authority_type.authtypecode | html %]
109
                    [% ELSE %]
128
                    [% ELSE %]
110
                            <div class="hint">10 characters maximum</div>
111
                            <label for="authtypecode" class="required">Authority type: </label>
129
                            <label for="authtypecode" class="required">Authority type: </label>
112
                            <input id="authtypecode" type="text" class="required focus" required="required" name="authtypecode" size="20" maxlength="10" />
130
                            <input id="authtypecode" type="text" class="required focus" required="required" name="authtypecode" size="20" maxlength="10" />
113
                            <span class="required">Required</span>
131
                            <span class="required">Required</span>
132
                            <div class="hint">10 characters maximum</div>
114
                    [% END %]
133
                    [% END %]
115
                </li>
134
                </li>
116
                <li>
135
                <li>
Lines 123-131 Link Here
123
                    <textarea id="summary" name="summary" cols="55" rows="7">[% authority_type.summary | html %]</textarea>
142
                    <textarea id="summary" name="summary" cols="55" rows="7">[% authority_type.summary | html %]</textarea>
124
                </li>
143
                </li>
125
                <li>
144
                <li>
126
                    <div class="hint">Note: for 'Authority field to copy', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to field 100 in the bibliographic record</div>
127
                    <label for="auth_tag_to_report">Authority field to copy: </label>
145
                    <label for="auth_tag_to_report">Authority field to copy: </label>
128
                    <input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% authority_type.auth_tag_to_report | html %]" />
146
                    <input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% authority_type.auth_tag_to_report | html %]" />
147
                    <div class="hint">Note: for 'Authority field to copy', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to field 100 in the bibliographic record</div>
129
                    <input type="hidden" name="op" value="add_validate" />
148
                    <input type="hidden" name="op" value="add_validate" />
130
                    [% IF authority_type.authtypecode.defined %]
149
                    [% IF authority_type.authtypecode.defined %]
131
                        <input type="hidden" name="is_a_modif" value="1" />
150
                        <input type="hidden" name="is_a_modif" value="1" />
Lines 144-151 Link Here
144
    <div class="dialog alert">
163
    <div class="dialog alert">
145
        [% IF authorities_using_it %]
164
        [% IF authorities_using_it %]
146
            <h1>This authority type cannot be deleted</h1>
165
            <h1>This authority type cannot be deleted</h1>
147
            <p>This record is used <strong>[% authorities_using_it | html %]</strong> times</p>
166
            <p><strong><span class="ex">[% authority_type.authtypecode | html %]</span></strong></p>
148
            <a class="cancel" href="/cgi-bin/koha/admin/authtypes.pl">Back to the list</a>
167
            <p>[% tnx('This authority type is used {count} time.', 'This authority type is used {count} times', authorities_using_it, { count = authorities_using_it }) %]</p>
168
            <form action="/cgi-bin/koha/admin/authtypes.pl" method="get">
169
                <button type="submit"><i class="fa fa-fw fa-arrow-left"></i> Return to authority types</button>
170
            </form>
149
        [% ELSE %]
171
        [% ELSE %]
150
            <h1>Confirm deletion of authority structure definition for <span class="ex">'[% authority_type.authtypetext | html %]' ([% authority_type.authtypecode | html %])</span></h1>
172
            <h1>Confirm deletion of authority structure definition for <span class="ex">'[% authority_type.authtypetext | html %]' ([% authority_type.authtypecode | html %])</span></h1>
151
            <form action="/cgi-bin/koha/admin/authtypes.pl" method="post">
173
            <form action="/cgi-bin/koha/admin/authtypes.pl" method="post">
152
- 

Return to bug 34395