[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters authorised_values.tmpl,NONE,1.1 admin-home.tmpl,1.2,1.3 marc_subfields_structure.tmpl,1.3,1.4

Paul POULAIN tipaul at users.sourceforge.net
Fri Oct 25 12:55:49 CEST 2002


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters
In directory usw-pr-cvs1:/tmp/cvs-serv15970/koha-tmpl/intranet-tmpl/default/en/parameters

Modified Files:
	admin-home.tmpl marc_subfields_structure.tmpl 
Added Files:
	authorised_values.tmpl 
Log Message:
Road to 1.3.2
* bugfixes and improvements
* manage mandatory MARC subfields
* new table : authorised_values. this table contains categories and authorised values for the category. On MARC management, you can map a subfield to a authorised_values category. If you do this, the subfield can only be filled with a authorised_value of the selected category.
this submit contains everything needed :
* updatedatabase
* admin screens
* "links" management
* creation of a html-list if a subfield is mapped to an authorised value.

Note this is different from authorities support, which will come soon.
The authorised_values is supposed to contains a "small" number of authorised values for a category (less than 50-100). If you enter more authorised values than this, it should be hard to find what you want in a BIG list...

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

<TMPL_IF name="add_form">
<!-------------------------------------------------------------------------------------------------->
	<H1><TMPL_VAR name="action"></H1>
	<form action='<TMPL_VAR name="script_name">' name=Aform method=post>
	<input type=hidden name=op value='add_validate'>
	<table>
	<tr>
		<td>Category</td>
		<td><TMPL_VAR name="category"></td>
	</tr>
	<tr>
		<td>Authorised value</td>
		<td><input type=text name="authorised_value" value='<TMPL_VAR name="authorised_value">'></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><input type="hidden" name="id" value="<TMPL_VAR name="id">">
			<INPUT type="submit" value='OK'></td>
	</tr>
	</table>
	</form>
</TMPL_IF>


<TMPL_IF name="delete_confirm">
<!-------------------------------------------------------------------------------------------------->
<table border=0 cellspacing=0 cellpadding=5>
	<tr valign=top bgcolor=#99cc33>
		<td background="/images/background-mem.gif"><b>Variable</b></td>
		<td background="/images/background-mem.gif"><b><TMPL_VAR name="searchfield"></b></td>
	</tr>
	<tr><td>Value</td><td><TMPL_VAR name="Tvalue"></td></tr>
	<form action='<TMPL_VAR name="script_name">' method=post>
		<input type=hidden name=op value=delete_confirmed>
		<input type=hidden name=id value='<TMPL_VAR name="id">'>
		<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></form></td></tr>
</TMPL_IF>

<!-------------------------------------------------------------------------------------------------->
<TMPL_IF name="else">
<font SIZE=6><em>Authorised values admin</em></font>
<p>This table is used in MARC definition. You can define as many categories as you want, and as many authorised values as you want in each category.</p>
<p>When you define the MARC subfield structure, you can link a subfield to a authorised-value category. When the user ask for adding of modifying a biblio,
the subfield is not entered through a free field, but though a list of authorised values</p>
<form action=/cgi-bin/koha/admin/authorised_values.pl method=post>
	<TMPL_VAR name="tab_list"><input type="submit" value="OK">   <a href="authorised_values.pl?op=add_form">New category...</a>
</form>
<TMPL_VAR name="searchfield">
<table border=0 cellspacing=0 cellpadding=5>
<tr valign=top bgcolor=#99cc33>
	<td background="/images/background-mem.gif"><b>category</b></td>
	<td background="/images/background-mem.gif"><b>Authorised value</b></td>
	<td background="/images/background-mem.gif">&nbsp;</td>
	<td background="/images/background-mem.gif">&nbsp;</td>
<TMPL_LOOP name="loop">
</tr valign=top bgcolor='<TMPL_VAR name="bgcolor">'>
	<td><TMPL_VAR name="category"></td>
	<td><TMPL_VAR name="authorised_value"></td>
	<td><a href="<TMPL_VAR name="edit">">Edit</a></td>
	<td><a href="<TMPL_VAR name="delete">">Delete</a></td>
</tr>
</TMPL_LOOP>
<form action='<TMPL_VAR name="script_name">' method=post>
<input type=hidden name=op value=add_form>
</table>
<table width=40%>
	<tr>
		<td width=50%><TMPL_VAR name="previous"></td>
		<td width=50%><TMPL_VAR name="next"></td>
	</tr>
</table>
<form action='<TMPL_VAR name="script_name">' method=post>
<input type="hidden" name="op" value="add_form">
<input type="hidden" name="category" value="<TMPL_VAR name="category">">
<br><input type=image src="/images/button-add-new.gif"  WIDTH=188  HEIGHT=44  ALT="Add budget" BORDER=0 ></a><br>
</form>
</TMPL_IF>

<TMPL_INCLUDE NAME="cat-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.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** admin-home.tmpl	11 Oct 2002 14:24:18 -0000	1.2
--- admin-home.tmpl	25 Oct 2002 10:55:46 -0000	1.3
***************
*** 4,16 ****
  <table cellspacing=0 cellpadding=3 width=60%>
  <th width="30%" background="/images/background-mem.gif">Table</th><th width="70%" background="/images/background-mem.gif">Meaning</th>
! <tr><td valign="top"><a href=/cgi-bin/koha/admin/branches.pl>libraries branches</a></td><td>the differents branches you manage with this koha server</td></tr>
! <tr><td valign="top"><a href=/cgi-bin/koha/admin/aqbudget.pl>budget</a></td><td>the budgets allowed to differents book funds.</td></tr>
! <tr><td valign="top"><a href=/cgi-bin/koha/admin/aqbookfund.pl>book funds</a></td><td>the differents book funds.</td></tr>
! <tr><td valign="top"><a href=/cgi-bin/koha/admin/categorie.pl>categories</a></td><td>the differents types of borrowers.</td></tr>
! <tr><td valign="top"><a href=/cgi-bin/koha/admin/itemtypes.pl>Item types</a></td><td>the supports of an item.</td></tr>
! <tr><td valign="top"><a href=/cgi-bin/koha/admin/currency.pl>Currencies</a></td><td>Currencies of booksellers.</td></tr>
! <tr><td valign="top"><a href=/cgi-bin/koha/admin/printers.pl>Printers</a></td><td>Printers (UNIX paths).</td></tr>
! <tr><td valign="top"><a href=/cgi-bin/koha/admin/stopwords.pl>stopwords</a></td><td>Words deleted during searches</td></tr>
! <tr><td valign="top"><a href=/cgi-bin/koha/admin/systempreferences.pl>systempreferences</a></td><td>System preferences</td></tr>
  
  <th background="/images/background-mem.gif">Table</th><th background="/images/background-mem.gif">Meaning</th>
--- 4,48 ----
  <table cellspacing=0 cellpadding=3 width=60%>
  <th width="30%" background="/images/background-mem.gif">Table</th><th width="70%" background="/images/background-mem.gif">Meaning</th>
! <tr>
! 	<td valign="top"><a href=/cgi-bin/koha/admin/branches.pl>libraries branches</a></td>
! 	<td>the differents branches you manage with this koha server</td>
! </tr>
! <tr>
! 	<td valign="top"><a href=/cgi-bin/koha/admin/aqbudget.pl>budget</a></td>
! 	<td>the budgets allowed to differents book funds.</td>
! </tr>
! <tr>
! 	<td valign="top"><a href=/cgi-bin/koha/admin/aqbookfund.pl>book funds</a></td>
! 	<td>the differents book funds.</td>
! </tr>
! <tr>
! 	<td valign="top"><a href=/cgi-bin/koha/admin/categorie.pl>categories</a></td>
! 	<td>the differents types of borrowers.</td>
! </tr>
! <tr>
! 	<td valign="top"><a href=/cgi-bin/koha/admin/itemtypes.pl>Item types</a></td>
! 	<td>the supports of an item.</td>
! </tr>
! <tr>
! 	<td valign="top"><a href=/cgi-bin/koha/admin/currency.pl>Currencies</a></td>
! 	<td>Currencies of booksellers.</td>
! </tr>
! <tr>
! 	<td valign="top"><a href=/cgi-bin/koha/admin/printers.pl>Printers</a></td>
! 	<td>Printers (UNIX paths).</td>
! </tr>
! <tr>
! 	<td valign="top"><a href=/cgi-bin/koha/admin/stopwords.pl>stopwords</a></td>
! 	<td>Words deleted during searches</td>
! </tr>
! <tr>
! 	<td valign="top"><a href=/cgi-bin/koha/admin/systempreferences.pl>systempreferences</a></td>
! 	<td>System preferences</td>
! </tr>
! <tr>
! 	<td valign="top"><a href=/cgi-bin/koha/admin/authorised_values.pl>authorised values</a></td>
! 	<td>Define here categories and authorised values for them. 
! 			Authorised values are used in MARC form to limit/help editing MARC biblios</td>
! </tr>
  
  <th background="/images/background-mem.gif">Table</th><th background="/images/background-mem.gif">Meaning</th>

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.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** marc_subfields_structure.tmpl	11 Oct 2002 09:19:57 -0000	1.3
--- marc_subfields_structure.tmpl	25 Oct 2002 10:55:47 -0000	1.4
***************
*** 13,26 ****
  		<th>Koha field</th>
  		<th>Tab</th>
  	</tr>
  	<TMPL_LOOP name="loop">
  		<tr valign=top bgcolor='<TMPL_VAR name="bgcolor">'>
  		<td><TMPL_VAR name="tagfield"> - <TMPL_VAR name="tagsubfield"></td>
! 		<td><input type=text name="liblibrarian[]" value='<TMPL_VAR name="liblibrarian">' size=40 maxlength=80><br/>
! 				<input type=text name="libopac[]" value='<TMPL_VAR name="libopac">' size=40 maxlength=80></td>
  		<td><TMPL_VAR name="repeatable"></td>
  		<td><TMPL_VAR name="mandatory"></td>
  		<td><TMPL_VAR name="kohafield"></td>
  		<td><TMPL_VAR name="tab"></td>
  	</TMPL_LOOP>
  	</table>
--- 13,28 ----
  		<th>Koha field</th>
  		<th>Tab</th>
+ 		<th>Authorised value</th>
  	</tr>
  	<TMPL_LOOP name="loop">
  		<tr valign=top bgcolor='<TMPL_VAR name="bgcolor">'>
  		<td><TMPL_VAR name="tagfield"> - <TMPL_VAR name="tagsubfield"></td>
! 		<td><input type=text name="liblibrarian" value='<TMPL_VAR name="liblibrarian">' size=40 maxlength=80><br/>
! 				<input type=text name="libopac" value='<TMPL_VAR name="libopac">' size=40 maxlength=80></td>
  		<td><TMPL_VAR name="repeatable"></td>
  		<td><TMPL_VAR name="mandatory"></td>
  		<td><TMPL_VAR name="kohafield"></td>
  		<td><TMPL_VAR name="tab"></td>
+ 		<td><TMPL_VAR name="authorised_value"></td>
  	</TMPL_LOOP>
  	</table>
***************
*** 61,69 ****
  <tr valign=top bgcolor=#99cc33>
  	<td background="/images/background-mem.gif" width=5%><b>Subfield</b></td>
! 	<td background="/images/background-mem.gif" width=42%><b>Lib</b></td>
  	<td background="/images/background-mem.gif" width=10%><b>koha field</b> <span style="font-size:8;color:red" title="the koha-DB field linked to this subfield">?</span></td>
  	<td background="/images/background-mem.gif" width=8%><b>Rep</b> <span style="font-size:8;color:red" title="subfield may be repeated (1=yes, 0=no)">?</span></td>
  	<td background="/images/background-mem.gif" width=8%><b>Mand</b> <span style="font-size:8;color:red" title="subfield is mandatory (1=yes, 0=no)">?</span></td>
  	<td background="/images/background-mem.gif" width=8%><b>Tab</b> <span style="font-size:8;color:red" title="subfield is shown in which tab (0-9 or item)">?</span></td>
  	<td background="/images/background-mem.gif" width=8%>
  <TMPL_LOOP name="loop">
--- 63,72 ----
  <tr valign=top bgcolor=#99cc33>
  	<td background="/images/background-mem.gif" width=5%><b>Subfield</b></td>
! 	<td background="/images/background-mem.gif" width=30%><b>Lib</b></td>
  	<td background="/images/background-mem.gif" width=10%><b>koha field</b> <span style="font-size:8;color:red" title="the koha-DB field linked to this subfield">?</span></td>
  	<td background="/images/background-mem.gif" width=8%><b>Rep</b> <span style="font-size:8;color:red" title="subfield may be repeated (1=yes, 0=no)">?</span></td>
  	<td background="/images/background-mem.gif" width=8%><b>Mand</b> <span style="font-size:8;color:red" title="subfield is mandatory (1=yes, 0=no)">?</span></td>
  	<td background="/images/background-mem.gif" width=8%><b>Tab</b> <span style="font-size:8;color:red" title="subfield is shown in which tab (0-9 or item)">?</span></td>
+ 	<td background="/images/background-mem.gif" width=8%><b>Auth value</b> <span style="font-size:8;color:red" title="values authorised for this subfield">?</span></td>
  	<td background="/images/background-mem.gif" width=8%>
  <TMPL_LOOP name="loop">
***************
*** 75,78 ****
--- 78,82 ----
  	<td><TMPL_IF name="mandatory">Yes<TMPL_ELSE>No</TMPL_IF></td>
  	<td><TMPL_VAR name="tab"></td>
+ 	<td><TMPL_VAR name="authorised_value"></td>
  	<td><a href="<TMPL_VAR name="delete">">delete</a></td>
  </tr>





More information about the Koha-cvs mailing list