|
Lines 34-42
Link Here
|
| 34 |
|
34 |
|
| 35 |
var is_confirmed; |
35 |
var is_confirmed; |
| 36 |
if (count > 0){ |
36 |
if (count > 0){ |
| 37 |
is_confirmed = alert( count + " " +_("item(s) are attached to this record.\nYou must delete all items before deleting this record.") ); |
37 |
is_confirmed = alert( count + " " +_("item(s) are attached to this record. You must delete all items before deleting this record.") ); |
| 38 |
} else if ( holdcount > 0 ) { |
38 |
} else if ( holdcount > 0 ) { |
| 39 |
is_confirmed = confirm( holdcount + " " + _("holds(s) for this record \n Are you sure you want to delete this record?.")); |
39 |
is_confirmed = confirm( holdcount + " " + _("hold(s) on this record. Are you sure you want to delete this record?.")); |
| 40 |
} else { |
40 |
} else { |
| 41 |
is_confirmed = confirm(_("Are you sure you want to delete this record?")); |
41 |
is_confirmed = confirm(_("Are you sure you want to delete this record?")); |
| 42 |
} |
42 |
} |
|
Lines 59-65
Link Here
|
| 59 |
var holdcount = [% holdcount %]; |
59 |
var holdcount = [% holdcount %]; |
| 60 |
|
60 |
|
| 61 |
if ( holdcount > 0 ) { |
61 |
if ( holdcount > 0 ) { |
| 62 |
alert( holdcount + " " + _("holds(s) for this record \n You must delete all holds before deleting all items.") ); |
62 |
alert( holdcount + " " + _("hold(s) on this record. You must delete all holds before deleting all items.") ); |
| 63 |
} else if ( count > 0 ) { |
63 |
} else if ( count > 0 ) { |
| 64 |
if( confirm( _("Are you sure you want to delete the") + " " + count + " " + _("attached items?") ) ) { |
64 |
if( confirm( _("Are you sure you want to delete the") + " " + count + " " + _("attached items?") ) ) { |
| 65 |
window.location="/cgi-bin/koha/cataloguing/additem.pl?op=delallitems&biblionumber=[% biblionumber %]"; |
65 |
window.location="/cgi-bin/koha/cataloguing/additem.pl?op=delallitems&biblionumber=[% biblionumber %]"; |
| 66 |
- |
|
|