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