From: Bill Erickson Date: Mon, 7 Sep 2015 15:51:39 +0000 (-0400) Subject: webstaff: Phys Char Wiz : launcher link X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a2d301fc77ebd55605c1157b058e1790057f447b;p=evergreen%2Fpines.git webstaff: Phys Char Wiz : launcher link Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- 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 d081f0cc93..40235c96bd 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 @@ -436,8 +436,27 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) 'on-keydown="onKeydown" '+ 'id="r{{field.record.subfield(\'901\',\'c\')[1]}}f{{field.position}}data"'+ '/>'+ + // TODO: move to TT2 template + ''+ '', - scope: { field: "=", onKeydown: '=' } + scope: { field: "=", onKeydown: '=' }, + controller : ['$scope','$modal', + function ( $scope, $modal ) { + $scope.showPhysCharLink = function () { + return ($scope.$parent.$parent.record_type == 'bre') + && $scope.field.tag == '007'; + } + $scope.spawnPhysCharWizard = function() { + console.log('HERE'); + } + } + ] } }) diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/tagtable.js b/Open-ILS/web/js/ui/default/staff/cat/services/tagtable.js index 932794e1ea..de64a13a5e 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/tagtable.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/tagtable.js @@ -534,7 +534,7 @@ function($q, egCore, egAuth) { // Fetches + caches the config.marc21_physical_characteristic_value_map // for the requested ptype_subfield (subfield_map.id). // Maps are ordered by value. - serivice.getPhysCharValueMap = function(ptype_subfield) { + service.getPhysCharValueMap = function(ptype_subfield) { if (service.phys_char_value_map[ptype_subfield]) { return $q.when(service.phys_char_value_map[ptype_subfield]); }