bugfix in editor chooser
and html improvement in plugin 225a
This commit is contained in:
parent
77c5e7445d
commit
261fbc2138
|
|
@ -1389,7 +1389,7 @@
|
|||
<option value="ei">Parabole</option>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF name="f14ej" -->
|
||||
<option value="ej> SELECTED>Nouvelle</option>
|
||||
<option value="ej" SELECTED>Nouvelle</option>
|
||||
<!-- TMPL_ELSE -->
|
||||
<option value="ej">Nouvelle</option>
|
||||
<!-- /TMPL_IF -->
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@
|
|||
<option value="f">Reliee avec un autre</ption>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF name="f4h" -->
|
||||
<option value=h" SELECTED>Non relie</option>
|
||||
<option value="h" SELECTED>Non relie</option>
|
||||
<!-- TMPL_ELSE -->
|
||||
<option value="h">Non relie</option>
|
||||
<!-- /TMPL_IF -->
|
||||
|
|
|
|||
|
|
@ -0,0 +1,115 @@
|
|||
<!-- TMPL_INCLUDE NAME="auth-search-top.inc" -->
|
||||
<div id="mainbloc">
|
||||
<h1 class="authority">Authority search results</h1>
|
||||
<div id="bloc25">
|
||||
<form name="f" method="post" action="plugin_launcher.pl">
|
||||
<input type="hidden" name="plugin_name" value="unimarc_field_210c.pl">
|
||||
<input type="hidden" name="op" value="do_search">
|
||||
<input type="hidden" name="type" value="intranet">
|
||||
<input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->">
|
||||
<div id="bloc25">
|
||||
<h2 class="authority">Search on</h2>
|
||||
<p>
|
||||
<label class="label100">Authority type</label>
|
||||
EDITORS
|
||||
</p>
|
||||
<p>
|
||||
<label class="label100">Search value</label><input type="text" name="value" value="<!-- TMPL_VAR name="resultstring" -->">
|
||||
<input type="hidden" name="authtypecode" value="EDITORS">
|
||||
<input type="hidden" name="marclist" value="">
|
||||
<input type="hidden" name="and_or" value="and">
|
||||
<input type="hidden" name="excluding" value="">
|
||||
<input type="hidden" name="operator" value="contains">
|
||||
<input type="hidden" name="index" value="<!-- TMPL_VAR NAME="index" -->">
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" value="Start search" class="button authority">
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div id="bloc25">
|
||||
<div id="resultnumber">
|
||||
<p>
|
||||
<!-- TMPL_IF name="displayprev" -->
|
||||
<a href="auth_finder.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet&index=<!-- TMPL_VAR name="index" -->">
|
||||
<img src="/intranet-tmpl/default/images/numbers/prev.gif" border="0">
|
||||
</a>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_LOOP NAME="numbers" -->
|
||||
<!-- TMPL_IF name="highlight" -->
|
||||
<img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->-highlight.gif">
|
||||
<!-- TMPL_ELSE -->
|
||||
<a href="auth_finder.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet&index=<!-- TMPL_VAR name="index" -->">
|
||||
<img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->.gif" border="0"></a>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- /TMPL_LOOP -->
|
||||
<!-- TMPL_IF name="displaynext" -->
|
||||
<a href="auth_finder.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet&index=<!-- TMPL_VAR name="index" -->">
|
||||
<img src="/intranet-tmpl/default/images/numbers/next.gif" border="0"></a>
|
||||
<!-- /TMPL_IF -->
|
||||
</p>
|
||||
<p>
|
||||
<!-- TMPL_IF name="total" -->
|
||||
<b>Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --></b><br><br>
|
||||
<!-- TMPL_ELSE -->
|
||||
No results found.<br>
|
||||
<!-- /TMPL_IF -->
|
||||
</p>
|
||||
</div>
|
||||
<div id="resultlist">
|
||||
<table>
|
||||
<tr>
|
||||
<th class="authority">Summary</th>
|
||||
<th class="authority">Used</th>
|
||||
<th class="authority">Get It!</th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP NAME="result" -->
|
||||
<tr>
|
||||
<td><!-- TMPL_VAR NAME="summary" --></td>
|
||||
<td><!-- TMPL_VAR NAME="used" --> times</td>
|
||||
<td>
|
||||
<a href='javascript:report(<!-- TMPL_VAR NAME="index" -->,"<!-- TMPL_VAR name="summary" -->")'><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/arrow.gif" width="32" hspace="0" vspace="0" border="0"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div id="resultnumber">
|
||||
<p>
|
||||
<!-- TMPL_IF name="displayprev" -->
|
||||
<a href="auth_finder.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet">
|
||||
<img src="/intranet-tmpl/default/images/numbers/prev.gif" border="0">
|
||||
</a>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_LOOP NAME="numbers" -->
|
||||
<!-- TMPL_IF name="highlight" -->
|
||||
<img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->-highlight.gif">
|
||||
<!-- TMPL_ELSE -->
|
||||
<a href="auth_finder.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet">
|
||||
<img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->.gif" border="0"></a>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- /TMPL_LOOP -->
|
||||
<!-- TMPL_IF name="displaynext" -->
|
||||
<a href="auth_finder.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet">
|
||||
<img src="/intranet-tmpl/default/images/numbers/next.gif" border="0"></a>
|
||||
<!-- /TMPL_IF -->
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
|
||||
function report(index,summary)
|
||||
{
|
||||
var regexp= /(\d* \/ *)(.*)/;
|
||||
var result=summary.match(regexp);
|
||||
alert("summary "+summary);
|
||||
/* alert("regexp : "+regexp);
|
||||
alert("result "+result);*/
|
||||
opener.document.f.field_value[index].value=result[2];
|
||||
}
|
||||
</script>
|
||||
<!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->
|
||||
|
|
@ -1,17 +1,14 @@
|
|||
<html>
|
||||
<head>
|
||||
<!-- TMPL_INCLUDE name="auth-search-top.inc" -->
|
||||
<title>UNIMARC Field 225a builder</title>
|
||||
</head>
|
||||
<body>
|
||||
<form name="f_pop" onSubmit="javascript:report()">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Select a collection</td>
|
||||
<td><!-- TMPL_VAR name="collection" --></td>
|
||||
</tr>
|
||||
<tr><td colspan=2><input type="submit" value="OK"></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<div id="mainbloc">
|
||||
<form name="f_pop" onSubmit="javascript:report()">
|
||||
<h2 class="authority">Collection</h2>
|
||||
<p><label>Select a collection</label><!-- TMPL_VAR name="collection" --></p>
|
||||
<input type="submit" value="OK" class="button authority"></p>
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
function report() {
|
||||
opener.document.f.field_value[<!-- TMPL_VAR name="index" -->].value= document.f_pop.f1.value;
|
||||
|
|
@ -19,5 +16,4 @@
|
|||
return false;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<!-- TMPL_INCLUDE name="auth-search-bottom.inc" -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue