Lines 98-103
$("#delColumn").on("click",function(){
Link Here
|
98 |
], |
98 |
], |
99 |
"aoColumns": [ |
99 |
"aoColumns": [ |
100 |
null,null,null,null,null,null,null,null,{ "sType": "title-string" },null,null,null,[% IF (usecache) %]null,[% END %]null,null |
100 |
null,null,null,null,null,null,null,null,{ "sType": "title-string" },null,null,null,[% IF (usecache) %]null,[% END %]null,null |
|
|
101 |
null,null,null,null,null,null,null,null,{ "sType": "title-string" },null,null,null,[% IF (usecache) %]null,[% END %]null,null[% IF has_obsolete_reports %],null[% END %] |
101 |
], |
102 |
], |
102 |
'oLanguage': { |
103 |
'oLanguage': { |
103 |
'sZeroRecords': _("No matching reports found") |
104 |
'sZeroRecords': _("No matching reports found") |
Lines 166-171
$("#delColumn").on("click",function(){
Link Here
|
166 |
return false; |
167 |
return false; |
167 |
} |
168 |
} |
168 |
}); |
169 |
}); |
|
|
170 |
|
171 |
$("body").on("click", ".update_sql", function(e){ |
172 |
e.preventDefault(); |
173 |
var ltitle = $(this).text(); |
174 |
var report_id = $(this).data("report_id"); |
175 |
var page = $(this).attr("href"); |
176 |
$("#update_sql .modal-body").load(page + " div"); |
177 |
$('#update_sql').modal({show:true}); |
178 |
$("#update_sql_button").attr("href", "/cgi-bin/koha/reports/guided_reports.pl?phase=Use saved&op=convert&report_id=" + report_id); |
179 |
}); |
180 |
$("#update_sql").on("hidden", function(){ |
181 |
$("#update_sql_label").html(""); |
182 |
$("#update_sql .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
183 |
}); |
169 |
[% END %] |
184 |
[% END %] |
170 |
|
185 |
|
171 |
[% IF ( showsql ) %] |
186 |
[% IF ( showsql ) %] |
Lines 267-272
$("#delColumn").on("click",function(){
Link Here
|
267 |
[% END %] |
282 |
[% END %] |
268 |
</div> |
283 |
</div> |
269 |
|
284 |
|
|
|
285 |
<div id="update_sql" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="update_sql_label" aria-hidden="true"> |
286 |
<div class="modal-header"> |
287 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
288 |
<h3 id="update_sql_label">Update SQL</h3> |
289 |
</div> |
290 |
<div class="modal-body"> |
291 |
<div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div> |
292 |
</div> |
293 |
<div class="modal-footer"> |
294 |
<a href="#" class="btn" id="update_sql_button" role="button" data-toggle="modal">Update</a> |
295 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
296 |
</div> |
297 |
</div> |
298 |
|
270 |
<div id="doc3" class="yui-t1"> |
299 |
<div id="doc3" class="yui-t1"> |
271 |
<div id="bd"> |
300 |
<div id="bd"> |
272 |
<div id="yui-main"> |
301 |
<div id="yui-main"> |
Lines 306-311
canned reports and writing custom SQL reports.</p>
Link Here
|
306 |
</form> |
335 |
</form> |
307 |
[% END %] |
336 |
[% END %] |
308 |
|
337 |
|
|
|
338 |
[% IF report_converted %] |
339 |
<div class="dialog message"> |
340 |
The report "[% report_converted %]" has been converted. |
341 |
</div> |
342 |
[% END %] |
343 |
|
309 |
[% IF ( saved1 ) %] |
344 |
[% IF ( saved1 ) %] |
310 |
[% IF ( savedreports ) %]<h1>Saved reports</h1> |
345 |
[% IF ( savedreports ) %]<h1>Saved reports</h1> |
311 |
|
346 |
|
Lines 342-347
canned reports and writing custom SQL reports.</p>
Link Here
|
342 |
<th>Public</th> |
377 |
<th>Public</th> |
343 |
[% IF (usecache) %] <th>Cache expiry (seconds)</th> [% END %] |
378 |
[% IF (usecache) %] <th>Cache expiry (seconds)</th> [% END %] |
344 |
<th>Saved results</th> |
379 |
<th>Saved results</th> |
|
|
380 |
[% IF has_obsolete_reports %]<th>Update</th>[% END %] |
345 |
<th> </th> |
381 |
<th> </th> |
346 |
</tr> |
382 |
</tr> |
347 |
</thead> |
383 |
</thead> |
Lines 381-386
canned reports and writing custom SQL reports.</p>
Link Here
|
381 |
<br/> |
417 |
<br/> |
382 |
[% END %] |
418 |
[% END %] |
383 |
</td> |
419 |
</td> |
|
|
420 |
[% IF has_obsolete_reports %] |
421 |
<td> |
422 |
[% IF savedreport.seems_obsolete %] |
423 |
This report seems obsolete, it uses biblioitems.marcxml field. |
424 |
<a href="/cgi-bin/koha/svc/convert_report?report_id=[% savedreport.id %]" data-report_id="[% savedreport.id %]" class="update_sql btn btn-mini" title="Update SQL"><i class="fa fa-eye"></i> Update SQL</a> |
425 |
[% END %] |
426 |
</td> |
427 |
[% END %] |
384 |
<td> |
428 |
<td> |
385 |
<div class="dropup"> |
429 |
<div class="dropup"> |
386 |
<div class="btn-group"> |
430 |
<div class="btn-group"> |