[Koha-cvs] CVS: koha/koha-tmpl/opac-tmpl/css/en opac-dictionary.tmpl,NONE,1.1.2.1 opac-search.tmpl,1.11.2.7,1.11.2.8

Paul POULAIN tipaul at users.sourceforge.net
Tue Jun 7 12:23:15 CEST 2005


Update of /cvsroot/koha/koha/koha-tmpl/opac-tmpl/css/en
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3722/koha-tmpl/opac-tmpl/css/en

Modified Files:
      Tag: rel_2_2
	opac-search.tmpl 
Added Files:
      Tag: rel_2_2
	opac-dictionary.tmpl 
Log Message:
porting dictionary search to OPAC

--- NEW FILE ---
<!-- TMPL_INCLUDE name="popup-top.inc"-->
<body>
<div id="mainbloc">
	<h1 class="catalogue">Dictionary Search</h1>
	
	<form name="f" method="post" action="opac-dictionary.pl">
		<div class="bloc25">
			<h2 class="catalogue">Search on</h2>
			<p>
				<input type="hidden" name="op" value="do_search">
				<label class="label100" for="keyword"></label>
				<input type="hidden" name="marclist" value="<!-- TMPL_VAR Name="marclist" -->">
				<input type="text" name="search" value="<!-- TMPL_VAR Name="search" -->" size="35">
				<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="bloc25">
	<h2 class="catalogue">Dictionary Search results</h2>
	<!-- TMPL_IF NAME="authresult" -->
		<div id="resultnumber">
			<p><!-- TMPL_IF NAME="displayprev" --> 
					<a class="resultnumber" href="opac-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" -->
					<!-- TMPL_IF NAME="highlight" -->
						<span class="highlight"><!-- TMPL_VAR NAME="number" --></span>
					<!-- TMPL_ELSE --> 
						<a class="resultnumber" href="opac-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="opac-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>
			<p class="resultcount">
			<!-- TMPL_IF NAME="nbresults" -->
					Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="nbresults" --><!-- TMPL_ELSE -->No results found.
			<!-- /TMPL_IF -->
			</p>
		</div>
		<div id="resultlist">
			<table>
				<tr>
					<th colspan="3" class="catalogue">Authorities</th>
				</tr>
				<tr>
					<th class="catalogue">Summary</th>
					<th class="catalogue">Used in</th>
					<th class="catalogue">Select</th>
				</tr>
				<!-- TMPL_LOOP NAME="authresult" -->
					<tr>
						<!-- TMPL_IF NAME="even" -->
							<td class="hilighted">
						<!-- TMPL_ELSE -->
							<td>
						<!-- /TMPL_IF -->
							<!-- TMPL_VAR NAME="summary" -->
						</td>
						<!-- TMPL_IF NAME="even" -->
							<td class="hilighted">
						<!-- TMPL_ELSE -->
							<td>
						<!-- /TMPL_IF -->
							<!-- TMPL_VAR NAME="used" --> biblio(s)
						</td>
						<!-- TMPL_IF NAME="even" -->
							<td class="hilighted">
						<!-- TMPL_ELSE -->
							<td>
						<!-- /TMPL_IF -->
							<a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="mainentry" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,0)" class="button catalogue">select</a>
							<a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="mainentry" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,1)" class="button catalogue">sel&amp;close</a>
						</td>
					</tr>
				<!-- /TMPL_LOOP -->
			</table>
		</div>
		<!-- TMPL_ELSE -->
			<h3 class="catalogue">No results in Authorities</h3>
	<!-- /TMPL_IF -->
		
		
	<!-- TMPL_IF Name=catresult -->	
		<div id="resultnumber">
			<p class="resultcount">
			<!-- TMPL_IF NAME="total" -->
					Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --><!-- TMPL_ELSE -->No results found.
			<!-- /TMPL_IF -->
			</p>
		</div>
		<div id="resultlist">
			<table>
				<tr>
					<th class="catalogue">Summary</th>
					<th class="catalogue">Used in</th>
					<th class="catalogue">Select</th>
				</tr>
				<!-- TMPL_LOOP NAME="catresult" -->
				<tr>
					<!-- TMPL_IF NAME="even" -->
					<td class="hilighted">
					<!-- TMPL_ELSE -->
					<td>
					<!-- /TMPL_IF -->
								<!-- TMPL_IF name="MARC_ON" -->
									<!-- TMPL_VAR NAME="value" -->
								<!-- TMPL_ELSE -->
									<!-- TMPL_VAR NAME="value" -->
								<!-- /TMPL_IF -->
					</td>
					<td align="center" <!-- TMPL_IF NAME="even" --> class="hilighted"<!-- /TMPL_IF -->>
						<!-- TMPL_VAR NAME="count" --> biblio(s)
					</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"  -->,0)" class="button catalogue">Select</a>
							<a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="value" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,1)" class="button catalogue">Sel&amp;close</a>
					</td>
				</tr>
				<!-- /TMPL_LOOP -->
			</table>
		</div>
		<div id="resultnumber">
			<p><!-- TMPL_IF NAME="displayprev" --> 
					<a class="resultnumber" href="opac-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" -->
					<!-- TMPL_IF NAME="highlight" -->
						<span class="highlight"><!-- TMPL_VAR NAME="number" --></span>
					<!-- TMPL_ELSE --> 
						<a class="resultnumber" href="opac-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="opac-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>
			<p class="resultcount">
			<!-- TMPL_IF NAME="total" -->
					Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --><!-- TMPL_ELSE -->No results found.
			<!-- /TMPL_IF -->
			</p>
		</div>
	<!-- /TMPL_IF -->
	<script language="JavaScript" type="text/javascript">
	function SelectEntry(myentry, myindex, wclose){
		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
		}
		if (wclose == 1) {
	// 	alert("closing")
			self.close();
		}
	}
	</script>
	</div>
