Lines 1-6
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
3 |
[% USE Koha %] |
3 |
[% USE Koha %] |
|
|
4 |
[% USE Branches %] |
4 |
[% USE AuthorisedValues %] |
5 |
[% USE AuthorisedValues %] |
5 |
[% USE Price %] |
6 |
[% USE Price %] |
6 |
[% USE ColumnsSettings %] |
7 |
[% USE ColumnsSettings %] |
Lines 287-299
Item types administration
Link Here
|
287 |
<li><label for="branches">Library limitation: </label> |
288 |
<li><label for="branches">Library limitation: </label> |
288 |
<select id="branches" name="branches" multiple size="10"> |
289 |
<select id="branches" name="branches" multiple size="10"> |
289 |
<option value="">All libraries</option> |
290 |
<option value="">All libraries</option> |
290 |
[% FOREACH branch IN branches_loop %] |
291 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => itemtype.get_library_limits, unfiltered => 1, do_not_select_my_library => 1 ) %] |
291 |
[% IF ( branch.selected ) %] |
|
|
292 |
<option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option> |
293 |
[% ELSE %] |
294 |
<option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option> |
295 |
[% END %] |
296 |
[% END %] |
297 |
</select> |
292 |
</select> |
298 |
<span>Select 'All libraries' if this authorized value must be displayed all the time. Otherwise select libraries you want to associate with this value.</span> |
293 |
<span>Select 'All libraries' if this authorized value must be displayed all the time. Otherwise select libraries you want to associate with this value.</span> |
299 |
</li> |
294 |
</li> |
Lines 414-433
Item types administration
Link Here
|
414 |
<td>[% itemtype.processfee | $Price %]</td> |
409 |
<td>[% itemtype.processfee | $Price %]</td> |
415 |
<td>[% itemtype.checkinmsg | html_line_break | $raw %]</td> |
410 |
<td>[% itemtype.checkinmsg | html_line_break | $raw %]</td> |
416 |
<td> |
411 |
<td> |
417 |
[% IF itemtype.branches.size > 0 %] |
412 |
[% SET library_limits = itemtype.library_limits %] |
418 |
[% branches_str = "" %] |
413 |
[% IF library_limits.count > 0 %] |
419 |
[% FOREACH branch IN itemtype.branches %] |
414 |
[% library_str = "" %] |
|
|
415 |
[% FOREACH library IN library_limits %] |
420 |
[%- IF loop.first -%] |
416 |
[%- IF loop.first -%] |
421 |
[% branches_str = branch.branchname _ " (" _ branch.branchcode _ ")" %] |
417 |
[% library_str = library.branchname _ " (" _ library.branchcode _ ")" %] |
422 |
[% ELSE %] |
418 |
[% ELSE %] |
423 |
[% branches_str = branches_str _ "\n" _ branch.branchname _ " (" _ branch.branchcode _ ")" %] |
419 |
[% library_str = library_str _ "\n" _ library.branchname _ " (" _ library.branchcode _ ")" %] |
424 |
[% END %] |
420 |
[% END %] |
425 |
[% END %] |
421 |
[% END %] |
426 |
<span class="library_limitation" title="[% branches_str | html %]"> |
422 |
<span class="library_limitation" title="[% library_str | html %]"> |
427 |
[% IF itemtype.branches.size > 1 %] |
423 |
[% IF library_limits.count > 1 %] |
428 |
[% itemtype.branches.size | html %] library limitations |
424 |
[% library_limits.count | html %] library limitations |
429 |
[% ELSE %] |
425 |
[% ELSE %] |
430 |
[% itemtype.branches.size | html %] library limitation |
426 |
[% library_limits.count | html %] library limitation |
431 |
[% END %] |
427 |
[% END %] |
432 |
[% ELSE %] |
428 |
[% ELSE %] |
433 |
No limitation |
429 |
No limitation |
434 |
- |
|
|