[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/authorities auth
From: |
Paul POULAIN |
Subject: |
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/authorities auth_finder.tmpl,NONE,1.1 detail.tmpl,NONE,1.1 searchresultlist.tmpl,NONE,1.1 authorities-home.tmpl,1.1,1.2 authorities.tmpl,1.1,1.2 |
Date: |
Thu, 10 Jun 2004 01:30:04 -0700 |
Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/authorities
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11078/koha-tmpl/intranet-tmpl/default/en/authorities
Modified Files:
authorities-home.tmpl authorities.tmpl
Added Files:
auth_finder.tmpl detail.tmpl searchresultlist.tmpl
Log Message:
MARC authority management (continued)
--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="popup-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="authtype">
<!-- 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="popup-bottom.inc" -->
--- NEW FILE ---
<!-- 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>
--- NEW FILE ---
<!-- 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=search.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>
<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=search.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><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=search.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><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">Authority #</th>
<th class="authority">Author</th>
</tr>
<!-- TMPL_LOOP name="result" -->
<tr>
<td><a href="detail.pl?authid=<!--
TMPL_VAR name="authid" -->"><!-- TMPL_VAR name="authid" --></a></td>
<td><!-- TMPL_VAR name="summary"
--></td>
</tr>
<!-- /TMPL_LOOP -->
</table>
</div>
<div id="resultnumber">
<p>
<!-- TMPL_IF NAME=displayprev -->
<a href=search.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><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=search.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><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=search.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><img
src="/intranet-tmpl/default/images/numbers/next.gif" border=0></a>
<!-- /TMPL_IF -->
</p>
</div>
</div>
<!-- TMPL_INCLUDE NAME="auth-bottom.inc" -->
Index: authorities-home.tmpl
===================================================================
RCS file:
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/authorities/authorities-home.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** authorities-home.tmpl 7 Jun 2004 07:36:46 -0000 1.1
--- authorities-home.tmpl 10 Jun 2004 08:30:02 -0000 1.2
***************
*** 11,169 ****
<h2 class="authority">Search on</h2>
<p>
! <label class="label20">Keyword</label>
! <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="text" name="value" onchange="sql_update()">
! </p>
! <p>
! <label class="label20">Title</label>
! <input type="hidden" name="marclist"
value="biblio.title">
! <input type="hidden" name="and_or" value="and">
! <input type="hidden" name="excluding" value="">
! <input type="hidden" name="operator" value="contains">
! <input type="text" name="value" onchange="sql_update()">
! </p>
! <p>
! <label class="label20">author</label> <input
type="hidden" name="marclist" value="biblio.author">
! <input type="hidden" name="and_or" value="and">
! <input type="hidden" name="excluding" value="">
! <input type="hidden" name="operator" value="contains">
! <input type="text" name="value" onchange="sql_update()">
! </p>
! <p>
! <label class="label20">barcode</label>
! <input type="hidden" name="marclist"
value="items.barcode">
! <input type="hidden" name="and_or" value="and">
! <input type="hidden" name="excluding" value="">
! <input type="hidden" name="operator"
value="contains">
! <input type="text" name="value"
onchange="sql_update()">
! </p>
! </div>
! <div id="bloc25">
! <h2 class="authority">Search on</h2>
! <p>
! <label class="label20">Illustrator</label>
! <input type="hidden" name="marclist"
value="biblioitems.illus">
! <input type="hidden" name="and_or" value="and">
! <input type="hidden" name="excluding" value="">
! <input type="hidden" name="operator" value="contains">
! <input type="text" name="value" onchange="sql_update()">
</p>
<p>
! <label class="label20">Dewey</label><input
type="hidden" name="marclist" value="biblioitems.dewey">
<input type="hidden" name="and_or" value="and">
<input type="hidden" name="excluding" value="">
<input type="hidden" name="operator" value="contains">
- <input type="text" name="value" onchange="sql_update()">
- </p>
- <p>
- <label class="label20">Item Type</label> <input
type="hidden" name="marclist" value="biblioitems.itemtype">
- <input type="hidden" name="and_or" value="and">
- <input type="hidden" name="excluding" value="">
- <input type="hidden" name="operator" value="=">
- <!-- TMPL_VAR name="CGIitemtype" -->
- </p>
- <p>
- <label class="label20">branch</label>
- <input type="hidden" name="marclist"
value="items.holdingbranch">
- <input type="hidden" name="and_or" value="and">
- <input type="hidden" name="excluding" value="">
- <input type="hidden" name="operator" value="=">
- <!-- TMPL_VAR name="CGIbranch" -->
- </p>
-
- </div>
- <div id="bloc100">
- <h2 class="authority">More fields</h2>
- <!-- TMPL_LOOP NAME="statements" -->
- <p>
- <select name="and_or" size="1"
onchange="sql_update()">
- <option value="and">and</option>
- <option <!-- TMPL_IF NAME="or"
-->selected <!-- /TMPL_IF -->value="or">or</option>
- </select>
- <!-- TMPL_VAR name="marclist" -->
- <select name="excluding" size="1"
onchange="sql_update()">
- <option value="0"> </option>
- <option <!-- TMPL_IF NAME="not"
-->selected <!-- /TMPL_IF -->value="1">not</option>
- </select>
- <select name="operator" size="1"
onchange="sql_update()">
- <option <!-- TMPL_IF NAME="contains"
-->selected<!-- /TMPL_IF --> value="contains">Contains</option>
- <option <!-- TMPL_IF NAME="eq"
-->selected<!-- /TMPL_IF --> value="=">Is equal to</option>
- <option <!-- TMPL_IF NAME="start"
-->selected<!-- /TMPL_IF --> value="start">Starts with</option>
- <option <!-- TMPL_IF NAME="gt"
-->selected<!-- /TMPL_IF --> value=">">Is greater than</option>
- <option <!-- TMPL_IF NAME="ge"
-->selected<!-- /TMPL_IF --> value=">=">Is greater or equal to</option>
- <option <!-- TMPL_IF NAME="lt"
-->selected<!-- /TMPL_IF --> value="<">Is lower than</option>
- <option <!-- TMPL_IF NAME="le"
-->selected<!-- /TMPL_IF --> value="<=">Is lower or equal to</option>
- </select>
- <input type="text" name="value"
onChange="sql_update()" <!-- TMPL_IF NAME="value" -->value="<!-- TMPL_VAR
NAME="value" -->"<!-- /TMPL_IF -->>
- </p>
- <!-- /TMPL_LOOP -->
- <p>
- <input type="button authority" value="Add criteria"
onClick="AddStatement()" class="button authority">
- </p>
- Warning : the "contains" statement does NOT work if you enter 2
or less letters
- </div>
- <div id="bloc25">
- <p>
- <div name="sql">
- <textarea name="sql" rows=3 cols=70 disabled
readonly></textarea>
- </div>
- </p>
- <p>Results per page :
- <select align="right" name="resultsperpage" size="1">
- <option value="20">20</option>
- <option value="50">50</option>
- <option value="100">100</option>
- </select>
- Ordered by
- <select name="orderby" size="1">
- <option value="biblio.title">Title</option>
- <option value="biblio.author">Author</option>
- <option value="biblioitems.dewey">Dewey</option>
- <option
value="biblioitems.publicationyear">Publication Year</option>
- <option
value="biblioitems.publishercode">Publisher</option>
- </select>
</p>
<p>
<input type="submit" value="Start search" class="button
authority">
- <a href="javascript:PopupSuggestion()" class="button
authority">Suggestions</a>
</p>
</div>
</form>
-
- <script>
- function sql_update() {
- document.f.sql.value="";
- for (i=0 ; i<document.f.marclist.length ; i++) {
- if (document.f.value[i].value.length>0) {
- document.f.sql.value = document.f.sql.value+
-
document.f.and_or[i].value + ' (' +
-
document.f.excluding[i].value + ' ' +
-
document.f.marclist[i].value + ' ' +
-
document.f.operator[i].value + ' ' +
-
'\''+document.f.value[i].value + '\') ';
- }
- }
- }
-
- function AddStatement() {
-
- document.forms[0].op.value="AddStatement";
- document.f.submit();
- }
-
- function PopupSuggestion() {
- var strQuery="";
- for (i=0 ; i<document.f.marclist.length ; i++) {
- if (document.f.value[i].value.length>0) {
- strQuery += " "+document.f.value[i].value;
- }
- }
-
newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
- }
-
- </script>
</div>
<!-- TMPL_INCLUDE NAME="auth-bottom.inc" -->
--- 11,36 ----
<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" -->
Index: authorities.tmpl
===================================================================
RCS file:
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/authorities/authorities.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** authorities.tmpl 7 Jun 2004 07:36:46 -0000 1.1
--- authorities.tmpl 10 Jun 2004 08:30:02 -0000 1.2
***************
*** 135,139 ****
alert(alertString2);
} else {
! document.forms[0].submit();
}
}
--- 135,139 ----
alert(alertString2);
} else {
! document.forms[1].submit();
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/authorities auth_finder.tmpl,NONE,1.1 detail.tmpl,NONE,1.1 searchresultlist.tmpl,NONE,1.1 authorities-home.tmpl,1.1,1.2 authorities.tmpl,1.1,1.2,
Paul POULAIN <=
- Prev by Date:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters auth_subfields_structure.tmpl,1.3,1.4 authtypes.tmpl,1.2,1.3 marc_subfields_structure.tmpl,1.31,1.32
- Next by Date:
[Koha-cvs] CVS: koha/authorities auth_finder.pl,NONE,1.1 detail.pl,NONE,1.1 authorities-home.pl,1.1,1.2 authorities.pl,1.1,1.2
- Previous by thread:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters auth_subfields_structure.tmpl,1.3,1.4 authtypes.tmpl,1.2,1.3 marc_subfields_structure.tmpl,1.31,1.32
- Next by thread:
[Koha-cvs] CVS: koha/authorities auth_finder.pl,NONE,1.1 detail.pl,NONE,1.1 authorities-home.pl,1.1,1.2 authorities.pl,1.1,1.2
- Index(es):