add Mark as Overlay Target to MARC editor
authorJason Etheridge <jason@esilibrary.com>
Thu, 3 Sep 2015 05:49:19 +0000 (01:49 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 4 Sep 2015 19:53:46 +0000 (15:53 -0400)
no bells and whistles though :)

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
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) {