From ddc995c9d848c17932b5b32ff976362d634c5476 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 3 Sep 2015 01:49:19 -0400 Subject: [PATCH] webstaff: add Mark as Overlay Target to MARC editor no bells and whistles though :) Signed-off-by: Jason Etheridge Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 | 3 +++ Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 b/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 index eba2c17997..9dea0d4072 100644 --- a/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 +++ b/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 @@ -44,6 +44,9 @@ +
+ +
diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js index 056c34e5c4..a8df2aa8fe 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js @@ -1110,6 +1110,10 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) alert($scope.record.toBreaker()); }; + $scope.markOverlay = function () { + egCore.hatch.setLocalItem('eg.cat.marked_overlay_record',$scope.recordId); + }; + $scope.$watch('recordId', function(newVal, oldVal) { if (newVal && newVal !== oldVal) { -- 2.11.0