[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/search.marc search.tmpl,1.11,1.12

Paul POULAIN tipaul at users.sourceforge.net
Mon Mar 15 15:43:07 CET 2004


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/search.marc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15509/koha-tmpl/intranet-tmpl/default/en/search.marc

Modified Files:
	search.tmpl 
Log Message:
adding searches on non marc fields ( like quick search) in MARC.
quick search should be removable soon, to keep only 1 search (marc & non marc)

Index: search.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/search.marc/search.tmpl,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** search.tmpl	23 Feb 2004 05:07:10 -0000	1.11
--- search.tmpl	15 Mar 2004 14:43:05 -0000	1.12
***************
*** 5,35 ****
  <!-- /TMPL_IF -->
  
! <span style="font-size:2em; text-align:left;">MARC search</span>
  
- <center>
  <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" -->">
! 
! 	<table border=0 cellspacing=0 cellpadding=2 width="100%">
! 		<tr align="center">
  			<td>
! 				<div name="sql">
! 				<textarea name="sql" rows=5 cols=60 disabled readonly></textarea>
! 				</div>
  			</td>
  		</tr>
! 		<tr align="center">
! 			<td bgcolor="#ad11ad" valign="top" align="left">
! 				<span style="color:#FFFFFF;">
! 					<b>HELP :</b><br/>
! 					Build your request using MARC fields and subfields. Add criteria lets you add another criteria to your search. Search commits the request and displays the results.
! 				</span>
  			</td>
  		</tr>
  	</table>
! 	<table border=0 cellspacing=0 cellpadding=2 width="100%">
  		<!-- TMPL_LOOP NAME="statements" -->
  		<tr>
--- 5,100 ----
  <!-- /TMPL_IF -->
  
! <h1>Catalogue 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" -->">
! 	<table class="noborder">
! 		<tr>
! 			<th colspan=4>
!     Quick search
! 			</th>
! 		</tr>
! 		<tr>
  			<td>
! 				Keyword <input type="hidden" name="marclist" value="">
! 				<input type="hidden" name="and_or" value="and">
! 				<input type="hidden" name="excluding value="">
! 			</td>
! 			<td>
! 				<input type="hidden" name="operator" value="contains">
! 				<input type="text" name="value" onchange="sql_update()">
! 			</td>
! 			<td>
!     Illustrator<input type="hidden" name="marclist" value="biblioitems.illus">
! 				<input type="hidden" name="and_or" value="and">
! 				<input type="hidden" name="excluding value="">
! 			</td>
! 			<td>
! 				<input type="hidden" name="operator" value="contains">
! 				<input type="text" name="value" onchange="sql_update()">
  			</td>
  		</tr>
! 		<tr>
! 			<td>
! 				Title <input type="hidden" name="marclist" value="biblio.title">
! 				<input type="hidden" name="and_or" value="and">
! 				<input type="hidden" name="excluding value="">
! 			</td>
! 			<td>
! 				<input type="hidden" name="operator" value="contains">
! 				<input type="text" name="value" onchange="sql_update()">
! 			</td>
! 			<td>
! 				Dewey<input type="hidden" name="marclist" value="biblioitems.dewey">
! 				<input type="hidden" name="and_or" value="and">
! 				<input type="hidden" name="excluding value="">
! 			</td>
! 			<td>
! 				<input type="hidden" name="operator" value="contains">
! 				<input type="text" name="value" onchange="sql_update()">
! 			</td>
! 		</tr>
! 		<tr>
! 			<td>
! 				author <input type="hidden" name="marclist" value="biblio.author">
! 				<input type="hidden" name="and_or" value="and">
! 				<input type="hidden" name="excluding value="">
! 			</td>
! 			<td>
! 				<input type="hidden" name="operator" value="contains">
! 				<input type="text" name="value" onchange="sql_update()">
! 			</td>
! 			<td>
! 				Item Type <input type="hidden" name="marclist" value="items.itemtype">
! 				<input type="hidden" name="and_or" value="and">
! 				<input type="hidden" name="excluding value="">
! 			</td>
! 			<td>
! 				<input type="hidden" name="operator" value="contains">
! 				<input type="text" name="value" onchange="sql_update()">
! 			</td>
! 		</tr>
! 		<tr>
! 			<td>
! 				barcode
! 			</td>
! 			<td>
! 				<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">
  			</td>
  		</tr>
  	</table>
! 
! 	<table class="noborder">
! 		<tr>
! 			<th colspan=5>
! 				Complete (MARC) search
! 			</th>
! 		</tr>
  		<!-- TMPL_LOOP NAME="statements" -->
  		<tr>
***************
*** 62,76 ****
  				</select>
  			</td>
! 			<td><input type="text" name="value" onChange="sql_update()" <!-- TMPL_IF NAME="value" -->value="<!-- TMPL_VAR NAME="value" -->"<!-- /TMPL_IF -->></td>
  		</tr>
  		<!-- /TMPL_LOOP -->
  	</table>
  	<br>
  
! 	<table width="90%">
  	<tr>
! 	<td align="left" width="33%"><input type="button" value="Add criteria" onClick="AddStatement()" class="button"></td>
! 	<td align="middle" width="33%"><input type="submit" value="Start search" class="button"></td>
! 	<td align="right" width="33%">Results per page :
  		<select align="right" name="resultsperpage" size="1">
  			<option value="20">20</option>
--- 127,152 ----
  				</select>
  			</td>
! 			<td>
! 				<input type="text" name="value" onChange="sql_update()" <!-- TMPL_IF NAME="value" -->value="<!-- TMPL_VAR NAME="value" -->"<!-- /TMPL_IF -->>
! 			</td>
  		</tr>
  		<!-- /TMPL_LOOP -->
+ 		<tr>
+ 			<td align="left" width="15%"><input type="button" value="Add criteria" onClick="AddStatement()" class="button"></td>
+ 		</tr>
+ 
+ 		<tr align="center">
+ 			<td colspan="5">
+ 				<div name="sql">
+ 				<textarea name="sql" rows=3 cols=60 disabled readonly></textarea>
+ 				</div>
+ 			</td>
+ 		</tr>
  	</table>
  	<br>
  
! 	<table class="noborder">
  	<tr>
! 	<td align="right">Results per page :
  		<select align="right" name="resultsperpage" size="1">
  			<option value="20">20</option>
***************
*** 79,86 ****
  		</select>
  	</td>
  	</tr>
  	</table>
  </form>
- </center>
  
  <script>
--- 155,170 ----
  		</select>
  	</td>
+ 	<td>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>
+ 	<td align="middle"><input type="submit" value="Start search" class="button"></td>
  	</tr>
  	</table>
  </form>
  
  <script>





More information about the Koha-cvs mailing list