1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration ›
3 <!-- TMPL_IF name="add_form" --><!-- TMPL_IF NAME="modify" -->Modify system preference '<!-- TMPL_VAR NAME="searchfield" -->'<!-- TMPL_ELSE -->Add a system preference<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF name="add_validate" -->Data Added<!-- /TMPL_IF -->
4 <!-- TMPL_IF name="delete_confirm" -->Confirm Deletion of Parameter '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" -->Parameter Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="else" -->Preferences<!-- /TMPL_IF --></title>
5 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6 <script type="text/javascript">
9 function isNotNull(f,noalert) {
10 if (f.value.length ==0) {
17 var x=f.value.toUpperCase();
22 function isNum(v,maybenull) {
23 var n = new Number(v.value);
27 if (maybenull==0 && v.value=='') {
34 var t = Date.parse(f.value);
44 if (f.variable.value.length==0) {
45 _alertString += "\n- " + _("variable missing");
47 if (f.value.value.length==0) {
48 _alertString += "\n- " + _("value missing");
50 if (_alertString.length==0) {
51 document.Aform.submit();
53 alertString2 = _("Form not submitted because of the following problem(s)");
54 alertString2 += "\n------------------------------------------------------------------------------------\n";
55 alertString2 += _alertString;
63 <!-- TMPL_INCLUDE NAME="header.inc" -->
64 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
66 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <!-- TMPL_IF name="add_form" --><!-- TMPL_IF NAME="modify" -->Modify system preference '<!-- TMPL_VAR NAME="searchfield" -->'<!-- TMPL_ELSE -->Add a system preference<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF name="add_validate" -->Data Added<!-- /TMPL_IF -->
67 <!-- TMPL_IF name="delete_confirm" -->Confirm Deletion of Parameter '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" -->Parameter Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="else" -->Preferences<!-- /TMPL_IF --></div>
69 <div id="doc3" class="yui-t2">
77 <!-- TMPL_IF NAME="add_form" -->
80 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
82 <fieldset class="rows"><legend><!-- TMPL_IF NAME="modify" -->
83 Modify a system preference
85 Add a system preference
86 <!-- /TMPL_IF --></legend><ol>
87 <li><label for="explanation">Explanation: </label><input type="text" name="explanation" id="explanation" size="60" value="<!-- TMPL_VAR NAME="explanation" escape="HTML" -->" /><input type="hidden" name="op" value="add_validate" /></li>
88 <li><!-- TMPL_IF NAME="searchfield" --><td><label>Variable</label><!-- TMPL_VAR NAME="searchfield" --><input type="hidden" name="variable" value="<!-- TMPL_VAR NAME="searchfield" -->">
89 <!-- TMPL_ELSE --><td><label for="variable">Variable</label><input type="text" name="variable" id="variable" size="60" /><!-- /TMPL_IF --></li>
90 <li><label for="value">Value</label><!-- TMPL_IF NAME="type-free" -->
91 <textarea id="value" name="value" cols="<!-- TMPL_VAR NAME="fieldlength" -->"><!-- TMPL_VAR NAME="value" escape="HTML" --></textarea>
93 <!-- TMPL_IF NAME="type-textarea" -->
94 <textarea name="value" id="value" rows="<!--TMPL_VAR NAME="rows" -->" cols="<!-- TMPL_VAR NAME="cols" -->"><!-- TMPL_VAR NAME="value" escape="HTML" --></textarea>
96 <!-- TMPL_IF NAME="type-choice" -->
97 <select name="value" id="value">
98 <!-- TMPL_LOOP NAME="options" -->
99 <!-- TMPL_IF NAME="selected" -->
100 <option value="<!-- TMPL_VAR NAME="option" -->" selected="selected">
102 <option value="<!-- TMPL_VAR NAME="option" -->">
103 <!-- /TMPL_IF --><!-- TMPL_VAR NAME="option" --></option>
107 <!-- TMPL_IF NAME="type-yesno" -->
108 <!-- TMPL_IF NAME="value-yes" -->
109 <input type="radio" name="value" id="value" value="1" checked="checked"><!-- TMPL_ELSE --><input type="radio" name="value" id="value" value="1" /><!-- /TMPL_IF -->ON
110 <!-- TMPL_IF NAME="value-no" -->
111 <input type="radio" name="value" value="0" checked="checked" /><!-- TMPL_ELSE --><input type="radio" name="value" value="0" /><!-- /TMPL_IF -->OFF<!-- /TMPL_IF -->
114 <fieldset class="action"><input type="submit" value="<!-- TMPL_IF NAME="modify" -->Save Changes<!-- TMPL_ELSE -->Add this Preference<!-- /TMPL_IF -->"> <input type="button" value="Cancel" onclick="location.href='<!-- TMPL_VAR name="script_name" -->'; return false;" /></fieldset>
116 <fieldset class="brief">
117 <legend>Koha internal</legend>
118 <div class="hint">Note: you should have no reasons to modify the following default values</div>
120 <label for="preftype">Variable type:</label>
121 <div class="hint"> (Choice, YesNo, Integer, Textarea, Float, Themes, Languages, or ClassSource)</div>
122 <input type="text" name="preftype" id="preftype" value="<!--TMPL_VAR NAME="preftype" -->" size="40" maxlength="40">
123 <label for="prefoptions">Variable options:</label>
124 <div class="hint">(a choice list for Choice (separated by |) or cols|rows for Texarea)</div>
125 <input type="text" name="prefoptions" id="prefoptions" value="<!-- TMPL_VAR NAME="prefoptions" -->" size="60" maxlength="80" />
130 <!-- TMPL_IF NAME="add_validate" -->
133 <h3>Data recorded</h3>
135 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
136 <input type="submit" value="OK" />
140 <!-- TMPL_IF NAME="delete_confirm" -->
143 <caption>Confirm Deletion of <!-- TMPL_VAR NAME="searchfield" -->?</caption>
145 <th>Variable Name:</th>
146 <td><!-- TMPL_VAR NAME="searchfield" --></td>
148 <tr><th>Value: </th><td>
149 <!-- TMPL_VAR NAME="Tvalue" -->
151 <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
152 <input type="submit" value="Yes, Delete"></form> <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do not Delete" /></form>
157 <!-- TMPL_IF NAME="delete_confirmed" -->
159 <h3>Data deleted</h3>
160 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
161 <input type="submit" value="Back to System Preferences" />
165 <!-- TMPL_IF NAME="else" -->
166 <h1>System preferences admin</h1>
168 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Admin">Admin</a>
169 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Acquisitions">Acquisitions</a>
170 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Authorities">Authorities</a>
171 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Catalogue">Catalogue</a>
172 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Circulation">Circulation</a>
173 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Members">Borrowers</a>
174 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPAC">OPAC</a>
175 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPACFeatures">OPAC Features</a>
176 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Intranet">Staff Client</a>
177 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=LOGFeatures">Logs</a>
178 <a href="/cgi-bin/koha/admin/systempreferences.pl?">Other</a>
180 <h2>Editing preferences for <!-- TMPL_VAR name="tab" --> module</h2>
181 <!-- TMPL_VAR NAME="searchfield" -->
186 <th colspan="3" width="30%">Explanation</th>
188 <!-- TMPL_LOOP NAME="loop" -->
189 <tr<!-- TMPL_IF NAME="toggle" --> class="highlight"<!-- /TMPL_IF -->>
190 <td><a href="<!-- TMPL_VAR NAME="edit" -->"><!-- TMPL_VAR NAME="variable" --></a></td>
192 <td><!-- TMPL_IF NAME="yesno" -->
193 <!-- TMPL_IF NAME="yes" -->ON<!-- TMPL_ELSE -->OFF<!-- /TMPL_IF -->
194 <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF --></td>
196 <td width="20%"><!-- TMPL_VAR NAME="explanation" --></td>
197 <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
198 <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
203 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
204 <input type="hidden" name="op" value="add_form" />
205 <input type="submit" value="Add a new System Preference" />
213 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
216 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->