[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/default/en/barcode... [rel_2_2]
From: |
Mason James |
Subject: |
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/default/en/barcode... [rel_2_2] |
Date: |
Mon, 16 Jul 2007 21:19:49 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Mason James <sushi> 07/07/16 21:19:49
Added files:
koha-tmpl/intranet-tmpl/default/en/barcodes:
label-bib-search.tmpl
label-create-template.tmpl
label-edit-template.tmpl
label-home.tmpl
label-manager.tmpl
label-print.tmpl
label-templates.tmpl
result.tmpl
search.tmpl
Log message:
rewinding rel_2_2 barcodes back to pre-july07 LibLime dev work.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/barcodes/label-bib-search.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/barcodes/label-create-template.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/barcodes/label-edit-template.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/barcodes/label-home.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/barcodes/label-manager.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/barcodes/label-print.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/barcodes/label-templates.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/barcodes/result.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/barcodes/search.tmpl?cvsroot=koha&only_with_tag=rel_2_2&rev=1.1.2.1
Patches:
Index: label-bib-search.tmpl
===================================================================
RCS file: label-bib-search.tmpl
diff -N label-bib-search.tmpl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ label-bib-search.tmpl 16 Jul 2007 21:19:47 -0000 1.1.2.1
@@ -0,0 +1,31 @@
+<div id="main-compact">
+
+<h1>Labels - Search</h1>
+
+<form name="f" method="post">
+ <input type="hidden" name="op" value="do_search" />
+ <input type="hidden" name="type" value="intranet" />
+ <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR
NAME="nbstatements" -->" />
+ <div class="details">
+ <h2>Search on</h2>
+ <p>
+ <label for="category">Name or ISSN: </label>
+ <!-- TMPL_VAR name="category" -->
+ </p>
+ <p>
+ <label for="index">Search value: </label>
+ <input type="text" name="value" value="<!-- TMPL_VAR
name="value" -->" />
+ <input type="hidden" name="authtypecode" value="<!--
TMPL_VAR name="category" -->" />
+ <input type="hidden" name="marclist" value="" />
+ <input type="hidden" name="and_or" value="and" />
+ <input type="hidden" name="excluding" value="" />
+ <input type="hidden" name="operator" value="contains" />
+ <input type="hidden" id="index" name="index"
value="<!-- TMPL_VAR name="index" -->" />
+ </p>
+ <p>
+ <input type="submit" value="Start search"
class="submit" />
+ </p>
+ </div>
+</form>
+</div>
+
Index: label-create-template.tmpl
===================================================================
RCS file: label-create-template.tmpl
diff -N label-create-template.tmpl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ label-create-template.tmpl 16 Jul 2007 21:19:47 -0000 1.1.2.1
@@ -0,0 +1,63 @@
+<!-- TMPL_INCLUDE NAME="parameters-top.inc" -->
+<!-- TMPL_INCLUDE NAME="label-topmenu.inc" -->
+
+<div id="mainbloc">
+<form name="input" action="/cgi-bin/koha/barcodes/label-create-template.pl"
method="get">
+
+<h1>Labels - Create Label Template</h1>
+
+
+
+<h3>Template Settings</h3>
+<table>
+
+Template Code: <input type="text" size="40" name="tmpl_code"><br>
+Template Description: <textarea name="tmpl_desc" cols="40" rows="3"
name="tmpl_desc" ></TEXTAREA><br>
+
+<tr>
+ <td>Page Width:</td><td><input type="text" size="2"
name="page_width"></td>
+ <td>Page Height:</td><td><input type="text" size="2"
name="page_height"></td>
+</tr>
+<tr>
+ <td>Label Width:</td><td><input type="text" size="2"
name="label_width"></td>
+ <td>Label Height:</td><td><input type="text" size="2"
name="label_height"></td>
+</tr>
+<tr>
+ <td>Top Page Margin:</td><td><input type="text" size="2"
name="topmargin"></td>
+ <td>Left Page Margin:</td><td><input type="text" size="2"
name="leftmargin"></td>
+</tr>
+<tr>
+ <td>Number of Columns:</td><td><input type="text" size="2"
name="cols"></td>
+ <td>Number of Rows:</td><td><input type="text" size="2"
name="rows"></td>
+</tr>
+<tr>
+ <td>Gap between Columns:</td><td><input type="text" size="2"
name="colgap"></td>
+ <td>Gap between Rows:</td><td><input type="text" size="2"
name="rowgap"></td>
+</tr>
+</table>
+
+
+<br>
+Units: <select name="units">
+ <!-- TMPL_LOOP NAME="units" -->
+ <option value="<!-- TMPL_VAR NAME="unit" -->"><!-- TMPL_VAR
NAME="desc" --></option>
+ <!-- /TMPL_LOOP -->
+</select>
+
+<br>
+<br>
+Font Size: <input type="textbox" name="fontsize" SIZE="1"
+ value="">
+<br>
+<br>
+Active: <input type="checkbox" name="active">
+
+ <input type="hidden" name="op" value="create">
+<br>
+<br>
+ <input type="submit" value="Save">
+ <input type="reset" value="Reset">
+</form>
+</div>
+<!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->
+
Index: label-edit-template.tmpl
===================================================================
RCS file: label-edit-template.tmpl
diff -N label-edit-template.tmpl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ label-edit-template.tmpl 16 Jul 2007 21:19:47 -0000 1.1.2.1
@@ -0,0 +1,73 @@
+<!-- TMPL_INCLUDE name="parameters-top.inc" -->
+<!-- TMPL_INCLUDE NAME="label-topmenu.inc" -->
+
+<div id="mainbloc">
+<form name="input" action="/cgi-bin/koha/barcodes/label-save-template.pl"
method="get">
+
+<h1>
+ Labels - Edit Label Template
+</h1>
+
+
+
+<h3>Template Settings</h3>
+<table>
+
+Template ID: <!-- TMPL_VAR NAME="tmpl_id" --> <br>
+Template Code: <input type="text" size="40" name="tmpl_code" value="<!--
TMPL_VAR NAME="tmpl_code" -->"><br>
+Template Description: <textarea name="tmpl_desc" cols="40" rows="3"
name="tmpl_desc" ><!-- TMPL_VAR NAME="tmpl_desc" --></TEXTAREA><br>
+
+<tr>
+ <td>Page Width:</td><td><input type="text" size="2" name="page_width"
value="<!-- TMPL_VAR NAME="page_width" -->"></td>
+ <td>Page Height:</td><td><input type="text" size="2"
name="page_height" value="<!-- TMPL_VAR NAME="page_height" -->"></td>
+</tr>
+<tr>
+ <td>Label Width:</td><td><input type="text" size="2"
name="label_width" value="<!-- TMPL_VAR NAME="label_width" -->"></td>
+ <td>Label Height:</td><td><input type="text" size="2"
name="label_height" value="<!-- TMPL_VAR NAME="label_height" -->"></td>
+</tr>
+<tr>
+ <td>Top Page Margin:</td><td><input type="text" size="2"
name="topmargin" value="<!-- TMPL_VAR NAME="topmargin" -->"></td>
+ <td>Left Page Margin:</td><td><input type="text" size="2"
name="leftmargin" value="<!-- TMPL_VAR NAME="leftmargin" -->"></td>
+</tr>
+<tr>
+ <td>Number of Columns:</td><td><input type="text" size="2" name="cols"
value="<!-- TMPL_VAR NAME="cols" -->"></td>
+ <td>Number of Rows:</td><td><input type="text" size="2" name="rows"
value="<!-- TMPL_VAR NAME="rows" -->"></td>
+</tr>
+<tr>
+ <td>Gap between Columns:</td><td><input type="text" size="2"
name="colgap" value="<!-- TMPL_VAR NAME="colgap" -->"></td>
+ <td>Gap between Rows:</td><td><input type="text" size="2"
name="rowgap" value="<!-- TMPL_VAR NAME="rowgap" -->"></td>
+
+
+
+</tr>
+</table>
+
+Units: <select name="units">
+ <!-- TMPL_LOOP NAME="units" -->
+ <option value="<!-- TMPL_VAR NAME="unit" -->"
+ <!-- TMPL_IF NAME="selected" --> selected <!-- /TMPL_IF -->
+ ><!-- TMPL_VAR NAME="desc" --></option>
+ <!-- /TMPL_LOOP -->
+</select>
+
+<br>
+<br>
+Font Size: <input type="textbox" name="fontsize" SIZE="1"
+ value="<!-- TMPL_VAR NAME="fontsize" -->">
+<br>
+<br>
+
+
+Active: <input type="checkbox" name="active"
+ <!-- TMPL_IF NAME="active" --> checked <!-- /TMPL_IF --> >
+
+ <input type="hidden" name="tmpl_id" value="<!-- TMPL_VAR
NAME="tmpl_id" -->">
+<p>
+<p>
+ <input type="submit" value="Save">
+ <input type="reset" value="Reset">
+</p>
+</form>
+</div>
+<!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->
+
Index: label-home.tmpl
===================================================================
RCS file: label-home.tmpl
diff -N label-home.tmpl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ label-home.tmpl 16 Jul 2007 21:19:48 -0000 1.1.2.1
@@ -0,0 +1,181 @@
+<!-- TMPL_INCLUDE NAME="parameters-top.inc" -->
+<!-- TMPL_INCLUDE NAME="label-topmenu.inc" -->
+
+<div id="mainbloc">
+<form name="input" action="/cgi-bin/koha/barcodes/label-manager.pl"
method="get">
+
+<h1>
+ Labels - Choose Fields to Print
+</h1>
+<table summary="fields to print">
+<tr>
+ <td>
+ <input type="checkbox" name="itemtype" value=1
+ <!-- TMPL_IF NAME="itemtype"-->
+ checked
+ <!-- /TMPL_IF --> >
+ <label for="itemtype">Item Type</label>
+ </td>
+
+ <td>
+ <input type="checkbox" name="isbn" value=1
+ <!-- TMPL_IF NAME="isbn" -->
+ checked
+ <!-- /TMPL_IF -->>
+ <label for="isbn">ISBN</label>
+ </td>
+
+</tr>
+<tr>
+ <td>
+ <input type="checkbox" name="dcn" value=1
+ <!-- TMPL_IF NAME="dewey" -->
+ checked
+ <!-- /TMPL_IF -->>
+ <label for="dcn">Dewey / Call Number</label>
+ </td>
+ <td>
+ <input type="checkbox" name="classif" value=1
+ <!-- TMPL_IF NAME="class" -->
+ checked
+ <!-- /TMPL_IF -->>
+ <label for="classif">Classification</label>
+ </td>
+</tr>
+<tr>
+ <td>
+ <input type="checkbox" name="itemcallnumber" value=1
+ <!-- TMPL_IF NAME="itemcallnumber" -->
+ checked
+ <!-- /TMPL_IF -->>
+ <label for="itemcallnumber">Item Call Number</label>
+ </td>
+ <td>
+ <input type="checkbox" name="subclass" value=1
+ <!-- TMPL_IF NAME="subclass" -->
+ checked
+ <!-- /TMPL_IF -->>
+ <label for="subclass">Sub-Class</label>
+ </td>
+</tr>
+</table>
+<p>
+
+<h3>Confirm Label Template</h3>
+<select name="tmpl_id">
+ <!-- TMPL_LOOP NAME="label_templates" -->
+ <option value="<!-- TMPL_VAR NAME="tmpl_id" -->"
+ <!-- TMPL_IF NAME="active" --> selected <!-- /TMPL_IF
-->
+ ><!-- TMPL_VAR NAME="tmpl_code" --></option>
+ <!-- /TMPL_LOOP -->
+</select>
+
+
+<h3>Confirm Barcode Type</h3>
+ <select name="barcodetype">
+ <option value="COOP2of5"
+ <!-- TMPL_IF NAME="COOP2of5_checked" -->
+ selected
+ <!--/TMPL_IF -->
+ >COOP2of5</option>
+ <option value="Code39"
+ <!-- TMPL_IF NAME="Code39_checked" -->
+ selected
+ <!-- /TMPL_IF -->
+ >Code39</option>
+ <option value="Code39sum"
+ <!-- TMPL_IF NAME="Code39sum_checked" -->
+ selected
+ <!-- /TMPL_IF -->
+ >Code39 + modulo43</option>
+ <option value="EAN13"
+ <!-- TMPL_IF NAME="EAN13_checked" -->
+ selected
+ <!-- /TMPL_IF -->
+ >EAN13(JAN13)</option>
+ <option value="EAN8"
+ <!-- TMPL_IF NAME="EAN8_checked" -->
+ selected<!-- /TMPL_IF -->
+ >EAN8(JAN8)</option>
+ <option value="ITF"
+ <!-- TMPL_IF NAME="ITF_checked" -->
+ selected
+ <!-- /TMPL_IF -->
+ >ITF(Interleaved2of5)</option>
+ <option value="Industrial2of5"
+ <!-- TMPL_IF NAME="Industrial2of5_checked" -->
+ selected
+ <!-- /TMPL_IF -->
+ >Industrial2of5</option>
+ <option value="Matrix2of5"
+ <!-- TMPL_IF NAME="Matrix2of5_checked" -->
+ selected
+ <!-- /TMPL_IF -->
+ >Matrix2of5</option>
+ <option value="NW7"
+ <!-- TMPL_IF NAME="NW7_checked" -->
+ selected
+ <!-- /TMPL_IF -->
+ >NW7</option>
+ <option value="QRcode"
+ <!-- TMPL_IF NAME="QRcode_checked" -->
+ selected
+ <!-- /TMPL_IF -->
+ >QRcode</option>
+ <option value="UPC-A"
+ <!-- TMPL_IF NAME="UPC-A_checked" -->
+ selected
+ <!-- /TMPL_IF -->
+ >UPC-A</option>
+ <option value="UPC-E"
+ <!-- TMPL_IF NAME="UPC-E_checked" -->
+ selected
+ <!-- /TMPL_IF -->
+ >UPC-E</option>
+ </select>
+</h3>
+
+
+<h3>Confirm Printing Type</h3>
+
+<input type="radio" name="printingtype" value="spine"
+ <!-- TMPL_IF NAME="printingtype_spine" -->
+ checked
+ <!--/TMPL_IF -->
+ >Spine Labels
+<input type="radio" name="printingtype" value="barcode"
+ <!-- TMPL_IF NAME="printingtype_barcode" -->
+ checked
+ <!--/TMPL_IF -->
+ >Barcode Labels
+<input type="radio" name="printingtype" value="both"
+ <!-- TMPL_IF NAME="printingtype_both" -->
+ checked
+ <!--/TMPL_IF -->
+ >Both Labels
+
+
+<h3>
+ Start printing from Label number:<input type="textbox"
name="startlabel" SIZE="1"
+ value="<!-- TMPL_VAR NAME="startlabel" -->">
+
+
+</h3>
+
+<p>
+<p>
+ <input type="checkbox" name="guidebox" value=1
+ <!-- TMPL_IF NAME="guidebox"-->
+ checked
+ <!-- /TMPL_IF -->>
+ <label for="guidebox">Draw Guide Boxes</label>
+<p>
+<p>
+<p>
+ <input type="submit" value="Submit">
+ <input type="hidden" name=op value="save_conf">
+</p>
+</form>
+</div>
+<!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->
+
Index: label-manager.tmpl
===================================================================
RCS file: label-manager.tmpl
diff -N label-manager.tmpl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ label-manager.tmpl 16 Jul 2007 21:19:48 -0000 1.1.2.1
@@ -0,0 +1,55 @@
+<!-- TMPL_INCLUDE NAME="parameters-top.inc" -->
+<!-- TMPL_INCLUDE NAME="label-topmenu.inc" -->
+<div id="mainbloc">
+<h1>Labels - Labels to be Printed</h1>
+<p>
+ Printing will start on <b>row <!-- TMPL_VAR NAME="startrow" --></b><br
/>
+ Printing will use <b><!-- TMPL_VAR NAME="sheets"--> sheets</b><br />
+ Currently <b><!-- TMPL_VAR NAME="labels_remaining"--> rows</b> spare
on <b>sheet <!-- TMPL_VAR NAME="sheets"--></b>
+</p>
+
+<!-- TMPL_IF NAME="resultsloop" -->
+<h2>Items</h2>
+<table>
+<tr>
+ <th>Label Number</th>
+ <th>Summary</th>
+ <th>Item Type</th>
+ <th>Delete</th>
+</tr>
+<!-- TMPL_LOOP NAME="resultsloop" -->
+<tr>
+ <td>
+ <!-- TMPL_VAR NAME="labelno" -->
+ </td>
+ <td>
+ <b> <a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR
NAME="biblionumber" -->"> <!-- TMPL_VAR NAME="title" -->:</a></b> <!-- TMPL_VAR
NAME="author" -->:
+ <!-- TMPL_VAR NAME="isbn" -->: <!-- TMPL_VAR NAME="barcode" -->
+ </td>
+ <td>
+ <!-- TMPL_VAR NAME="itemtype" -->
+ </td>
+ <td>
+ <a
href="/cgi-bin/koha/barcodes/label-manager.pl?op=delete&itemnumber=<!--
TMPL_VAR NAME="itemnumber" -->">Delete</a>
+ </td>
+</tr>
+<!-- /TMPL_LOOP -->
+</table>
+
+<p><br />
+ <a href="#" onclick="Plugin(); return false;">Add Item</a>
+ <a href="/cgi-bin/koha/barcodes/label-manager.pl?op=deleteall">Delete
All</a>
+</p>
+ <!-- TMPL_ELSE -->
+ <a href="#" onclick="Plugin(); return false;">Add Item</a>
+<!-- /TMPL_IF -->
+</form>
+</div>
+
+<script type="text/javascript">
+function Plugin() {
+
window.open('label-item-search.pl','FindABibIndex','width=500,height=400,toolbar=no,scrollbars=yes');
+}
+</script>
+
+<!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->
Index: label-print.tmpl
===================================================================
RCS file: label-print.tmpl
diff -N label-print.tmpl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ label-print.tmpl 16 Jul 2007 21:19:48 -0000 1.1.2.1
@@ -0,0 +1,181 @@
+<!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>
Index: label-templates.tmpl
===================================================================
RCS file: label-templates.tmpl
diff -N label-templates.tmpl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ label-templates.tmpl 16 Jul 2007 21:19:48 -0000 1.1.2.1
@@ -0,0 +1,45 @@
+<!-- TMPL_INCLUDE name="parameters-top.inc" -->
+<!-- TMPL_INCLUDE NAME="label-topmenu.inc" -->
+<div id="mainbloc">
+<h1>Labels - Current Templates</h1>
+
+<!-- TMPL_IF NAME="resultsloop" -->
+<h2>Templates</h2>
+<table>
+<tr>
+ <th>Template Code</th>
+ <th>Description</th>
+ <th>Edit</th>
+ <th>Delete</th>
+ <th>Active</th>
+</tr>
+<!-- TMPL_LOOP NAME="resultsloop" -->
+<tr>
+ <td>
+ <!-- TMPL_VAR NAME="tmpl_code" -->
+ </td>
+ <td>
+ <!-- TMPL_VAR NAME="tmpl_desc" -->
+ </td>
+ <td>
+ <a
href="/cgi-bin/koha/barcodes/label-edit-template.pl?tmpl_code=<!-- TMPL_VAR
NAME="tmpl_code" -->">Edit</a>
+ </td>
+ <td>
+ <a
href="/cgi-bin/koha/barcodes/label-templates.pl?op=delete&tmpl_code=<!--
TMPL_VAR NAME="tmpl_code" -->">Delete</a>
+ </td>
+ <td>
+ <!-- TMPL_IF NAME="active" -->Active<!--
/TMPL_IF -->
+ </td>
+</tr>
+<!-- /TMPL_LOOP -->
+</table>
+
+<p><br />
+
+ <a
href="/cgi-bin/koha/barcodes/label-create-template.pl?op=blank">Create New
Label Template</a>
+
+<!-- /TMPL_IF -->
+</form>
+</div>
+
+<!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->
Index: result.tmpl
===================================================================
RCS file: result.tmpl
diff -N result.tmpl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ result.tmpl 16 Jul 2007 21:19:49 -0000 1.1.2.1
@@ -0,0 +1,94 @@
+<div id="main-compact">
+ <h1>Labels - Search results</h1>
+ <div class="results">
+ <p>
+ <!-- TMPL_IF NAME=displayprev -->
+ <a href="label-item-search.pl?startfrom=<!--
TMPL_VAR NAME="startfromprev" -->&<!-- TMPL_LOOP NAME=searchdata --><!--
TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!--
/TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage"
-->&type=intranet&op=do_search">
+ <<
+ </a>
+ <!-- /TMPL_IF -->
+ <!-- TMPL_LOOP NAME=numbers -->
+ <!-- TMPL_IF NAME=highlight -->
+ <span class="current"><!-- TMPL_VAR
NAME="number" --></span>
+ <!-- TMPL_ELSE -->
+ <a
href="label-item-search.pl?startfrom=<!-- TMPL_VAR NAME=startfrom -->&<!--
TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR
name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR
NAME="resultsperpage" -->&type=intranet&op=do_search"><!-- TMPL_VAR
NAME="number" --></a>
+ <!-- /TMPL_IF -->
+ <!-- /TMPL_LOOP -->
+ <!-- TMPL_IF NAME=displaynext -->
+ <a href="label-item-search.pl?startfrom=<!--
TMPL_VAR NAME="startfromnext" -->&<!-- TMPL_LOOP NAME=searchdata --><!--
TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!--
/TMPL_LOOP -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage"
-->&type=intranet&op=do_search">>></a>
+ <!-- /TMPL_IF -->
+ </p>
+ <p>
+ <!-- TMPL_IF name=total -->
+ <b>Results <!-- TMPL_VAR name="from" --> to <!--
TMPL_VAR name="to" --> of <!-- TMPL_VAR name="total" --></b><br><br>
+ <!-- TMPL_ELSE -->
+ No results found.<br>
+ <!-- /TMPL_IF -->
+ </p>
+ </div>
+
+ <table>
+ <tr>
+ <th>Summary</th>
+ <th>Item Type</th>
+ <th>Add</th>
+ </tr>
+ <!-- TMPL_LOOP name="result" -->
+ <!-- TMPL_IF name="even" -->
+ <tr class="highlight">
+ <!-- TMPL_ELSE -->
+ <tr>
+ <!-- /TMPL_IF -->
+ <td>
+ <p><b><!-- TMPL_VAR NAME="title"
--></b></p>
+ <p><!-- TMPL_VAR NAME="author" -->
+ <!-- TMPL_IF name="publishercode" -->-
<!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
+ <!-- TMPL_IF name="place" --> ; <!--
TMPL_VAR name="place" --><!-- /TMPL_IF -->
+ <!-- TMPL_IF name="pages" --> - <!--
TMPL_VAR name="pages" --><!-- /TMPL_IF -->
+ <!-- TMPL_IF name="notes" --> : <!--
TMPL_VAR name="notes" --><!-- /TMPL_IF -->
+ <!-- TMPL_IF name="size" --> ; <!--
TMPL_VAR name="size" --><!-- /TMPL_IF -->
+ <!-- TMPL_IF name="barcode" --> ; <!--
TMPL_VAR name="barcode" --><!-- /TMPL_IF -->
+ </p>
+ </td>
+<!-- NEW -->
+ <td>
+ <!-- TMPL_VAR NAME="itemtype" -->
+ </td>
+ <td>
+ <a onclick="add_item(<!-- TMPL_VAR
NAME="itemnumber" -->); return false"
href="/cgi-bin/koha/barcodes/label-manager.pl?itemnumber=<!-- TMPL_VAR
NAME="itemnumber" -->&op=add">Add</a>
+
+<!-- /NEW -->
+ </td>
+ </tr>
+ <!-- /TMPL_LOOP -->
+ </table>
+
+ <div class="results">
+ <p>
+ <!-- TMPL_IF NAME=displayprev -->
+ <a href="label-item-search.pl?startfrom=<!-- TMPL_VAR
NAME="startfromprev" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR
NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP
-->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage"
-->&type=intranet&op=do_search"><<</a>
+ <!-- /TMPL_IF -->
+ <!-- TMPL_LOOP NAME=numbers -->
+ <!-- TMPL_IF NAME=highlight -->
+ <span class="current"><!-- TMPL_VAR
NAME="number" --></span>
+ <!-- TMPL_ELSE -->
+ <a href="label-item-search.pl?startfrom=<!--
TMPL_VAR NAME=startfrom -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR
NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP
-->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage"
-->&type=intranet&op=do_search"><!-- TMPL_VAR NAME="number" --></a>
+ <!-- /TMPL_IF -->
+ <!-- /TMPL_LOOP -->
+ <!-- TMPL_IF NAME=displaynext -->
+ <a href="label-item-search.pl?startfrom=<!-- TMPL_VAR
NAME="startfromnext" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR
NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP
-->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage"
-->&type=intranet&op=do_search">>></a>
+ <!-- /TMPL_IF -->
+ </p>
+ </div>
+</div>
+
+<script type="text/javascript">
+<!--
+
+function add_item(itemnumber){
+ var myurl = "label-manager.pl?op=add&itemnumber="+itemnumber+"";
+ window.opener.location.href = myurl;
+}
+
+//-->
+</script>
Index: search.tmpl
===================================================================
RCS file: search.tmpl
diff -N search.tmpl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ search.tmpl 16 Jul 2007 21:19:49 -0000 1.1.2.1
@@ -0,0 +1,52 @@
+<div id="main-compact">
+
+<h1>Labels - Catalogue Item Search</h1>
+
+<form name="f" method="post">
+ <input type="hidden" name="op" value="do_search" />
+ <input type="hidden" name="type" value="intranet" />
+ <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR
NAME="nbstatements" -->" />
+
+ <table>
+ <tr><th scope="row">
+ <label for="title">Title</label>
+ </th>
+ <td>
+ <input type="hidden" name="marclist" value="biblio.title" />
+ <input type="hidden" name="and_or" value="and" />
+ <input type="hidden" name="excluding" value="" />
+ <input type="hidden" name="operator" value="contains" />
+ <input type="text" id="title" name="value" />
+ </td></tr>
+ <tr><th scope="row">
+ <label for="issn">ISSN</label>
+ </th>
+ <td>
+ <input type="hidden" name="marclist" value="biblioitems.issn" />
+ <input type="hidden" name="and_or" value="and" />
+ <input type="hidden" name="excluding" value="" />
+ <input type="hidden" name="operator" value="=" />
+ <input type="text" name="value" id="issn" />
+ </td></tr>
+ <tr><th scope="row">
+ <label for="resultsperpage">Results per page:</label>
+ </th>
+ <td>
+ <select align="right" name="resultsperpage" id="resultsperpage"
size="1">
+ <option value="20">20</option>
+ <option value="50">50</option>
+ <option value="100">100</option>
+ </select>
+ <label for="orderby">Ordered by</label>
+ <select name="orderby" id="orderby" size="1">
+ <option value="biblio.title">Title</option>
+ <option value="biblio.author">Author</option>
+ <option value="biblioitems.dewey">Dewey</option>
+ <option value="biblioitems.publicationyear">Publication
Year</option>
+ <option
value="biblioitems.publishercode">Publisher</option>
+ </select>
+ </td></tr>
+ </table>
+<p> <input type="submit" value="Start search" class="submit" /></p>
+</form>
+</div>