1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Library checkin and transfer policy</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
7 <script type="text/javascript">
9 $(document).ready(function(){
10 $("#CheckAll").click(function(){ $("#transferlimit_tabs").checkCheckboxes(); return false; });
11 $("#UncheckAll").click(function(){ $("#transferlimit_tabs").unCheckCheckboxes(); return false; });
12 $('#transferlimit_tabs').tabs();
14 $('#branchselect').change(function() {
15 $('#selectlibrary').submit();
18 var checkall = $(".checkall");
19 var uncheckall = $(".uncheckall");
21 $(checkall).click(function(){
22 var tid = $(this).attr("id");
23 tid = tid.replace("CheckAll","");
24 $("#"+tid).checkCheckboxes();
28 $(uncheckall).click(function(){
29 var tid = $(this).attr("id");
30 tid = tid.replace("UncheckAll","");
31 $("#"+tid).unCheckCheckboxes();
34 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
36 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
38 "sPaginationType": "four_button"
43 <style type="text/css">td { text-align: center; } .sorted { min-width: 50%; }</style>
45 <body id="admin_branch_transfer_limits" class="admin">
46 [% INCLUDE 'header.inc' %]
47 [% INCLUDE 'cat-search.inc' %]
49 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Set library checkin and transfer policy</div>
51 <div id="doc3" class="yui-t1">
57 <h1>Library [% branchcode %] - [% branchname %] Checkin and transfer policy</h1>
58 <form method="get" action="/cgi-bin/koha/admin/branch_transfer_limits.pl" id="selectlibrary">
59 <label for="branchselect">Select a library :</label>
60 <select name="branchcode" id="branchselect">
61 [% FOREACH branch_loo IN branch_loop %]
62 [% IF ( branch_loo.selected ) %]
63 <option value="[% branch_loo.value %]" selected="selected">[% branch_loo.branchname %]</option>
65 <option value="[% branch_loo.value %]">[% branch_loo.branchname %]</option>
71 <p class="help">Check the boxes for the libraries you accept to checkin items from.</p>
72 <fieldset>[% IF ( limitType == 'ccode' ) %]<strong>For all collection codes: </strong>[% ELSE %]<strong>For all item types: </strong>[% END %]<a id="CheckAll" href="#">Check all</a> | <a id="UncheckAll" href="#">Uncheck all</a></fieldset>
75 <div id="transferlimit_tabs" class="toptabs">
76 <ul class="ui-tabs-nav">
77 [% FOREACH codes_loo IN codes_loop %]<li><a href="#[% codes_loo.code %]set">[% codes_loo.code %]</a></li>[% END %]
80 <form method="post" action="branch_transfer_limits.pl">
82 [% FOREACH codes_loo IN codes_loop %]
83 <div id="[% codes_loo.code %]set">
84 <h4>Policy for [% codes_loo.limit_phrase %]: [% codes_loo.code %]</h4>
85 <p><a id="CheckAll[% codes_loo.code %]table" class="checkall" href="#">Check all</a> | <a id="UncheckAll[% codes_loo.code %]table" class="uncheckall" href="#">Uncheck all</a></p>
87 <table id="[% codes_loo.code %]table" class="sorted">
91 <th>Allow transfer?</th>
96 [% FOREACH to_branch_loo IN codes_loo.to_branch_loop %]
98 <td><label style="min-width:400px;" for="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row">[% to_branch_loo.toBranch %] - [% to_branch_loo.toBranchname %]</label></td>
100 [% IF ( to_branch_loo.isChecked ) %]
101 <input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" checked="checked" />
103 <input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" />
113 <fieldset class="action">
114 <input type="hidden" name="updateLimits" value="1" />
115 <input type="hidden" name="branchcode" value="[% branchcode %]" />
116 <input type="submit" value="Save" />
117 <a class="cancel" href="/cgi-bin/koha/admin/admin-home.pl">Cancel</a>
124 [% INCLUDE 'admin-menu.inc' %]
127 [% INCLUDE 'intranet-bottom.inc' %]