From: Galen Charlton Date: Tue, 28 Jul 2015 15:06:36 +0000 (+0000) Subject: webstaff: have egRecordHtml watch for changes to the MARC XML X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1b7cfad04f49ef2369160b6cbebfde991f59cff4;p=evergreen%2Fmasslnc.git webstaff: have egRecordHtml watch for changes to the MARC XML Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/record.js b/Open-ILS/web/js/ui/default/staff/cat/services/record.js index a67cb87a10..4adfe6cf3c 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/record.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/record.js @@ -60,6 +60,13 @@ angular.module('egCoreMod') } } ); + $scope.$watch('marcXml', + function(newVal, oldVal) { + if (newVal && newVal !== oldVal) { + loadRecordHtml(); + } + } + ); if ($scope.recordId || $scope.marcXml) loadRecordHtml();