"CREATE_MFHD": "Add MFHD Record",
"CREATED_MFHD_RECORD": "Created MFHD record for ${0}",
"DELETE_MFHD": "Delete Record",
+ "DELETE_MFHD_CONFIRM": "Are you sure you want to delete this serial record?",
"DELETED_MFHD_RECORD": "Deleted MFHD record ${0}",
"EDIT_MFHD_RECORD": "Edit Record",
"EDIT_MFHD_MENU": "Edit Holdings",
var mfhd_edit = new dijit.Menu({});
new dijit.MenuItem({onClick: function(){loadMarcEditor(holdings.sre_id())}, label:opac_strings.EDIT_MFHD_RECORD}).placeAt(mfhd_edit, "first");
new dijit.MenuItem({onClick:function(){
+ // Avoid accidental deletion of MFHD records
+ if (!confirm(opac_strings.DELETE_MFHD_CONFIRM)) {
+ return;
+ }
var pcrud = new openils.PermaCrud({"authtoken": G.user.session});
var mfhd_rec = pcrud.retrieve("sre", holdings.sre_id());
if (mfhd_rec) {