Line 0
Link Here
|
0 |
- |
1 |
[% USE raw %] |
|
|
2 |
[% USE Asset %] |
3 |
[% USE Branches %] |
4 |
[% USE ItemTypes %] |
5 |
[% USE Koha %] |
6 |
[% SET footerjs = 1 %] |
7 |
[% PROCESS 'i18n.inc' %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
9 |
<title |
10 |
>[% FILTER collapse %] |
11 |
[% t("Library float limits") | html %] |
12 |
› [% t("Administration") | html %] › [% t("Koha") | html %] |
13 |
[% END %]</title |
14 |
> |
15 |
[% INCLUDE 'doc-head-close.inc' %] |
16 |
<style> |
17 |
.disabled-transfer { |
18 |
background-color: #ff8888; |
19 |
} |
20 |
</style> |
21 |
</head> |
22 |
|
23 |
<body id="admin_library_float_limits" class="admin"> |
24 |
[% WRAPPER 'header.inc' %] |
25 |
[% INCLUDE 'prefs-admin-search.inc' %] |
26 |
[% END %] |
27 |
|
28 |
[% WRAPPER 'sub-header.inc' %] |
29 |
[% WRAPPER breadcrumbs %] |
30 |
[% WRAPPER breadcrumb_item %] |
31 |
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
32 |
[% END %] |
33 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
34 |
<span>Library float limits</span> |
35 |
[% END %] |
36 |
[% END #/ WRAPPER breadcrumbs %] |
37 |
[% END #/ WRAPPER sub-header.inc %] |
38 |
|
39 |
<div class="main container-fluid"> |
40 |
<div class="row"> |
41 |
<div class="col-sm-10 col-sm-push-2"> |
42 |
<main> |
43 |
<h1 class="parameters"> Library float limits </h1> |
44 |
|
45 |
[% UNLESS Koha.Preference('UseLibraryFloatLimits') %] |
46 |
<div class="dialog message"> |
47 |
<p>Because the "UseLibraryFloatLimits" system preference is currently not enabled, float limits will not be enforced.</p> |
48 |
<p> |
49 |
Go to the <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=UseLibraryFloatLimits">UseLibraryFloatLimits</a> |
50 |
system preference if you wish to enable this feature. |
51 |
</p> |
52 |
</div> |
53 |
[% END %] |
54 |
|
55 |
<form method="post" action="/cgi-bin/koha/admin/float_limits.pl" id="float_limit_form"> |
56 |
<input type="hidden" name="op" value="set_float_limits" /> |
57 |
<fieldset id="float_limits"> |
58 |
<div class="help"> |
59 |
<p>Specify the total number of items per itemtype that are allowed to float at each library.</p> |
60 |
<p> |
61 |
When an item is checked in, the librarian will get a request to transfer the item to the library with the lowest ratio of items held versus items allowed for that item type if the checkin library has reached |
62 |
its' limit for that type of item. |
63 |
</p> |
64 |
<p> If a library and item type combination is left empty, that library will be ignored when finding the best library to transfer the item to. </p> |
65 |
</div> |
66 |
|
67 |
<div class="form_validation_errors"><span></span></div> |
68 |
|
69 |
<table> |
70 |
<tr> |
71 |
<th>Item type \ Library</th> |
72 |
[% FOR b IN Branches.all(unfiltered => 1) %] |
73 |
<th>[% b.branchname | html %]</th> |
74 |
[% END %] |
75 |
</tr> |
76 |
|
77 |
[% FOR i IN ItemTypes.Get() %] |
78 |
<tr> |
79 |
<th>[% i.description | html %]</th> |
80 |
|
81 |
[% FOR b IN Branches.all(unfiltered => 1) %] |
82 |
<td> |
83 |
[% SET bc = b.branchcode %] |
84 |
[% SET it = i.itemtype %] |
85 |
<input name="limit_[% bc | html %]_[% it | html %]" size="4" class="float_limit" value="[% limits.$bc.$it | html %]" /> |
86 |
</td> |
87 |
[% END %] |
88 |
</tr> |
89 |
[% END %] |
90 |
</table> |
91 |
</fieldset> |
92 |
|
93 |
<div class="form_validation_errors"><span></span></div> |
94 |
|
95 |
<fieldset class="action"> <input type="submit" class="btn btn-primary" value="Save" /> <a href="/cgi-bin/koha/admin/float_limits.pl" class="cancel">Cancel</a> </fieldset> |
96 |
</form> |
97 |
</main> |
98 |
</div> |
99 |
<!-- /.col-sm-10.col-sm-push-2 --> |
100 |
|
101 |
<div class="col-sm-2 col-sm-pull-10"> |
102 |
<aside> [% INCLUDE 'admin-menu.inc' %] </aside> |
103 |
</div> |
104 |
<!-- /.col-sm-2.col-sm-pull-10 --> |
105 |
</div> |
106 |
<!-- /.row --> |
107 |
|
108 |
[% MACRO jsinclude BLOCK %] |
109 |
[% Asset.js("js/admin-menu.js") | $raw %] |
110 |
<script> |
111 |
$(document).ready(function () { |
112 |
jQuery.validator.addClassRules("float_limit", { |
113 |
digits: true, |
114 |
}); |
115 |
|
116 |
$("#float_limit_form").validate({ |
117 |
errorContainer: ".form_validation_errors", |
118 |
errorLabelContainer: ".form_validation_errors span", |
119 |
}); |
120 |
}); |
121 |
</script> |
122 |
[% END %] |
123 |
|
124 |
[% INCLUDE 'intranet-bottom.inc' %]</div |
125 |
> |