| 
      
            Lines 1-7
          
      
      
        Link Here
      
     | 
  
        
          | 1 | 
              [% INCLUDE 'doc-head-open.inc' %]  | 
          1 | 
              [% INCLUDE 'doc-head-open.inc' %]  | 
        
        
          | 2 | 
              <title>Koha › Tools › Labels › Label Printing/Exporting</title>  | 
          2 | 
              <title>Koha › Tools › Labels › Label Printing/Exporting</title>  | 
        
        
          | 3 | 
              [% INCLUDE 'doc-head-close.inc' %]  | 
          3 | 
              [% INCLUDE 'doc-head-close.inc' %]  | 
        
          
            
              | 4 | 
                  <script type="text/JavaScript" language="JavaScript">  | 
              4 | 
                  <script type="text/javascript">  | 
            
        
          | 5 | 
                  //<![CDATA[  | 
          5 | 
                  //<![CDATA[  | 
        
        
          | 6 | 
                      function Done() { | 
          6 | 
                      function Done() { | 
        
        
          | 7 | 
                          window.location = "[% referer %]";  | 
          7 | 
                          window.location = "[% referer %]";  | 
        
  
    | 
      
            Lines 16-110
          
      
      
        Link Here
      
     | 
  
        
          | 16 | 
                  <div id="bd">  | 
          16 | 
                  <div id="bd">  | 
        
        
          | 17 | 
                      [% IF ( batches ) %]  | 
          17 | 
                      [% IF ( batches ) %]  | 
        
        
          | 18 | 
                      <form>  | 
          18 | 
                      <form>  | 
        
          
            
              | 19 | 
                              <div align="center">  | 
              19 | 
                              <h3>Click on the following links to download the exported batch(es).</h3>  | 
            
            
              | 20 | 
                                  <div class="message">  | 
               | 
               | 
            
            
              | 21 | 
                                      <b>Click on the following link(s) to download the exported batch(es).</b>  | 
            
            
              | 22 | 
                                  </div>  | 
            
            
              | 23 | 
                              </div>  | 
            
            
              | 24 | 
                              <fieldset class="rows">  | 
            
            
              | 25 | 
                                  <table class="borderless">  | 
            
        
          | 26 | 
                                  [% FOREACH batche IN batches %]  | 
          20 | 
                                  [% FOREACH batche IN batches %]  | 
        
          
            
              | 27 | 
                                      <tr>  | 
              21 | 
                                      <fieldset>  | 
            
        
          | 28 | 
                                      [% IF ( batche.label_ids ) %]  | 
          22 | 
                                      [% IF ( batche.label_ids ) %]  | 
        
          
            
              | 29 | 
                                          <td class="borderless">  | 
              23 | 
                                              <legend>[% IF ( batche.label_count == 1 ) %][% batche.label_count %] single label[% ELSE %][% batche.label_count %] single labels[% END %]</legend>  | 
            
            
              | 30 | 
                                              [% batche.label_count %] Single Labels  | 
              24 | 
                                                  <p><a class="document pdf" href="/cgi-bin/koha/labels/[% batche.create_script %]?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %][% batche.label_ids %]">Download as PDF</a></p>  | 
            
            
              | 31 | 
                                          </td>  | 
              25 | 
               | 
            
            
              | 32 | 
                                          <td class="borderless">  | 
              26 | 
                                                  <p><a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.label_ids %]">Download as CSV</a></p>  | 
            
            
              | 33 | 
                                              <h1 id="pdf">  | 
              27 | 
               | 
            
            
              | 34 | 
                                                  <a href="/cgi-bin/koha/labels/[% batche.create_script %]?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %][% batche.label_ids %]">label_single_[% batche.label_count %].pdf</a>  | 
              28 | 
                                                  <p><a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.label_ids %]">Download as XML</a></p>  | 
            
            
              | 35 | 
                                              </h1>  | 
               | 
               | 
            
            
              | 36 | 
                                          </td>  | 
            
            
              | 37 | 
                                          <td class="borderless">  | 
            
            
              | 38 | 
                                              <h1 id="csv">  | 
            
            
              | 39 | 
                                                  <a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.label_ids %]">label_single_[% batche.label_count %].csv</a>  | 
            
            
              | 40 | 
                                              </h1>  | 
            
            
              | 41 | 
                                          </td>  | 
            
            
              | 42 | 
                                          <td class="borderless">  | 
            
            
              | 43 | 
                                              <h1 id="xml">  | 
            
            
              | 44 | 
                                                  <a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.label_ids %]">label_single_[% batche.label_count %].xml</a>  | 
            
            
              | 45 | 
                                              </h1>  | 
            
            
              | 46 | 
                                          </td>  | 
            
        
          | 47 | 
                                      [% ELSIF ( batche.item_numbers ) %]  | 
          29 | 
                                      [% ELSIF ( batche.item_numbers ) %]  | 
        
          
            
              | 48 | 
                                          <td class="borderless">  | 
              30 | 
                                          <legend>[% IF ( batche.label_count == 1 ) %][% batche.label_count %] single label[% ELSE %][% batche.label_count %] single labels[% END %]</legend>  | 
            
            
              | 49 | 
                                              [% batche.label_count %] Single Labels  | 
              31 | 
                                                  <p><a class="document pdf" href="/cgi-bin/koha/labels/[% batche.create_script %]?template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %][% batche.item_numbers %]">Download as PDF</a></p>  | 
            
            
              | 50 | 
                                          </td>  | 
              32 | 
               | 
            
            
              | 51 | 
                                          <td class="borderless">  | 
              33 | 
                                                  <p><a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.item_numbers %]">Download as CSV</a></p>  | 
            
            
              | 52 | 
                                              <h1 id="pdf">  | 
              34 | 
               | 
            
            
              | 53 | 
                                                  <a href="/cgi-bin/koha/labels/[% batche.create_script %]?template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %][% batche.item_numbers %]">label_single_[% batche.label_count %].pdf</a>  | 
              35 | 
                                                  <p><a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.item_numbers %]">Download as XML</a></p>  | 
            
            
              | 54 | 
                                              </h1>  | 
               | 
               | 
            
            
              | 55 | 
                                          </td>  | 
            
            
              | 56 | 
                                          <td class="borderless">  | 
            
            
              | 57 | 
                                              <h1 id="csv">  | 
            
            
              | 58 | 
                                                  <a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.item_numbers %]">label_single_[% batche.label_count %].csv</a>  | 
            
            
              | 59 | 
                                              </h1>  | 
            
            
              | 60 | 
                                          </td>  | 
            
            
              | 61 | 
                                          <td class="borderless">  | 
            
            
              | 62 | 
                                              <h1 id="xml">  | 
            
            
              | 63 | 
                                                  <a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.item_numbers %]">label_single_[% batche.label_count %].xml</a>  | 
            
            
              | 64 | 
                                              </h1>  | 
            
            
              | 65 | 
                                          </td>  | 
            
        
          | 66 | 
                                      [% ELSE %]  | 
          36 | 
                                      [% ELSE %]  | 
        
          
            
              | 67 | 
                                          <td class="borderless">  | 
              37 | 
                                          <legend>Label Batch Number [% batche.batch_id %]</legend>  | 
            
            
              | 68 | 
                                              Label Batch Number [% batche.batch_id %]  | 
              38 | 
                                                  <p><a class="document pdf" href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %]">Download as PDF</a>  | 
            
            
              | 69 | 
                                          </td>  | 
              39 | 
                                              </p>  | 
            
            
              | 70 | 
                                          <td class="borderless">  | 
              40 | 
                                              <p>  | 
            
            
              | 71 | 
                                              <h1 id="pdf">  | 
              41 | 
                                                  <a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]">Download as CSV</a>  | 
            
            
              | 72 | 
                                                  <a href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %]">label_batch_[% batche.batch_id %].pdf</a>  | 
              42 | 
                                              </p>  | 
            
            
              | 73 | 
                                              </h1>  | 
              43 | 
                                              <p>  | 
            
            
              | 74 | 
                                          </td>  | 
              44 | 
                                                  <a class="document xml" href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]">Download as XML</a></p>  | 
            
            
              | 75 | 
                                          <td class="borderless">  | 
               | 
               | 
            
            
              | 76 | 
                                              <h1 id="csv">  | 
            
            
              | 77 | 
                                                  <a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]">label_batch_[% batche.batch_id %].csv</a>  | 
            
            
              | 78 | 
                                              </h1>  | 
            
            
              | 79 | 
                                          </td>  | 
            
            
              | 80 | 
                                          <td class="borderless">  | 
            
            
              | 81 | 
                                              <h1 id="xml">  | 
            
            
              | 82 | 
                                                  <a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]">label_batch_[% batche.batch_id %].xml</a>  | 
            
            
              | 83 | 
                                              </h1>  | 
            
            
              | 84 | 
                                          </td>  | 
            
        
          | 85 | 
                                      [% END %]  | 
          45 | 
                                      [% END %]  | 
        
          
            
              | 86 | 
                                      </tr>  | 
              46 | 
                                      </fieldset>  | 
            
        
          | 87 | 
                                  [% END %]  | 
          47 | 
                                  [% END %]  | 
        
            
              | 88 | 
                                  </table>  | 
               | 
               | 
            
            
              | 89 | 
                              </fieldset>  | 
            
        
          | 90 | 
                          <fieldset class="action">  | 
          48 | 
                          <fieldset class="action">  | 
        
          
            
              | 91 | 
                                  <div style="margin: 10px 10px 10px 0px;">  | 
              49 | 
                                  <input type="button" id="done" onclick="parent.parent.GB_hide();" class="submit" value="Done" />  | 
            
            
              | 92 | 
                                      <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="done" onclick="parent.parent.GB_hide();" value="Done"></span></span>  | 
               | 
               | 
            
            
              | 93 | 
                                  </div>  | 
            
        
          | 94 | 
                          </fieldset>  | 
          50 | 
                          </fieldset>  | 
        
        
          | 95 | 
                      </form>  | 
          51 | 
                      </form>  | 
        
        
          | 96 | 
                      [% ELSE %]  | 
          52 | 
                      [% ELSE %]  | 
        
          
            
              | 97 | 
                          <div align="center">  | 
              53 | 
                          <h3>  | 
            
            
              | 98 | 
                              <div class="message">  | 
              54 | 
                              [% IF ( label_ids ) %]  | 
            
            
              | 99 | 
                                  [% IF ( label_ids ) %]  | 
              55 | 
                                  [% IF ( label_count == 1 ) %]Exporting [% label_count %] label[% ELSE %]Exporting [% label_count %] labels[% END %]  | 
            
            
              | 100 | 
                                  <b>Exporting [% label_count %] label(s).</b>  | 
              56 | 
                              [% ELSIF ( item_numbers ) %]  | 
            
            
              | 101 | 
                                  [% ELSIF ( item_numbers ) %]  | 
              57 | 
                                  [% IF ( item_count == 1 ) %]Exporting [% item_count %] label[% ELSE %]Exporting [% item_count %] labels[% END %]  | 
            
            
              | 102 | 
                                  <b>Exporting [% item_count %] label(s).</b>  | 
              58 | 
                              [% ELSE %]  | 
            
            
              | 103 | 
                                  [% ELSE %]  | 
              59 | 
                                  [% IF ( multi_batch_count == 1 ) %][% multi_batch_count %] batch to export[% ELSE %][% multi_batch_count %] batches to export[% END %]  | 
            
            
              | 104 | 
                                  <b>[% multi_batch_count %] batch(es) to export.</b>  | 
              60 | 
                              [% END %]  | 
            
            
              | 105 | 
                                  [% END %]  | 
              61 | 
                          </h3>  | 
            
            
              | 106 | 
                              </div>  | 
               | 
               | 
            
            
              | 107 | 
                          </div>  | 
            
        
          | 108 | 
                      <form name="exporting" method="post" action="/cgi-bin/koha/labels/label-print.pl">  | 
          62 | 
                      <form name="exporting" method="post" action="/cgi-bin/koha/labels/label-print.pl">  | 
        
        
          | 109 | 
                          <input type="hidden" name="op" value="export" />  | 
          63 | 
                          <input type="hidden" name="op" value="export" />  | 
        
        
          | 110 | 
                          <input type="hidden" name="referer" value="[% referer %]" />  | 
          64 | 
                          <input type="hidden" name="referer" value="[% referer %]" />  | 
        
  
    | 
      
            Lines 118-165
          
      
      
        Link Here
      
     | 
  
        
          | 118 | 
                              <input type="hidden" name="item_number" value="[% item_number.item_number %]" />  | 
          72 | 
                              <input type="hidden" name="item_number" value="[% item_number.item_number %]" />  | 
        
        
          | 119 | 
                          [% END %]  | 
          73 | 
                          [% END %]  | 
        
        
          | 120 | 
                          <fieldset class="rows">  | 
          74 | 
                          <fieldset class="rows">  | 
        
          
            
              | 121 | 
                                  <table class="borderless">  | 
              75 | 
                                  <ol>  | 
            
            
              | 122 | 
                                      <tr>  | 
              76 | 
                                      <li>  | 
            
            
              | 123 | 
                                          <td class="borderless">  | 
              77 | 
                                          <label for="template_id" style="width:9em">Select a template to be applied: </label>  | 
            
            
              | 124 | 
                                              <label for="template">Select a template to be applied: </label>  | 
              78 | 
                                          <select name="template_id" id="template_id">  | 
            
            
              | 125 | 
                                          </td>  | 
               | 
               | 
            
            
              | 126 | 
                                          <td class="borderless">  | 
            
            
              | 127 | 
                                              <select name="template_id">  | 
            
        
          | 128 | 
                                              [% FOREACH template IN templates %]  | 
          79 | 
                                              [% FOREACH template IN templates %]  | 
        
        
          | 129 | 
                                              <option value="[% template.template_id %]">[% template.template_code %]</option>  | 
          80 | 
                                              <option value="[% template.template_id %]">[% template.template_code %]</option>  | 
        
        
          | 130 | 
                                              [% END %]  | 
          81 | 
                                              [% END %]  | 
        
        
          | 131 | 
                                          </select>  | 
          82 | 
                                          </select>  | 
        
          
            
              | 132 | 
                                          </td>  | 
              83 | 
                                      </li>  | 
            
            
              | 133 | 
                                      </tr>  | 
              84 | 
                                      <li>  | 
            
            
              | 134 | 
                                      <tr>  | 
              85 | 
                                          <label for="layout_id" style="width:9em">Select a layout to be applied: </label>  | 
            
            
              | 135 | 
                                          <td class="borderless">  | 
              86 | 
                                          <select name="layout_id" id="layout_id">  | 
            
            
              | 136 | 
                                              <label for="layout">Select a layout to be applied: </label>  | 
               | 
               | 
            
            
              | 137 | 
                                          </td>  | 
            
            
              | 138 | 
                                          <td class="borderless">  | 
            
            
              | 139 | 
                                              <select name="layout_id">  | 
            
        
          | 140 | 
                                              [% FOREACH layout IN layouts %]  | 
          87 | 
                                              [% FOREACH layout IN layouts %]  | 
        
        
          | 141 | 
                                              <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>  | 
          88 | 
                                              <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>  | 
        
        
          | 142 | 
                                              [% END %]  | 
          89 | 
                                              [% END %]  | 
        
        
          | 143 | 
                                          </select>  | 
          90 | 
                                          </select>  | 
        
          
            
              | 144 | 
                                          </td>  | 
              91 | 
                                      </li>  | 
            
            
              | 145 | 
                                      </tr>  | 
              92 | 
                                      <li>  | 
            
            
              | 146 | 
                                      <tr>  | 
              93 | 
                                          <label for="start_label" style="width:9em">Enter starting label number: </label>  | 
            
            
              | 147 | 
                                          <td class="borderless">  | 
              94 | 
                                          <input type="text" size="5" id="start_label" name="start_label" class="focus" title="Starting label number" value="1"/>  | 
            
            
              | 148 | 
                                              <label for="start_label">Enter starting label number: </label>  | 
              95 | 
                                      </li>  | 
            
            
              | 149 | 
                                          </td>  | 
              96 | 
                                  </ol>  | 
            
            
              | 150 | 
                                          <td class="borderless">  | 
               | 
               | 
            
            
              | 151 | 
                                              <input type="text" size="5" id="start_label" name="start_label" class="focus" title="Starting label number" value="1"/>  | 
            
            
              | 152 | 
                                          </td>  | 
            
            
              | 153 | 
                                      </tr>  | 
            
            
              | 154 | 
                                  </table>  | 
            
        
          | 155 | 
                          </fieldset>  | 
          97 | 
                          </fieldset>  | 
        
        
          | 156 | 
                          <fieldset class="action">  | 
          98 | 
                          <fieldset class="action">  | 
        
          
            
              | 157 | 
                                  <div style="margin: 10px 10px 10px 0px;">  | 
              99 | 
                                  <input type="submit" class="submit" value="Export" />  | 
            
            
              | 158 | 
                                      <span class="yui-button yui-link-button"><span class="first-child"><input type="submit" value="Export" /></span></span>  | 
              100 | 
                                  <a href="#" class="cancel" id="done" onclick="parent.parent.GB_hide();return false;">Cancel</a>  | 
            
            
              | 159 | 
                                      <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="done" onclick="parent.parent.GB_hide();" value="Cancel"></span></span>  | 
               | 
               | 
            
            
              | 160 | 
                                  </div>  | 
            
        
          | 161 | 
                          </fieldset>  | 
          101 | 
                          </fieldset>  | 
        
        
          | 162 | 
                      </form>  | 
          102 | 
                      </form>  | 
        
        
          | 163 | 
                      [% END %]  | 
          103 | 
                      [% END %]  | 
        
        
          | 164 | 
                  </div>  | 
          104 | 
                  </div>  | 
        
          
            
              | 165 | 
                  [% INCLUDE 'intranet-bottom.inc' %]  | 
              105 | 
              [% INCLUDE 'popup-bottom.inc' %]  |