[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/search.marc dictionary.tmpl,1.3,1.4

Henri-Damien LAURENT hdl at users.sourceforge.net
Wed May 4 14:46:30 CEST 2005


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

Modified Files:
	dictionary.tmpl 
Log Message:
Dictionary feature implemented

Index: dictionary.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/search.marc/dictionary.tmpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** dictionary.tmpl	3 May 2005 15:00:32 -0000	1.3
--- dictionary.tmpl	4 May 2005 12:46:28 -0000	1.4
***************
*** 47,54 ****
--- 47,56 ----
  				<input type="submit" value="Start search" class="button catalogue">
  				<input type="hidden" name="type" value="<!-- TMPL_VAR Name="type" -->">
+ 				<input type="hidden" name="index" value="<!-- TMPL_VAR Name="anindex" ESCAPE="URL" -->">
  			</p>
  		</div>
  	</form>
  
+ <!-- TMPL_IF Name=search -->
  	<div class="bloc100">
  		<h2 class="catalogue">Dictionary Search results</h2>
***************
*** 56,60 ****
  		<div id="resultnumber">
  			<p><!-- TMPL_IF NAME="displayprev" --> 
! 					<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL-->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE=URL-->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">&lt;&lt;Previous</a>
  				<!-- /TMPL_IF -->
  				<!-- TMPL_LOOP NAME="numbers" -->
--- 58,62 ----
  		<div id="resultnumber">
  			<p><!-- TMPL_IF NAME="displayprev" --> 
! 					<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL-->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE=URL-->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->">&lt;&lt;Previous</a>
  				<!-- /TMPL_IF -->
  				<!-- TMPL_LOOP NAME="numbers" -->
***************
*** 62,70 ****
  						<span class="highlight"><!-- TMPL_VAR NAME="number" --></span>
  					<!-- TMPL_ELSE --> 
! 						<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL -->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE=URL -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><!-- TMPL_VAR NAME="number" --></a>
  					<!-- /TMPL_IF -->
  				<!-- /TMPL_LOOP --> 
  				<!-- TMPL_IF NAME="displaynext" -->
! 					<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" -->&amp;search=<!-- TMPL_VAR NAME="search" -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">Next&gt;&gt;</a>
  				<!-- /TMPL_IF -->
  			</p>
--- 64,72 ----
  						<span class="highlight"><!-- TMPL_VAR NAME="number" --></span>
  					<!-- TMPL_ELSE --> 
! 						<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL -->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE=URL -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->"><!-- TMPL_VAR NAME="number" --></a>
  					<!-- /TMPL_IF -->
  				<!-- /TMPL_LOOP --> 
  				<!-- TMPL_IF NAME="displaynext" -->
! 					<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" -->&amp;search=<!-- TMPL_VAR NAME="search" -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->">Next&gt;&gt;</a>
  				<!-- /TMPL_IF -->
  			</p>
***************
*** 78,86 ****
  			<table>
  				<tr>
! 					<th colspan="2" class="catalogue">Authorities</th>
  				</tr>
  				<tr>
  					<th class="catalogue">Summary</th>
  					<th class="catalogue">Used</th>
  				</tr>
  				<!-- TMPL_LOOP NAME="authresult" -->
--- 80,89 ----
  			<table>
  				<tr>
! 					<th colspan="3" class="catalogue">Authorities</th>
  				</tr>
  				<tr>
  					<th class="catalogue">Summary</th>
  					<th class="catalogue">Used</th>
+ 					<th class="catalogue">Select</th>
  				</tr>
  				<!-- TMPL_LOOP NAME="authresult" -->
***************
*** 89,92 ****
--- 92,97 ----
  						<td>
  							<a href="../search.marc/search.pl?type=intranet&amp;op=do_search&amp;marclist=<!-- TMPL_VAR NAME="biblio_fields" -->&amp;operator==&amp;value=<!-- TMPL_VAR NAME="authid" -->&amp;and_or=and&amp;excluding=" class="button catalogue"><!-- TMPL_VAR NAME="used" --> biblio(s)
+ 						<td><img src="/images/arrow.gif" width="32" hspace="0" vspace="0" border="0">
+ 						</td>
  						</td>
  					</tr>
***************
*** 97,101 ****
  			<h3 class="catalogue">No results in Authorities</h3>
  		<!-- /TMPL_IF -->
! <!-- TMPL_IF Name=catresult -->	
  		<div id="resultnumber">
  			<p class="resultcount">
--- 102,106 ----
  			<h3 class="catalogue">No results in Authorities</h3>
  		<!-- /TMPL_IF -->
! 		<!-- TMPL_IF Name=catresult -->	
  		<div id="resultnumber">
  			<p class="resultcount">
***************
*** 109,115 ****
  				<tr>
  					<th class="catalogue">Summary</th>
! 					<th class="catalogue">Item Count</th>
! 					<th class="catalogue">Location</th>
! 					<th class="catalogue">&nbsp;</th>
  				</tr>
  				<!-- TMPL_LOOP NAME="catresult" -->
--- 114,119 ----
  				<tr>
  					<th class="catalogue">Summary</th>
! 					<th class="catalogue">Biblio Count</th>
! 					<th class="catalogue">Select</th>
  				</tr>
  				<!-- TMPL_LOOP NAME="catresult" -->
***************
*** 125,151 ****
  					</td>
  					<td <!-- TMPL_IF NAME="even" -->class="hilighted"<!-- /TMPL_IF -->>
! 						<!-- TMPL_LOOP NAME="CN" -->
! 							<p>
! 								<!-- TMPL_VAR NAME="holdingbranch" -->
! 								<!-- TMPL_IF name="date_due" -->
! 									On Loan until <!-- TMPL_VAR NAME="date_due" -->
! 								<!-- TMPL_ELSE -->
! 									<!-- TMPL_IF NAME="itemcallnumber" -->
! 										(<!-- TMPL_VAR NAME="itemcallnumber" -->)
! 									<!-- /TMPL_IF -->
! 								<!-- /TMPL_IF -->
! 								<!-- TMPL_IF name="notforloan" -->
! 									<i>(<!-- TMPL_VAR name="notforloan" -->)</i>
! 								<!-- /TMPL_IF -->
! 							</p>
! 						<!-- /TMPL_LOOP -->
! 						<!-- TMPL_IF name="onorder" --><p>On order</p><!-- /TMPL_IF -->
! 					</td>
! 					<td <!-- TMPL_IF NAME="even" -->class="hilighted"<!-- /TMPL_IF -->>
! 						<!-- TMPL_UNLESS name="norequests" -->
! 							<a class="button catalogue" href="/cgi-bin/koha/request.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">Request</a>
! 						<!-- TMPL_ELSE -->
! 							<p>Not Reservable</p>
! 						<!-- /TMPL_UNLESS -->
  					</td>
  				</tr>
--- 129,133 ----
  					</td>
  					<td <!-- TMPL_IF NAME="even" -->class="hilighted"<!-- /TMPL_IF -->>
! 							<a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="value" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->)" class="button catalogue">Select</a>
  					</td>
  				</tr>
