1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Library checkin and transfer policy</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
7 <script type="text/javascript">
9 $(document).ready(function(){
10 $("#CheckAll").click(function(){ $("#transferlimit_tabs").checkCheckboxes();});
11 $("#UncheckAll").click(function(){ $("#transferlimit_tabs").unCheckCheckboxes();});
12 $("#SwapAll").click(function(){ $("#transferlimit_tabs").toggleCheckboxes();});
13 $('#transferlimit_tabs').tabs();
15 $('#branchselect').change(function() {
16 $('#selectlibrary').submit();
19 var checkall = $(".checkall");
20 var uncheckall = $(".uncheckall");
22 $(checkall).click(function(){
23 var tid = $(this).attr("id");
24 tid = tid.replace("CheckAll","");
25 $("#"+tid).checkCheckboxes();
29 $(uncheckall).click(function(){
30 var tid = $(this).attr("id");
31 tid = tid.replace("UncheckAll","");
32 $("#"+tid).unCheckCheckboxes();
35 $(".sorted").tablesorter({
37 headers: { 1: { sorter: false}}
38 }).tablesorterPager({container: $(".pager"),positionFixed: false,size: 10});
42 <style type="text/css">td { text-align: center; }</style>
44 <body id="admin_branch_transfer_limits" class="admin">
45 [% INCLUDE 'header.inc' %]
46 [% INCLUDE 'cat-search.inc' %]
48 <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>
50 <div id="doc3" class="yui-t1">
56 <h1>Library [% branchcode %] - [% branchname %] Checkin and transfer policy</h1>
57 <form method="get" action="/cgi-bin/koha/admin/branch_transfer_limits.pl" id="selectlibrary">
58 <label for="branchselect">Select a library :</label>
59 <select name="branchcode" id="branchselect">
60 [% FOREACH branch_loo IN branch_loop %]
61 [% IF ( branch_loo.selected ) %]
62 <option value="[% branch_loo.value %]" selected="selected">[% branch_loo.branchname %]</option>
64 <option value="[% branch_loo.value %]">[% branch_loo.branchname %]</option>
68 <input type="submit" value="Choose" />
71 <p class="help">Check the boxes for the libraries you accept to checkin items from.</p>
72 <fieldset>For <strong>all</strong> [% limit_phrase %]s: <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 <div id="pager[% codes_loo.code %]table">
88 [% INCLUDE 'table-pager.inc' perpage='20' %]
90 <table id="[% codes_loo.code %]table" class="sorted">
94 <th>Allow transfer?</th>
99 [% FOREACH to_branch_loo IN codes_loo.to_branch_loop %]
100 [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
101 <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>
103 [% IF ( to_branch_loo.isChecked ) %]
104 <input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" checked="checked" />
106 <input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" />
116 <fieldset class="action">
117 <input type="hidden" name="updateLimits" value="1" />
118 <input type="hidden" name="branchcode" value="[% branchcode %]" />
119 <input type="submit" value="Save" />
120 <a class="cancel" href="/cgi-bin/koha/admin/admin-home.pl">Cancel</a>
127 [% INCLUDE 'admin-menu.inc' %]
130 [% INCLUDE 'intranet-bottom.inc' %]