Adding default version of authorities templates in preparation for NPL conversion
This commit is contained in:
parent
0cb4db7535
commit
1d73b5a010
|
|
@ -0,0 +1,32 @@
|
|||
<!-- TMPL_INCLUDE NAME="auth-search-top.inc" -->
|
||||
<div id="mainbloc">
|
||||
|
||||
<h1 class="authority">Authority search</h1>
|
||||
|
||||
<form name="f" method="post">
|
||||
<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>
|
||||
<!-- TMPL_VAR NAME="category" -->
|
||||
</p>
|
||||
<p>
|
||||
<label class="label100">Search value</label><input type="text" name="value" value="<!-- TMPL_VAR name="resultstring" -->">
|
||||
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="category" -->">
|
||||
<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>
|
||||
<!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->
|
||||
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<!-- TMPL_INCLUDE NAME="auth-top.inc" -->
|
||||
<div id="mainbloc">
|
||||
|
||||
<h1 class="authority">Authority search</h1>
|
||||
|
||||
<form name="f" method="post">
|
||||
<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>
|
||||
<select name="authtypecode">
|
||||
<!-- TMPL_LOOP NAME="authtypesloop" -->
|
||||
<option value="<!-- TMPL_VAR NAME="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->>
|
||||
<!-- TMPL_VAR NAME="authtypetext" -->
|
||||
</option>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label class="label100">Search value</label>
|
||||
<input type="text" name="value" value="<!-- TMPL_VAR NAME="value" -->">
|
||||
<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">
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" value="Start search" class="button authority">
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- TMPL_INCLUDE NAME="auth-bottom.inc" -->
|
||||
|
||||
|
|
@ -0,0 +1,174 @@
|
|||
<!-- TMPL_INCLUDE NAME="auth-top.inc" -->
|
||||
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/includes/marc-editor.css">
|
||||
|
||||
<div class="tabbed">
|
||||
<form method="post" name="f">
|
||||
<h1 class="authority">Authority number <!-- TMPL_VAR NAME="authid" --></h1>
|
||||
<p>
|
||||
<input type="hidden" name="op" value="add">
|
||||
<input type="hidden" name="addfield_field">
|
||||
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->">
|
||||
<input type="hidden" name="authid" value="<!-- TMPL_VAR NAME="authid" -->">
|
||||
<!-- TMPL_IF name="authid" -->
|
||||
<input type="button" value="Save" onClick="Check(this.form)" accesskey="w" class="button authority">
|
||||
<!-- TMPL_ELSE -->
|
||||
<input type="button" value="Add authority" onClick="Check(this.form)" accesskey="w" class="button authority">
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- <a href="javascript:PopupZ3950()" class="button authority">z3950 search</a> -->
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<br><br><br><br><br><br><br><br><br><br><br>
|
||||
|
||||
<!-- TMPL_LOOP NAME="0XX" -->
|
||||
<!-- TMPL_IF name="tag" -->
|
||||
<p class="MARCtag">
|
||||
<!-- TMPL_VAR NAME="tag" -->
|
||||
<input type="hidden" name="ind_tag" value="<!-- TMPL_VAR NAME="tag" -->">
|
||||
<input type="text" name="indicator" size="3" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->"> - <TMPL_VAR NAME="tag_lib">
|
||||
<!-- TMPL_IF name="repeatable" -->
|
||||
<a href="javascript:AddField(<!-- TMPL_VAR NAME="tag" -->)">+</a>
|
||||
<!-- /TMPL_IF -->
|
||||
</p>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_LOOP NAME="subfield_loop" -->
|
||||
<p>
|
||||
<label class="labelsubfield">
|
||||
<b><!-- TMPL_VAR NAME="subfield" --></b>
|
||||
<!-- TMPL_IF name="mandatory" --><b><!-- /TMPL_IF -->
|
||||
<!-- TMPL_VAR NAME="marc_lib" -->
|
||||
<!-- TMPL_IF name="mandatory" --> *</b><!-- /TMPL_IF -->
|
||||
</label>
|
||||
<!-- TMPL_VAR NAME="marc_value" -->
|
||||
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->">
|
||||
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->">
|
||||
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->">
|
||||
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->">
|
||||
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->">
|
||||
</p>
|
||||
<!-- /tmpl_loop -->
|
||||
<!-- /tmpl_loop -->
|
||||
|
||||
<div name="hidden" id="hidden" class="tab">
|
||||
<!-- TMPL_LOOP NAME="hidden_loop" -->
|
||||
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->">
|
||||
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->">
|
||||
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->">
|
||||
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->">
|
||||
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->">
|
||||
<!-- /TMPL_LOOP -->
|
||||
</div>
|
||||
<!-- TMPL_IF name="oldbiblionumtagfield" -->
|
||||
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="oldbiblionumtagfield" -->">
|
||||
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="oldbiblionumtagsubfield" -->">
|
||||
<input type="hidden" name="field_value" value="<!-- TMPL_VAR NAME="oldbiblionumber" -->">
|
||||
<input type="hidden" name="mandatory" value="0">
|
||||
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->">
|
||||
<input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="oldbiblioitemnumtagfield" -->">
|
||||
<input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="oldbiblioitemnumtagsubfield" -->">
|
||||
<input type="hidden" name="field_value" value="<!-- TMPL_VAR NAME="oldbiblioitemnumber" -->">
|
||||
<input type="hidden" name="mandatory" value="0">
|
||||
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->">
|
||||
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->">
|
||||
<!-- /TMPL_IF -->
|
||||
</form>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function _(s) { return s } // dummy function for gettext
|
||||
function active(numlayer)
|
||||
{
|
||||
for (i=0; i < 10 ; i++ ) {
|
||||
ong = i+"XX";
|
||||
link = "link"+i;
|
||||
if (numlayer==i) {
|
||||
document.getElementById(ong).style.visibility="visible";
|
||||
} else {
|
||||
document.getElementById(ong).style.visibility="hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
function Check(f) {
|
||||
// Scan for nonempty fields
|
||||
var field_is_nonempty_p = new Array();
|
||||
for (i=0 ; i<f.field_value.length ; i++) {
|
||||
field_is_nonempty_p[f.tag[i].value] = 0;
|
||||
}
|
||||
for (i=0 ; i<f.field_value.length ; i++) {
|
||||
if (f.field_value[i].value.length != 0) {
|
||||
field_is_nonempty_p[f.tag[i].value] += 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Scan for missing mandatory subfields
|
||||
var total_missing_mandatory_subfields = 0;
|
||||
for (i=0 ; i<f.field_value.length-2 ; i++) {
|
||||
if (f.field_value[i].value.length==0 && f.mandatory[i].value==1) {
|
||||
// We should not flag an error unless the tag is also
|
||||
// mandatory, or if something else in the tag is entered
|
||||
|
||||
if (f.tag_mandatory[i].value == 1 || field_is_nonempty_p[f.tag[i].value]) {
|
||||
document.getElementById("error"+i).style.backgroundColor="#FF0000";
|
||||
total_missing_mandatory_subfields++;
|
||||
}
|
||||
} else {
|
||||
document.getElementById("error"+i).style.backgroundColor="#FFFFFF";
|
||||
}
|
||||
}
|
||||
|
||||
// Scan for missing mandatory tags
|
||||
var total_missing_mandatory_tags = 0;
|
||||
var seen_mandatory_tag_p = new Array();
|
||||
for (i=0 ; i<f.field_value.length ; i++) {
|
||||
var j = f.tag[i].value;
|
||||
if (!field_is_nonempty_p[j] && f.tag_mandatory[i].value == 1) {
|
||||
if (seen_mandatory_tag_p[j] != 1) {
|
||||
seen_mandatory_tag_p[j] = 1;
|
||||
total_missing_mandatory_tags++;
|
||||
}
|
||||
document.getElementById("error"+i).style.backgroundColor="#ffff00";
|
||||
}
|
||||
}
|
||||
|
||||
var total_errors = total_missing_mandatory_tags + total_missing_mandatory_subfields;
|
||||
var alertString2;
|
||||
if (total_errors!=0) {
|
||||
alertString2 = _("Form not submitted because of the following problem(s)");
|
||||
alertString2 += "\n------------------------------------------------------------------------------------\n";
|
||||
alertString2 += "\n- "+ total_missing_mandatory_tags +_(" mandatory tags empty");
|
||||
alertString2 += "\n- "+ total_missing_mandatory_subfields +_(" mandatory fields empty (see bold subfields)");
|
||||
alert(alertString2);
|
||||
} else {
|
||||
document.forms[1].submit();
|
||||
}
|
||||
}
|
||||
function Dopop(link,i) {
|
||||
defaultvalue=document.forms[0].field_value[i].value;
|
||||
newin=window.open(link+"&result="+defaultvalue,"value builder",'width=550,height=550,toolbar=false,scrollbars=yes');
|
||||
}
|
||||
|
||||
function PopupZ3950() {
|
||||
var strQuery="";
|
||||
for (i=0 ; i<document.forms[0].field_value.length ; i++) {
|
||||
if (document.forms[0].kohafield[i].value == "biblioitems.isbn" && document.forms[0].field_value[i].value.length>0) {
|
||||
strQuery += "&isbn="+document.forms[0].field_value[i].value;
|
||||
}
|
||||
if (document.forms[0].kohafield[i].value == "biblio.title" && document.forms[0].field_value[i].value.length>0) {
|
||||
strQuery += "&title="+document.forms[0].field_value[i].value;
|
||||
}
|
||||
if (document.forms[0].kohafield[i].value == "biblio.author" &&document.forms[0].field_value[i].value.length>0) {
|
||||
strQuery += "&author="+document.forms[0].field_value[i].value;
|
||||
}
|
||||
if (document.forms[0].kohafield[i].value == "biblioitems.issn" && document.forms[0].field_value[i].value.length>0) {
|
||||
strQuery += "&issn="+document.forms[0].field_value[i].value;
|
||||
}
|
||||
}
|
||||
newin=window.open("../z3950/search.pl?bibid=<!-- TMPL_VAR NAME="bibid" -->"+strQuery,"z3950search",'width=500,height=400,toolbar=false,scrollbars=yes');
|
||||
}
|
||||
|
||||
function AddField(field) {
|
||||
document.forms[0].op.value = "addfield";
|
||||
document.forms[0].addfield_field.value=field;
|
||||
document.f.submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<body>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
|
||||
function go()
|
||||
{
|
||||
var index_start = <!-- TMPL_VAR NAME="index" -->;
|
||||
var whichfield = opener.opener.document.f.tag[index_start].value;
|
||||
i=index_start
|
||||
// go forward, until reaching the end of the field.
|
||||
while (i<=opener.opener.document.f.field_value.length) {
|
||||
if (opener.opener.document.f.tag[i].value == whichfield && opener.opener.document.f.subfield[i].value == '9') {
|
||||
opener.opener.document.f.field_value[i].value = "<!-- TMPL_VAR NAME="authid">";
|
||||
}
|
||||
<!-- TMPL_LOOP NAME="0XX" -->
|
||||
<!-- TMPL_LOOP NAME="subfield" -->
|
||||
if (opener.opener.document.f.tag[i].value == whichfield && opener.opener.document.f.subfield[i].value == '<!-- TMPL_VAR NAME="marc_subfield" -->')
|
||||
{
|
||||
opener.opener.document.f.field_value[i].value = "<!-- TMPL_VAR NAME="marc_value" -->";
|
||||
}
|
||||
<!-- /TMPL_LOOP -->
|
||||
<!-- /TMPL_LOOP -->
|
||||
if (opener.opener.document.f.tag[i].value != whichfield) {
|
||||
i=opener.opener.document.f.field_value.length;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
// go backward until the beginning of the field
|
||||
i=index_start
|
||||
while (i>=0) {
|
||||
if (opener.opener.document.f.tag[i].value == whichfield && opener.opener.document.f.subfield[i].value == '9') {
|
||||
opener.opener.document.f.field_value[i].value = "<!-- TMPL_VAR NAME="authid">";
|
||||
}
|
||||
<!-- TMPL_LOOP NAME="0XX" -->
|
||||
<!-- TMPL_LOOP NAME="subfield" -->
|
||||
if (opener.opener.document.f.tag[i].value == whichfield && opener.opener.document.f.subfield[i].value == '<!-- TMPL_VAR NAME="marc_subfield" -->')
|
||||
{
|
||||
opener.opener.document.f.field_value[i].value = "<!-- TMPL_VAR NAME="marc_value" -->";
|
||||
}
|
||||
<!-- /TMPL_LOOP -->
|
||||
<!-- /TMPL_LOOP -->
|
||||
if (opener.opener.document.f.tag[i].value != whichfield) {
|
||||
i=0;
|
||||
}
|
||||
i--;
|
||||
}
|
||||
opener.close();
|
||||
self.close();
|
||||
return false;
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
window.onload = go();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
<!-- TMPL_INCLUDE NAME="auth-top.inc" -->
|
||||
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/includes/marc-editor.css">
|
||||
<div class="tabbed">
|
||||
<h1 class="authority">Authority number : <!-- TMPL_VAR NAME="authid" --></h1>
|
||||
<a href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">
|
||||
<img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png">
|
||||
</a>
|
||||
<a href="javascript:confirm_deletion()">
|
||||
<img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png">
|
||||
</a>
|
||||
<a href="javascript:Dopop('detailprint.pl?authid=<!-- TMPL_VAR NAME="authid" -->&index=<!-- TMPL_VAR NAME="index" -->')" class="button authority">
|
||||
Print
|
||||
</a>
|
||||
<a href="javascript:CopyValues()"> <img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/arrow.gif" height="45" width="45" ">
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<br><br><br>
|
||||
<div name="0XX" id="0XX" class="tab" style="visibility:visible">
|
||||
<!-- TMPL_LOOP NAME="0XX" -->
|
||||
<p class="MARCtag">
|
||||
<!-- TMPL_VAR NAME="tag" -->
|
||||
</p>
|
||||
<!-- TMPL_LOOP NAME="subfield" -->
|
||||
<p>
|
||||
<label class="labelsubfield">
|
||||
<a href="search.marc/search.pl?op=do_search&marclist=<!-- TMPL_VAR NAME="marc_tag" --><!-- TMPL_VAR NAME="marc_subfield" -->&operator==&type=intranet&value=<!-- TMPL_VAR NAME="marc_value" ESCAPE=URL -->">
|
||||
<img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/filefind.png" height="15">
|
||||
</a>
|
||||
<!-- TMPL_VAR NAME="marc_subfield" -->
|
||||
<!-- TMPL_VAR NAME="marc_lib" --></label>
|
||||
<!-- TMPL_VAR NAME="marc_value" -->
|
||||
</p>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<!-- /TMPL_LOOP -->
|
||||
</div>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
|
||||
function confirm_deletion() {
|
||||
var is_confirmed = confirm('Are you sure you want to delete this biblio?');
|
||||
if (is_confirmed) {
|
||||
window.location="acqui.simple/addbiblio.pl?op=delete&bibid=<!-- TMPL_VAR NAME="bibid" -->";
|
||||
}
|
||||
}
|
||||
function Dopop(link) {
|
||||
newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
|
||||
}
|
||||
|
||||
function CopyValues()
|
||||
{
|
||||
var index_start = <!-- TMPL_VAR NAME="index" -->;
|
||||
opener.opener.document.f.field_value[index_start].value = '<!-- TMPL_VAR NAME="authid">';
|
||||
var whichfield = opener.opener.document.f.tag[index_start].value;
|
||||
for (i=index_start ; i<opener.opener.document.f.field_value.length ; i++) {
|
||||
|
||||
if (opener.opener.document.f.tag[i].value == whichfield && opener.opener.document.f.subfield[i].value == '9')
|
||||
{
|
||||
opener.opener.document.f.field_value[i].value = '<!-- TMPL_VAR NAME="authid">';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
<!-- TMPL_LOOP NAME="0XX" -->
|
||||
<!-- TMPL_LOOP NAME="subfield" -->
|
||||
for (i=index_start ; i<opener.opener.document.f.field_value.length ; i++) {
|
||||
|
||||
if (opener.opener.document.f.tag[i].value == whichfield && opener.opener.document.f.subfield[i].value == '<!-- TMPL_VAR NAME="marc_subfield" -->')
|
||||
{
|
||||
opener.opener.document.f.field_value[i].value = '<!-- TMPL_VAR NAME="marc_value" -->';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
<!-- /TMPL_LOOP -->
|
||||
<!-- /TMPL_LOOP -->
|
||||
opener.close();
|
||||
self.close();
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!-- TMPL_INCLUDE NAME="auth-top.inc" -->
|
||||
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/includes/marc-editor.css">
|
||||
<div class="tabbed">
|
||||
<h1 class="authority">Authority number : <!-- TMPL_VAR NAME="authid" --></h1>
|
||||
<a href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">
|
||||
<img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png">
|
||||
</a>
|
||||
<a href="javascript:confirm_deletion()">
|
||||
<img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png">
|
||||
</a>
|
||||
<a href="javascript:Dopop('detailprint.pl?authid=<!-- TMPL_VAR NAME="authid" -->')" class="button authority">
|
||||
Print
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div name="0XX" id="0XX" class="tab" style="visibility:visible">
|
||||
<!-- TMPL_LOOP NAME="0XX" -->
|
||||
<p class="MARCtag">
|
||||
<!-- TMPL_VAR NAME="tag" -->
|
||||
</p>
|
||||
<!-- TMPL_LOOP NAME="subfield" -->
|
||||
<p>
|
||||
<label class="labelsubfield">
|
||||
<a href="search.marc/search.pl?op=do_search&marclist=<!-- TMPL_VAR NAME="marc_tag" --><!-- TMPL_VAR NAME="marc_subfield" -->&operator==&type=intranet&value=<!-- TMPL_VAR NAME="marc_value" ESCAPE=URL -->">
|
||||
<img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/filefind.png" height="15">
|
||||
</a>
|
||||
<!-- TMPL_VAR NAME="marc_subfield" -->
|
||||
<!-- TMPL_VAR NAME="marc_lib" --></label>
|
||||
<!-- TMPL_VAR NAME="marc_value" -->
|
||||
</p>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<!-- /TMPL_LOOP -->
|
||||
</div>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
|
||||
function confirm_deletion() {
|
||||
var is_confirmed = confirm('Are you sure you want to delete this biblio?');
|
||||
if (is_confirmed) {
|
||||
window.location="acqui.simple/addbiblio.pl?op=delete&bibid=<!-- TMPL_VAR NAME="bibid" -->";
|
||||
}
|
||||
}
|
||||
function Dopop(link) {
|
||||
newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,117 @@
|
|||
<!-- 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="auth_finder.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>
|
||||
<!-- TMPL_VAR NAME="category" -->
|
||||
</p>
|
||||
<p>
|
||||
<label class="label100">Search value</label><input type="text" name="value" value="<!-- TMPL_VAR name="resultstring" -->">
|
||||
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->">
|
||||
<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=<!-- TMPL_VAR name="authtypecode" -->&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=<!-- TMPL_VAR name="authtypecode" -->&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=<!-- TMPL_VAR name="authtypecode" -->&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>
|
||||
<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>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>
|
||||
<a href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=0&index=<!-- TMPL_VAR NAME="index" -->')" class="button authority">
|
||||
Clear
|
||||
</a>
|
||||
</td>
|
||||
<!-- TMPL_LOOP NAME="result" -->
|
||||
<tr>
|
||||
<td><!-- TMPL_VAR NAME="summary" --></td>
|
||||
<td><!-- TMPL_VAR NAME="used" --> times</td>
|
||||
<td>
|
||||
<a href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=<!-- TMPL_VAR NAME="authid" -->&index=<!-- TMPL_VAR NAME="index" -->')"><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=<!-- TMPL_VAR name="authtypecode" -->&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=<!-- TMPL_VAR name="authtypecode" -->&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=<!-- TMPL_VAR name="authtypecode" -->&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 jumpfull(page)
|
||||
{
|
||||
window.open(page,'','fullscreen,scrollbars');
|
||||
}
|
||||
</script>
|
||||
<!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
<!-- TMPL_INCLUDE NAME="auth-top.inc" -->
|
||||
<div id="mainbloc">
|
||||
<h1 class="authority">Authority search results</h1>
|
||||
<div id="resultnumber">
|
||||
<p>
|
||||
<!-- TMPL_IF name="displayprev" -->
|
||||
<a href="authorities-home.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&authtypecode=<!-- TMPL_VAR name="authtypecode" -->">
|
||||
<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="authorities-home.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&authtypecode=<!-- TMPL_VAR name="authtypecode" -->">
|
||||
<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="authorities-home.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&authtypecode=<!-- TMPL_VAR name="authtypecode" -->">
|
||||
<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 in</th>
|
||||
<th class="authority">View</th>
|
||||
<th class="authority">Delete</th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP NAME="result" -->
|
||||
<tr>
|
||||
<td><!-- TMPL_VAR NAME="summary" --></td>
|
||||
<td><a href="../search.marc/search.pl?type=intranet&op=do_search&marclist=<!-- TMPL_VAR NAME="biblio_fields" -->&operator==&value=<!-- TMPL_VAR NAME="authid" -->&and_or=and&excluding=" class="button authority"><!-- TMPL_VAR NAME="used" --> biblio(s)</a></td>
|
||||
<td>
|
||||
<a href="detail.pl?authid=<!-- TMPL_VAR NAME="authid" -->">
|
||||
<img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png" width="32" hspace="0" vspace="0" border="0" alt="Authority number <!-- TMPL_VAR NAME="authid" -->" title="Authority number<!-- TMPL_VAR NAME="authid" -->">
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<!-- TMPL_UNLESS name="used" -->
|
||||
<a href="javascript:do_delete('authorities-home.pl?op=delete&authid=<!-- TMPL_VAR NAME="authid" -->')">
|
||||
<img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0">
|
||||
</a>
|
||||
<!-- /TMPL_UNLESS -->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</table>
|
||||
</div>
|
||||
<div id="resultnumber">
|
||||
<p>
|
||||
<!-- TMPL_IF name="displayprev" -->
|
||||
<a href="authorities-home.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&authtypecode=<!-- TMPL_VAR name="authtypecode" -->">
|
||||
<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="authorities-home.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&authtypecode=<!-- TMPL_VAR name="authtypecode" -->">
|
||||
<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="authorities-home.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&authtypecode=<!-- TMPL_VAR name="authtypecode" -->">
|
||||
<img src="/intranet-tmpl/default/images/numbers/next.gif" border="0">
|
||||
</a>
|
||||
<!-- /TMPL_IF -->
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- TMPL_INCLUDE NAME="auth-bottom.inc" -->
|
||||
|
||||
|
||||
<script language="JavaScript" type="text/javascript" >
|
||||
function do_delete(page)
|
||||
{
|
||||
window.location = page;
|
||||
}
|
||||
</script>
|
||||
Loading…
Reference in New Issue