***************
*** 155,159 ****
  		<div id="resultnumber">
  			<p><!-- TMPL_IF NAME="displayprev" --> 
! 					<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL-->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE=URL-->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">&lt;&lt;Previous</a>
  				<!-- /TMPL_IF -->
  				<!-- TMPL_LOOP NAME="numbers" -->
--- 137,141 ----
  		<div id="resultnumber">
  			<p><!-- TMPL_IF NAME="displayprev" --> 
! 					<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL-->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE=URL-->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->">&lt;&lt;Previous</a>
  				<!-- /TMPL_IF -->
  				<!-- TMPL_LOOP NAME="numbers" -->
***************
*** 161,169 ****
  						<span class="highlight"><!-- TMPL_VAR NAME="number" --></span>
  					<!-- TMPL_ELSE --> 
! 						<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL -->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE=URL -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><!-- TMPL_VAR NAME="number" --></a>
  					<!-- /TMPL_IF -->
  				<!-- /TMPL_LOOP --> 
  				<!-- TMPL_IF NAME="displaynext" -->
! 					<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" -->&amp;search=<!-- TMPL_VAR NAME="search" -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">Next&gt;&gt;</a>
  				<!-- /TMPL_IF -->
  			</p>
--- 143,151 ----
  						<span class="highlight"><!-- TMPL_VAR NAME="number" --></span>
  					<!-- TMPL_ELSE --> 
! 						<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL -->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE=URL -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->"><!-- TMPL_VAR NAME="number" --></a>
  					<!-- /TMPL_IF -->
  				<!-- /TMPL_LOOP --> 
  				<!-- TMPL_IF NAME="displaynext" -->
! 					<a class="resultnumber" href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" -->&amp;search=<!-- TMPL_VAR NAME="search" -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->">Next&gt;&gt;</a>
  				<!-- /TMPL_IF -->
  			</p>
***************
*** 174,181 ****
  			</p>
  		</div>
! 		
  	</div>
  <!-- /TMPL_IF -->
! 
  </div>
  </body>
--- 156,171 ----
  			</p>
  		</div>
! <script language="JavaScript" type="text/javascript">
! function SelectEntry(myentry, myindex){
! 	if (opener.document.f.value[myindex].value!=""){ 
! 		opener.document.f.value[myindex].value=opener.document.f.value[myindex].value+" "+myentry
! 	} else {
! 		opener.document.f.value[myindex].value=myentry
! 	}
! }
! </script>
  	</div>
  <!-- /TMPL_IF -->
! <!-- /TMPL_IF -->
  </div>
  </body>





More information about the Koha-cvs mailing list