<!-- /TMPL_IF -->
</div>
<!-- TMPL_INCLUDE name="opac-bottom.inc" -->
Index: opac-search.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/opac-tmpl/css/en/opac-search.tmpl,v
retrieving revision 1.11.2.7
retrieving revision 1.11.2.8
diff -C2 -r1.11.2.7 -r1.11.2.8
*** opac-search.tmpl	31 May 2005 15:15:28 -0000	1.11.2.7
--- opac-search.tmpl	7 Jun 2005 10:23:13 -0000	1.11.2.8
***************
*** 25,28 ****
--- 25,31 ----
  			<input type="hidden" name="operator" value="contains" />
  			<input type="text" name="value" size="35" />
+ 			<a href="javascript:Dopop('opac-dictionary.pl?marclist=biblio.title&amp;type=intranet&amp;index=1',1)" class="button catalogue">
+ 				...
+ 			</a>
  		</p>
  		<p>
***************
*** 32,35 ****
--- 35,41 ----
  			<input type="hidden" name="operator" value="contains" />
  			<input type="text" name="value" size="35" />
+ 			<a href="javascript:Dopop('opac-dictionary.pl?marclist=biblio.author&amp;type=intranet&amp;index=2',2)" class="button catalogue">
+ 				...
+ 			</a>
  		</p>
  		<p>
***************
*** 40,43 ****
--- 46,52 ----
  			<input type="hidden" name="operator" value="contains" />  
  			<input type="text" name="value" size="35" />
+ 			<a href="javascript:Dopop('opac-dictionary.pl?marclist=bibliosubject.subject&amp;type=intranet&amp;index=3',3)" class="button catalogue">
+ 				...
+ 			</a>
  		</p>
  		<p>
***************
*** 155,158 ****
--- 164,169 ----
  		<p>A search is done on every words you enter. Empty words are ignored. If you enter, for example "the two towers" in the title, the result list will contain all the books containing two AND tower in the title. The "the" will be discarded.</p>
  		<p>If you want to enter a partial word, add a * or a % at the end of the word. For example "two tower*" will retrieve "the two towers", "two white towers", "a tower and two cities"</p>
+ 		<h3>Dictionnary search</h3>
+ 		<p>if you clic on ... on the right of title/author/subject, you can search existing values in the library.</p>
  	</div>
  </form>





More information about the Koha-cvs mailing list