[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/npl/en/parameters auth_subfields_structure.tmpl,NONE,1.1.2.1 auth_tag_structure.tmpl,NONE,1.1.2.1 authtypes.tmpl,NONE,1.1.2.1 biblio_framework.tmpl,NONE,1.1.2.1 issuingrules.tmpl,NONE,1.1.2.1

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


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

Added Files:
      Tag: rel_2_2
	auth_subfields_structure.tmpl auth_tag_structure.tmpl 
	authtypes.tmpl biblio_framework.tmpl issuingrules.tmpl 
Log Message:
Synching with default tempalte

--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System Administration<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->

<div id="main">
<!-- TMPL_IF NAME="add_form" -->
	<h1>
	<!-- TMPL_IF NAME="use-heading-flags-p" -->
	<!-- TMPL_IF NAME="heading-edit-subfields-p" -->Edit subfields<!-- /TMPL_IF -->
	<!-- TMPL_ELSE --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF -->
	</h1>
	<form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
	<input type="hidden" name="op" value="add_validate" />
	<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
	<table>
	<!-- TMPL_LOOP NAME="loop" -->
		<tr bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
		<td>
			<h2>Tag <!-- TMPL_VAR NAME="tagfield" -->, Subfield <!-- TMPL_VAR NAME="tagsubfield" --></h2>
			<h3>MARC constraints</h3>
			<p>
				<!-- TMPL_VAR NAME="repeatable" --> repeatable 
				<!-- TMPL_VAR NAME="mandatory" --> mandatory
			</p>
			<p>
				
				<label>Search also</label><input type="text" name="seealso" value="<!-- TMPL_VAR name="seealso" -->" size="20" /> (example for 200a : '200c','200d','200e')
			</p>
			<h3>Editor constaints</h3>
			<p> 
				<label>Text for librarian</label>
				<input type="text" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" -->" size="40" maxlength="80" />
			</p>
			<p>
				
				<label>Text for OPAC</label> <input type="text" name="libopac" value="<!-- TMPL_VAR NAME="libopac" -->" size="40" maxlength="80" />
			</p>
			<p><label>Managed</label> <!-- TMPL_VAR NAME="tab" --></p>
			<p><!-- TMPL_VAR NAME="hidden" --> hidden (subfield is managed, but hidden. -should be filled by a plugin or thesaurus-)</p>
			<p><!-- TMPL_VAR NAME="isurl" --> URL (if checked, it means that the subfield is an URL and can be clicked</p>
			<p>
				<label>Auth value:</label> <!-- TMPL_VAR NAME="authorised_value" -->
				or thesaurus: <!-- TMPL_VAR NAME="thesaurus_category" -->
				or plugin: <!-- TMPL_VAR NAME="value_builder" -->
			</p>
		</td>
		</tr>
	<!-- /TMPL_LOOP -->
	</table>
	<input type="submit" value="OK" class="button parameters">
	<p>Note: in the last column, you can choose:
	<ul><li>An "authorised value": it refers to a list of authorised values for this subfield. See the corresponding admin table.</li>
	<li>A "value builder": values builders are perl programs that help you select the value of the field. They are MARC-flavor dependant and sometimes fill another subfield automatically.</li>
	</ul>
	</p>
	</form>
<!-- /TMPL_IF -->

<!-- TMPL_IF NAME="delete_confirm" -->

<div id="bloc25">
	<h2>
		Subfield <!-- TMPL_VAR NAME="tagsubfield" -->
		<!-- TMPL_VAR NAME="liblibrarian" -->
	</h2>
	<form action="<!-- TMPL_VAR NAME="delete_link" -->" method="post">
		<input type="hidden" name="op" value="delete_confirmed" />
		<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
		<input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="tagfield" -->" />
		<input type="hidden" name="tagsubfield" value="<!-- TMPL_VAR NAME="tagsubfield" -->" />
		<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
		<p>CONFIRM DELETION</p>
		<input type="submit" value="YES" class="submit" />
	</form>
	<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
		<input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="tagfield" -->" />
		<input type="submit" value="NO" class="submit" />
	</form>
</div>
<!-- /TMPL_IF -->


<!-- TMPL_IF NAME="else" -->
<h1>Authority MARC subfield structure admin for tag <!-- TMPL_VAR NAME="tagfield" --> <!-- TMPL_IF NAME="authtypecode" -->(framework <!--TMPL_VAR NAME="authtypecode" -->)<!-- TMPL_ELSE -->(default framework)<!-- /TMPL_IF --></h1>
<p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit. </p>

<table>
<tr>
	<th>Subfield</th>
	<th>Text</th>
	<th>Constraints</th>
	<th>Delete</th>
<!-- TMPL_LOOP NAME="loop" -->
<tr bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
	<td><!-- TMPL_VAR NAME="tagsubfield" --></td>
	<td>
		<!-- TMPL_IF NAME="subfield_ignored" -->
			<i><!-- TMPL_VAR NAME="liblibrarian" --></i>
		<!-- TMPL_ELSE -->
			<!-- TMPL_VAR NAME="liblibrarian" -->
		<!-- /TMPL_IF -->
	</td>
	<td>
		<!-- TMPL_IF NAME="subfield_ignored" -->
			<i>subfield ignored</i>
		<!-- TMPL_ELSE -->
			Managed, <!-- TMPL_IF NAME="repeatable" -->Repeatable, <!-- TMPL_ELSE -->Not repeatable,<!-- /TMPL_IF -->
			<!-- TMPL_IF NAME="mandatory" -->Mandatory, <!-- TMPL_ELSE -->Not mandatory,<!-- /TMPL_IF -->
			<!-- TMPL_IF NAME="seealso" -->see also : <!-- TMPL_VAR NAME="seealso" -->,<!-- /TMPL_IF -->
			<!-- TMPL_IF NAME="hidden" -->hidden,<!-- /TMPL_IF -->
			<!-- TMPL_IF NAME="isurl" -->is an url,<!-- /TMPL_IF -->
			<!-- TMPL_IF NAME="authorised_value" --> Auth value :<!-- TMPL_VAR NAME="authorised_value" -->,<!-- /TMPL_IF -->
			<!-- TMPL_IF NAME="value_builder" -->Plugin :<!-- TMPL_VAR NAME="value_builder" -->,<!-- /TMPL_IF -->
		<!-- /TMPL_IF -->
	</td>
	<td>
		<a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a>
	</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<!-- TMPL_VAR NAME="edit" -->Edit</a>
<a href="auth_tag_structure.pl?searchfield=<!-- TMPL_VAR NAME="tagfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" -->">
	<img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/2uparrow.png" width="32" hspace="0" vspace="0" border="0">
</a>
<!-- TMPL_IF NAME="previous" --><!-- TMPL_VAR NAME="previous" -->&lt;&lt; Previous</a><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="next" -->
	<!-- TMPL_VAR NAME="next" -->Next &gt;&gt;</a>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->

</div>

<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System Administration<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->

<div id="main">
<h1>Authority MARC framework for <!-- TMPL_IF NAME="authtypecode" --><!-- TMPL_VAR NAME="authtypecode" --><!-- TMPL_ELSE -->default framework<!-- /TMPL_IF --></h1>
<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.tagfield.value.length==0) {
			_alertString += "\n- " + _("tag number 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>

<!-- TMPL_IF NAME="add_form" -->

	<h1>
	<!-- TMPL_IF NAME="use-heading-flags-p" -->
	<!-- TMPL_IF NAME="heading-modify-tag-p" -->Modify tag<!-- /TMPL_IF -->
	<!-- TMPL_IF NAME="heading-add-tag-p" -->Add tag<!-- /TMPL_IF -->
	<!-- TMPL_ELSE --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF -->
	</h1>
	<form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
		<input type="hidden" name="op" value="add_validate" />
		<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
		<p><label>Tag<label><!-- TMPL_VAR NAME="searchfield" --></p>
		<p><label>Text for librarians</label><input type="text" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" escape=HTML -->" size="80" maxlength="100" /></p>
		<p><label>Text for opac</label><input type="text" name="libopac" value="<!-- TMPL_VAR NAME="libopac" escape=HTML -->" size="80" maxlength="100" /></p>
		<p><label>Repeatable</label><!-- TMPL_VAR NAME="repeatable" --></p>
		<p><label>Mandatory</label><!-- TMPL_VAR NAME="mandatory" --></p>
		<p><label>Authorised value</label><!-- TMPL_VAR NAME="authorised_value" --> (if you select a value here, the indicators will be limited to the authorised value list)</p>
		<p><label>&nbsp;</label><input type="button" value="OK" class="button" onclick="Check(this.form)" /></p>
	</form>
<!-- /TMPL_IF -->


<!-- TMPL_IF NAME="delete_confirm" -->

<table>
	<tr>
		<td>tag</td>
		<td><!-- TMPL_VAR NAME="searchfield" --></td>
	</tr>
	<tr>
		<td>&nbsp;</td><td><!-- TMPL_VAR NAME="liblibrarian" --></td>
	</tr>
	<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
		<input type="hidden" name="op" value="delete_confirmed" />
		<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
	<tr><td colspan="2" align="center">CONFIRM DELETION</td></tr>
	<tr><td><input type="submit" value="YES"></form></td><td><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="NO" class="submit" /></form></td></tr>
<!-- /TMPL_IF -->

<!-- TMPL_IF NAME="delete_confirmed" -->

	Data deleted
	<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
	<input type="submit" value="OK" class="submit" />
	</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="authtype_create" -->

	<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
		<input type="hidden" name="op" value="authtype_create_confirm" />
		<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
		Create authority framework for <!-- TMPL_VAR NAME="authtypecode" --> using
		<select name="existingauthtypecode">
			<option value="">Default</option>
		<!-- TMPL_LOOP NAME="existingauthtypeloop" -->
			<option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="authtypetext" --></option>
		<!-- /TMPL_LOOP -->
		</select>
		<input type="submit" value="OK" class="submit" />
	</form>
<!-- /TMPL_IF -->


<!-- TMPL_IF NAME="else" -->
<div id="bloc25">
<h2>Select an authority framework</h2>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
	<select name="authtypecode">
		<option value="">Default</option>
	<!-- TMPL_LOOP NAME="authtypeloop" -->
		<option value="<!-- TMPL_VAR NAME="value" -->" <!-- TMPL_IF NAME="selected" -->selected<!-- /TMPL_IF -->>
			<!-- TMPL_VAR NAME="authtypetext" -->
		</option>
	<!-- /TMPL_LOOP -->
	</select>
	<input type="text" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
	<input type="submit" value="OK" class="submit" />
</form>
</div>
<div id="bloc100">
	<table>
	<tr>
		<th>Tag</th>
		<th>Lib</th>
		<th>Repeatable</th>
		<th>Mandatory</th>
		<th>Authorised<br />value</th>
		<th>Subfields</th>
		<th>Edit</th>
		<th>Delete</th>
	<!-- TMPL_LOOP NAME="loop" -->
	<tr valign="top" bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
		<td><b><!-- TMPL_VAR NAME="tagfield" --></b></td>
		<td><!-- TMPL_VAR NAME="liblibrarian" --></td>
		<td><!-- TMPL_IF NAME="repeatable" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
		<td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
		<td><!-- TMPL_VAR NAME="authorised_value" --></td>
		<td><a href="<!-- TMPL_VAR NAME="subfield_link" -->" class="button">subfields</a></td>
		<td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
		<td><a href="<!-- TMPL_VAR NAME="delete" -->">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="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
		<input type="hidden" name="op" value="add_form" />
		<input type="submit" class="submit" value="Add Tag" />
		<!-- TMPL_IF NAME="isprevpage" -->
			<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->">Previous Page</a>
		<!-- /TMPL_IF -->
		<!-- TMPL_IF NAME="nextpage" -->
			<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->">Next Page</a>
		<!-- /TMPL_IF -->
	</form>
</div>
<!-- /TMPL_IF -->
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System Administration<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.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.authtypecode.value.length==0) {
		_alertString += "\n- " + _("Authority type : code missing");
	}
	if (!(isNotNull(window.document.Aform.authtypetext,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">
	<table>
		<!-- TMPL_IF NAME="authtypecode" -->
		<caption>Modify authority type</caption>
	<!-- TMPL_ELSE -->
		<caption>Add authority type</caption>
	<!-- /TMPL_IF -->
			<!-- TMPL_IF NAME="authtypecode" -->
				<tr><td><label for="authtypecode">Authority type<label></td><td><input type="hidden" name="op" value="add_validate" />
		<input type="hidden" name="checked" value="0" /><input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" /><!-- TMPL_VAR NAME="authtypecode" --></td></tr>
			<!-- TMPL_ELSE -->
				<tr><td><label for="authtypecode">Authority type<label></td><td><input id="authtypecode" type="text" name="authtypecode" size="10" maxlength="10" onblur="toUC(this)" /></td></tr>
			<!-- /TMPL_IF -->
		<tr><td><label for="authtypetext">Description</label></td><td><input type="text" id="authtypetext" name="authtypetext" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="authtypetext" escape=HTML -->" /></td></tr>
		<tr><td><label for="summary">Summary</label></td><td><textarea id="summary" name="summary" cols="40" rows="10"><!-- TMPL_VAR NAME="summary" --></textarea></td></tr>
		<tr><td><label for="auth_tag_to_report">Report tag</label></td><td><input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="<!-- TMPL_VAR NAME="auth_tag_to_report">" />Enter here the number of the tag that will be reported in the biblio (subfield by subfield). For example, in UNIMARC, enter 200 to report every 200 subfield in the 70x biblio</td></tr></table>
	<p><input type="submit" value="OK" class="submit" onclick="Check(this.form); return false;" />
			</p>
	</form>
<!-- /TMPL_IF -->

<!-- TMPL_IF NAME="delete_confirm" -->
<div>
	<h2>Authority structure definition for <!-- TMPL_VAR NAME="authtypetext" --> (<!-- TMPL_VAR NAME="authtypecode" -->)</h2>
	<!-- TMPL_IF NAME="total" -->
		<p>
			<b>This record is used <!-- TMPL_VAR NAME="total" --> times</b>
		</p>
	<!-- /TMPL_IF -->
	<p>CONFIRM DELETION</p>
	<p>
		<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
			<input type="hidden" name="op" value="delete_confirmed" />
			<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
			<input type="submit" value="YES" class="submit" />
		</form>
		<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
			<input type="submit" value="NO" class="submit" />
		</form>
	</p>
</div>
<!-- /TMPL_IF -->

<!-- TMPL_IF NAME="else" -->
<h1>Auth type Admin</h1>
<p>Define authority types, then authority MARC structure in the same way you define itemtypes and biblio MARC tag structure. Authority values are managed through plugins</p>
<table>
	<tr>
		<th>Code</th>
		<th>Description</th>
		<th>summary</th>
		<th>Tag reported</th>
		<th>&nbsp;</th>
		<th>Edit</th>
		<th>Delete</th>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>Default framework</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td><a href="auth_tag_structure.pl">MARC structure</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	
	<!-- TMPL_LOOP NAME="loop" -->
		<tr>
			<td><!-- TMPL_VAR NAME="authtypecode" --></td>
			<td><!-- TMPL_VAR NAME="authtypetext" --></td>
			<td><!-- TMPL_VAR NAME="summary" --></td>
			<td><!-- TMPL_VAR NAME="auth_tag_to_report" --></td>
			<td><a href="auth_tag_structure.pl?authtypecode=<!-- TMPL_VAR NAME="authtypecode" -->" class="button parameters" >MARC structure</a></td>
			<td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" escape="HTML" -->">Edit</a></td>
			<td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" 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 authority type" title="Add authority type" alt="Add authority type" />
	<td width="33%"><!-- TMPL_IF NAME="previous" --><a href="<!-- TMPL_VAR NAME="previous" -->">&lt;&lt; Previous</a><!-- /TMPL_IF --></td>
	<td width="33%"><!-- 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: <!-- 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