Putting reserve link back into search results
[koha.git] / koha-tmpl / intranet-tmpl / npl / en / search.marc / suggest.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Suggestions<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
3
4 <div id="main">
5                 <table>
6                 <caption>Catalog Search</caption>
7                         <tr>
8                                 <th>Initial word</th>
9                                 <th>Suggested</th>
10                                 <th>Used X times</th>
11                         </tr>
12                 <!-- TMPL_LOOP NAME="loop" -->
13                         <tr>
14                                 <td><!-- TMPL_VAR NAME="word" --></td>
15                                 <td><a href="javascript:Import('<!-- TMPL_VAR NAME="word" -->','<!-- TMPL_VAR NAME="suggestion" -->')">
16                                                 <!-- TMPL_VAR NAME="suggestion" -->
17                                         </a></td>
18                                 <td><!-- TMPL_VAR NAME="count" --></td>
19                         </tr>
20                 <!-- /TMPL_LOOP -->
21                 </table>
22         </div>
23 </div>
24 <script language="javascript" type="text/javascript">
25         function Import(Replaced,ReplaceBy) {
26                 for (i=0 ; i<opener.document.f.value.length ; i++) {
27                                 opener.document.forms['f'].value[i].value = opener.document.forms['f'].value[i].value.replace(Replaced,ReplaceBy);
28 //                      if (document.forms[0].kohafield[i].value == "biblioitems.isbn" && document.forms[0].field_value[i].value.length>0) {
29 //                              strQuery += "&isbn="+document.forms[0].field_value[i].value;
30 //                      }
31 //                      opener.document.location= "../acqui.simple/addbiblio.pl?z3950=1&oldbiblionumber=<!-- TMPL_VAR NAME="oldbiblionumber" -->&breedingid="+GetThisOne;
32 //                      self.close();
33 //                      return false;
34                 }
35         }
36 </script>
37
38 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
39
40