[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/fr/value_builder unimarc_field_60X.tmpl,NONE,1.1

Paul POULAIN tipaul at users.sourceforge.net
Fri Nov 14 23:00:47 CET 2003


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/fr/value_builder
In directory sc8-pr-cvs1:/tmp/cvs-serv26385/koha-tmpl/intranet-tmpl/default/fr/value_builder

Added Files:
	unimarc_field_60X.tmpl 
Log Message:
minor fixes in thesaurus_popup & authorities.pm
NEW plugin : the plugin that manages 60X field in UNIMARC (i think it's the same in marc21). Used to search a thesaurus entry & parse bibliothesaurus table for category NC (Common Name in french).
The user can enter a search term, and see entries corresponding. If the search is a real entry in the thesaurus, and this entry has dependencies, they are shown too.
For example, if the thesaurus contains :
Geo -- Europe -- France -- Marseille
Geo -- Europe -- France -- Paris
Hist -- Europe -- France -- Revolution

A search on "France"
shows
Geo --Europe --France and Hist -- Europe -- France on the left panel
When the user clic on Geo -- Europe -- France,
Marseille & Paris are shown on the right panel.

When the user selects a value, it's reported to the MARC editor.

NOTE : template ONLY IN FRENCH (but it's 11PM for instance, & i plan to go to bed :-) )

--- NEW FILE ---
<html>
<head>
	<title>Recherche Th&eacute;saurus</title>
</head>
<body>
	<script>
		function report(value2report) {
			if (document.f_pop.result.value.length==0) {
				document.f_pop.result.value = value2report;
			} else {
				document.f_pop.result.value = document.f_pop.result.value+'|'+value2report;
			}
			return true;
		}
	</script>
	<script>
		function finish() {
			opener.document.f.field_value[<TMPL_VAR name="index">].value= document.f_pop.result.value;
			self.close();
			return false;
		}
	</script>
	<form name="f_pop" action="plugin_launcher.pl" method="post">
		<input type="hidden" name="plugin_name" value="unimarc_field_60X.pl">
		<textarea name="result" rows=10 cols=50><TMPL_VAR name="result"></textarea>
		<br/><input type="button" value="OK" onClick="javascript:finish()">
		<p><h2>Recherche</h2>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=A">A</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=B">B</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=C">C</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=D">D</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=E">E</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=F">F</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=G">G</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=H">H</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=I">I</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=J">J</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=K">K</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=L">L</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=M">M</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=N">N</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=O">O</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=P">P</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=Q">Q</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=R">R</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=S">S</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=T">T</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=U">U</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=V">V</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=W">W</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=X">X</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=Y">Y</a>
			<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&search_string=Z">Z</a>
			<br/>
			<input type="text" name="search_string" value="<TMPL_VAR name="search_string">">
			<input type="hidden" name="category" value="<TMPL_VAR name="category">">
			<input type="hidden" name="index" value="<TMPL_VAR name="index">">
			<input type="hidden" name="op" value="search">
			<input type="submit" value="Chercher">
		</p>
	</form>
	<table>
	<tr>
		<td valign="top">
		<h2>Résultats</h2>
			<table>
				<TMPL_LOOP name="results">
					<tr>
					<td>
						<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&level=<TMPL_VAR name="level">&search_string=<TMPL_VAR name=value ESCAPE=URL>">
							<TMPL_VAR name="value">
						</a>
					</td>
					<td>
						<input type="button" value="Reporter" OnClick="javascript:report('<TMPL_VAR name="value">')"><br/>
					</td>
					</tr>
				</TMPL_LOOP>
			</table>
		</td>
		<td>
		<TMPL_IF name=deeper>
		<td valign="top">
			<h2>Dépendances</h2>
			</TMPL_IF>
			<table>
			<TMPL_LOOP name="deeper">
				<tr><td>
				<a href="plugin_launcher.pl?plugin_name=unimarc_field_60X.pl&level=<TMPL_VAR name="level">&search_string=<TMPL_VAR ESCAPE="URL" name="father">+<TMPL_VAR ESCAPE="URL" name="stdlib">">
					<TMPL_VAR name="father"> <TMPL_VAR name="stdlib">
				</a></td>
				<td>
					<input type="button" value="Reporter" OnClick="javascript:report('<TMPL_VAR ESCAPE=HTML name="father"> <TMPL_VAR ESCAPE=HTML name="stdlib">')"><br/>
				</td></tr>
			</TMPL_LOOP>
			</table>
		</td>
	</tr>
	</table>
<h2>Création</h2>
<form name="f3_pop"  action="thesaurus_popup.pl" method="post">
	<input type="hidden" name="index" value="<TMPL_VAR name="index">">
	<input type="hidden" name="op" value="add">
	<input type="hidden" name="category" value="<TMPL_VAR name="category">">
	Insérer une nouvelle autorité : <input type="text" name="insert" value="<TMPL_VAR name="search_string">">
	<input type="submit" name="NEW" value="Ajouter">
	</form>
</body>
</html>





More information about the Koha-cvs mailing list