Lines 95-101
$("#delColumn").on("click",function(){
Link Here
|
95 |
{ "aTargets": [ 1, 2 ], "sType": "natural" } |
95 |
{ "aTargets": [ 1, 2 ], "sType": "natural" } |
96 |
], |
96 |
], |
97 |
"aoColumns": [ |
97 |
"aoColumns": [ |
98 |
null,null,null,null,null,null,null,null,{ "sType": "title-string" },null,[% IF (usecache) %]null,[% END %]null,null |
98 |
null,null,null,null,null,null,null,null,{ "sType": "title-string" },null,[% IF (usecache) %]null,[% END %]null,null[% IF has_obsolete_reports %],null[% END %] |
99 |
], |
99 |
], |
100 |
'oLanguage': { |
100 |
'oLanguage': { |
101 |
'sZeroRecords': _("No matching reports found") |
101 |
'sZeroRecords': _("No matching reports found") |
Lines 164-169
$("#delColumn").on("click",function(){
Link Here
|
164 |
return false; |
164 |
return false; |
165 |
} |
165 |
} |
166 |
}); |
166 |
}); |
|
|
167 |
|
168 |
$("body").on("click", ".update_sql", function(e){ |
169 |
e.preventDefault(); |
170 |
var ltitle = $(this).text(); |
171 |
var report_id = $(this).data("report_id"); |
172 |
var page = $(this).attr("href"); |
173 |
$("#update_sql .modal-body").load(page + " div"); |
174 |
$('#update_sql').modal({show:true}); |
175 |
$("#update_sql_button").attr("href", "/cgi-bin/koha/reports/guided_reports.pl?phase=Use saved&op=convert&report_id=" + report_id); |
176 |
}); |
177 |
$("#update_sql").on("hidden", function(){ |
178 |
$("#update_sql_label").html(""); |
179 |
$("#update_sql .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
180 |
}); |
167 |
[% END %] |
181 |
[% END %] |
168 |
|
182 |
|
169 |
[% IF ( showsql ) %] |
183 |
[% IF ( showsql ) %] |
Lines 259-264
$("#delColumn").on("click",function(){
Link Here
|
259 |
[% END %] |
273 |
[% END %] |
260 |
</div> |
274 |
</div> |
261 |
|
275 |
|
|
|
276 |
<div id="update_sql" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="update_sql_label" aria-hidden="true"> |
277 |
<div class="modal-header"> |
278 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
279 |
<h3 id="update_sql_label">Update SQL</h3> |
280 |
</div> |
281 |
<div class="modal-body"> |
282 |
<div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div> |
283 |
</div> |
284 |
<div class="modal-footer"> |
285 |
<a href="#" class="btn" id="update_sql_button" role="button" data-toggle="modal">Update</a> |
286 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
287 |
</div> |
288 |
</div> |
289 |
|
262 |
<div id="doc3" class="yui-t1"> |
290 |
<div id="doc3" class="yui-t1"> |
263 |
<div id="bd"> |
291 |
<div id="bd"> |
264 |
<div id="yui-main"> |
292 |
<div id="yui-main"> |
Lines 298-303
canned reports and writing custom SQL reports.</p>
Link Here
|
298 |
</form> |
326 |
</form> |
299 |
[% END %] |
327 |
[% END %] |
300 |
|
328 |
|
|
|
329 |
[% IF report_converted %] |
330 |
<div class="dialog message"> |
331 |
The report "[% report_converted %]" has been converted. |
332 |
</div> |
333 |
[% END %] |
334 |
|
301 |
[% IF ( saved1 ) %] |
335 |
[% IF ( saved1 ) %] |
302 |
[% IF ( savedreports ) %]<h1>Saved reports</h1> |
336 |
[% IF ( savedreports ) %]<h1>Saved reports</h1> |
303 |
|
337 |
|
Lines 332-337
canned reports and writing custom SQL reports.</p>
Link Here
|
332 |
<th>Public</th> |
366 |
<th>Public</th> |
333 |
[% IF (usecache) %] <th>Cache expiry (seconds)</th> [% END %] |
367 |
[% IF (usecache) %] <th>Cache expiry (seconds)</th> [% END %] |
334 |
<th>Saved results</th> |
368 |
<th>Saved results</th> |
|
|
369 |
[% IF has_obsolete_reports %]<th>Update</th>[% END %] |
335 |
<th> </th> |
370 |
<th> </th> |
336 |
</tr> |
371 |
</tr> |
337 |
</thead> |
372 |
</thead> |
Lines 369-374
canned reports and writing custom SQL reports.</p>
Link Here
|
369 |
<br/> |
404 |
<br/> |
370 |
[% END %] |
405 |
[% END %] |
371 |
</td> |
406 |
</td> |
|
|
407 |
[% IF has_obsolete_reports %] |
408 |
<td> |
409 |
[% IF savedreport.seems_obsolete %] |
410 |
This report seems obsolete, it uses biblioitems.marcxml field. |
411 |
<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> |
412 |
[% END %] |
413 |
</td> |
414 |
[% END %] |
372 |
<td> |
415 |
<td> |
373 |
<div class="dropup"> |
416 |
<div class="dropup"> |
374 |
<div class="btn-group"> |
417 |
<div class="btn-group"> |