[open-ils-commits] r9800 - in
branches/rel_1_2_2/Open-ILS/xul/staff_client/chrome/content:
cat main
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jun 9 17:18:20 EDT 2008
Author: phasefx
Date: 2008-06-09 17:18:16 -0400 (Mon, 09 Jun 2008)
New Revision: 9800
Modified:
branches/rel_1_2_2/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul
branches/rel_1_2_2/Open-ILS/xul/staff_client/chrome/content/main/constants.js
Log:
undelete for bib records. This is local chrome, so need to deploy a new staff client to see this functionality
Modified: branches/rel_1_2_2/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul
===================================================================
--- branches/rel_1_2_2/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul 2008-06-09 20:05:20 UTC (rev 9799)
+++ branches/rel_1_2_2/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul 2008-06-09 21:18:16 UTC (rev 9800)
@@ -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 @@
<menuitem label="Add to Bucket" accesskey="B" id="add_bucket" oncommand="add_to_bucket();"/>
<menuitem label="Mark for Overlay" accesskey="M" id="mark_for_overlay" oncommand="mark_for_overlay();"/>
<menuitem label="Delete Record" accesskey="D" id="delete_record" oncommand="delete_record();"/>
+ <menuitem label="Undelete Record" accesskey="D" id="undelete_record" oncommand="undelete_record();"/>
<menuseparator/>
<menuitem label="Duplicate in New Tab" id="bib_in_new_tab" oncommand="bib_in_new_tab();"/>
<menuitem label="Remove this Frame" id="remove_me" oncommand="remove_me();"/>
Modified: branches/rel_1_2_2/Open-ILS/xul/staff_client/chrome/content/main/constants.js
===================================================================
--- branches/rel_1_2_2/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2008-06-09 20:05:20 UTC (rev 9799)
+++ branches/rel_1_2_2/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2008-06-09 21:18:16 UTC (rev 9800)
@@ -121,6 +121,7 @@
'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' },
More information about the open-ils-commits
mailing list