From: phasefx Date: Mon, 9 Jun 2008 21:18:16 +0000 (+0000) Subject: undelete for bib records. This is local chrome, so need to deploy a new staff client... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d069f9fdaf13b37b2336453e33cb24423ec86ae5;p=Evergreen.git undelete for bib records. This is local chrome, so need to deploy a new staff client to see this functionality git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_2@9800 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul b/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul index 6b017f8b97..8e3d696993 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul @@ -275,6 +275,17 @@ } } + function undelete_record() { + if (g.error.yns_alert('Are you sure you want to undelete title record #' + docid + '?','Undelete Record','Undelete','Cancel',null,'Check here to confirm this action.') == 0) { + var robj = g.network.simple_request('FM_BRE_UNDELETE',[ses(),docid]); + if (typeof robj.ilsevent != 'undefined') { + alert('Error undeleting Record #' + docid + ' : ' + robj.textcode + ' : ' + robj.desc + '\n'); + } else { + alert('Record undeleted.'); refresh_display(docid,true); + } + } + } + function refresh_display(id,reset) { try { while(top_pane.node.lastChild) top_pane.node.removeChild( top_pane.node.lastChild ); @@ -341,6 +352,7 @@ + diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index 52b21ecad1..538f693aa2 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -121,6 +121,7 @@ const api = { 'FM_BRE_ID_SEARCH_VIA_BARCODE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.find_by_barcode', 'secure' : false }, 'FM_BRE_ID_SEARCH_VIA_TCN' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.tcn', 'secure' : false }, 'FM_BRE_DELETE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record_entry.delete', 'secure' : false }, + 'FM_BRE_UNDELETE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record_entry.undelete', 'secure' : false }, 'FM_BRN_FROM_MARCXML' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.z3950.marcxml_to_brn', 'secure' : false }, 'FM_CCS_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.config.copy_status.retrieve.all', 'secure' : false }, 'FM_CIRC_DETAILS' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.fleshed.retrieve' },