1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › <!-- TMPL_IF name="add_form" --> System Preferences › <!-- 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" --> System Preferences › Data Added<!-- /TMPL_IF -->
3 <!-- TMPL_IF name="delete_confirm" --> <a href="">System Preferences › <!-- TMPL_VAR NAME="searchfield" --> › Confirm Deletion of Parameter '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" --> System Preferences › Parameter Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="else" -->System Preferences<!-- /TMPL_IF --></title>
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <script type="text/javascript">
7 <!-- TMPL_IF NAME="add_form" -->
8 $(document).ready(function() {
9 $('.variabletype').css({ color: "#0000CC", cursor: "pointer" });
10 $('.variabletype').click(function() {
11 $('#preftype').attr("value",$(this).attr("id"));
16 function isNotNull(f,noalert) {
17 if (f.value.length ==0) {
24 var x=f.value.toUpperCase();
29 function isNum(v,maybenull) {
30 var n = new Number(v.value);
34 if (maybenull==0 && v.value=='') {
41 var t = Date.parse(f.value);
51 if (f.variable.value.length==0) {
52 _alertString += "\n- " + _("variable missing");
54 if (f.value.value.length==0) {
55 _alertString += "\n- " + _("value missing");
57 if (_alertString.length==0) {
58 document.Aform.submit();
60 alertString2 = _("Form not submitted because of the following problem(s)");
61 alertString2 += "\n------------------------------------------------------------------------------------\n";
62 alertString2 += _alertString;
70 <!-- TMPL_INCLUDE NAME="header.inc" -->
71 <!-- TMPL_INCLUDE NAME="sysprefs-admin-search.inc" -->
73 <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" --> <a href="/cgi-bin/koha/admin/systempreferences.pl">System Preferences</a> › <!-- 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" --> <a href="/cgi-bin/koha/admin/systempreferences.pl">System Preferences</a> › Data Added<!-- /TMPL_IF -->
74 <!-- TMPL_IF name="delete_confirm" --> <a href="/cgi-bin/koha/admin/systempreferences.pl">System Preferences</a> › <a href="/cgi-bin/koha/admin/systempreferences.pl?op=add_form&searchfield=<!-- TMPL_VAR NAME="searchfield" -->"><!-- TMPL_VAR NAME="searchfield" --></a> › Confirm Deletion of Parameter '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" --> <a href="/cgi-bin/koha/admin/systempreferences.pl">System Preferences</a> › Parameter Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="else" -->System Preferences<!-- /TMPL_IF --></div>
76 <div id="doc3" class="yui-t2">
82 <!-- TMPL_IF NAME="add_form" -->
85 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
87 <fieldset class="rows"><legend><!-- TMPL_IF NAME="modify" -->
88 Modify a system preference
90 Add a system preference
91 <!-- /TMPL_IF --></legend><ol>
92 <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>
93 <li><!-- TMPL_IF NAME="searchfield" --><span class="label">Variable: </span><!-- TMPL_VAR NAME="searchfield" --><input type="hidden" name="variable" value="<!-- TMPL_VAR NAME="searchfield" -->" />
94 <!-- TMPL_ELSE --><label for="variable">Variable: </label><input type="text" name="variable" id="variable" size="60" /><!-- /TMPL_IF --></li>
95 <li><label for="value">Value: </label><!-- TMPL_IF NAME="type-free" -->
96 <textarea id="value" name="value" cols="<!-- TMPL_VAR NAME="fieldlength" -->"><!-- TMPL_VAR NAME="value" escape="HTML" --></textarea>
98 <!-- TMPL_IF NAME="type-textarea" -->
99 <textarea name="value" id="value" rows="<!--TMPL_VAR NAME="rows" -->" cols="<!-- TMPL_VAR NAME="cols" -->"><!-- TMPL_VAR NAME="value" escape="HTML" --></textarea>
101 <!-- TMPL_IF NAME="type-choice" -->
102 <select name="value" id="value">
103 <!-- TMPL_LOOP NAME="options" -->
104 <!-- TMPL_IF NAME="selected" -->
105 <option value="<!-- TMPL_VAR NAME="option" -->" selected="selected">
107 <option value="<!-- TMPL_VAR NAME="option" -->">
108 <!-- /TMPL_IF --><!-- TMPL_VAR NAME="option" --></option>
112 <!-- TMPL_IF NAME="type-yesno" -->
113 <!-- TMPL_IF NAME="value-yes" -->
114 <input type="radio" name="value" id="value" value="1" checked="checked" /><!-- TMPL_ELSE --><input type="radio" name="value" id="value" value="1" /><!-- /TMPL_IF --> <label for="value" class="yesno">ON</label>
115 <!-- TMPL_IF NAME="value-no" -->
116 <input type="radio" name="value" id="value-no" value="0" checked="checked" /><!-- TMPL_ELSE --><input type="radio" name="value" id="value-no" value="0" /><!-- /TMPL_IF --> <label for="value-no" class="yesno">OFF</label><!-- /TMPL_IF -->
119 <fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/systempreferences.pl">Cancel</a></fieldset>
121 <fieldset class="brief">
122 <legend>Koha internal</legend>
123 <div class="hint">Note: you should have no reasons to modify the following default values</div>
125 <li><label for="preftype">Variable type:</label>
126 <div class="hint"> (<span class="variabletype" id="Choice">Choice</span>, <span class="variabletype" id="YesNo">YesNo</span>, <span class="variabletype" id="Integer">Integer</span>, <span class="variabletype" id="Textarea">Textarea</span>, <span class="variabletype" id="Float">Float</span>, <span class="variabletype" id="Themes">Themes</span>, <span class="variabletype" id="Languages">Languages</span>, or <span class="variabletype" id="ClassSources">ClassSources</span>)</div>
127 <input type="text" name="preftype" id="preftype" value="<!--TMPL_VAR NAME="preftype" -->" size="40" maxlength="40" /></li>
128 <li><label for="prefoptions">Variable options:</label>
129 <div class="hint">(a choice list for Choice (separated by |) or cols|rows for Texarea)</div>
130 <input type="text" name="prefoptions" id="prefoptions" value="<!-- TMPL_VAR NAME="prefoptions" -->" size="60" maxlength="80" /></li>
136 <!-- TMPL_IF NAME="add_validate" -->
139 <h3>Data recorded</h3>
141 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
142 <input type="submit" value="OK" />
146 <!-- TMPL_IF NAME="delete_confirm" -->
149 <caption>Confirm Deletion of <!-- TMPL_VAR NAME="searchfield" -->?</caption>
151 <th>Variable Name:</th>
152 <td><!-- TMPL_VAR NAME="searchfield" --></td>
154 <tr><th>Value: </th><td>
155 <!-- TMPL_VAR NAME="Tvalue" -->
157 <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" -->" />
158 <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>
163 <!-- TMPL_IF NAME="delete_confirmed" -->
165 <h3>Data deleted</h3>
166 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
167 <input type="submit" value="Back to System Preferences" />
171 <!-- TMPL_IF NAME="else" -->
174 <script type="text/javascript">
176 // prepare DOM for YUI Toolbar
177 $(document).ready(function() {
180 // YUI Toolbar Functions
181 function yuiToolbar() {
182 new YAHOO.widget.Button("newstopword");
186 <li><a id="newstopword" href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form">New Preference</a></li>
189 <h1>System preferences admin</h1>
191 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Admin">Admin</a>
192 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Acquisitions">Acquisitions</a>
193 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Authorities">Authorities</a>
194 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Catalogue">Catalogue</a>
195 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Circulation">Circulation</a>
196 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Members">Patrons</a>
197 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPAC">OPAC</a>
198 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPACFeatures">OPAC Features</a>
199 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=FRBR">FRBR</a>
200 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Intranet">Staff Client</a>
201 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=LOGFeatures">Logs</a>
202 <a href="/cgi-bin/koha/admin/systempreferences.pl?">Other</a>
204 <h2>Editing preferences for <!-- TMPL_VAR name="tab" --> module</h2>
205 <!-- TMPL_VAR NAME="searchfield" -->
214 <!-- TMPL_LOOP NAME="loop" -->
215 <tr<!-- TMPL_IF NAME="toggle" --> class="highlight"<!-- /TMPL_IF -->>
217 <td><strong><a href="<!-- TMPL_VAR NAME="edit" -->"><!-- TMPL_VAR NAME="variable" --></a></strong></td><td> <!-- TMPL_VAR NAME="explanation" --></td>
218 <td><!-- TMPL_IF NAME="yesno" -->
219 <!-- TMPL_IF NAME="yes" -->ON<!-- TMPL_ELSE -->OFF<!-- /TMPL_IF -->
220 <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF --></td>
222 <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit </a></td>
223 <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
233 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
236 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->