|
Line 0
Link Here
|
|
|
1 |
[% USE KohaDates -%] |
| 2 |
[% INCLUDE 'doc-head-open.inc' %] |
| 3 |
<title>Koha › Administration › Patron categories › [% IF ( add_form ) %][% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %] |
| 4 |
[% IF ( delete_confirm ) %][% IF ( patrons_in_category > 0 ) %]Cannot delete: category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %] |
| 5 |
</title> |
| 6 |
[% INCLUDE 'doc-head-close.inc' %] |
| 7 |
[% INCLUDE 'calendar.inc' %] |
| 8 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
| 9 |
[% INCLUDE 'datatables.inc' %] |
| 10 |
<script type="text/javascript" id="js"> |
| 11 |
//<![CDATA[ |
| 12 |
$(document).ready(function() { |
| 13 |
$("#table_categorie").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 14 |
"aoColumnDefs": [ |
| 15 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, |
| 16 |
{ "aTargets": [ 3,4,5 ], "sType": "natural" }, |
| 17 |
], |
| 18 |
"aaSorting": [[ 1, "asc" ]], |
| 19 |
"sPaginationType": "four_button" |
| 20 |
})); |
| 21 |
|
| 22 |
$( "#enrolmentperioddate" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future |
| 23 |
|
| 24 |
if ( $("#branches option:selected").length < 1 ) { |
| 25 |
$("#branches option:first").attr("selected", "selected"); |
| 26 |
} |
| 27 |
$("#category_type").change(function(){ |
| 28 |
var canbeguarantee_bydefault = ['C','P']; |
| 29 |
var selected = $(this).val(); |
| 30 |
$("#canbeguarantee").val( ( $.inArray(selected, canbeguarantee_bydefault) != -1 ) ? "1" : "0" ); |
| 31 |
}); |
| 32 |
}); |
| 33 |
function isNotNull(f,noalert) { |
| 34 |
if (f.value.length ==0) { |
| 35 |
return false; |
| 36 |
} |
| 37 |
return true; |
| 38 |
} |
| 39 |
// |
| 40 |
function isNum(v,maybenull) { |
| 41 |
var n = new Number(v.value); |
| 42 |
if (isNaN(n)) { |
| 43 |
return false; |
| 44 |
} |
| 45 |
if (maybenull==0 && v.value=='') { |
| 46 |
return false; |
| 47 |
} |
| 48 |
return true; |
| 49 |
} |
| 50 |
// to check if the data are correctly entered. |
| 51 |
function Check(ff) { |
| 52 |
var ok=0; |
| 53 |
var _alertString=_("Form not submitted because of the following problem(s)"); |
| 54 |
_alertString +="\n-------------------------------------------------------------------\n\n"; |
| 55 |
ff.categorycode.value = $.trim(ff.categorycode.value); |
| 56 |
if (ff.categorycode.value.length==0) { |
| 57 |
ok=1; |
| 58 |
_alertString += _("- categorycode missing") + "\n"; |
| 59 |
} |
| 60 |
else{ |
| 61 |
var patt=/^[a-zA-Z0-9\-_]+$/g; |
| 62 |
if ( !patt.test(ff.categorycode.value) ) { |
| 63 |
ok=1; |
| 64 |
_alertString += _("- category code can only contain the following characters: letters, numbers, - and _") + "\n"; |
| 65 |
} |
| 66 |
} |
| 67 |
if (!(ff.category_type.value)){ |
| 68 |
ok=1; |
| 69 |
_alertString += _("- category type missing") + "\n"; |
| 70 |
} |
| 71 |
if (!(isNotNull(ff.description,1))) { |
| 72 |
ok=1; |
| 73 |
_alertString += _("- description missing") + "\n"; |
| 74 |
} |
| 75 |
if (!isNum(ff.upperagelimit,0) && ff.category_type.value=='C') { |
| 76 |
ok=1; |
| 77 |
_alertString += _("- upperagelimit is not a number") + "\n"; |
| 78 |
|
| 79 |
} |
| 80 |
if(!(ff.enrolmentperioddate.value || ff.enrolmentperiod.value)) { |
| 81 |
ok=1; |
| 82 |
_alertString += _("- either Enrollment period or Until date must be provided") + "\n"; |
| 83 |
} |
| 84 |
if(ff.enrolmentperioddate.value && ff.enrolmentperiod.value){ |
| 85 |
document.getElementById('enrolmentmessage').className = "error"; |
| 86 |
return false; |
| 87 |
} |
| 88 |
|
| 89 |
if (ok) { // if there is a problem |
| 90 |
alert(_alertString); |
| 91 |
return false; |
| 92 |
} |
| 93 |
// if all is good |
| 94 |
ff.submit(); |
| 95 |
} |
| 96 |
//]]> |
| 97 |
</script> |
| 98 |
<style type="text/css">#enrolmentmessage.hint { display : none; }</style> |
| 99 |
</head> |
| 100 |
<body id="admin_categorie" class="admin"> |
| 101 |
[% INCLUDE 'header.inc' %] |
| 102 |
[% INCLUDE 'patrons-admin-search.inc' %] |
| 103 |
|
| 104 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF ( add_form ) %] <a href="/cgi-bin/koha/admin/categorie.pl">Patron categories</a> › [% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %] |
| 105 |
[% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/categorie.pl">Patron categories</a> › [% IF ( patrons_in_category > 0 ) %]Cannot delete: Category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %] |
| 106 |
[% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/categorie.pl">Patron categories</a> › Category deleted[% END %] |
| 107 |
[% IF ( else ) %]Patron categories[% END %]</div> |
| 108 |
|
| 109 |
<div id="doc3" class="yui-t2"> |
| 110 |
|
| 111 |
<div id="bd"> |
| 112 |
<div id="yui-main"> |
| 113 |
<div class="yui-b"> |
| 114 |
|
| 115 |
[% FOR m IN messages %] |
| 116 |
<div class="dialog [% m.type %]"> |
| 117 |
[% SWITCH m.code %] |
| 118 |
[% CASE 'error_on_insert' %] |
| 119 |
An error occurred when inserting this patron category. The patron category might already exist. |
| 120 |
[% CASE 'error_on_delete' %] |
| 121 |
An error occurred when deleting this patron category. Check the logs. |
| 122 |
[% CASE 'success_on_insert' %] |
| 123 |
Patron category added successfully |
| 124 |
[% CASE 'success_on_delete' %] |
| 125 |
Patron category deleted successfully. |
| 126 |
[% CASE %] |
| 127 |
[% m.code %] |
| 128 |
[% END %] |
| 129 |
</div> |
| 130 |
[% END %] |
| 131 |
|
| 132 |
[% IF ( add_form ) %] |
| 133 |
<form name="Aform" action="[% script_name %]" method="post"> |
| 134 |
<input type="hidden" name="op" value="add_validate" /> |
| 135 |
<input type="hidden" name="checked" value="0" /> |
| 136 |
[% IF ( categorycode ) %] |
| 137 |
<h1>Modify category [% categorycode |html %]</h1> |
| 138 |
[% ELSE %] |
| 139 |
<h1>New category</h1> |
| 140 |
[% END %] |
| 141 |
<fieldset class="rows"> |
| 142 |
<ol>[% IF ( categorycode ) %] |
| 143 |
<li><span class="label">Category code: </span>[% categorycode |html %] |
| 144 |
<input type="hidden" name="categorycode" value="[% categorycode |html %]" /><input type="hidden" name="is_a_modif" value="1" /></li> |
| 145 |
[% ELSE %] |
| 146 |
<li> |
| 147 |
<label for="categorycode" class="required">Category code: </label> |
| 148 |
<input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" onblur="toUC(this)" /> |
| 149 |
<span class="required">Required</span> |
| 150 |
</li> |
| 151 |
[% END %] |
| 152 |
<li> |
| 153 |
<label for="description" class="required">Description: </label> |
| 154 |
<input type="text" name="description" id="description" size="40" maxlength="80" value="[% description |html %]" /> |
| 155 |
<span class="required">Required</span> |
| 156 |
</li> |
| 157 |
<li><label for="enrolmentperiod" class="required">Enrollment period: </label> |
| 158 |
<fieldset> |
| 159 |
<legend>Choose one</legend> |
| 160 |
<ol> |
| 161 |
<li><label for="enrolmentperiod" style="width:6em;">In months: </label> |
| 162 |
<input type="text" name="enrolmentperiod" id="enrolmentperiod" size="3" maxlength="3" value="[% IF ( enrolmentperiod ) %][% enrolmentperiod %][% END %]" /> months</li> |
| 163 |
<li><label for="enrolmentperioddate" style="width:6em;">Until date: </label> |
| 164 |
<input type="text" name="enrolmentperioddate" id="enrolmentperioddate" value="[% enrolmentperioddate | $KohaDates %]" /> |
| 165 |
<div id="enrolmentmessage" class="hint" style="margin-left:0;">Cannot have "months" and "until date" at the same time</div> |
| 166 |
</li> |
| 167 |
</ol> |
| 168 |
</fieldset> |
| 169 |
</li> |
| 170 |
<li><label for="dateofbirthrequired">Age required: </label> <input type="text" name="dateofbirthrequired" id="dateofbirthrequired" value="[% dateofbirthrequired %]" size="3" maxlength="3" /> years</li> |
| 171 |
<li><label for="upperagelimit">Upperage limit: </label> <input type="text" name="upperagelimit" id="upperagelimit" size="3" maxlength="3" value="[% upperagelimit %]" /> years</li> |
| 172 |
<li><label for="enrolmentfee">Enrollment fee: </label><input type="text" name="enrolmentfee" id="enrolmentfee" size="6" value="[% enrolmentfee %]" /></li> |
| 173 |
<li><label for="overduenoticerequired">Overdue notice required: </label> <select name="overduenoticerequired" id="overduenoticerequired"> |
| 174 |
[% IF ( overduenoticerequired ) %] |
| 175 |
<option value="0">No</option> |
| 176 |
<option value="1" selected="selected">Yes</option> |
| 177 |
[% ELSE %] |
| 178 |
<option value="0" selected="selected">No</option> |
| 179 |
<option value="1">Yes</option> |
| 180 |
[% END %] |
| 181 |
</select></li> |
| 182 |
<li><label for="hidelostitems">Lost items in staff client: </label> <select name="hidelostitems" id="hidelostitems"> |
| 183 |
[% IF ( hidelostitems ) %] |
| 184 |
<option value="0">Shown</option> |
| 185 |
<option value="1" selected="selected">Hidden by default</option> |
| 186 |
[% ELSE %] |
| 187 |
<option value="0" selected="selected">Shown</option> |
| 188 |
<option value="1">Hidden by default</option> |
| 189 |
[% END %] |
| 190 |
</select></li> |
| 191 |
<li><label for="reservefee">Hold fee: </label><input type="text" name="reservefee" id="reservefee" size="6" value="[% reservefee %]" /></li> |
| 192 |
<li> |
| 193 |
<label for="category_type" class="required">Category type: </label> |
| 194 |
<select name="category_type" id="category_type"> |
| 195 |
[% IF ( type_n ) %]<option value="" selected="selected">Select a category type</option>[% ELSE %]<option value="">Select a category type</option>[% END %] |
| 196 |
[% IF ( type_A ) %]<option value="A" selected="selected">Adult</option>[% ELSE %]<option value="A">Adult</option>[% END %] |
| 197 |
[% IF ( type_C ) %]<option value="C" selected="selected">Child</option>[% ELSE %]<option value="C">Child</option>[% END %] |
| 198 |
[% IF ( type_S ) %]<option value="S" selected="selected">Staff</option>[% ELSE %]<option value="S">Staff</option>[% END %] |
| 199 |
[% IF ( type_I ) %]<option value="I" selected="selected">Organization</option>[% ELSE %]<option value="I">Organization</option>[% END %] |
| 200 |
[% IF ( type_P ) %]<option value="P" selected="selected">Professional</option>[% ELSE %]<option value="P">Professional</option>[% END %] |
| 201 |
[% IF ( type_X ) %]<option value="X" selected="selected">Statistical</option>[% ELSE %]<option value="X">Statistical</option>[% END %] |
| 202 |
</select> |
| 203 |
<span class="required">Required</span> |
| 204 |
</li> |
| 205 |
<li> |
| 206 |
<label for="canbeguarantee">Can be guarantee</label> |
| 207 |
<select name="canbeguarantee" id="canbeguarantee"> |
| 208 |
[% IF canbeguarantee %] |
| 209 |
<option value="1" selected>Yes</option> |
| 210 |
<option value="0">No</option> |
| 211 |
[% ELSE %] |
| 212 |
<option value="1">Yes</option> |
| 213 |
<option value="0" selected>No</option> |
| 214 |
[% END %] |
| 215 |
<select> |
| 216 |
</li> |
| 217 |
<li><label for="branches">Branches limitation: </label> |
| 218 |
<select id="branches" name="branches" multiple size="10"> |
| 219 |
<option value="">All branches</option> |
| 220 |
[% FOREACH branch IN branches_loop %] |
| 221 |
[% IF ( branch.selected ) %] |
| 222 |
<option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option> |
| 223 |
[% ELSE %] |
| 224 |
<option value="[% branch.branchcode %]">[% branch.branchname %]</option> |
| 225 |
[% END %] |
| 226 |
[% END %] |
| 227 |
</select> |
| 228 |
<span>Select <i>All branches</i> if this category type must to be displayed all the time. Otherwise select libraries you want to associate with this value. |
| 229 |
</span> |
| 230 |
</li> |
| 231 |
<li><label for="block_expired">Block expired patrons</label> |
| 232 |
<select name="block_expired" id="block_expired"> |
| 233 |
[% IF ( BlockExpiredPatronOpacActions == -1 ) %] |
| 234 |
<option value="-1" selected="selected"> Follow system preference BlockExpiredPatronOpacActions </option> |
| 235 |
[% ELSE %] |
| 236 |
<option value="-1"> Follow system preference BlockExpiredPatronOpacActions </option> |
| 237 |
[% END %] |
| 238 |
|
| 239 |
[% IF ( BlockExpiredPatronOpacActions == 1 ) %] |
| 240 |
<option value="1" selected="selected"> Block </option> |
| 241 |
[% ELSE %] |
| 242 |
<option value="1"> Block </option> |
| 243 |
[% END %] |
| 244 |
|
| 245 |
[% IF ( BlockExpiredPatronOpacActions == 0 ) %] |
| 246 |
<option value="0" selected="selected"> Don't block </option> |
| 247 |
[% ELSE %] |
| 248 |
<option value="0"> Don't block </option> |
| 249 |
[% END %] |
| 250 |
</select> |
| 251 |
<span> |
| 252 |
Choose whether patrons of this category be blocked from public catalog actions such as renewing and placing holds when their cards have expired. |
| 253 |
</span> |
| 254 |
</li> |
| 255 |
<li> |
| 256 |
<label for="default_privacy">Default privacy: </label> |
| 257 |
<select id="default_privacy" name="default_privacy"> |
| 258 |
[% SWITCH default_privacy %] |
| 259 |
[% CASE 'forever' %] |
| 260 |
<option value="default">Default</option> |
| 261 |
<option value="never">Never</option> |
| 262 |
<option value="forever" selected="selected">Forever</option> |
| 263 |
[% CASE 'never' %] |
| 264 |
<option value="default">Default</option> |
| 265 |
<option value="never" selected="selected">Never</option> |
| 266 |
<option value="forever">Forever</option> |
| 267 |
[% CASE %] |
| 268 |
<option value="default" selected="selected">Default</option> |
| 269 |
<option value="never">Never</option> |
| 270 |
<option value="forever">Forever</option> |
| 271 |
[% END %] |
| 272 |
</select> |
| 273 |
<span>Controls how long a patrons checkout history is kept for new patrons of this category. "Never" anonymizes checkouts on return, and "Forever" keeps a patron's checkout history indefinitely. When set to "Default", the amount of history kept is controlled by the cronjob <i>batch_anonymise.pl</i> which should be set up by your system administrator.</span> |
| 274 |
</li> |
| 275 |
</ol> |
| 276 |
</fieldset> |
| 277 |
|
| 278 |
[% IF ( EnhancedMessagingPreferences ) %] |
| 279 |
<fieldset class="rows"> |
| 280 |
<h4>Default messaging preferences for this patron category</h4> |
| 281 |
[% INCLUDE 'messaging-preference-form.inc' %] |
| 282 |
</fieldset> |
| 283 |
[% END %] |
| 284 |
<fieldset class="action"><input type="button" value="Save" onclick="Check(this.form);" /> </fieldset> |
| 285 |
</form> |
| 286 |
|
| 287 |
[% END %] |
| 288 |
|
| 289 |
[% IF ( delete_confirm ) %] |
| 290 |
<form action="[% script_name %]" method="post"> |
| 291 |
<fieldset> |
| 292 |
<legend> |
| 293 |
[% IF ( patrons_in_category > 0 ) %] |
| 294 |
Category [% categorycode |html %] is in use. Deletion not possible! |
| 295 |
[% ELSE %] |
| 296 |
Confirm deletion of category [% categorycode |html %] |
| 297 |
[% END %] |
| 298 |
</legend> |
| 299 |
|
| 300 |
[% IF ( totalgtzero ) %]<div class="dialog alert"><strong>This category is used [% total %] times</strong>. Deletion not possible</div>[% END %] |
| 301 |
<table> |
| 302 |
<tr><th scope="row">Category code: </th><td>[% categorycode |html %]</td></tr> |
| 303 |
<tr><th scope="row">Description: </th><td>[% description |html %]</td></tr> |
| 304 |
<tr><th scope="row">Enrollment period: </th> |
| 305 |
<td> |
| 306 |
[% IF ( enrolmentperiod ) %] |
| 307 |
[% enrolmentperiod %] months |
| 308 |
[% ELSE %] |
| 309 |
until [% enrolmentperioddate | $KohaDates %] |
| 310 |
[% END %] |
| 311 |
</td> |
| 312 |
</tr> |
| 313 |
<tr><th scope="row">Age required: </th><td>[% dateofbirthrequired %] years</td></tr> |
| 314 |
<tr><th scope="row">Upperage limit: </th><td>[% upperagelimit %] years</td></tr> |
| 315 |
<tr><th scope="row">Enrollment fee: </th><td>[% enrolmentfee %]</td></tr> |
| 316 |
<tr><th scope="row">Receives overdue notices: </th><td>[% IF ( overduenoticerequired ) %]Yes[% ELSE %]No[% END %]</td></tr> |
| 317 |
<tr><th scope="row">Lost items in staff client</th><td>[% IF ( hidelostitems ) %]Hidden by default[% ELSE %]Shown[% END %]</td></tr> |
| 318 |
<tr><th scope="row">Hold fee: </th><td>[% reservefee %]</td></tr> |
| 319 |
<tr><th scope="row">Can be guarantee</th><td>[% IF ( canbeguarantee ) %]Yes[% ELSE %]No[% END %]</td></tr> |
| 320 |
<tr> |
| 321 |
<th scope="row">Default privacy: </th> |
| 322 |
<td> |
| 323 |
[% SWITCH category.default_privacy %] |
| 324 |
[% CASE 'default' %] |
| 325 |
Default |
| 326 |
[% CASE 'never' %] |
| 327 |
Never |
| 328 |
[% CASE 'forever' %] |
| 329 |
Forever |
| 330 |
[% END %] |
| 331 |
</td> |
| 332 |
</tr> |
| 333 |
</table> |
| 334 |
<fieldset class="action">[% IF ( totalgtzero ) %] |
| 335 |
<input type="submit" value="OK" /></form> |
| 336 |
[% ELSE %] |
| 337 |
<input type="hidden" name="op" value="delete_confirmed" /> |
| 338 |
<input type="hidden" name="categorycode" value="[% categorycode |html %]" /> <input type="submit" value="Delete this category" /> <a class="cancel" href="/cgi-bin/koha/admin/categorie.pl">Cancel</a> |
| 339 |
[% END %]</fieldset></fieldset></form> |
| 340 |
[% END %] |
| 341 |
|
| 342 |
[% IF ( else ) %] |
| 343 |
|
| 344 |
<div id="toolbar" class="btn-toolbar"> |
| 345 |
<a class="btn btn-small" id="newcategory" href="/cgi-bin/koha/admin/categorie.pl?op=add_form"><i class="icon-plus"></i> New category</a> |
| 346 |
</div> |
| 347 |
|
| 348 |
<h2>Patron category administration</h2> |
| 349 |
[% IF ( searchfield ) %] |
| 350 |
You Searched for [% searchfield %]</span> |
| 351 |
[% END %] |
| 352 |
[% IF ( loop ) %] |
| 353 |
<div id="pagertable_categorie"> |
| 354 |
</div> |
| 355 |
<table id="table_categorie"> |
| 356 |
<thead> |
| 357 |
<tr> |
| 358 |
<th scope="col">Code</th> |
| 359 |
<th scope="col">Category name</th> |
| 360 |
<th scope="col">Type</th> |
| 361 |
<th scope="col">Enrollment period</th> |
| 362 |
<th scope="col">Age required</th> |
| 363 |
<th scope="col">Upper age limit</th> |
| 364 |
<th scope="col">Enrollment fee</th> |
| 365 |
<th scope="col">Overdue</th> |
| 366 |
<th scope="col">Lost items</th> |
| 367 |
<th scope="col">Hold fee</th> |
| 368 |
[% IF ( EnhancedMessagingPreferences ) %] |
| 369 |
<th scope="col">Messaging</th> |
| 370 |
[% END %] |
| 371 |
<th scope="col">Branches limitations</th> |
| 372 |
<th scope="col">Can be guarantee</th> |
| 373 |
<th scope="col">Default privacy</th> |
| 374 |
<th scope="col"> </th> |
| 375 |
<th scope="col"> </th> |
| 376 |
</tr> |
| 377 |
</thead> |
| 378 |
<tbody> |
| 379 |
[% FOREACH loo IN loop %] |
| 380 |
<tr> |
| 381 |
<td>[% loo.categorycode |html %]</td> |
| 382 |
<td> |
| 383 |
<a href="[% loo.script_name %]?op=add_form&categorycode=[% loo.categorycode |uri %]">[% loo.description |html %]</a> |
| 384 |
</td> |
| 385 |
<td> |
| 386 |
[% IF ( loo.type_A ) %]Adult[% END %] |
| 387 |
[% IF ( loo.type_C ) %]Child[% END %] |
| 388 |
[% IF ( loo.type_P ) %]Prof.[% END %] |
| 389 |
[% IF ( loo.type_I ) %]Org.[% END %] |
| 390 |
[% IF ( loo.type_S ) %]Staff[% END %] |
| 391 |
[% IF ( loo.type_X ) %]Statistical[% END %] |
| 392 |
</td> |
| 393 |
<td> |
| 394 |
[% IF ( loo.enrolmentperiod ) %] |
| 395 |
[% loo.enrolmentperiod %] months |
| 396 |
[% ELSE %] |
| 397 |
until [% loo.enrolmentperioddate | $KohaDates %] |
| 398 |
[% END %] |
| 399 |
|
| 400 |
</td> |
| 401 |
<td>[% loo.dateofbirthrequired %] years</td> |
| 402 |
<td>[% loo.upperagelimit %] years</td> |
| 403 |
<td>[% loo.enrolmentfee %]</td> |
| 404 |
<td>[% IF ( loo.overduenoticerequired ) %]Yes[% ELSE %]No[% END %]</td> |
| 405 |
<td>[% IF ( loo.hidelostitems ) %]Hidden[% ELSE %]Shown[% END %]</td> |
| 406 |
<td>[% loo.reservefee %]</td> |
| 407 |
[% IF ( EnhancedMessagingPreferences ) %] |
| 408 |
<td style="white-space: nowrap; font-size:80%;"> |
| 409 |
[% IF ( loo.messaging_prefs ) %] |
| 410 |
[% FOREACH prefs IN loo.messaging_prefs %] |
| 411 |
[% FOREACH transport IN prefs.transports %] |
| 412 |
[% IF ( transport.transport ) %] |
| 413 |
[% IF ( prefs.Item_Due ) %]Item due |
| 414 |
[% ELSIF ( prefs.Advance_Notice ) %]Advance notice |
| 415 |
[% ELSIF ( prefs.Upcoming_Events ) %]Upcoming events |
| 416 |
[% ELSIF ( prefs.Hold_Filled ) %]Hold filled |
| 417 |
[% ELSIF ( prefs.Item_Check_in ) %]Item check-in |
| 418 |
[% ELSIF ( prefs.Item_Checkout ) %]Item checkout |
| 419 |
[% ELSE %]Unknown |
| 420 |
[% END %]: |
| 421 |
<strong>[% transport.transport %]</strong><br /> |
| 422 |
[% ELSE %]None<br />[% END %] |
| 423 |
[% END %] |
| 424 |
[% END %] |
| 425 |
[% ELSE %] |
| 426 |
None |
| 427 |
[% END %] |
| 428 |
</td> |
| 429 |
[% END %] |
| 430 |
<td> |
| 431 |
[% IF loo.branches.size > 0 %] |
| 432 |
[% branches_str = "" %] |
| 433 |
[% FOREACH branch IN loo.branches %] |
| 434 |
[% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %] |
| 435 |
[% END %] |
| 436 |
<span title="[% branches_str %]"> |
| 437 |
[% IF loo.branches.size > 1 %] |
| 438 |
[% loo.branches.size %] branches limitations |
| 439 |
[% ELSE %] |
| 440 |
[% loo.branches.size %] branch limitation |
| 441 |
[% END %] |
| 442 |
</span> |
| 443 |
[% ELSE %] |
| 444 |
No limitation |
| 445 |
[% END %] |
| 446 |
</td> |
| 447 |
<td>[% IF loo.canbeguarantee %]Yes[% ELSE %]No[% END %]</td> |
| 448 |
<td> |
| 449 |
[% SWITCH loo.default_privacy %] |
| 450 |
[% CASE 'default' %] |
| 451 |
Default |
| 452 |
[% CASE 'never' %] |
| 453 |
Never |
| 454 |
[% CASE 'forever' %] |
| 455 |
Forever |
| 456 |
[% END %] |
| 457 |
</td> |
| 458 |
<td><a href="[% loo.script_name %]?op=add_form&categorycode=[% loo.categorycode |uri %]">Edit</a></td> |
| 459 |
<td><a href="[% loo.script_name %]?op=delete_confirm&categorycode=[% loo.categorycode |uri %]">Delete</a></td> |
| 460 |
</tr> |
| 461 |
[% END %] |
| 462 |
</tbody> |
| 463 |
</table> |
| 464 |
[% ELSE %] |
| 465 |
<div class="dialog alert">No categories have been defined. <a href="/cgi-bin/koha/admin/categorie.pl?op=add_form">Create a new category</a>.</div> |
| 466 |
[% END %] |
| 467 |
[% END %] |
| 468 |
|
| 469 |
</div> |
| 470 |
</div> |
| 471 |
<div class="yui-b"> |
| 472 |
[% INCLUDE 'admin-menu.inc' %] |
| 473 |
</div> |
| 474 |
</div> |
| 475 |
[% INCLUDE 'intranet-bottom.inc' %] |