Fixing nomenclature and tmpl_process3.pl bugs
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / stopwords.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; System Administration &rsaquo; <!-- TMPL_IF NAME="else" -->Stop Words<!-- /TMPL_IF --><!-- TMPL_IF NAME="add_form" --> Stop Words &rsaquo; <!-- TMPL_IF NAME="searchfield" -->Modify Stop Word<!-- TMPL_ELSE -->New Stop Word<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF NAME="add_validate" --> Stop Words &rsaquo; Data recorded<!-- /TMPL_IF --><!-- TMPL_IF NAME="delete_confirm" --> Stop Words &rsaquo; Delete Stop Word '<!-- TMPL_VAR NAME="searchfield" -->' ?<!-- /TMPL_IF --><!-- TMPL_IF NAME="delete_confirmed" --> Stop Words &rsaquo; Data deleted<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_IF NAME="add_form" -->
5         <script language="javascript" type="text/javascript">
6                 //<![CDATA[
7             /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8             function isNotNull(f,noalert) {
9                 if (f.value.length ==0) {
10                     return false;
11                 }
12                 return true;
13             }
14             /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15             function toUC(f) {
16                 var x=f.value.toUpperCase();
17                 f.value=x;
18                 return true;
19             }
20             /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
21             function isNum(v,maybenull) {
22             var n = new Number(v.value);
23             if (isNaN(n)) {
24                 return false;
25             }
26             if (maybenull==0 && v.value=='') {
27                 return false;
28             }
29             return true;
30             }
31             /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
32             function isDate(f) {
33                 var t = Date.parse(f.value);
34                 if (isNaN(t)) {
35                     return false;
36                 }
37             }
38             /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
39             function Check(f) {
40                 var ok=1;
41                 var _alertString="";
42                 var alertString2;
43                 if (f.word.value.length==0) {
44                     _alertString += "\n- " + _("word missing");
45                 }
46                 if (_alertString.length==0) {
47                     document.Aform.submit();
48                 } else {
49                     alertString2  = _("Form not submitted because of the following problem(s)");
50                     alertString2 += "\n------------------------------------------------------------------------------------\n";
51                     alertString2 += _alertString;
52                     alert(alertString2);
53                 }
54             }  //]]>
55         </script>
56         <!-- /TMPL_IF -->
57 </head>
58 <body>
59 <!-- TMPL_INCLUDE NAME="header.inc" -->
60 <!-- TMPL_INCLUDE NAME="stopwords-admin-search.inc" -->
61
62 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <!-- TMPL_IF NAME="else" -->Stop Words<!-- /TMPL_IF --><!-- TMPL_IF NAME="add_form" --><a href="/cgi-bin/koha/admin/stopwords.pl">Stop Words</a> &rsaquo; <!-- TMPL_IF NAME="searchfield" -->Modify Stop Word<!-- TMPL_ELSE -->New Stop Word<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF NAME="add_validate" --> <a href="/cgi-bin/koha/admin/stopwords.pl">Stop Words</a> &rsaquo; Data recorded<!-- /TMPL_IF --><!-- TMPL_IF NAME="delete_confirm" --> <a href="/cgi-bin/koha/admin/stopwords.pl">Stop Words</a> &rsaquo; Delete Stop Word '<!-- TMPL_VAR NAME="searchfield" -->' ?<!-- /TMPL_IF --><!-- TMPL_IF NAME="delete_confirmed" --> <a href="/cgi-bin/koha/admin/stopwords.pl">Stop Words</a> &rsaquo; Data deleted<!-- /TMPL_IF --></div>
63
64 <div id="doc3" class="yui-t2">
65    
66    <div id="bd">
67         <div id="yui-main">
68         <div class="yui-b">
69
70 <!-- TMPL_IF NAME="add_form" -->
71         
72         <!-- TMPL_IF NAME="searchfield" -->
73             <h1>Modify word</h1>
74         <!-- TMPL_ELSE -->
75             <h1>New word</h1>
76         <!-- /TMPL_IF -->
77         <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
78             <input type="hidden" name="op" value="add_validate" />
79          <fieldset class="rows">  <ol> <!-- TMPL_IF NAME="searchfield" -->
80                 <li>
81                     <span class="label">Word</span>
82                         <input type="hidden" name="word" value="<!-- TMPL_VAR NAME="searchfield" -->" /><!-- TMPL_VAR NAME="searchfield" -->
83                 </li>
84             <!-- TMPL_ELSE -->
85                 <li>
86                     <label for="word">Word</label>
87                     <input type="text" name="word" id="word" size="50" maxlength="250" onblur="toUC(this)" />
88                 </li>
89             <!-- /TMPL_IF --></ol></fieldset>
90             <fieldset class="action">
91                 <input type="button" value="Save" onclick="Check(this.form)" /> <a class="cancel" href="/cgi-bin/koha/admin/stopwords.pl">Cancel</a>
92             </fieldset>
93         </form>
94 <!-- /TMPL_IF -->
95
96 <!-- TMPL_IF NAME="add_validate" -->
97     Data recorded
98     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
99         <input type="submit" value="OK" />
100     </form>
101 <!-- /TMPL_IF -->
102
103 <!-- TMPL_IF NAME="delete_confirm" -->
104     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
105         <fieldset>
106         <input type="hidden" name="op" value="delete_confirmed" />
107         <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
108                 <legend>Confirm Deletion of Stop word <em><!-- TMPL_VAR NAME="searchfield" --></em></legend>
109         <input type="submit" value="Yes, Delete" /> <a class="cancel" href="/cgi-bin/koha/admin/stopwords.pl">Cancel</a>
110         </fieldset>
111     </form>
112 <!-- /TMPL_IF -->
113
114 <!-- TMPL_IF NAME="delete_confirmed" -->
115     Data deleted
116     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
117         <input type="submit" value="OK" />
118     </form>
119 <!-- /TMPL_IF -->
120
121 <!-- TMPL_IF NAME="else" -->
122
123 <div id="toolbar">
124         <script type="text/javascript">
125         //<![CDATA[
126         // prepare DOM for YUI Toolbar
127          $(document).ready(function() {
128             yuiToolbar();
129          });
130         // YUI Toolbar Functions
131         function yuiToolbar() {
132             new YAHOO.widget.Button("newstopword");
133         }       //]]>
134         </script>
135         <ul class="toolbar">
136         <li><a id="newstopword" href="/cgi-bin/koha/admin/stopwords.pl?op=add_form">New Stop Word</a></li>
137 </ul></div>
138
139     <h1>Stop Words</h1>
140     <p class="message">NOTE : if you change something in this table, ask your administrator to run misc/rebuildnonmarc.pl script.</p>
141
142
143     <!-- TMPL_IF NAME="searchfield" -->
144                     You searched for <b><!-- TMPL_VAR NAME="searchfield" --></b>
145     <!-- /TMPL_IF -->
146
147     <table>
148             <tr>
149                     <th>Word</th>
150                     <th> </th>
151             </tr>
152             <!-- TMPL_LOOP NAME="loop" -->
153                 <tr bgcolor="<!-- TMPL_VAR NAME="toggle" -->">
154                     <td><!-- TMPL_VAR NAME="word" --></td>
155                     <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;searchfield=<!-- TMPL_VAR NAME="word" -->">Delete</a></td>
156                 </tr>
157             <!-- /TMPL_LOOP -->
158     </table>
159             <!-- TMPL_IF NAME="offsetgtzero" -->
160                 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->">&lt;&lt; Previous</a>
161             <!-- /TMPL_IF -->
162             <!-- TMPL_IF NAME="ltcount" -->
163                 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->">Next &gt;&gt;</a>
164             <!-- /TMPL_iF -->
165 <!-- /TMPL_IF -->
166
167 </div>
168 </div>
169 <div class="yui-b">
170 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
171 </div>
172 </div>
173 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->