Clean up before final commits
[koha.git] / koha-tmpl / intranet-tmpl / default / en / search.marc / suggest.tmpl
1 <!-- TMPL_IF NAME="opac" -->
2     <!-- TMPL_INCLUDE NAME="opac-top.inc" -->
3 <!-- TMPL_ELSE -->
4     <!-- TMPL_INCLUDE NAME="cat-top.inc" -->
5 <!-- /TMPL_IF -->
6 <div id="mainbloc">
7         <h1 class="catalogue">Catalogue search</h1>
8         <div id="bloc25">
9                 <table>
10                         <tr>
11                                 <th class="catalogue">
12                                         Initial word
13                                 </th>
14                                 <th class="catalogue">
15                                         Suggested
16                                 </th>
17                                 <th class="catalogue">
18                                         Used X times
19                                 </th>
20                         </tr>
21                 <!-- TMPL_LOOP NAME="loop" -->
22                         <tr>
23                                 <td>
24                                         <!-- TMPL_VAR NAME="word" -->
25                                 </td>
26                                 <td>
27                                         <a href="javascript:Import('<!-- TMPL_VAR NAME="word" -->','<!-- TMPL_VAR NAME="suggestion" -->')">
28                                                 <!-- TMPL_VAR NAME="suggestion" -->
29                                         </a>
30                                 </td>
31                                 <td>
32                                         <!-- TMPL_VAR NAME="count" -->
33                                 </td>
34                         </tr>
35                 <!-- /TMPL_LOOP -->
36                 </table>
37         </div>
38 </div>
39 <script language="javascript" type="text/javascript">
40         function Import(Replaced,ReplaceBy) {
41                 for (i=0 ; i<opener.document.f.value.length ; i++) {
42                                 opener.document.forms['f'].value[i].value = opener.document.forms['f'].value[i].value.replace(Replaced,ReplaceBy);
43 //                      if (document.forms['f'].kohafield[i].value == "biblioitems.isbn" && document.forms['f'].field_value[i].value.length>0) {
44 //                              strQuery += "&isbn="+document.forms['f'].field_value[i].value;
45 //                      }
46 //                      opener.document.location= "../acqui.simple/addbiblio.pl?z3950=1&oldbiblionumber=<!-- TMPL_VAR NAME="oldbiblionumber" -->&breedingid="+GetThisOne;
47                         self.close();
48 //                      return false;
49                 }
50         }
51 </script>
52
53 <!-- TMPL_IF NAME="opac" -->
54     <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
55 <!-- TMPL_ELSE -->
56     <!-- TMPL_INCLUDE NAME="cat-bottom.inc" -->
57 <!-- /TMPL_IF -->
58