1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › Patron cards › Patron card printing/exporting</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
7 window.location = "[% referer %]";
11 <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
13 <body id="pcard_print" class="tools pcard">
14 <div id="custom-doc" class="yui-t2">
18 <h3>Click on the following link(s) to download the exported batch(es).</h3>
20 [% FOREACH batche IN batches %]
21 [% IF ( batche.label_ids ) %]
22 <legend>[% batche.card_count %] Single patron cards</legend>
24 <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script %]?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %][% batche.label_ids %]">label_single_[% batche.card_count %].pdf</a>
26 [% ELSIF ( batche.borrower_numbers ) %]
27 <legend>[% batche.card_count %] Single Patron Cards</legend>
29 <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script %]?template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %][% batche.borrower_numbers %]">label_single_[% batche.card_count %].pdf</a>
32 <legend>Card batch number [% batche.batch_id %]</legend>
34 <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %]">label_batch_[% batche.batch_id %].pdf</a>
40 <fieldset class="action">
41 <input type="button" class="btn btn-default submit" id="done" onclick="parent.parent.GB_hide();" value="Done" />
44 [% ELSIF ( patronlist_id && template_id && layout_id ) %]
45 <h3>Click on the link to download the patron cards from the patron list.</h3>
47 <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?patronlist_id=[% patronlist_id %]&template_id=[% template_id %]&layout_id=[% layout_id %]&start_card=[% start_card %]">label_patronlist_[% patronlist_id %].pdf</a>
51 [% IF ( label_ids ) %]
52 [% IF ( card_count == 1 ) %]Exporting [% card_count %] patron card[% ELSE %]Exporting [% card_count %] patron cards[% END %]
53 [% ELSIF ( borrower_numbers ) %]
54 [% IF ( borrower_count == 1 ) %]Exporting [% borrower_count %] patron card[% ELSE %]Exporting [% borrower_count %] patron cards[% END %]
55 [% ELSIF ( patronlist_id ) %] Exporting from patron list
57 [% IF ( multi_batch_count == 1 ) %][% multi_batch_count %] batch to export[% ELSE %][% multi_batch_count %] batches to export[% END %]
60 <form name="exporting" method="post" action="/cgi-bin/koha/patroncards/print.pl">
61 <input type="hidden" name="op" value="export" />
62 <input type="hidden" name="referer" value="[% referer %]" />
63 [% FOREACH batch_id IN batch_ids %]
64 <input type="hidden" name="batch_id" value="[% batch_id.batch_id %]" />
66 [% FOREACH label_id IN label_ids %]
67 <input type="hidden" name="label_id" value="[% label_id.label_id %]" />
69 [% FOREACH borrower_number IN borrower_numbers %]
70 <input type="hidden" name="borrower_number" value="[% borrower_number.borrower_number %]" />
72 [% IF (patronlist_id) %] <input type="hidden" name="patronlist_id" value="[% patronlist_id %]" /> [% END %]
73 <fieldset class="rows">
76 <label style="width:9em" for="template_id">Select a template to be applied: </label>
77 <select name="template_id" id="template_id">
78 [% FOREACH template IN templates %]
79 <option value="[% template.template_id %]">[% template.template_code %]</option>
84 <label style="width:9em" for="layout_id">Select a layout to be applied: </label>
85 <select name="layout_id" id="layout_id">
86 [% FOREACH layout IN layouts %]
87 <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>
92 <label style="width:9em" for="start_card">Enter starting card position: </label>
93 <input type="text" size="5" id="start_card" name="start_card" class="focus" title="Starting card number" value="1" />
97 <fieldset class="action">
98 <input type="submit" class="btn btn-default submit" value="Export" />
99 <a href="#" class="cancel" id="done" onclick="parent.parent.GB_hide();">Cancel</a>
104 [% INCLUDE 'popup-bottom.inc' %]