From 1b7cfad04f49ef2369160b6cbebfde991f59cff4 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 28 Jul 2015 15:06:36 +0000 Subject: [PATCH] webstaff: have egRecordHtml watch for changes to the MARC XML Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- Open-ILS/web/js/ui/default/staff/cat/services/record.js | 7 +++++++ 1 file changed, 7 insertions(+) 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(); -- 2.11.0