|
Lines 290-296
KOHA.OverDriveCirculation = new function() {
Link Here
|
| 290 |
.text( __( "Checked out until: " ) + " " + expires.toLocaleString()) |
290 |
.text( __( "Checked out until: " ) + " " + expires.toLocaleString()) |
| 291 |
.appendTo(el); |
291 |
.appendTo(el); |
| 292 |
$(el).append(" "); |
292 |
$(el).append(" "); |
| 293 |
|
293 |
/* |
| 294 |
if (item.format) { |
294 |
if (item.format) { |
| 295 |
var download = $('<a href="#">').appendTo(el); |
295 |
var download = $('<a href="#">').appendTo(el); |
| 296 |
decorate_button(download, __("Download") + " " + item.format); |
296 |
decorate_button(download, __("Download") + " " + item.format); |
|
Lines 325-330
KOHA.OverDriveCirculation = new function() {
Link Here
|
| 325 |
} |
325 |
} |
| 326 |
|
326 |
|
| 327 |
if (item.format) return item; |
327 |
if (item.format) return item; |
|
|
328 |
*/ |
| 329 |
var access = $('<a target="_blank">').appendTo(el); |
| 330 |
decorate_button(access, __("Get item") ); |
| 331 |
svc_ajax('get', {action: "download-url", id: id}, function(data) { |
| 332 |
console.log(data); |
| 333 |
access.attr("href", data.action.redirect); |
| 334 |
}); |
| 335 |
$(el).append(" "); |
| 328 |
|
336 |
|
| 329 |
$(el).append( ajax_button( __("Check in"), function() { |
337 |
$(el).append( ajax_button( __("Check in"), function() { |
| 330 |
if( confirm( __("Are you sure you want to return this item?") ) ) { |
338 |
if( confirm( __("Are you sure you want to return this item?") ) ) { |