[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters biblio_framework.tmpl,NONE,1.1 admin-home.tmpl,1.31,1.32 auth_subfields_structure.tmpl,1.2,1.3 authtypes.tmpl,1.1,1.2 marc_subfields_structure.tmpl,1.30,1.31 marctagstructure.tmpl,1.24,1.25

Paul POULAIN tipaul at users.sourceforge.net
Thu Jun 3 12:22:24 CEST 2004


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

Modified Files:
	admin-home.tmpl auth_subfields_structure.tmpl authtypes.tmpl 
	marc_subfields_structure.tmpl marctagstructure.tmpl 
Added Files:
	biblio_framework.tmpl 
Log Message:
* frameworks and itemtypes are independant
* bugfixes in authority types & framework management (mainly deletion)

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

<script>
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="mainbloc">
<!-- TMPL_IF name="add_form" -->
	<!-- TMPL_IF name="frameworkcode" -->
		<h1>Modify framework text</h1>
	<!-- TMPL_ELSE -->
		<h1>Add framework</h1>
	<!-- /TMPL_IF -->
	<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>
			<!-- TMPL_IF name="frameworkcode" -->
				<p><label class="label100">Framework type<label><input type=hidden name=frameworkcode value=<!-- TMPL_VAR name="frameworkcode" -->><!-- TMPL_VAR name="frameworkcode" --></p>
			<!-- TMPL_ELSE -->
				<p><label class="label100">Framework type<label><input type=text name=frameworkcode size=6 maxlength=4 onBlur="toUC(this)"></p>
			<!-- /TMPL_IF -->
			<p>
				<label class="label100">Description</label>
				<input type=text name="frameworktext" size=40 maxlength=80 value='<!-- TMPL_VAR name="frameworktext" escape=HTML -->'>
			</p>
			<p>
				<INPUT type=button value='OK'class="button parameters" onClick='Check(this.form)'>
			</p>
	</form>
<!-- /TMPL_IF -->

<!-- TMPL_IF name="delete_confirm" -->
<div id="bloc25">
	<h2 class="parameters">Framework for <!-- TMPL_VAR name="frameworktext" --> (<!-- TMPL_VAR name="frameworkcode" -->)</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=frameworkcode value='<!-- TMPL_VAR name="frameworkcode" -->'>
			<input type=submit value='YES' class="button parameters">
		</form>
		<form action='<!-- TMPL_VAR name="script_name" -->' method=post>
			<input type="submit" value="NO" class="button parameters">
		</form>
	</p>
</div>
<!-- /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 class="parameters">Code</th>
		<th class="parameters">Description</th>
		<th class="parameters">&nbsp;</th>
		<th class="parameters">Edit</th>
		<th class="parameters">Delete</th>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>Default framework</td>
		<td><a href="marctagstructure.pl?frameworkcode=<!-- TMPL_VAR name="frameworkcode" -->" class="button parameters">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" -->" class="button parameters" >MARC structure</a></td>
			<td><a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&authtypecode=<!-- TMPL_VAR name="frameworkcode" escape="HTML" -->"><img src="<!-- TMPL_VAR NAME='interface' -->/<!-- TMPL_VAR name="theme" -->/images/fileopen.png"  width=32 hspace=0 vspace=0 border=0></a></td>
			<td><a href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&frameworkcode=<!-- TMPL_VAR name="frameworkcode" escape="HTML" -->"><img src="<!-- TMPL_VAR NAME='interface' -->/<!-- TMPL_VAR name="theme" -->/images/edittrash.png" width=32 hspace=0 vspace=0 border=0></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="button" value="Add framework" title="Add framework" alt="Add framework" >
	<td width=33%><!-- TMPL_IF name="previous" --><a href="<!-- TMPL_VAR name=previous -->"><input type=image src="<!-- TMPL_VAR name="interface" -->/<!-- TMPL_VAR name="theme" -->/images/1leftarrow.png" title="previous" ALT="previous" BORDER=0></a><!-- /TMPL_IF --></td>
	<td width=33%><!-- TMPL_IF name="next" --><a href="<!-- TMPL_VAR name=next -->"><input type=image src="<!-- TMPL_VAR name="interface" -->/<!-- TMPL_VAR name="theme" -->/images/1rightarrow.png" title="next" ALT="next" BORDER=0></a><!-- /TMPL_IF --></td>
</form>
</div>
<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->

Index: admin-home.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters/admin-home.tmpl,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** admin-home.tmpl	28 May 2004 08:37:34 -0000	1.31
--- admin-home.tmpl	3 Jun 2004 10:22:22 -0000	1.32
***************
*** 42,47 ****
  </tr>
  <tr>
! 	<td valign="top" width="25%"><a href=/cgi-bin/koha/admin/marctagstructure.pl>MARC tag structure</a></td>
! 	<td>MARC structure: tags then subfields.</td>
  </tr>
  <tr>
--- 42,47 ----
  </tr>
  <tr>
! 	<td valign="top" width="25%"><a href=/cgi-bin/koha/admin/biblio_framework.pl>Biblio framework (MARC structure)</a></td>
! 	<td>the frameworks defined for the MARC editor. Create frameworks, then define the MARC structure (fields & subfields)</td>
  </tr>
  <tr>

Index: auth_subfields_structure.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters/auth_subfields_structure.tmpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** auth_subfields_structure.tmpl	28 May 2004 12:08:16 -0000	1.2
--- auth_subfields_structure.tmpl	3 Jun 2004 10:22:22 -0000	1.3
***************
*** 58,67 ****
  <!-- TMPL_IF name="delete_confirm" -->
  <!---------------------------------------------------------------------------->
! <table>
! 	<tr>
! 		<td background="<!-- TMPL_VAR NAME='themelang' -->/images/background-mem.gif"><b>Subfield</b></td>
! 		<td background="<!-- TMPL_VAR NAME='themelang' -->/images/background-mem.gif"><b><!-- TMPL_VAR name="tagsubfield" --></b></td>
! 	</tr>
! 	<tr><td>&nbsp;</td><td><!-- TMPL_VAR name="liblibrarian" --></td></tr>
  	<form action='<!-- TMPL_VAR name="delete_link" -->' method=post>
  		<input type=hidden name=op value=delete_confirmed>
--- 58,66 ----
  <!-- TMPL_IF name="delete_confirm" -->
  <!---------------------------------------------------------------------------->
! <div id="bloc25">
! 	<h2 class="parameters">
! 		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>
***************
*** 69,96 ****
  		<input type=hidden name=tagfield value='<!-- TMPL_VAR name="tagfield" -->'>
  		<input type=hidden name=tagsubfield value='<!-- TMPL_VAR name="tagsubfield" -->'>
! 		<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="hidden" name="tagfield" value="<!-- TMPL_VAR name="tagfield" -->">
! 					<input type=submit value=NO>
! 				</form>
! 			</td>
! 		</tr>
! <!-- /TMPL_IF -->
! 
! <!-- TMPL_IF name="delete_confirmed" -->
! <!---------------------------------------------------------------------------->
! 	Data deleted
  	<form action='<!-- TMPL_VAR name="script_name" -->' method=post>
  		<input type="hidden" name="tagfield" value="<!-- TMPL_VAR name="tagfield" -->">
! 		<input type=submit value=OK>
  	</form>
  <!-- /TMPL_IF -->
  
--- 68,80 ----
  		<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="button parameters">
! 	</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="button parameters">
  	</form>
+ </div>
  <!-- /TMPL_IF -->
  
***************
*** 141,145 ****
  	<img src="<!-- TMPL_VAR NAME='interface' -->/<!-- TMPL_VAR name="theme" -->/images/fileopen.png"  width=32 hspace=0 vspace=0 border=0>
  </a>
! <a href="marctagstructure.pl?searchfield=<!-- TMPL_VAR name="tagfield" -->">
  	<img src="<!-- TMPL_VAR NAME='interface' -->/<!-- TMPL_VAR name="theme" -->/images/2uparrow.png" width=32 hspace=0 vspace=0 border=0>
  </a>
--- 125,129 ----
  	<img src="<!-- TMPL_VAR NAME='interface' -->/<!-- TMPL_VAR name="theme" -->/images/fileopen.png"  width=32 hspace=0 vspace=0 border=0>
  </a>
! <a href="auth_tag_structure.pl?searchfield=<!-- TMPL_VAR name="tagfield" -->&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>

Index: authtypes.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters/authtypes.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** authtypes.tmpl	28 May 2004 08:37:15 -0000	1.1
--- authtypes.tmpl	3 Jun 2004 10:22:22 -0000	1.2
***************
*** 85,108 ****
  
  <!-- TMPL_IF name="delete_confirm" -->
! 		<p><label>Authority type</label><!-- TMPL_VAR name="authtypecode" --></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" -->'>
! 	<p><label>Description</label><!-- TMPL_VAR name="authtypetext" --></p>
  	<!-- TMPL_IF name="total" -->
  		<p>
! 			<b>This record is used <!-- TMPL_VAR name="total" --> times. Deletion not possible</b>
! 		</p>
! 		<p>
! 			</form>
! 			<form action='<!-- TMPL_VAR name="script_name" -->' method=post><input type=submit value="OK" class="button parameters"></form>
! 		</p>
! 	<!-- TMPL_ELSE -->
! 		<p>CONFIRM DELETION</p>
! 		<p>
! 			<input type=submit value='YES' class="button parameters"></form>
! 			<form action='<!-- TMPL_VAR name="script_name" -->' method=post><input type=submit value=NO class="button parameters"></form>
  		</p>
  	<!-- /TMPL_IF -->
! 
  <!-- /TMPL_IF -->
  
--- 85,107 ----
  
  <!-- TMPL_IF name="delete_confirm" -->
! <div id="bloc25">
! 	<h2 class="parameters">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="button parameters">
! 		</form>
! 		<form action='<!-- TMPL_VAR name="script_name" -->' method=post>
! 			<input type=submit value="NO" class="button parameters">
! 		</form>
! 	</p>
! </div>
  <!-- /TMPL_IF -->
  

Index: marc_subfields_structure.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters/marc_subfields_structure.tmpl,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** marc_subfields_structure.tmpl	28 May 2004 12:08:16 -0000	1.30
--- marc_subfields_structure.tmpl	3 Jun 2004 10:22:22 -0000	1.31
***************
*** 13,17 ****
  	<form action='<!-- TMPL_VAR name="script_name" -->' name=Aform method=post>
  	<input type=hidden name=op value='add_validate'>
! 	<input type="hidden" name="itemtype" value="<!-- TMPL_VAR name="itemtype" -->">
  	<table>
  	<!-- TMPL_LOOP name="loop" -->
--- 13,17 ----
  	<form action='<!-- TMPL_VAR name="script_name" -->' name=Aform method=post>
  	<input type=hidden name=op value='add_validate'>
! 	<input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR name="frameworkcode" -->">
  	<table>
  	<!-- TMPL_LOOP name="loop" -->
***************
*** 85,89 ****
  <!---------------------------------------------------------------------------->
  <!-- TMPL_IF name="else" -->
! <h1>MARC subfield structure admin for <!-- TMPL_VAR name="tagfield" --> (framework <!--TMPL_VAR name="itemtype" -->)</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>
  <p>The column <b>Koha field</b> shows that the subfield is linked with a Koha field. Koha can manage a MARC interface, or a Koha interface. This link ensures that both DB are synchronized, thus you can change from a MARC to a Koha interface easily.</p>
--- 85,89 ----
  <!---------------------------------------------------------------------------->
  <!-- TMPL_IF name="else" -->
! <h1>MARC subfield structure admin for <!-- TMPL_VAR name="tagfield" --> (framework <!--TMPL_VAR name="frameworkcode" -->)</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>
  <p>The column <b>Koha field</b> shows that the subfield is linked with a Koha field. Koha can manage a MARC interface, or a Koha interface. This link ensures that both DB are synchronized, thus you can change from a MARC to a Koha interface easily.</p>

Index: marctagstructure.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters/marctagstructure.tmpl,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** marctagstructure.tmpl	18 May 2004 15:24:52 -0000	1.24
--- marctagstructure.tmpl	3 Jun 2004 10:22:22 -0000	1.25
***************
*** 2,6 ****
  
  <div id="mainbloc">
! <h1 class="parameters">MARC tag structure admin for <!-- TMPL_IF name="itemtype" --><!-- TMPL_VAR name="itemtype" --><!-- TMPL_ELSE -->default MARC framework<!-- /TMPL_IF --></h1>
  <script>
  	function _(s) { return s } // dummy function for gettext
--- 2,6 ----
  
  <div id="mainbloc">
! <h1 class="parameters">MARC tag structure admin for <!-- TMPL_IF name="frameworkcode" --><!-- TMPL_VAR name="frameworktext" --> (<!-- TMPL_VAR name="frameworkcode" -->)<!-- TMPL_ELSE -->default MARC framework<!-- /TMPL_IF --></h1>
  <script>
  	function _(s) { return s } // dummy function for gettext
***************
*** 65,69 ****
  	<form action='<!-- TMPL_VAR name="script_name" -->' name="Aform" method="post">
  		<input type=hidden name=op value='add_validate'>
! 		<input type="hidden" name="itemtype" value="<!-- TMPL_VAR name="itemtype" -->">
  		<p><label>Tag<label><!-- TMPL_VAR name="searchfield" --></p>
  		<p><label>Lib for librarians</label><input type="text" name="liblibrarian" value='<!-- TMPL_VAR name="liblibrarian" escape=HTML -->' size=80 maxlength=100></p>
--- 65,69 ----
  	<form action='<!-- TMPL_VAR name="script_name" -->' name="Aform" method="post">
  		<input type=hidden name=op value='add_validate'>
! 		<input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR name="frameworkcode" -->">
  		<p><label>Tag<label><!-- TMPL_VAR name="searchfield" --></p>
  		<p><label>Lib for librarians</label><input type="text" name="liblibrarian" value='<!-- TMPL_VAR name="liblibrarian" escape=HTML -->' size=80 maxlength=100></p>
***************
*** 97,110 ****
  	</form>
  <!-- /TMPL_IF -->
! <!-- TMPL_IF name="itemtype_create" -->
  <!---------------------------------------------------------------------------->
  	<form action='<!-- TMPL_VAR name="script_name" -->' method=post>
! 		<input type="hidden" name="op" value="itemtype_create_confirm">
! 		<input type="hidden" name="itemtype" value="<!-- TMPL_VAR name="itemtype" -->">
! 		Create itemtype framework for <!-- TMPL_VAR name="itemtype" --> (<!-- TMPL_VAR name="ITdescription" -->) using
! 		<select name="existingitemtype">
  			<option value="">Default</option>
! 		<!-- TMPL_LOOP name="existingitemtypeloop" -->
! 			<option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="description" --></option>
  		<!-- /TMPL_LOOP -->
  		</select>
--- 97,110 ----
  	</form>
  <!-- /TMPL_IF -->
! <!-- TMPL_IF name="framework_create" -->
  <!---------------------------------------------------------------------------->
  	<form action='<!-- TMPL_VAR name="script_name" -->' method=post>
! 		<input type="hidden" name="op" value="framework_create_confirm">
! 		<input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR name="frameworkcode" -->">
! 		Create framework for <!-- TMPL_VAR name="frameworkcode" --> (<!-- TMPL_VAR name="frameworktext" -->) using
! 		<select name="existingfarmeworkcode">
  			<option value="">Default</option>
! 		<!-- TMPL_LOOP name="existingframeworkloop" -->
! 			<option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="frameworktext" --></option>
  		<!-- /TMPL_LOOP -->
  		</select>
***************
*** 116,125 ****
  <!-- TMPL_IF name="else" -->
  <div id="bloc25">
! <h2 class="parameters">Select an itemtype</h2>
  <form action='<!-- TMPL_VAR name="script_name" -->' method=post>
! 	<select name="itemtype">
  		<option value="">Default</option>
! 	<!-- TMPL_LOOP name="itemtypeloop" -->
! 		<option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="description" --></option>
  	<!-- /TMPL_LOOP -->
  	</select>
--- 116,125 ----
  <!-- TMPL_IF name="else" -->
  <div id="bloc25">
! <h2 class="parameters">Select a framework</h2>
  <form action='<!-- TMPL_VAR name="script_name" -->' method=post>
! 	<select name="frameworkcode">
  		<option value="">Default</option>
! 	<!-- TMPL_LOOP name="frameworkloop" -->
! 		<option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="frameworktext" --></option>
  	<!-- /TMPL_LOOP -->
  	</select>





More information about the Koha-cvs mailing list