[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/npl/en/parameters biblio_framework.tmpl,NONE,1.1 issuingrules.tmpl,NONE,1.1

Owen Leonard oleonard at users.sourceforge.net
Thu Jan 20 18:39:41 CET 2005


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

Added Files:
	biblio_framework.tmpl issuingrules.tmpl 
Log Message:
Synching with default tempalte

--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System Administration: <!-- TMPL_IF NAME="add_form" --><!-- TMPL_IF NAME="frameworkcode" -->Modify framework text<!-- TMPL_ELSE -->Add framework<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF NAME="delete_confirm" -->Delete Framework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)?<!-- /TMPL_IF --><!-- TMPL_IF NAME="else" -->Biblio Framework<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE NAME="doc-head-close-addbiblio.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<!-- TMPL_INCLUDE NAME="admin-topmenu.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->

<script language="javascript" type="text/javascript">
function _(s) { return s } // dummy function for gettext
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNotNull(f,noalert) {
	if (f.value.length ==0) {
		return false;
	}
	return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function toUC(f) {
	var x=f.value.toUpperCase();
	f.value=x;
	return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNum(v,maybenull) {
var n = new Number(v.value);
if (isNaN(n)) {
	return false;
	}
if (maybenull==0 && v.value=='') {
	return false;
}
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isDate(f) {
	var t = Date.parse(f.value);
	if (isNaN(t)) {
		return false;
	}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function Check(f) {
	var ok=1;
	var _alertString="";
	var alertString2;
	if (f.frameworkcode.value.length==0) {
		_alertString += "\n- " + _("Framework code missing");
	}
	if (!(isNotNull(window.document.Aform.frameworktext,1))) {
		_alertString += "\n- " + _("Description missing");
	}
	if (_alertString.length==0) {
		document.Aform.submit();
	} else {
		alertString2  = _("Form not submitted because of the following problem(s)");
		alertString2 += "\n------------------------------------------------------------------------------------\n";
		alertString2 += _alertString;
		alert(alertString2);
	}
}
</script>
<div id="main">
<!-- TMPL_IF NAME="add_form" -->
	<form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
		<input type="hidden" name="op" value="add_validate" />
		<input type="hidden" name="checked" value="0" />
	<table>
	<caption><!-- TMPL_IF NAME="frameworkcode" -->Modify framework text<!-- TMPL_ELSE -->Add framework<!-- /TMPL_IF --></caption>
	<tr>
			<!-- TMPL_IF NAME="frameworkcode" -->
				<td><label for="frameworkcode">Framework Code<label></td><td><input type="hidden" id="frameworkcode" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /><!-- TMPL_VAR NAME="frameworkcode" --></td>
			<!-- TMPL_ELSE -->
				<td><label for="frameworkcode">Framework Code<label></td><td><input type="text" id="frameworkcode" name="frameworkcode" size="4" maxlength="4" onblur="toUC(this)" /></td>
			<!-- /TMPL_IF -->
			</tr>
			<tr>
				<td><label for="description">Description</label></td><td>
				<input type="text" name="frameworktext" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="frameworktext" escape=HTML -->" /></td>
</tr></table>
			<p>	<input type="button" value="Submit"class="submit" onclick="Check(this.form)" /></p>
	</form>
<!-- /TMPL_IF -->

<!-- TMPL_IF NAME="delete_confirm" -->
<h3>Delete ramework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)?</h3>
	<!-- TMPL_IF NAME="total" -->
		<div class="error">This framework is used <!-- TMPL_VAR NAME="total" --> times</div>
	<!-- /TMPL_IF -->
	<p>
		<form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /><input type="submit" value="Yes, Delete this Framework!" class="cancel" />
		</form>
		<form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do not Delete!" class="submit" /></form>
	</p>
<!-- /TMPL_IF -->

<!-- TMPL_IF NAME="else" -->
<h1>Biblio framework</h1>
<p>Framework name, then go to MARC biblio to set MARC editor parameters</p>
<table>
	<tr>
		<th>Code</th>
		<th>Description</th>
		<th>&nbsp;</th>
		<th>Edit</th>
		<th>Delete</th>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>Default framework</td>
		<td><a href="marctagstructure.pl?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">MARC structure</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	
	<!-- TMPL_LOOP NAME="loop" -->
		<tr>
			<td><!-- TMPL_VAR name="frameworkcode" --></td>
			<td><!-- TMPL_VAR name="frameworktext" --></td>
			<td><a href="marctagstructure.pl?frameworkcode=<!-- TMPL_VAR name="frameworkcode" -->" >MARC structure</a></td>
			<td><a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&amp;frameworkcode=<!-- TMPL_VAR name="frameworkcode" escape="HTML" -->">Edit</a></td>
			<td><a href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&amp;frameworkcode=<!-- TMPL_VAR name="frameworkcode" escape="HTML" -->">Delete</a></td>
		</tr>
	<!-- /TMPL_LOOP -->
</table>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
	<input type="hidden" name="op" value="add_form" />
	<input type="submit" class="submit" value="Add framework" />
	<td><!-- TMPL_IF NAME="previous" --><a href="<!-- TMPL_VAR NAME="previous" -->">&lt;&lt; Previous</a><!-- /TMPL_IF --></td>
	<td><!-- TMPL_IF NAME="next" --><a href="<!-- TMPL_VAR NAME="next" -->">Next &gt;&gt;</a><!-- /TMPL_IF --></td>
</form>
</div>
<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System Administration: Issuing Rules<!-- TMPL_INCLUDE NAME="doc-head-close-addbiblio.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<!-- TMPL_INCLUDE NAME="admin-topmenu.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->

<div id="main">
	<h1>Defining <!-- TMPL_IF NAME="branch" -->issuing rules for <!-- TMPL_VAR NAME="branch" --><!-- TMPL_ELSE -->default issuing rules<!-- /TMPL_IF --></h1>
	<div class="help">
		<h3>HINT for issues</h3>
		<p>Each box needs to be filled in with issuelength,maxissues</p>
		<p>eq <span class="ex">21,5</span> enables 5 issues for 21 days</p>
		</div>
	<div class="help">
		<h3>HINT for fines</h3>
		<p>Each box needs to be filled in with fine,time to start charging,charging cycle</p>
		<p>eg <span class="ex">1,7,7</span> = 1 [USD,EUR,etc] fine after 7 days, every 7 days</p>
		<p>Fines are calculated by the fines2.pl script, located in misc directory.  Ask your administrator to put this script in crontab, after midnight, to have fines calculated every night</p>
	</div>
	<div class="help">
		<h3>Default values</h3>
		<p> If a cell is not filled, the 1st of the following value is searched :</p>
		<ul>
			<li>same branch and same borrower category, itemtype *</li>
			<li>same branch and same itemtype, borrower category *</li>
			<li>same itemtype and borrower category, branch *</li>
			<li>everywhere</li>
			<li>If nothing is set, default is 21,5 (hardcoded)</li>
		</ul>
	</div>
		<form method="post" action="/cgi-bin/koha/admin/issuingrules.pl">
		<label for="branch">Select a branch :</label>
			<select id="branch" name="branch">
				<option value="">Default</option>
			<!-- TMPL_LOOP NAME="branchloop" -->
				<option value="<!-- TMPL_VAR NAME="value" -->"<!-- TMPL_IF NAME="selected" --> selected="selected"<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="branchname" --></option><!-- /TMPL_LOOP --></select>
			<input type="submit" value="Select" class="submit" />
		</form>
		<form method="post" action="/cgi-bin/koha/admin/issuingrules.pl">
			<input type="hidden" name="op" value="save" />
			<div class="data">
			<table>
			<caption>Defining issuing rules for <!-- TMPL_VAR NAME="branch" --></caption>
			<tr>
				<th>&nbsp;</th><!-- TMPL_LOOP NAME="title" --><th scope="col"><!-- TMPL_VAR NAME="in_title" --><br/>Issue / fine</th><!-- /TMPL_LOOP -->
			</tr>
			<!-- TMPL_LOOP NAME="row" -->
				<tr>
					<th><!-- TMPL_VAR NAME="categorycode" --></th>
					<!-- TMPL_LOOP NAME="cell" -->
						<td<!-- TMPL_IF NAME="toggle" --> class="highlight"<!-- /TMPL_IF -->>
							<input name="<!-- TMPL_VAR NAME="issuingname" -->" value="<!-- TMPL_VAR NAME="issuingvalue" -->" size="6" maxlength="10" /> /
							<input name="<!-- TMPL_VAR NAME="finesname" -->" value="<!-- TMPL_VAR NAME="finesvalue" -->" size="6" maxlength="10" />
						</td>
					<!-- /TMPL_LOOP -->
				</tr>
			<!-- /TMPL_LOOP -->
			</table>
			</div>
			<input type="submit" value="Save Changes" class="submit" />
		</form>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->





More information about the Koha-cvs mailing list