|
Lines 627-646
Link Here
|
| 627 |
"</a><br/>"; |
627 |
"</a><br/>"; |
| 628 |
} |
628 |
} |
| 629 |
|
629 |
|
| 630 |
if ( row.biblio != null ) { |
630 |
if (row.biblio != null) { |
| 631 |
if ( row.biblio.items_count - row.items.length > 0 || |
631 |
if (row.biblio.items_count - row.items.length > 0 || row.biblio.uncancelled_orders_count > 1 || row.biblio.subscriptions_count > 0 || row.biblio.holds_count > 0) { |
| 632 |
row.biblio.uncancelled_orders_count > 1 || |
632 |
// biblio can be deleted |
| 633 |
row.biblio.subscriptions_count > 0 || |
633 |
result += '<span class="button" title="' + _("Can't delete catalog record, see constraints below") + '">' + _("Can't cancel order and delete catalog record") + "</span><br>"; |
| 634 |
row.biblio.holds_count > 0 ) { // biblio can be deleted |
634 |
} else { |
| 635 |
result += '<span class="button" title="' |
635 |
result += |
| 636 |
+ _("Can't delete catalog record, see constraints below") + '">' |
636 |
'<a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=' + |
| 637 |
+ _("Can't cancel order and delete catalog record") + '</span><br>'; |
637 |
encodeURIComponent(row.order_id) + |
| 638 |
} |
638 |
"&biblionumber=" + |
| 639 |
else { |
639 |
encodeURIComponent(row.biblio_id) + |
| 640 |
result += '<a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=' |
640 |
"&del_biblio=1&referrer=/cgi-bin/koha/acqui/parcel.pl?invoiceid=" + |
| 641 |
+ encodeURIComponent(row.order_id) + '&biblionumber=' + encodeURIComponent(row.biblio_id) |
641 |
invoide_id + |
| 642 |
+ '&del_biblio=1&referrer=/cgi-bin/koha/acqui/parcel.pl?invoiceid=' + invoide_id |
642 |
_("Cancel order and catalog record") + |
| 643 |
+ _("Cancel order and catalog record") + '</a><br/>'; |
643 |
"</a><br/>"; |
| 644 |
} |
644 |
} |
| 645 |
|
645 |
|
| 646 |
if (row.biblio.items_count - row.items.length > 0) { |
646 |
if (row.biblio.items_count - row.items.length > 0) { |
| 647 |
- |
|
|