Lines 74-84
Link Here
|
74 |
</li> |
74 |
</li> |
75 |
<li> |
75 |
<li> |
76 |
<label for="lib">Description: </label> |
76 |
<label for="lib">Description: </label> |
77 |
<input type="text" name="lib" id="lib" value="[% lib | html %]" maxlength="200" /> |
77 |
[% IF can_be_translated %] |
|
|
78 |
<a href="/cgi-bin/koha/admin/localization.pl?entity=avs&code=[% authorised_value | uri %]&interface=intranet"" title="Translate description" rel="gb_page_center[600,500]"><i class="fa fa-pencil"></i> Translate into other languages</a> |
79 |
[% END %] |
78 |
</li> |
80 |
</li> |
79 |
<li> |
81 |
<li> |
80 |
<label for="lib_opac">Description (OPAC): </label> |
82 |
<label for="lib_opac">Description (OPAC): </label> |
81 |
<input type="text" name="lib_opac" id="lib_opac" value="[% lib_opac | html %]" maxlength="200" /> |
83 |
<input type="text" name="lib_opac" id="lib_opac" value="[% lib_opac | html %]" maxlength="200" /> |
|
|
84 |
[% IF can_be_translated %] |
85 |
<a href="/cgi-bin/koha/admin/localization.pl?entity=avs&code=[% authorised_value | uri %]&interface=opac" title="Translate OPAC description" rel="gb_page_center[600,500]"><i class="fa fa-pencil"></i> Translate into other languages</a> |
86 |
[% END %] |
82 |
</li> |
87 |
</li> |
83 |
<li><label for="branches">Library limitations: </label> |
88 |
<li><label for="branches">Library limitations: </label> |
84 |
<select id="branches" name="branches" multiple size="10"> |
89 |
<select id="branches" name="branches" multiple size="10"> |
Lines 207-213
Link Here
|
207 |
</p> |
212 |
</p> |
208 |
</form> |
213 |
</form> |
209 |
|
214 |
|
210 |
[% IF loop %] |
215 |
[% IF authorised_values.count %] |
211 |
|
216 |
|
212 |
<table id="categoriest" class="authorized_values_table"> |
217 |
<table id="categoriest" class="authorized_values_table"> |
213 |
<thead><tr> |
218 |
<thead><tr> |
Lines 219-234
Link Here
|
219 |
<th class="noExport">Actions</th> |
224 |
<th class="noExport">Actions</th> |
220 |
</tr> |
225 |
</tr> |
221 |
</thead><tbody> |
226 |
</thead><tbody> |
222 |
[% FOREACH loo IN loop %] |
227 |
[% FOREACH av IN authorised_values %] |
223 |
<tr> |
228 |
<tr> |
224 |
<td>[% loo.authorised_value | html %]</td> |
229 |
<td>[% av.authorised_value | html %]</td> |
225 |
<td>[% loo.lib | html %]</td> |
230 |
[% IF av.translated_descriptions.size %] |
226 |
<td>[% loo.lib_opac | html %]</td> |
231 |
[% av.lib | html %] (default)<br/> |
227 |
<td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl | url %]" alt=""/>[% ELSE %] [% END %]</td> |
232 |
[% FOR description IN av.translated_descriptions %] |
|
|
233 |
[% IF description.translation == av.translated_description %] |
234 |
<b>[% description.translation | html %]</b> |
235 |
[% ELSE %] |
236 |
[% description.translation | html %] ([% description.lang | html %]) |
237 |
[% END %] |
238 |
<br/> |
239 |
[% END %] |
240 |
[% ELSE %] |
241 |
[% av.lib |html %] |
242 |
[% END %] |
243 |
|
244 |
<td>[% av.lib_opac | html %]</td> |
245 |
<td>[% IF ( av.imageurl ) %]<img src="[% av.imageurl | url %]" alt=""/>[% ELSE %] [% END %]</td> |
228 |
<td> |
246 |
<td> |
229 |
[% IF loo.branches.size > 0 %] |
247 |
[% IF av.branch_limitations.size > 0 %] |
230 |
[% branches_str = "" %] |
248 |
[% branches_str = "" %] |
231 |
[% FOREACH branch IN loo.branches %] |
249 |
[% FOREACH library IN av.library_limits %] |
232 |
[%- IF loop.first -%] |
250 |
[%- IF loop.first -%] |
233 |
[% branches_str = branch.branchname _ " (" _ branch.branchcode _ ")" %] |
251 |
[% branches_str = branch.branchname _ " (" _ branch.branchcode _ ")" %] |
234 |
[% ELSE %] |
252 |
[% ELSE %] |
Lines 236-252
Link Here
|
236 |
[% END %] |
254 |
[% END %] |
237 |
[% END %] |
255 |
[% END %] |
238 |
<span class="library_limitation" title="[% branches_str | html %]"> |
256 |
<span class="library_limitation" title="[% branches_str | html %]"> |
239 |
[% IF loo.branches.size > 1 %] |
257 |
[% IF av.library_limits.size > 1 %] |
240 |
[% loo.branches.size | html %] library limitations |
258 |
[% av.library_limits.size | html %] library limitations |
241 |
[% ELSE %] |
259 |
[% ELSE %] |
242 |
[% loo.branches.size | html %] library limitation |
260 |
[% av.library_limits.size | html %] library limitation |
243 |
[% END %] |
261 |
[% END %] |
244 |
[% ELSE %] |
262 |
[% ELSE %] |
245 |
No limitation |
263 |
No limitation |
246 |
[% END %] |
264 |
[% END %] |
247 |
</td> |
265 |
</td> |
248 |
<td class="actions"><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&id=[% loo.id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> |
266 |
<td class="actions"><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&id=[% av.id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> |
249 |
<a class="delete btn btn-default btn-xs" href="/cgi-bin/koha/admin/authorised_values.pl?op=delete&searchfield=[% searchfield | uri %]&id=[% loo.id | uri %]"><i class="fa fa-trash"></i> Delete</a></td> |
267 |
<a class="delete btn btn-default btn-xs" href="/cgi-bin/koha/admin/authorised_values.pl?op=delete&searchfield=[% searchfield | uri %]&id=[% av.id | uri %]"><i class="fa fa-trash"></i> Delete</a></td> |
250 |
</tr> |
268 |
</tr> |
251 |
[% END # /FOREACH loop %] |
269 |
[% END # /FOREACH loop %] |
252 |
</tbody></table> |
270 |
</tbody></table> |
Lines 301-306
Link Here
|
301 |
|
319 |
|
302 |
[% MACRO jsinclude BLOCK %] |
320 |
[% MACRO jsinclude BLOCK %] |
303 |
[% Asset.js("js/admin-menu.js") | $raw %] |
321 |
[% Asset.js("js/admin-menu.js") | $raw %] |
|
|
322 |
[% INCLUDE 'greybox.inc' %] |
304 |
[% INCLUDE 'datatables.inc' %] |
323 |
[% INCLUDE 'datatables.inc' %] |
305 |
[% INCLUDE 'columns_settings.inc' %] |
324 |
[% INCLUDE 'columns_settings.inc' %] |
306 |
<script> |
325 |
<script> |