From a2d301fc77ebd55605c1157b058e1790057f447b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 7 Sep 2015 11:51:39 -0400 Subject: [PATCH] webstaff: Phys Char Wiz : launcher link Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- .../js/ui/default/staff/cat/services/marcedit.js | 21 ++++++++++++++++++++- .../js/ui/default/staff/cat/services/tagtable.js | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) 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]); } -- 2.11.0