e40728f4d5
Adds branchnames along with branchcodes for display Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com> Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
129 lines
5.1 KiB
Cheetah
129 lines
5.1 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Administration › Library Checkin and Transfer Policy</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$("#CheckAll").click(function(){ $("#transferlimit_tabs").checkCheckboxes();});
|
|
$("#UncheckAll").click(function(){ $("#transferlimit_tabs").unCheckCheckboxes();});
|
|
$("#SwapAll").click(function(){ $("#transferlimit_tabs").toggleCheckboxes();});
|
|
$('#transferlimit_tabs > ul').tabs();
|
|
|
|
$('#branchselect').change(function() {
|
|
$('#selectlibrary').submit();
|
|
});
|
|
|
|
|
|
var checkcolumn = $(".checkcolumn");
|
|
var checkrow = $(".checkrow");
|
|
var checkall = $(".checkall");
|
|
var uncheckall = $(".uncheckall");
|
|
|
|
$(checkcolumn).click(function(){
|
|
if(this.checked){ status = "checked" } else { status = "" }
|
|
var tableid = $(this).parent().parent().parent().parent().attr("id");
|
|
var columncontext = $(this).parent();
|
|
var tdindex = columncontext.parent().children().index(columncontext);
|
|
$("#"+tableid+" tr td:nth-child("+(tdindex+2)+") input[type='checkbox']").attr("checked",status);
|
|
});
|
|
|
|
$(checkrow).click(function(){
|
|
if(this.checked){ status = "checked" } else { status = "" }
|
|
$(this).parent().siblings().each(function(){
|
|
$(this).find("input[type='checkbox']").attr("checked",status);
|
|
})
|
|
});
|
|
|
|
$(checkall).click(function(){
|
|
var tid = $(this).attr("id");
|
|
tid = tid.replace("CheckAll","");
|
|
$("#"+tid).checkCheckboxes();
|
|
return false;
|
|
});
|
|
|
|
$(uncheckall).click(function(){
|
|
var tid = $(this).attr("id");
|
|
tid = tid.replace("UncheckAll","");
|
|
$("#"+tid).unCheckCheckboxes();
|
|
return false;
|
|
});
|
|
|
|
});
|
|
</script>
|
|
<style type="text/css">td { text-align: center; }</style>
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
|
|
|
|
<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>
|
|
|
|
<div id="doc3" class="yui-t1">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<h1>Library <!-- TMPL_VAR NAME="branchcode" --> - <!-- TMPL_VAR NAME="branchname" --> Checkin and Transfer Policy</h1>
|
|
<form method="get" action="/cgi-bin/koha/admin/branch_transfer_limits.pl" id="selectlibrary">
|
|
<label for="branchselect">Select a library :</label>
|
|
<select name="branchcode" id="branchselect">
|
|
<!-- TMPL_LOOP NAME="branch_loop" -->
|
|
<option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
<input type="submit" value="Choose" />
|
|
</form>
|
|
|
|
<p class="help">Check the boxes for the libraries you accept to checkin items from.</p>
|
|
<fieldset>For <strong>all</strong> <!--TMPL_VAR NAME="limit_phrase" -->s: <a id="CheckAll" href="#">Check All</a> | <a id="UncheckAll" href="#">Uncheck All</a></fieldset>
|
|
|
|
|
|
<div id="transferlimit_tabs" class="toptabs">
|
|
<ul class="ui-tabs-nav">
|
|
<!-- TMPL_LOOP NAME="codes_loop" --><li><a href="#<!-- TMPL_VAR NAME="code" -->set"><!-- TMPL_VAR NAME="code" --></a></li><!-- /TMPL_LOOP -->
|
|
</ul>
|
|
|
|
<form method="post" action="branch_transfer_limits.pl">
|
|
|
|
<!-- TMPL_LOOP NAME="codes_loop" -->
|
|
<div id="<!-- TMPL_VAR NAME="code" -->set">
|
|
<h4>Policy for <!--TMPL_VAR NAME="limit_phrase" -->: <!-- TMPL_VAR NAME="code" --></h4>
|
|
<p><a id="CheckAll<!-- TMPL_VAR NAME="code" -->table" class="checkall" href="#">Check All</a> | <a id="UncheckAll<!-- TMPL_VAR NAME="code" -->table" class="uncheckall" href="#">Uncheck All</a></p>
|
|
<table id="<!-- TMPL_VAR NAME="code" -->table">
|
|
<thead>
|
|
<tr>
|
|
<th>Library</th>
|
|
<th>Allow transfer?</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<!-- TMPL_LOOP NAME="to_branch_loop" -->
|
|
<!-- TMPL_UNLESS NAME="__odd__" --><tr class="highlight"><!-- TMPL_ELSE
|
|
--><tr><!-- /TMPL_UNLESS -->
|
|
<td><label style="min-width:400px;" for="<!-- TMPL_VAR NAME="code" --><!-- TMPL_VAR NAME="toBranch" -->row"><!-- TMPL_VAR NAME="toBranch" --> - <!-- TMPL_VAR NAME="toBranchname" --></label></td>
|
|
<td><input type="checkbox" id="<!-- TMPL_VAR NAME="code" --><!-- TMPL_VAR NAME="toBranch" -->row" name="<!-- TMPL_VAR NAME="code" -->_<!-- TMPL_VAR NAME="toBranch" -->" <!-- TMPL_IF NAME="isChecked" -->checked="checked" <!-- /TMPL_IF --> /></td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- /TMPL_LOOP -->
|
|
</div>
|
|
|
|
<fieldset class="action">
|
|
<input type="hidden" name="updateLimits" value="1" />
|
|
<input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
|
|
<input type="submit" value="Save" />
|
|
<a class="cancel" href="/cgi-bin/koha/admin/admin-home.pl">Cancel</a>
|
|
</fieldset>
|
|
</form>
|
|
<!-- /TMPL_UNLESS --> <!-- /defined homebranch -->
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|