d08387dd28
Signed-off-by: Chris Cormack <crc@liblime.com>
181 lines
5.3 KiB
Cheetah
181 lines
5.3 KiB
Cheetah
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<title>Print Preview</title>
|
|
<style type="text/css" media="screen">
|
|
/* need to set print margins for sheet */
|
|
body {
|
|
margin:48px; /* 1/2" at 96dpi */
|
|
/* margin:36px */ /* 1/2" at 72dpi */
|
|
}
|
|
/*
|
|
8 1/2" x 11" sheet size
|
|
|
|
spine data
|
|
1 1/4"H x 1"W
|
|
at 96dpi -> 120px H x 96px W
|
|
at 72dpi -> 90px H x 72px W
|
|
space between cells - 1/2"
|
|
at 96dpi -> 48px
|
|
at 72dpi -> 36px
|
|
circ data
|
|
1 1/4"H x 2 7/8"W
|
|
at 96dpi -> 120px H x 276px W
|
|
at 72dpi -> 90px H x 207px W
|
|
*/
|
|
table.print-preview {
|
|
border-collapse:collapse;
|
|
border-spacing:0;
|
|
empty-cells: show;
|
|
}
|
|
.print-preview td {
|
|
font-family:arial,helvetica,sans-serif;
|
|
font-size:10px;
|
|
padding:0 4px 0 4px
|
|
}
|
|
/* 96dpi */
|
|
.spine-label-8511 {
|
|
border:dashed 1px #999999;
|
|
width: 88px;
|
|
height: 112px;
|
|
text-align: center
|
|
}
|
|
.space-8511 {
|
|
width:40px
|
|
}
|
|
.circ-label-8511 {
|
|
border:dashed 1px #999999;
|
|
width:268px;
|
|
text-align: center
|
|
}
|
|
/* 72dpi
|
|
.spine-label-8511 {
|
|
border:dashed 1px #999999;
|
|
width: 64px;
|
|
height: 82px;
|
|
text-align: center
|
|
}
|
|
.space-8511 {
|
|
width:28px
|
|
}
|
|
.circ-label-8511 {
|
|
border:dashed 1px #999999;
|
|
width:199px;
|
|
text-align: center
|
|
}
|
|
*/
|
|
</style>
|
|
<style type="text/css" media="print">
|
|
/* need to set print margins for sheet */
|
|
body {
|
|
margin:48px; /* 1/2" at 96dpi */
|
|
/* margin:36px */ /* 1/2" at 72dpi */
|
|
}
|
|
.noprint {
|
|
display:none
|
|
}
|
|
table.print-preview {
|
|
border-collapse:collapse;
|
|
border-spacing:0;
|
|
}
|
|
/* need to set printer font size */
|
|
.print-preview td {
|
|
font-family:arial,helvetica,sans-serif;
|
|
font-size:10px;
|
|
padding:0 4px 0 4px
|
|
}
|
|
/* 96dpi */
|
|
.spine-label-8511 {
|
|
border:dashed 1px #999999;
|
|
width: 88px;
|
|
height: 112px;
|
|
}
|
|
.space-8511 {
|
|
width:40px;
|
|
}
|
|
.circ-label-8511 {
|
|
border:dashed 1px #999999;
|
|
width:268px;
|
|
height:112px;
|
|
}
|
|
/* 72dpi
|
|
.spine-label-8511 {
|
|
border:none;
|
|
width: 64px;
|
|
height: 82px;
|
|
text-align: center
|
|
}
|
|
.space-8511 {
|
|
width:28px
|
|
}
|
|
.circ-label-8511 {
|
|
border:none;
|
|
width:199px;
|
|
text-align: left
|
|
}
|
|
*/
|
|
</style>
|
|
<body>
|
|
|
|
<div class="noprint">
|
|
<h3 class="bull">Print Preview<br>
|
|
Barcodetype:<!-- TMPL_VAR NAME="barcodetype_opt" --><br>
|
|
Papertype:<!-- TMPL_VAR NAME="papertype_opt" --><br>
|
|
Field Options: <!-- TMPL_IF NAME="author_opt" -->Author <!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="itemtype_opt" -->itemtype <!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="title_opt" -->title <!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="isbn_opt" -->isbn <!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="dewey_opt" -->dewey <!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="class_opt" -->class<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="subclass_opt" -->subclass<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="itemcallnumber_opt" -->itemcallnumber<!-- /TMPL_IF -->
|
|
|
|
</h3>
|
|
</div>
|
|
|
|
|
|
<table summary="print preview" class="print-preview">
|
|
|
|
<!-- TMPL_LOOP NAME="resultsloop" -->
|
|
<tr>
|
|
<td class="spine-label-8511">
|
|
<!-- TMPL_IF NAME="itemtype_opt" --><!-- TMPL_VAR NAME="itemtype" --><br /><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="papertype_opt" --><!-- TMPL_VAR NAME="papertype" --><br /><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="author_opt" --><!-- TMPL_VAR NAME="author" --><br /><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="title_opt" --><!-- TMPL_VAR NAME="title" --><br /><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="isbn_opt" --><!-- TMPL_VAR NAME="isbn" --><br /><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="dewey_opt" --><!-- TMPL_VAR NAME="dewey" --><br /><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="class_opt" --><!-- TMPL_VAR NAME="class" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="subclass_opt" --><!-- TMPL_VAR NAME="subclass" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="itemcallnumber_opt" --><!-- TMPL_VAR NAME="itemcallnumber" --><!-- /TMPL_IF -->
|
|
</td>
|
|
<td class="space-8511"> </td>
|
|
<td class="circ-label-8511">
|
|
<img src="/intranet-tmpl/barcodes/<!-- TMPL_VAR NAME="barcodetype_opt" -->-<!-- TMPL_VAR NAME="barcode" -->.png">
|
|
<!-- TMPL_IF NAME="barcodeerror" -->
|
|
<div class="noprint">'<!-- TMPL_VAR NAME="barcode" -->'<br>
|
|
not '<!-- TMPL_VAR NAME="barcodetype_opt" -->' format.</div>
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<td class="space-8511"> </td>
|
|
<td class="circ-label-8511">
|
|
<img src="/intranet-tmpl/barcodes/<!-- TMPL_VAR NAME="barcodetype_opt" -->-<!-- TMPL_VAR NAME="barcode" -->.png">
|
|
<!-- TMPL_IF NAME="barcodeerror" -->
|
|
<div class="noprint">'<!-- TMPL_VAR NAME="barcode" -->'<br>
|
|
not '<!-- TMPL_VAR NAME="barcodetype_opt" -->' format.</div>
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
|
|
<div class="noprint"><br />
|
|
<a href="/cgi-bin/koha/barcodes/label-manager.pl"
|
|
class="button">Back</a>
|
|
<a href="/cgi-bin/koha/barcodes/label-print-pdf.pl" class="button">Print</a>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|