56b87af4db
Make any MARC data available to labels module; Also add a csv output option, allowing export of relevant biblio data do a 3rd party label layout application. Note: This patch REQUIRES a forthcoming updatedatabase patch ! Signed-off-by: Joshua Ferraro <jmf@liblime.com>
171 lines
7.6 KiB
Cheetah
171 lines
7.6 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha › Tools › Labels › <!-- TMPL_IF EXPR="(type eq 'labels')" -->Label Batch<!-- TMPL_ELSIF EXPR="(type eq 'patroncards')" -->Patron Card Batch<!-- /TMPL_IF --></title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
</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/tools/tools-home.pl">Tools</a> › <a href="/cgi-bin/koha/labels/label-home.pl">Labels</a> › <!-- TMPL_IF EXPR="(type eq 'labels')" -->Label Batch<!-- TMPL_ELSIF EXPR="(type eq 'patroncards')" -->Patron Card Batch<!-- /TMPL_IF --></div>
|
|
<div id="doc3" class="yui-t2">
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<!-- TMPL_IF NAME="message" -->
|
|
<!-- TMPL_LOOP NAME="message_loop" -->
|
|
<div class="dialog message"><!-- TMPL_VAR NAME="message_text" --></div>
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="batch_id" -->
|
|
<!-- TMPL_INCLUDE NAME="tools-labels-batches-toolbar.inc" -->
|
|
<!-- TMPL_IF EXPR="(type eq 'labels')" -->
|
|
<div class="yui-g">
|
|
<div class="yui-u first">
|
|
<h2>Items to be Printed for Batch <!-- TMPL_VAR NAME="batch_id" --> (<!-- TMPL_VAR NAME="batch_count" --> items)</h2>
|
|
<table>
|
|
<tr>
|
|
<th>Label Num.</th>
|
|
<th>Summary</th>
|
|
<th>Item Type</th>
|
|
<th>Barcode</th>
|
|
<th>Delete</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="resultsloop" -->
|
|
<tr>
|
|
<td><!-- TMPL_VAR NAME="labelno" --></td>
|
|
<td><b><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"> <!-- TMPL_VAR NAME="title" --></a></b> : <!-- TMPL_VAR NAME="author" --> : <!-- TMPL_VAR NAME="isbn" --></td>
|
|
<td><!-- TMPL_VAR NAME="itemtype" --></td>
|
|
<td><!-- TMPL_VAR NAME="barcode" --></td>
|
|
<td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete&labelid=<!-- TMPL_VAR NAME="labelid" -->&batch_id=<!-- TMPL_VAR NAME="batch_id" -->&type=labels">Delete</a></td>
|
|
<!-- FIXME: should use POST to change server state, not GET -->
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
</div>
|
|
<!-- TMPL_ELSIF EXPR="(type eq 'patroncards')" -->
|
|
<div class="yui-g">
|
|
<div class="yui-u first">
|
|
<h2>Patron Cards to be Printed for Batch <!-- TMPL_VAR NAME="batch_id" --> (<!-- TMPL_VAR NAME="batch_count" --> items)</h2>
|
|
<table>
|
|
<tr>
|
|
<th>Card<br />Num.</th>
|
|
<th>Patron Name</th>
|
|
<th>Borrower Number</th>
|
|
<th>Card Number</th>
|
|
<th>Delete</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="resultsloop" -->
|
|
<tr>
|
|
<td><!-- TMPL_VAR NAME="cardno" --></td>
|
|
<td><b><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"> <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a></b></td>
|
|
<td><!-- TMPL_VAR NAME="borrowernumber" --></td>
|
|
<td><!-- TMPL_VAR NAME="cardnumber" --></td>
|
|
<td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete&cardid=<!-- TMPL_VAR NAME="cardid" -->&batch_id=<!-- TMPL_VAR NAME="batch_id" -->&type=patroncards">Remove</a></td>
|
|
<!-- FIXME: should use POST to change server state, not GET -->
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
</div>
|
|
<!-- /TMPL_IF --><!-- /type -->
|
|
<div class="yui-u">
|
|
<!-- TMPL_INCLUDE NAME="label-status.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
|
|
<!-- TMPL_IF EXPR="(type eq 'labels')" -->
|
|
<!-- TMPL_IF NAME="batches" -->
|
|
<div class="yui-g">
|
|
<div class="yui-u first">
|
|
<h2>Label Batches</h2>
|
|
<table>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>#</th>
|
|
<th>Edit</th>
|
|
<th>Delete</th>
|
|
<th>Print</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="batches" -->
|
|
<tr>
|
|
<td><!-- TMPL_VAR NAME="batch_id" --></td>
|
|
<td><!-- TMPL_VAR NAME="num" --> records</td>
|
|
<td><a href="/cgi-bin/koha/labels/label-manager.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&type=labels">Edit</a></td>
|
|
<td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&batch_id=<!-- TMPL_VAR NAME="batch_id" -->&type=labels">Delete</a><!-- FIXME: should use POST to change server state, not GET --></td>
|
|
<td><a style="float: left;" href="/cgi-bin/koha/labels/label-print-<!-- TMPL_VAR NAME="outputformat" -->.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&type=labels">Generate and download <!-- TMPL_VAR NAME="batch_id" --></a></td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
</div>
|
|
<div class="yui-u">
|
|
<!-- TMPL_INCLUDE NAME="label-status.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<div class="yui-g">
|
|
<div class="yui-u first">
|
|
<fieldset class="brief">
|
|
<legend>No Label Batches Currently Defined</legend>
|
|
<div class="hint">
|
|
Select "New Label Batch" to create a Label batch.
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
<div class="yui-u">
|
|
<!-- TMPL_INCLUDE NAME="label-status.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- /TMPL_IF --><!-- /batches -->
|
|
<!-- TMPL_ELSIF EXPR="(type eq 'patroncards')" -->
|
|
<!-- TMPL_IF NAME="batches" -->
|
|
<div class="yui-g">
|
|
<div class="yui-u first">
|
|
<h2>Patron Card Batches</h2>
|
|
<table>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>#</th>
|
|
<th>Edit</th>
|
|
<th>Delete</th>
|
|
<th>Print</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="batches" -->
|
|
<tr>
|
|
<td><!-- TMPL_VAR NAME="batch_id" --></td>
|
|
<td><!-- TMPL_VAR NAME="num" --> records</td>
|
|
<td><a href="/cgi-bin/koha/labels/label-manager.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&type=patroncards">Edit</a></td>
|
|
<td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&batch_id=<!-- TMPL_VAR NAME="batch_id" -->&type=patroncards">Delete</a><!-- FIXME: should use POST to change server state, not GET --></td>
|
|
<td><a style="float: left;" href="/cgi-bin/koha/labels/label-print-<!-- TMPL_VAR NAME="outputformat" -->.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&type=patroncards">Generate and download <!-- TMPL_VAR NAME="batch_id" --></a></td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
</div>
|
|
<div class="yui-u">
|
|
<!-- TMPL_INCLUDE NAME="label-status.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<div class="yui-g">
|
|
<div class="yui-u first">
|
|
<fieldset class="brief">
|
|
<legend>No Patron Card Batches Currently Defined</legend>
|
|
<div class="hint">
|
|
Select "New Patron Card Batch" to create a Label batch.
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
<div class="yui-u">
|
|
<!-- TMPL_INCLUDE NAME="label-status.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- /TMPL_IF --><!-- /batches -->
|
|
<!-- /TMPL_IF --><!-- /type -->
|
|
<!-- /TMPL_IF --><!-- batch_id -->
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|