5c0f821d027c68bde573692553a449471922e44b
[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    <div class="dialog message"> <h3>Data recorded</h3>
98     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
99         <input type="submit" value="OK" class="approve" />
100     </form></div>
101 <!-- /TMPL_IF -->
102
103 <!-- TMPL_IF NAME="delete_confirm" -->
104     <div class="dialog alert">
105         <h3>Delete Stop Word <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span></h3>
106         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
107        <input type="hidden" name="op" value="delete_confirmed" />
108         <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
109        <input type="submit" value="Yes, Delete" class="approve" /></form>
110            <form action="<!-- TMPL_VAR NAME="script_name" -->" method="get"><input type="submit" class="deny" value="No, Do Not Delete" /> </form></div>
111 <!-- /TMPL_IF -->
112
113 <!-- TMPL_IF NAME="delete_confirmed" -->
114    <div class="dialog message"> <h3>Data deleted</h3>
115     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
116         <input type="submit" value="OK" class="approve" />
117     </form></div>
118 <!-- /TMPL_IF -->
119
120 <!-- TMPL_IF NAME="else" -->
121
122 <div id="toolbar">
123         <script type="text/javascript">
124         //<![CDATA[
125         // prepare DOM for YUI Toolbar
126          $(document).ready(function() {
127             yuiToolbar();
128          });
129         // YUI Toolbar Functions
130         function yuiToolbar() {
131             new YAHOO.widget.Button("newstopword");
132         }       //]]>
133         </script>
134         <ul class="toolbar">
135         <li><a id="newstopword" href="/cgi-bin/koha/admin/stopwords.pl?op=add_form">New Stop Word</a></li>
136 </ul></div>
137
138     <h1>Stop Words</h1>
139     <p class="message">NOTE : if you change something in this table, ask your administrator to run misc/rebuildnonmarc.pl script.</p>
140
141
142     <!-- TMPL_IF NAME="searchfield" -->
143                     You searched for <b><!-- TMPL_VAR NAME="searchfield" --></b>
144     <!-- /TMPL_IF -->
145
146     <table>
147             <tr>
148                     <th>Word</th>
149                     <th> </th>
150             </tr>
151             <!-- TMPL_LOOP NAME="loop" -->
152                <!-- TMPL_UNLESS NAME="__odd__" -->
153                     <tr class="highlight">
154                <!-- TMPL_ELSE -->
155                     <tr>
156                <!-- /TMPL_IF -->
157                     <td><!-- TMPL_VAR NAME="word" --></td>
158                     <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;searchfield=<!-- TMPL_VAR NAME="word" -->">Delete</a></td>
159                 </tr>
160             <!-- /TMPL_LOOP -->
161     </table>
162            <div class="pages"> <!-- TMPL_IF NAME="offsetgtzero" -->
163                 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->">&lt;&lt; Previous</a>
164             <!-- /TMPL_IF -->
165             <!-- TMPL_IF NAME="ltcount" -->
166                 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->">Next &gt;&gt;</a>
167             <!-- /TMPL_iF --></div>
168 <!-- /TMPL_IF -->
169
170 </div>
171 </div>
172 <div class="yui-b">
173 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
174 </div>
175 </div>
176 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->