[open-ils-commits] r18695 - in trunk/Open-ILS/web: js/ui/default/cat/authority opac/skin/default/js (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 10 22:49:34 EST 2010
Author: dbs
Date: 2010-11-10 22:49:31 -0500 (Wed, 10 Nov 2010)
New Revision: 18695
Modified:
trunk/Open-ILS/web/js/ui/default/cat/authority/list.js
trunk/Open-ILS/web/opac/skin/default/js/rdetail.js
Log:
Update the edit dates for authority and MFHD records when they are edited
Addresses the oversight in the original implementation that missed this;
important if we're going to differentiate between creating and editing
a record for triggers.
Modified: trunk/Open-ILS/web/js/ui/default/cat/authority/list.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/cat/authority/list.js 2010-11-10 22:31:12 UTC (rev 18694)
+++ trunk/Open-ILS/web/js/ui/default/cat/authority/list.js 2010-11-11 03:49:31 UTC (rev 18695)
@@ -153,6 +153,7 @@
"label": "Save",
"func": function(xmlString) {
rec.marc(xmlString);
+ rec.edit_date('now');
rec.ischanged(true);
pcrud.update(rec);
alert("Record was saved");
Modified: trunk/Open-ILS/web/opac/skin/default/js/rdetail.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/rdetail.js 2010-11-10 22:31:12 UTC (rev 18694)
+++ trunk/Open-ILS/web/opac/skin/default/js/rdetail.js 2010-11-11 03:49:31 UTC (rev 18695)
@@ -250,6 +250,7 @@
"label": opac_strings.SAVE_MFHD_LABEL,
"func": function(xmlString) {
rec.marc(xmlString);
+ rec.edit_date('now');
rec.ischanged(true);
pcrud.update(rec);
}
More information about the open-ils-commits
mailing list