|
Lines 55-60
function confirm_items_deletion() {
Link Here
|
| 55 |
}else{ |
55 |
}else{ |
| 56 |
return false; |
56 |
return false; |
| 57 |
} |
57 |
} |
|
|
58 |
} else { |
| 59 |
alert(_("This record has no items.")); |
| 60 |
return false; |
| 58 |
} |
61 |
} |
| 59 |
} |
62 |
} |
| 60 |
[% END %] |
63 |
[% END %] |
|
Lines 102-108
function confirm_items_deletion() {
Link Here
|
| 102 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Edit as New (Duplicate)"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=&op=duplicate" },[% END %] |
105 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Edit as New (Duplicate)"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=&op=duplicate" },[% END %] |
| 103 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Replace Record via Z39.50"), onclick: {fn: PopupZ3950 } },[% END %] |
106 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Replace Record via Z39.50"), onclick: {fn: PopupZ3950 } },[% END %] |
| 104 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Delete Record"), onclick: {fn: confirm_deletion }[% IF ( count ) %],id:'disabled'[% END %] },[% END %] |
107 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Delete Record"), onclick: {fn: confirm_deletion }[% IF ( count ) %],id:'disabled'[% END %] },[% END %] |
| 105 |
[% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Delete all Items"), onclick: {fn: confirm_items_deletion } }[% END %] |
108 |
[% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Delete all Items"), onclick: {fn: confirm_items_deletion }[% UNLESS ( count ) %],id:'disabled'[% END %] }[% END %] |
| 106 |
]; |
109 |
]; |
| 107 |
if(editmenu.length){ |
110 |
if(editmenu.length){ |
| 108 |
new YAHOO.widget.Button({ |
111 |
new YAHOO.widget.Button({ |
| 109 |
- |
|
|