[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/npl/en/barcodes barcodes.tmpl,1.1,1.1.2.1 printerConfig.tmpl,1.1,1.1.2.1

Owen Leonard oleonard at users.sourceforge.net
Sat Sep 3 15:48:57 CEST 2005


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/barcodes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2873/koha-tmpl/intranet-tmpl/npl/en/barcodes

Modified Files:
      Tag: rel_2_2
	barcodes.tmpl printerConfig.tmpl 
Log Message:
Overhaul of barcodes generation interface for NPL.  Not it should actually work.

Index: barcodes.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/barcodes/barcodes.tmpl,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -r1.1 -r1.1.2.1
*** barcodes.tmpl	4 Jan 2005 22:32:26 -0000	1.1
--- barcodes.tmpl	3 Sep 2005 13:48:55 -0000	1.1.2.1
***************
*** 1,95 ****
! <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Catalog: Advanced Search<!-- TMPL_INCLUDE NAME="doc-head-barcodes-close.inc" -->
  <!-- TMPL_INCLUDE NAME="masthead.inc" -->
  <!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
  <div id="main">
  
! <!-- ******************************************************************************************************** -->
! <!-- ******                              END OF ADD COUNTRY CODE PANEL                                 ****** -->
! <!-- ******************************************************************************************************** -->
  
- <div class="data">
  	<h1>Barcodes Generator</h1>
! 	<ul>
  		<li>Select a range of inventary codes. You can choose a continuous range or individual inventory codes</li>
  		<li>Select the standard type to generate barcodes.</li>
  		<li>Define the page size for output the PDF.</li>
  		<li>Depending on page size, Koha will show you how the page is arranged
! 		    for each barcode. You can define wich point to start printing the page.
  		</li>
! 	</ul>
  
  	<form id="formulario" method="POST" action="<!-- TMPL_VAR NAME="SCRIPT_NAME" -->" name="form1" onsubmit="return checkFields(this);" target="_blank">
! 		
! 		<table class="myTable" border="1">
! 		<caption>Generate barcodes from inventory codes</caption>
! 			<!-- TMPL_IF NAME="ERROR" -->
! 			<tr>
! 				<td colspan="2">
! 					<p class="error">Can't find inventory codes in that range. Please try again.</p>
! 				</td>
! 			</tr>
! 			<!-- /TMPL_IF -->
!   			<tr>
! 				<td><label for="rangeType">Type of Interval:</label> <!-- TMPL_VAR NAME="RANGE_TYPE" --></td>
! 				<td> 
! 					<div id="continuous" class="panel" style="display:inline">
! 						<table class="ranges">
! 							<tr>
! 					   			<td>From:</td> 
! 								<td><input id="from" type="text" name="from" size="20"></td>
! 							</tr>
! 							<tr>
! 					   			<td>To:</td>
! 								<td><input id="to" type="text" name="to" size="20"></td>
! 							</tr>
! 						</table>
! 					</div> 
!  				    <div id="individuals" class="panel" style="display:none">
! 						<table class="ranges">
! 							<tr>
! 								<td width="5%">
! 									Inventory Code <BR>
! 									<input id="inventaryCode" type="text" name="inventaryCode" size="20">
! 								<td>
! 								<td>	
! 									<a href="#" onclick="addItem(); return false;">&lt;&lt;</a><br>
! 									<a href="#" onclick="removeItem(); return false;">&gt;&gt;</a>
! 								</td>
! 								<td width="95%">		   
! 									<select id="inventaryList" size="5" style="width:150px">
! 									</select>
! 									<input type="hidden" id="individualCodes" name="individualCodes">																						
! 								</td>
! 							</tr>
! 						</table>	
! 					</div>						
! 				</td> <!-- Fin Rangos -->
! 			</tr>
! 			<tr> 
! 				<td><label for="numbersystem">Country Code:</label> <div style="display:inline">
! 									<a href="#" onclick="addCountryCode(); return false;">+</a>
! 									<!-- TMPL_VAR NAME="NUMBER_SYSTEM" -->
! 									<div class="countryPanel" style="position:absolute" id="addCountryCode">
!  	<form action="/cgi-bin/koha/barcodes/barcodes.pl" method="post" style="display:inline">
! 		<input type="hidden" name="addCode" value="1">
! 		<table>
! 			<tr><th colspan="2">Add a new Country Code</th></tr>
! 			<tr><td><label for="countryName">Country Name:</label></td><td><input type="text" size="10" id="countryName" name="countryName" /></td></tr>
! 			<tr><td><label for="countryCode">Country Code:</label></td><td><input type="text" size="3" id="countryCode" name="countryCode" /></td></tr>
! 			<tr>
! 				<td><input type="submit" name="submit" id="submit" value="Save Code" class="submit" /></td>
! 	<td><input type="button" name="cancel" id="cancel" value="Cancel" onclick="document.getElementById('addCountryCode').style.display = 'none'" class="cancel" /></td></tr>
! 		</table>
! 	</form>
  </div>
- 								</div>
- 				</td>
- 				<td><label for="pageType">Page Size</label> <input type="text" name="pageType" id="pageType" readonly value="<!-- TMPL_VAR NAME="PAGES" -->" size="10"> <a href="/cgi-bin/koha/barcodes/printerConfig.pl">[Go to Printer Configuration]</a></td>
- 			</tr>
- 			<tr> 
- 				<td colspan="2"><label for="text_under_label">Text under label: </label>	<input type="text" name="text_under_label" id="text_under_label" size="40" value="<!-- TMPL_VAR name="text_under_label -->"> <p>If this field is empty, author and title will be used instead</p></td>
- 			</tr></table>
  
! 						    	<table style="width:50%">
  						<tr>
  							<th colspan="<!-- TMPL_VAR NAME="COL_SPAN" -->">Label number to start printing</th>
--- 1,63 ----
! <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Barcodes Generator<!-- TMPL_INCLUDE NAME="doc-head-barcodes-close.inc" -->
  <!-- TMPL_INCLUDE NAME="masthead.inc" -->
  <!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
  <div id="main">
  
! <!--   START OF ADD COUNTRY CODE PANEL  -->
! <div class="countryPanel" id="addCountryCode">
!  	<form action="/cgi-bin/koha/barcodes/barcodes.pl" method="post" style="display:inline">
! 		<input type="hidden" name="addCode" value="1" />
! <h4>Add a new Country Code</h4>
! <ul>
! 	<li><label for="countryName">Country Name:</label> <input type="text" size="10" id="countryName" name="countryName" /></li>
! 	<li><label for="countryCode">Country Code:</label> <input type="text" size="3" id="countryCode" name="countryCode" /></li>
! </ul>
! <p><input type="submit" name="submit" id="submit" class="submit" value="Save Code"/>
! <input type="button" name="cancel" id="cancel" class="cancel" value="Cancel" onclick="document.getElementById('addCountryCode').style.display = 'none'" /></p>
! 	</form>
! </div>
! 
! <!--   END OF ADD COUNTRY CODE PANEL  -->
  
  	<h1>Barcodes Generator</h1>
! 	<h3>Generate barcodes from inventory codes</h3>
! 	<div class="help"><ul class="notes">
  		<li>Select a range of inventary codes. You can choose a continuous range or individual inventory codes</li>
  		<li>Select the standard type to generate barcodes.</li>
  		<li>Define the page size for output the PDF.</li>
  		<li>Depending on page size, Koha will show you how the page is arranged
! 		    for each barcode. You can define which point to start printing the page.
  		</li>
! 	</ul></div>
! 	
! <!-- TMPL_IF NAME="ERROR" -->Can't find inventory codes in that range. Please try again.<!-- /TMPL_IF -->
  
  	<form id="formulario" method="POST" action="<!-- TMPL_VAR NAME="SCRIPT_NAME" -->" name="form1" onsubmit="return checkFields(this);" target="_blank">
! 
! <div class="data">
! <table>
! 	<tr><th><label for="rangeType">Type of Interval: </label></th><td><!-- TMPL_VAR NAME="RANGE_TYPE" --><div id="continuous" class="panel" style="display:block">
! 	<ul>
! 		<li><label for="from">From:</label><input id="from" type="text" name="from" size="20" /></li>
! 		<li><label for="to">To:</label><input id="to" type="text" name="to" size="20" /></li>
! 	</ul>
  </div>
  
! 					 
!  <div id="individuals" class="panel" style="display:none;">
! <label for="inventaryCode">Inventory Code: </label><input id="inventaryCode" type="text" name="inventaryCode" size="20" />
! <a href="#" onclick="addItem(); return false;">[+]</a>	
! <a href="#" onclick="removeItem(); return false;">[-]</a>
! <select id="inventaryList" size="5" style="width:150px">
! </select>
! <input type="hidden" id="individualCodes" name="individualCodes">																						
! </div></td></tr>		
! 	<tr><th><label for="numbersystem">Country Code: </label></th><td><!-- TMPL_VAR NAME="NUMBER_SYSTEM" --><a href="#" onClick="addCountryCode(); return false;">[+]</a></td></tr>		
! 	<tr><th><label for="pageType">Page Size: </label></th><td><input type="text" id="pageType" name="pageType" readonly="readonly" disabled="disabled" value="<!-- TMPL_VAR NAME="PAGES" -->"  size="10" /><a href="/cgi-bin/koha/barcodes/printerConfig.pl">[Go to Printer Configuration]</a></td></tr>		
! 	<tr><th><label for="text_under_label">Text under label: </label></th><td><input type="text" id="text_under_label" name="text_under_label" size="40" value="<!-- TMPL_VAR name="text_under_label -->" /> If this field is empty, author and title will be used instead</td></tr>		
! 		
! </table></div>
! 
! 			    	<table>
  						<tr>
  							<th colspan="<!-- TMPL_VAR NAME="COL_SPAN" -->">Label number to start printing</th>
***************
*** 98,111 ****
  							<tr>
  								<!-- TMPL_LOOP NAME="columns" -->
! 									<td style="white-space: nowrap;">
! 										<input type="radio" id="label" value="<!-- TMPL_VAR NAME="tagname" -->" name="label" <!-- TMPL_VAR NAME="check" -->>  Label  <!-- TMPL_VAR NAME="labelname" --></td>
  								<!-- /TMPL_LOOP -->
  							</tr>
  						<!-- /TMPL_LOOP -->  			    
  					</table>
! 					
! <p><input type="submit" value="Generate Barcodes" name="B1" class="submit"></p>
! 	</form>
! </div>
  </div>
  <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
--- 66,80 ----
  							<tr>
  								<!-- TMPL_LOOP NAME="columns" -->
! 									<td>
! 										<input type="radio" id="label" value="<!-- TMPL_VAR NAME="tagname" -->" name="label" <!-- TMPL_VAR NAME="check" --> />  Label  <!-- TMPL_VAR NAME="labelname" --></td>
  								<!-- /TMPL_LOOP -->
  							</tr>
  						<!-- /TMPL_LOOP -->  			    
  					</table>
! 
! <input type="submit" value="Generate Barcodes" class="submit" name="B1" />
! <input type="reset" value="Clear Fields" class="cancel" name="B2" />
! </form>
  </div>
+ 
  <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

Index: printerConfig.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/barcodes/printerConfig.tmpl,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -r1.1 -r1.1.2.1
*** printerConfig.tmpl	4 Jan 2005 22:32:27 -0000	1.1
--- printerConfig.tmpl	3 Sep 2005 13:48:55 -0000	1.1.2.1
***************
*** 7,11 ****
  	<h1>Printer Configuration</h1>
  	<h3>Set the printer configuration corresponding to your environment</h3>
! 	<ul>
  		<li>Set width and height of the label that you are going to work with.</li>
  		<li>Set your system's default DPI.</li>
--- 7,11 ----
  	<h1>Printer Configuration</h1>
  	<h3>Set the printer configuration corresponding to your environment</h3>
! 	<div class="help"><ul class="notes">
  		<li>Set width and height of the label that you are going to work with.</li>
  		<li>Set your system's default DPI.</li>
***************
*** 13,21 ****
  		<li>Select how many columns and rows are in your page size.</li>
  		<li>Set the left margin bottom margin the page that you are going to use. This parameters will help to center the barcodes into the labels.</li>
! 	</ul>
  
  	<form id="formulario" method="POST" action="<!-- TMPL_VAR NAME="SCRIPT_NAME" -->" name="form1">
  		<input type="hidden" name="saveSettings" value="1">
! 		<div class="table"><table border="1" class="myTable">
  			<tr>
  				<th>Label width (in mm)</th>
--- 13,21 ----
  		<li>Select how many columns and rows are in your page size.</li>
  		<li>Set the left margin bottom margin the page that you are going to use. This parameters will help to center the barcodes into the labels.</li>
! 	</ul></div>
  
  	<form id="formulario" method="POST" action="<!-- TMPL_VAR NAME="SCRIPT_NAME" -->" name="form1">
  		<input type="hidden" name="saveSettings" value="1">
! 		<div class="data"><table border="1" class="myTable">
  			<tr>
  				<th>Label width (in mm)</th>





More information about the Koha-cvs mailing list