1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › Item Circulation Alerts</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 div.circulation-alert h2 {
8 div.circulation-alert h3 {
13 vertical-align: bottom;
24 table.grid tbody td.info {
28 table.grid.active tbody td {
38 table.grid td.disabled {
42 table.grid td.default {
47 var $branch = "<!-- TMPL_VAR NAME="branch" -->";
50 var blocked = _('Blocked!');
51 var saving = _('Saving...');
52 var disabledForAll = _('Disabled for all');
53 var disabledForCurrent = _('Disabled for') + ' ' + $branch;
55 $('#branch_selector input:submit').hide();
56 $('#branch').change(function(){
57 $('#branch_selector').submit();
60 $('table.grid.active tbody td').click(function(ev){
63 if (td.hasClass('default') && $branch != '*') {
66 function(){ td.html(disabledForAll) },
72 url : '/cgi-bin/koha/admin/item_circulation_alerts.pl',
75 data : { action: 'toggle', id: id, branch: $branch },
76 success : function(response){
77 if ($branch == '*' && response.classes.match(/default/)) {
78 td.html(disabledForAll);
79 } else if (response.classes.match(/disabled/)) {
80 td.html(disabledForCurrent);
84 td.attr('class', response.classes);
94 <!-- TMPL_INCLUDE NAME="header.inc" -->
95 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
96 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Item Circulation Alerts </div>
98 <div id="doc3" class="yui-t1">
102 <div id="yui-main" class="circulation-alert">
104 <h1>Item Circulation Alerts</h1>
107 <h2>Select a library:</h2>
108 <form id="branch_selector" method="GET">
109 <select id="branch" name="branch">
110 <!-- TMPL_LOOP NAME="branches" -->
111 <!-- TMPL_IF NAME="selected" -->
112 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
114 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
118 <input type="submit" name="pick" value="Pick" />
122 <h2>Circulation Alerts for <!-- TMPL_VAR NAME="branch_name" --></h2>
123 <p>Click on the grid to toggle the settings.</p>
126 <table class="grid active" width="100%">
130 <!-- TMPL_LOOP NAME="item_types" -->
131 <th><!-- TMPL_VAR NAME="br_description" --></th>
136 <!-- TMPL_LOOP NAME="grid_checkout" -->
138 <th><!-- TMPL_VAR NAME="description" --></th>
139 <!-- TMPL_LOOP NAME="items" -->
140 <td class="<!-- TMPL_VAR NAME="class" -->" id="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="text" --></td>
148 <table class="grid active" width="100%">
152 <!-- TMPL_LOOP NAME="item_types" -->
153 <th><!-- TMPL_VAR NAME="br_description" --></th>
158 <!-- TMPL_LOOP NAME="grid_checkin" -->
160 <th><!-- TMPL_VAR NAME="description" --></th>
161 <!-- TMPL_LOOP NAME="items" -->
162 <td class="<!-- TMPL_VAR NAME="class" -->" id="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="text" --></td>
177 <td width="100" class="default"> </td>
178 <td class="info">These are disabled for ALL libraries. To change these settings, choose the "Default" library.</td>
181 <td class="disabled"> </td>
182 <td class="info">These are disabled for the current library.</td>
185 <td class=""> </td>
186 <td class="info">These are enabled.</td>
196 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
199 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->