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" -->
79 <!-- TMPL_IF NAME="modify" -->
80 <h1>Modify a system preference</h1>
82 <h1>Add a system preference</h1>
84 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
88 <tr><td><label for="explanation">Explanation: </label></td><td><input type="text" name="explanation" id="explanation" size="60" value="<!-- TMPL_VAR NAME="explanation" escape="HTML" -->" /><input type="hidden" name="op" value="add_validate" /></td></tr>
89 <tr><!-- TMPL_IF NAME="searchfield" --><td><label>Variable</label></td><td><!-- TMPL_VAR NAME="searchfield" --><input type="hidden" name="variable" value="<!-- TMPL_VAR NAME="searchfield" -->"></td>
90 <!-- TMPL_ELSE --><td><label for="variable">Variable</label></td><td><input type="text" name="variable" id="variable" size="60" /></td><!-- /TMPL_IF --></tr>
91 <tr><td><label for="value">Value</label></td><td><!-- TMPL_IF NAME="type-free" -->
92 <textarea id="value" name="value" cols="<!-- TMPL_VAR NAME="fieldlength" -->"><!-- TMPL_VAR NAME="value" escape="HTML" --></textarea>
94 <!-- TMPL_IF NAME="type-textarea" -->
95 <textarea name="value" id="value" rows="<!--TMPL_VAR NAME="rows" -->" cols="<!-- TMPL_VAR NAME="cols" -->"><!-- TMPL_VAR NAME="value" escape="HTML" --></textarea>
97 <!-- TMPL_IF NAME="type-choice" -->
98 <select name="value" id="value">
99 <!-- TMPL_LOOP NAME="options" -->
100 <!-- TMPL_IF NAME="selected" -->
101 <option value="<!-- TMPL_VAR NAME="option" -->" selected="selected">
103 <option value="<!-- TMPL_VAR NAME="option" -->">
104 <!-- /TMPL_IF --><!-- TMPL_VAR NAME="option" --></option>
108 <!-- TMPL_IF NAME="type-yesno" -->
109 <!-- TMPL_IF NAME="value-yes" -->
110 <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
111 <!-- TMPL_IF NAME="value-no" -->
112 <input type="radio" name="value" value="0" checked="checked" /><!-- TMPL_ELSE --><input type="radio" name="value" value="0" /><!-- /TMPL_IF -->OFF<!-- /TMPL_IF -->
115 <p><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;" /></p>
117 <h3>Koha internal</h3>
118 Note: you should have no reasons to modify the following default values
120 <tr><td><label for="preftype">Variable type:</label></td><td><input type="text" name="preftype" id="preftype" value="<!--TMPL_VAR NAME="preftype" -->" size="40" maxlength="40"><span class="formfield-notes"> (Choice, YesNo, Integer, Textarea, Float, Themes, Languages, or ClassSource)</td></tr>
121 <tr><td><label for="prefoptions">Variable options:</label></td><td><input type="text" name="prefoptions" id="prefoptions" value="<!-- TMPL_VAR NAME="prefoptions" -->" size="60" maxlength="80" />(a choice list for Choice (separated by |) or cols|rows for Texarea)</td></tr>
126 <!-- TMPL_IF NAME="add_validate" -->
129 <h3>Data recorded</h3>
131 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
132 <input type="submit" value="OK" />
136 <!-- TMPL_IF NAME="delete_confirm" -->
139 <caption>Confirm Deletion of <!-- TMPL_VAR NAME="searchfield" -->?</caption>
141 <th>Variable Name:</th>
142 <td><!-- TMPL_VAR NAME="searchfield" --></td>
144 <tr><th>Value: </th><td>
145 <!-- TMPL_VAR NAME="Tvalue" -->
147 <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" -->" />
148 <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>
153 <!-- TMPL_IF NAME="delete_confirmed" -->
155 <h3>Data deleted</h3>
156 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
157 <input type="submit" value="Back to System Preferences" />
161 <!-- TMPL_IF NAME="else" -->
162 <h1>System preferences admin</h1>
164 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Admin">Admin</a>
165 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Acquisitions">Acquisitions</a>
166 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Authorities">Authorities</a>
167 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Catalogue">Catalogue</a>
168 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Circulation">Circulation</a>
169 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Members">Borrowers</a>
170 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPAC">OPAC</a>
171 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPACFeatures">OPAC Features</a>
172 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Intranet">Staff Client</a>
173 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=LOGFeatures">Logs</a>
174 <a href="/cgi-bin/koha/admin/systempreferences.pl?">Other</a>
176 <h2>Editing preferences for <!-- TMPL_VAR name="tab" --> module</h2>
177 <!-- TMPL_VAR NAME="searchfield" -->
182 <th colspan="3" width="30%">Explanation</th>
184 <!-- TMPL_LOOP NAME="loop" -->
185 <tr<!-- TMPL_IF NAME="toggle" --> class="highlight"<!-- /TMPL_IF -->>
186 <td><a href="<!-- TMPL_VAR NAME="edit" -->"><!-- TMPL_VAR NAME="variable" --></a></td>
188 <td><!-- TMPL_IF NAME="yesno" -->
189 <!-- TMPL_IF NAME="yes" -->ON<!-- TMPL_ELSE -->OFF<!-- /TMPL_IF -->
190 <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF --></td>
192 <td width="20%"><!-- TMPL_VAR NAME="explanation" --></td>
193 <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
194 <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
199 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
200 <input type="hidden" name="op" value="add_form" />
201 <input type="submit" value="Add a new System Preference" />
209 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
212 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->