webstaff: add Mark as Overlay Target to MARC editor
authorJason Etheridge <jason@esilibrary.com>
Thu, 3 Sep 2015 05:49:19 +0000 (01:49 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 14 Sep 2015 19:44:20 +0000 (15:44 -0400)
no bells and whistles though :)

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js

index eba2c17..9dea0d4 100644 (file)
@@ -44,6 +44,9 @@
         </span>
       </div>
     </div>
+    <div class="col-md-1" ng-hide="brandNewRecord">
+      <button class="btn btn-default" ng-click="markOverlay()">[% l('Mark as Overlay Target') %]</button>
+    </div>
   </div>
 
   <div ng-show="flatEditor">
index 056c34e..a8df2aa 100644 (file)
@@ -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) {