c196693358
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 :-) )
51 lines
2.1 KiB
Cheetah
51 lines
2.1 KiB
Cheetah
<html>
|
|
<head>
|
|
<title>Saisie des entrées du thésaurus</title>
|
|
</head>
|
|
<body>
|
|
<form name="f_pop" action="thesaurus_popup.pl" method="post">
|
|
<textarea name="result" rows=10 cols=50><TMPL_VAR name="result"></textarea>
|
|
<br/><input type="button" value="OK" onClick="javascript:report()">
|
|
<p>
|
|
Rechercher : <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="OK">
|
|
</p>
|
|
</form>
|
|
<form name="f2_pop" action="thesaurus_popup.pl" method="post">
|
|
Descendre : <TMPL_VAR name="dig_list">
|
|
<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="select">
|
|
<input type="hidden" name="result" value="<TMPL_VAR name="result">">
|
|
<input type="submit" name="OK" value="OK">
|
|
</form>
|
|
|
|
<TMPL_IF name="search_string">
|
|
<form name="f2_pop" action="thesaurus_popup.pl" method="post">
|
|
Sélectionner : <TMPL_VAR name="select_list">
|
|
<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="select">
|
|
<input type="hidden" name="result" value="<TMPL_VAR name="result">">
|
|
<input type="submit" name="OK" value="OK">
|
|
</form>
|
|
</TMPL_IF>
|
|
<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>
|
|
<script>
|
|
function report() {
|
|
opener.document.f.field_value[<TMPL_VAR name="index">].value= document.f_pop.result.value;
|
|
self.close();
|
|
return false;
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|