[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/de/barcodes barcodes-bottom.inc,NONE,1.1 barcodes-top.inc,NONE,1.1 barcodes.tmpl,NONE,1.1 printerConfig.tmpl,NONE,1.1

Dorian Meid dnmeid at users.sourceforge.net
Thu May 12 21:26:16 CEST 2005


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/de/barcodes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16198/intranet-tmpl/default/de/barcodes

Added Files:
	barcodes-bottom.inc barcodes-top.inc barcodes.tmpl 
	printerConfig.tmpl 
Log Message:
First german contribution to 2.2.2
Thanks to Friedrich

--- NEW FILE ---
<br clear="all">
<p> &nbsp; </p>

<div class="center">
<a href="/cgi-bin/koha/mainpage.pl">Start</a> ||
<a href="/cgi-bin/koha/loadmodules.pl?module=search&amp;type=intranet">Katalog</a> ||
<a href="/cgi-bin/koha/members/members-home.pl">Benutzer</a> ||
<a href="/cgi-bin/koha/loadmodules.pl?module=acquisitions">Erwerbung</a> ||
<a href="/cgi-bin/koha/circ/circulation.pl">Ausleihe</a> ||
<a href="/cgi-bin/koha/reports-home.pl">Reports</a> ||
<a href="/cgi-bin/koha/admin-home.pl">Parameter</a> ||
<a href="/cgi-bin/koha/about.pl">&Uuml;ber</a> || 
Hilfe
</div>

</body>
</html>
--- NEW FILE ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>KOHA: INTRANET: Parameter</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/common-style.css">
<style>
.parameters {
	background-color: #86c268;
	color: #FFFFFF;
	text-decoration: normal;
	font-weight: bold;
	}
a.parameters:hover {
	background-color: #86c268;
	color: #FFFFFF;
	text-decoration: normal;
	font-weight: bold;
	}
.ranges {
	border:0;
}

.myTable TD{
  border-width: 0px;
  border-color: navy;
  border-style: solid;
}

.panel { 
	position:relative;
}

.countryPanel {
	z-index:1;
	width:300px;
	display:none;
	border:1px solid #000000;
	padding:0px;
}
</style>


<script type="text/javascript">
	// Captura el evento onmousemove para cualquier navegador
	if (document.layers) { // Netscape
		document.captureEvents(Event.MOUSEMOVE);
	    document.onmousemove = captureMousePosition;
	} else if (document.all) { // Internet Explorer
	    document.onmousemove = captureMousePosition;
	} else if (document.getElementById) { // Netcsape 6
	    document.onmousemove = captureMousePosition;
	}

	var mouseXMax = 0;
	var mouseYMax = 0;
	var mouseX = 0;
	var mouseY = 0;

	function captureMousePosition(e) {
	    if (document.layers) {
		    mouseX = e.pageX;
			mouseY = e.pageY;
	        mouseXMax = window.innerWidth + window.pageXOffset;
		    mouseYMax = window.innerHeight + window.pageYOffset;
	    } else if (document.all) {
		    mouseX = window.event.x + document.body.scrollLeft;
	        mouseY = window.event.y + document.body.scrollTop;
	        mouseXMax = document.body.clientWidth + document.body.scrollLeft;
	        mouseYMax = document.body.clientHeight + document.body.scrollTop;
	    } else if (document.getElementById) {
	        mouseX = e.pageX;
		    mouseY = e.pageY;
	        mouseXMax = window.innerWidth + window.pageXOffset;
	        mouseYMax = window.innerHeight + window.pageYOffset;
	    }
	}

/* Devuelve true si el explorador es Internet Explorer */
var IE = document.all?true:false;

function Help() {
	newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
}

function correctRange (from, to) {
	if (from <= to) {
		return true;
	} else {
		return false;
	}
}

function emptyField (field) {
	if ((field == null) || (field == "")) {
		return true;
	} else {
		return false;
	}
}

function checkFields (aForm) {
  var option = document.getElementById('rangeType').value;
  if (option == 'continuous' || option == 'continuous2') {
	if (emptyField(aForm.from.value) || emptyField(aForm.to.value)) {
		alert("Please, complete all fields");
	    return false;
	} else {
		if (correctRange(aForm.from.value, aForm.to.value)) {
			return true;			
		} else {
			alert("The selected range is not correct");
			return false;
		}
	}
  } else {
	var codeCount = document.getElementById('inventaryList').options.length;
	if (codeCount == 0) {
		alert("Please, complete all fields"); 
	    return false;
	} else {
		var inventaryList = document.getElementById('inventaryList');
		var allCodes = '';
	  	for (i = 0; i <= inventaryList.options.length - 1; i++) {
			allCodes = allCodes + "'" + inventaryList.options[i].text + "',";
	  	}
  		allCodes = '(' + allCodes.substr(0, allCodes.length - 1) + ')';
	  	document.getElementById('individualCodes').value = allCodes;
	    return true;
	}
  }
}

function changeRange(selectBox) {
	var option = selectBox.value;
	var panel = document.getElementById(option);
	panel.style.display = 'inline';
	if (option == 'continuous') {
		document.getElementById('inventaryList').options.length = 0;
		document.getElementById('individuals').style.display = 'none';
		document.getElementById('individualCodes').value = "";
	} else {
		document.getElementById('from').value = "";
		document.getElementById('to').value = "";
		document.getElementById('continuous').style.display = 'none';
	}
}

function itemExists(code, list) {
  var ok = false;
  var listLength = list.length - 1;
  var count = 0;
  while (!(ok) && (count <= listLength)) {
	if (code == list[count].value) {
	  ok = true;
	}
	count = count + 1;
  }
  return ok;	
}

function addItem() {
  var codeObject = document.getElementById('inventaryCode');
  var inventaryCode = document.getElementById('inventaryCode').value;
  var inventaryList = document.getElementById('inventaryList');
  if (inventaryCode == "") {
    alert('You can´t add an empty code.');
  } else {
    if (itemExists(inventaryCode, inventaryList.options)) {
	  codeObject.value = "";
  	  alert("The code is already included."); 
    } else {  	
	  var optionObject = new Option(inventaryCode, inventaryCode);
  	   if (!IE) {
	     inventaryList.add(optionObject, inventaryList.options[inventaryList.options.length]); 
      } else {
	    inventaryList.add(optionObject, inventaryList.options.length);
	  }
      codeObject.value = "";
    }
  }	
}

function removeItem() {
  var inventaryList = document.getElementById('inventaryList');
  if (inventaryList.selectedIndex == -1) {
  	alert('You have to select a code first.');
  } else {
  	inventaryList.options[inventaryList.selectedIndex] = null;
  }
}

	function addCountryCode() {
		var panel = document.getElementById('addCountryCode');
		panel.style.display = 'inline';
		panel.style.top = mouseY;
		panel.style.left = mouseX;
	}
</script>
</head>
<body onload="javascript: changeRange(document.getElementById('rangeType'))">
<!-- MENUS -->
<div id="menubar">
	<span class="koha">KOHA</span>
	<a class="home" href="/cgi-bin/koha/mainpage.pl">Start</a> <a class="catalogue" href="/cgi-bin/koha/loadmodules.pl?module=search&amp;type=intranet">Katalog</a> <a class="members" href="/cgi-bin/koha/members/members-home.pl">Benutzer</a> <a class="acquisition" href="/cgi-bin/koha/loadmodules.pl?module=acquisitions">Erwerbung</a> <a class="circulation"  href="/cgi-bin/koha/circ/circulation.pl">Ausleihe</a> <a class="authority" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> <a class="reports" href="/cgi-bin/koha/reports-home.pl">Reports</a> <a class="parameters" href="/cgi-bin/koha/admin-home.pl">Parameter</a> <a class="about" href="/cgi-bin/koha/about.pl">&Uml;ber</a> <a class="catalogue" href="/cgi-bin/koha/help.pl" onclick="Help(); return false;">Hilfe</a>
</div>
<div id="submenu">
	<span class="koha">Optionen &gt;&gt;&nbsp;&nbsp;</span>
	<a href="/cgi-bin/koha/admin/aqbookfund.pl" class="submenu">Etats</a> <a href="/cgi-bin/koha/admin/authorised_values.pl" class="submenu2">Vorgabewerte</a> <a href="/cgi-bin/koha/admin/thesaurus.pl" class="submenu">Thesaurus</a> <a href="/cgi-bin/koha/admin/currency.pl" class="submenu2">W&auml;hrungen</a> <a href="/cgi-bin/koha/admin/printers.pl" class="submenu">Drucker</a>
</div>
<!-- TMPL_IF NAME="loggedinusername" -->
    <p align="left">Angemeldet als: <!-- TMPL_VAR NAME="loggedinusername" --> [<a href="/cgi-bin/koha/mainpage.pl?logout.x=1">Abmelden</a>]</p>
<!-- TMPL_ELSE -->
    <p align="left"><a href="/cgi-bin/koha/opac-user.pl">Log In</a> to Koha</p>
<!-- /TMPL_IF -->

--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="barcodes-top.inc" -->

<!-- ******************************************************************************************************** -->
<!-- ******                             START OF ADD COUNTRY CODE PANEL                                ****** -->
<!-- ******************************************************************************************************** -->

<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 style="background-color:#EFEFEF;border:1px" align="center">
			<tr>
				<th colspan="2">
					L&auml;ndercode hinzuf&uuml;gen
				</th>
			</tr>
			<tr>
				<td>
					L&auml;ndername &nbsp;<input type="text" size="10" id="countryName" name="countryName"  
					                        style="background-color:#FFFFFF;color:Black"/>
				</td>
				<td>
					L&auml;ndercode &nbsp;<input type="text" size="3" id="countryCode" name="countryCode"  
					                        style="background-color:#FFFFFF;color:Black"/>
				</td>
			</tr>
			<tr>
				<td align="right">
					<input type="submit" name="submit" id="submit" value="Code speichern">
				</td>
				<td align="left">
					<input type="button" name="cancel" id="cancel" value="Abbrechen" onclick="document.getElementById('addCountryCode').style.display = 'none'">
				</td>
			</tr>
		</table>
	</form>
</div>

<!-- ******************************************************************************************************** -->
<!-- ******                              END OF ADD COUNTRY CODE PANEL                                 ****** -->
<!-- ******************************************************************************************************** -->

<div id="mainbloc">
	<h1>Barcode-Generator</h1>
	<table bgcolor="#ffcc00" width="80%" cellpadding="3">
		<tr valign="center">
			<td><font size="4">Generiere Barcodes aus den Inventarisierungscodes</font></td>
		</tr>
	</table>
	<ul>
		<li>W&auml;hlen Sie einen Bereich von Inventarisierungsnummern. Sie K&ouml;nnen einen Bereich oder einzelne Nummern ausw&auml;hlen</li>
		<li>W&auml;hlen Sie ein Standardformat aus, um mit diesem die Barcodes zu generieren.</li>
		<li>Definition der Seitenformate f&uuml;r die PDF-Ausgabe</li>
		<li>Abh&auml;ngig vom Seitenformat zeigt Koha wie die Barcodes auf einer Seite angeordnet sind. Sie k&ouml;nnen festlegen, wo auf der Seite mit dem Druck begonnen wird.
		</li>
	</ul>
	<br>
	<form id="formulario" method="POST" action="<!-- TMPL_VAR NAME="SCRIPT_NAME" -->" name="form1" onsubmit="return checkFields(this);" target="_blank">
		
		<table cellpadding="3" border=0 class="myTable">
			<!-- TMPL_IF NAME="ERROR" -->
			<tr align="center">
				<td colspan="2" >
					<p style="font-size:13pt;color:red">Can't find inventory codes in that range. Please try again.</p>
				</td>
			</tr>
			<!-- /TMPL_IF -->
  			<tr valign="top">
				<td align="right" style="width:50%;padding-right:20px"> 
					<table style="border:0px">
						<tr align="right">
							<td>Intervalltyp</td>
						</tr>
						<tr align="right">
							<td><!-- TMPL_VAR NAME="RANGE_TYPE" --></td>
						</tr>
					</table>
				</td>
				<td style="width:50%;padding-left:20px"> 
					<div id="continuous" class="panel" style="display:inline">
						<table class="ranges">
							<tr>
					   			<td>von:</td> 
								<td><input id="from" type="text" name="from" size="20"></td>
							</tr>
							<tr>
					   			<td>bis:</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 valign="top">
								<td width="5%">
									Inventarisierungscode <BR>
									<input id="inventaryCode" type="text" name="inventaryCode" size="20">
								<td>
								<td align="center">	
									<img src="<!-- TMPL_VAR NAME="themelang" -->/images/rightarrow.png" onclick="addItem()"
									     border="0" onclick="javascript: addItem();" style="cursor:pointer" style="display:table-cell">
									<img src="<!-- TMPL_VAR NAME="themelang" -->/images/leftarrow.png" onclick="javascript: removeItem();" border="0" style="cursor:pointer" style="display:table-cell">
								</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 align="right" style="padding-right:20px">
					<table style="border:0px">
						<tr align="right">
							<td>L&auml;ndercode</td>
						</tr>
						<tr align="right">
							<td>
								<div style="display:inline">
									<img src="<!-- TMPL_VAR NAME="themelang" -->/images/more.gif" hspace="0" vspace="0" border="0" style="vertical-align:bottom;cursor:pointer" onclick="addCountryCode();">
									<!-- TMPL_VAR NAME="NUMBER_SYSTEM" -->
								</div>
							</td>
						</tr>
					</table>
				</td>
				<td style="padding-left:20px"> 
					<table style="border:0px">
						<tr>
							<td>Seitengr&ouml;&szlig;e</td>
						</tr>
						<tr>
							<td>
								<input type="text" name="pageType" readonly value="<!-- TMPL_VAR NAME="PAGES" -->"
								       size="10"> <a href="/cgi-bin/koha/barcodes/printerConfig.pl">[Bitte zur Druckerkonfiguration gehen]</a>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr> 
				<td align="right" style="padding-left:20px">Text unter dem Label</td>
				<td>
					Ist dieses Feld leer, werden stattdessen Verfasser und Titel genommen
				</td>
			</tr>
  			<tr valign="top">
  			    <td colspan="2" align="center">
			    	<table style="width:50%">
						<tr style="border-color:#000FCD">
							<th colspan="<!-- TMPL_VAR NAME="COL_SPAN" -->">Labelnummer, mit der der Druck beginnen soll</th>
						</tr>
						<!-- TMPL_LOOP NAME="LABEL_TABLE" -->
							<tr style="align:left">
								<!-- TMPL_LOOP NAME="columns" -->
									<td style="border:1px solid #000000">
										<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>
				</td>
  			</tr>
  			<tr valign="top">
  			    <td align="right">
					<input type="submit" value="Barcodes generieren" name="B1" class="button">
				</td>
  			    <td align="left">
  			    	<input type="reset" value="Felder l&ouml;schen" name="B2" class="button">
				</td>
  			</tr>
		</table>		
	</form>
</div>
<!-- TMPL_INCLUDE NAME="barcodes-bottom.inc" -->

--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="barcodes-top.inc" -->
<div id="mainbloc">
	<h1>Konfiguration Drucker</h1>
	<table bgcolor="#ffcc00" width="80%" cellpadding="3">
		<tr valign="center">
			<td><font size="4">Set de printer configuration corresponding to your environment</font></td>
		</tr>
	</table>
	<ul>
		<li>Set width and heigth of the label that you are going to work with.</li>
		<li>Set your system dpi by default.</li>
		<li>Setentyp setzen</li>
		<li>Select how many columns and rows are in your page type.</li>
		<li>Set margin left and margin bottom of the page that you are going to use. This parameters will
		    help to center the barcodes into the labels.</li>
	</ul>
	<br>
	<form id="formulario" method="POST" action='<!-- TMPL_VAR NAME="SCRIPT_NAME" -->' name="form1">
		<input type="hidden" name="saveSettings" value="1">
		<table cellpadding="3" border=0 class="myTable">
			<tr>
				<td>
					Labelbreite (in mm)
				</td>
				<td>
					Labelh&ouml;he (in mm)
				</td>
				<td>
					System dpi
				</td>
				<td>
					Seitentyp
				</td>
				<td>
					Columns
				</td>
				<td>
					Zeilen
				</td>
				<td>
					Margin Bottom (Expressed in mm)
				</td>
				<td>
					Margin Left (Expressed in mm)
				</td>
			<tr>
  			<tr valign="top">
				<td align="left"> 
					<input id="labelWidth" type="text" name="labelWidth" size="5"
					       value="<!-- TMPL_VAR NAME="LABEL_WIDTH" -->">
				</td>
				<td align="left"> 
					<input id="labelHeigth" type="text" name="labelHeigth" size="5"
					       value="<!-- TMPL_VAR NAME="LABEL_HEIGTH" -->">
				</td>
				<td align="left">
					<input id="systemDpi" type="text" name="systemDpi" size="5"
					       value="<!-- TMPL_VAR NAME="SYSTEM_DPI" -->">
				</td>
				<td align="left">
					<select name="pageType" id="pageType" size="1">
						<!-- TMPL_IF name="A4" -->
							<option value="A4" selected>A4</option>
				        <!-- TMPL_ELSE -->
							<option value="A4">A4</option>
						<!-- /TMPL_IF -->
						<!-- TMPL_IF name="Letter" -->
							<option value="Letter" selected>Letter</option>
				        <!-- TMPL_ELSE -->
							<option value="Letter">Letter</option>
						<!-- /TMPL_IF -->
						<!-- TMPL_IF name="Legal" -->
							<option value="Legal" selected>Legal</option>
				        <!-- TMPL_ELSE -->
							<option value="Legal">Legal</option>
						<!-- /TMPL_IF -->
		            </select>
				</td>
  			    <td align="left">
					<input id="columns" type="text" name="columns" size="5"
					       value="<!-- TMPL_VAR NAME="COLUMNS" -->">
				</td>
  			    <td align="left">
					<input id="rows" type="text" name="rows" size="5"
					       value="<!-- TMPL_VAR NAME="ROWS" -->">
				</td>
  			    <td align="left">
					<input id="marginBottom" type="text" name="marginBottom" size="5"
					       value="<!-- TMPL_VAR NAME="MARGIN_TOP" -->">
				</td>
  			    <td align="left">
					<input id="marginLeft" type="text" name="marginLeft" size="5"
					       value="<!-- TMPL_VAR NAME="MARGIN_LEFT" -->">
				</td>
  			</tr>
  			<tr valign="top">
  			    <td colspan="8" align="center">
					<input type="submit" value="Einstellungen speichern">
				</td>
  			</tr>
		</table>		
	</form>
</div>
<!-- TMPL_INCLUDE NAME="barcodes-bottom.inc" -->





More information about the Koha-cvs mailing list