Wainui Witika-Park
51d4c23a7e
Swapped the order of the page titles to have the unique information first, i.e. the name of the specific page displays first, and the name of the website (e.g. Koha) displays at the end. To test: 1) Apply patch 2) Ensure each of the files in the labels folder are swapped around to display the most unique information first, and the website name is at the end 3) Ensure the pages displayed on the Staff Client that correspond to these files also display the changes Sponsored-by: Catalyst IT Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Henry Bolshaw <bolshawh@parliament.uk> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
104 lines
4 KiB
Text
104 lines
4 KiB
Text
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Print barcode range › Label creator › Tools › Koha</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% INCLUDE 'greybox.inc' %]
|
|
</head>
|
|
<body id="labels_label-home" class="tools labels">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'cat-search.inc' %]
|
|
|
|
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
|
|
<ol>
|
|
<li>
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
|
</li>
|
|
<li>
|
|
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
|
|
</li>
|
|
<li>
|
|
<a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" aria-current="page">
|
|
Print barcode range
|
|
</a>
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-10 col-sm-push-2">
|
|
<main>
|
|
[% INCLUDE 'labels-toolbar.inc' %]
|
|
<h1>Print barcode range</h1>
|
|
<form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
|
|
<input type="hidden" name="op" value="add" />
|
|
<fieldset class="rows">
|
|
<ol>
|
|
<li>
|
|
<label for="from-input">From:</label>
|
|
<input type="text" inputmode="numeric" pattern="[0-9]*" name="from" id="from-input" value="0" style="text-align: right;"/>
|
|
</li>
|
|
<li>
|
|
<label for="to-input">To:</label>
|
|
<input type="text" inputmode="numeric" pattern="[0-9]*" name="to" id="to-input" value="0" style="text-align: right;"/>
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
<fieldset class="action">
|
|
<button type="button" class="btn btn-default" id="print">Print range</button>
|
|
</fieldset>
|
|
</form>
|
|
</main>
|
|
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
|
|
|
<div class="col-sm-2 col-sm-pull-10">
|
|
<aside>
|
|
[% INCLUDE 'tools-menu.inc' %]
|
|
</aside>
|
|
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
|
</div> <!-- /.row -->
|
|
</div> <!-- /.main.container-fluid -->
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% Asset.js("js/tools-menu.js") | $raw %]
|
|
<script>
|
|
function Xport() {
|
|
var str = "";
|
|
str += "from=" + parseInt(document.getElementById("from-input").value) + "&";
|
|
str += "to=" + parseInt(document.getElementById("to-input").value);
|
|
return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?" + str, 400, 800);
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
$.validator.addMethod("gt", function(value, element, params) {
|
|
return parseInt(value) >= parseInt($(params).val());
|
|
}, _("Must be greater or equal to the from value."));
|
|
|
|
$("form[name=add_by_number]").validate({
|
|
rules: {
|
|
from: {
|
|
required: true,
|
|
number: true,
|
|
min: 1
|
|
},
|
|
to: {
|
|
required: true,
|
|
number: true,
|
|
gt: "#from-input"
|
|
}
|
|
}
|
|
});
|
|
|
|
$("#print").on("click", function () {
|
|
if ( $("form[name=add_by_number]").valid() ) {
|
|
return Xport();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|