Lines 77-99
$(document).ready(function() {
Link Here
|
77 |
[% IF ( action_modify ) %]<div class="note"><i class="fa fa-exclamation"></i> <strong>NOTE:</strong> If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.</div>[% END %] |
77 |
[% IF ( action_modify ) %]<div class="note"><i class="fa fa-exclamation"></i> <strong>NOTE:</strong> If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.</div>[% END %] |
78 |
|
78 |
|
79 |
<form action="/cgi-bin/koha/admin/authorised_values.pl" name="Aform" method="post"> |
79 |
<form action="/cgi-bin/koha/admin/authorised_values.pl" name="Aform" method="post"> |
80 |
<input type="hidden" name="op" value="add" /> |
|
|
81 |
<fieldset class="rows"><ol> |
80 |
<fieldset class="rows"><ol> |
82 |
<li> |
81 |
[% IF action_add_category %] |
83 |
[% IF ( action_add_category ) %]<label for="category">Category: </label> |
82 |
<li> |
84 |
<input type="text" name="category" id="category" size="32" maxlength="32" class="focus" /> |
83 |
<label for="category">Category: </label> |
85 |
[% ELSE %]<span class="label">Category</span> |
84 |
<input type="hidden" name="op" value="add_category" /> |
86 |
<input type="hidden" name="category" value="[% category %]" /> [% category %] |
85 |
<input type="text" name="category" id="category" size="32" maxlength="32" class="focus" /> |
87 |
[% END %] |
86 |
</li> |
88 |
</li> |
87 |
[% ELSE %] |
|
|
88 |
<li> |
89 |
<span class="label">Category</span> |
90 |
<input type="hidden" name="op" value="add" /> |
91 |
<input type="hidden" name="category" value="[% category %]" /> [% category %] |
92 |
</li> |
89 |
<li> |
93 |
<li> |
90 |
<label for="authorised_value">Authorized value: </label> |
94 |
<label for="authorised_value">Authorized value: </label> |
91 |
[% IF ( action_modify ) %]<input type="hidden" id="id" name="id" value="[% id %]" />[% END %] |
95 |
[% IF ( action_modify ) %]<input type="hidden" id="id" name="id" value="[% id %]" />[% END %] |
92 |
[% IF ( action_add_category ) %] |
|
|
93 |
<input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" /> |
94 |
[% ELSE %] |
95 |
<input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" class="focus" /> |
96 |
<input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" class="focus" /> |
96 |
[% END %] |
|
|
97 |
</li> |
97 |
</li> |
98 |
<li> |
98 |
<li> |
99 |
<label for="lib">Description: </label> |
99 |
<label for="lib">Description: </label> |
Lines 152-157
$(document).ready(function() {
Link Here
|
152 |
</div> |
152 |
</div> |
153 |
[% END %] |
153 |
[% END %] |
154 |
</div> |
154 |
</div> |
|
|
155 |
[% END %] |
155 |
</fieldset> |
156 |
</fieldset> |
156 |
<fieldset class="action"> <input type="hidden" name="id" value="[% id %]" /> |
157 |
<fieldset class="action"> <input type="hidden" name="id" value="[% id %]" /> |
157 |
<input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category %]">Cancel</a></fieldset> |
158 |
<input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category %]">Cancel</a></fieldset> |
Lines 176-191
$(document).ready(function() {
Link Here
|
176 |
An error occurred when updating this authorized value. Perhaps the value already exists. |
177 |
An error occurred when updating this authorized value. Perhaps the value already exists. |
177 |
[% CASE 'error_on_insert' %] |
178 |
[% CASE 'error_on_insert' %] |
178 |
An error occurred when inserting this authorized value. Perhaps the value or the category already exists. |
179 |
An error occurred when inserting this authorized value. Perhaps the value or the category already exists. |
|
|
180 |
[% CASE 'error_on_insert_cat' %] |
181 |
An error occurred when inserting this authorized value category. Perhaps the category name already exists. |
179 |
[% CASE 'error_on_delete' %] |
182 |
[% CASE 'error_on_delete' %] |
180 |
An error occurred when deleting this authorized value. Check the logs. |
183 |
An error occurred when deleting this authorized value. Check the logs. |
181 |
[% CASE 'success_on_update' %] |
184 |
[% CASE 'success_on_update' %] |
182 |
Authorized value updated successfully. |
185 |
Authorized value updated successfully. |
183 |
[% CASE 'success_on_insert' %] |
186 |
[% CASE 'success_on_insert' %] |
184 |
Authorized value added successfully. |
187 |
Authorized value added successfully. |
|
|
188 |
[% CASE 'success_on_insert_cat' %] |
189 |
Authorized value category added successfully. |
185 |
[% CASE 'success_on_delete' %] |
190 |
[% CASE 'success_on_delete' %] |
186 |
Authorized value deleted successfully. |
191 |
Authorized value deleted successfully. |
187 |
[% CASE 'already_exists' %] |
192 |
[% CASE 'already_exists' %] |
188 |
This authorized value already exists. |
193 |
This authorized value already exists. |
|
|
194 |
[% CASE 'cat_already_exists' %] |
195 |
This authorized value category already exists. |
196 |
[% CASE 'invalid_category_name' %] |
197 |
The authorized value category 'branches', 'itemtypes' and 'cn_source' are used internally by Koha and are not valid. |
189 |
[% CASE %] |
198 |
[% CASE %] |
190 |
[% m.code %] |
199 |
[% m.code %] |
191 |
[% END %] |
200 |
[% END %] |
192 |
- |
|
|