94868f61c4
The jQuery lib is useful only if js code is filled into the intranetuserjs pref. Signed-off-by: Campbell Reid-Tait <campbellreidtait@gmail.com> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> To test: - Use Quick spine label creator - Make sure you have Javascript in your intranetuserjs system preference - Validate Javascript effect on screen or check source code to make sure your code is visible there. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
<!DOCTYPE html>
|
|
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
|
|
<head>
|
|
<title>Koha › Tools › Spine labels</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/spinelabel.css" />
|
|
|
|
<style type="text/css">
|
|
@media print {
|
|
.noprint { display: none; }
|
|
}
|
|
</style>
|
|
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
|
|
[% IF ( intranetuserjs ) %]
|
|
<script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
[% intranetuserjs %]
|
|
//]]>
|
|
</script>
|
|
[% END %]
|
|
</head>
|
|
[% IF ( BarcodeNotFound ) %]
|
|
<body id="labels_spinelabel-print" class="tools labels">
|
|
<p>The barcode [% Barcode %] was not found.</p>
|
|
<p><a href="spinelabel-home.pl">Return to spine label printer</a></p>
|
|
</body>
|
|
[% ELSE %]
|
|
[% IF ( autoprint ) %]
|
|
<body id="labels_spinelabel-print" class="tools labels" onLoad="window.print()">
|
|
[% ELSE %]
|
|
<body>
|
|
[% END %]
|
|
<span id="spinelabel" class="label">
|
|
[% content %]
|
|
</span>
|
|
<span id="print_button" class="noprint">
|
|
<button onclick="window.print()">Print this label</button>
|
|
</span>
|
|
</body>
|
|
[% END %]
|
|
</html>
|