Update the edit dates for authority and MFHD records when they are edited
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 11 Nov 2010 03:49:31 +0000 (03:49 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 11 Nov 2010 03:49:31 +0000 (03:49 +0000)
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.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@18695 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/cat/authority/list.js
Open-ILS/web/opac/skin/default/js/rdetail.js

index 9408b4d..43d4511 100644 (file)
@@ -153,6 +153,7 @@ function loadMarcEditor(pcrud, rec) {
             "label": "Save",
             "func": function(xmlString) {
                 rec.marc(xmlString);
+                rec.edit_date('now');
                 rec.ischanged(true);
                 pcrud.update(rec);
                 alert("Record was saved");
index 34981fc..e239098 100644 (file)
@@ -250,6 +250,7 @@ function OpenMarcEditWindow(pcrud, rec) {
                        "label": opac_strings.SAVE_MFHD_LABEL,
                        "func": function(xmlString) {
                                rec.marc(xmlString);
+                               rec.edit_date('now');
                                rec.ischanged(true);
                                pcrud.update(rec);
                        }