This seems hacky... but it also seems to work.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
}
);
- if ($scope.recordId || $scope.marcXml) {
- loadRecord();
- }
+ var unregister = $scope.$watch(function() {
+ return egTagTable.initialized();
+ }, function(val) {
+ if (val) {
+ unregister();
+ if ($scope.recordId || $scope.marcXml) {
+ loadRecord();
+ }
+ }
+ });
$scope.mangle_005 = function () {
var now = new Date();
ff_pos_map : { },
ff_value_map : { },
authority_control_set : {
+ _remote_loaded : false,
_controlsets : [ ]
}
};
+ service.initialized = function() {
+ return service.authority_control_set._remote_loaded;
+ }
+
// allow 'bre' and 'biblio' to be synonyms, etc.
service.normalizeRecordType = function(recordType) {
if (recordType === 'sre') {