<eg-marc-edit-fixed-field fixed-field="SubjUse" record="record"></eg-marc-edit-fixed-field>
<eg-marc-edit-fixed-field fixed-field="SerUse" record="record"></eg-marc-edit-fixed-field>
<eg-marc-edit-fixed-field fixed-field="TypeSubd" record="record"></eg-marc-edit-fixed-field>
- <eg-marc-edit-fixed-field fixed-field="GovAgn" record="record"></eg-marc-edit-fixed-field>
+ <eg-marc-edit-fixed-field fixed-field="GovtAgn" record="record"></eg-marc-edit-fixed-field>
<eg-marc-edit-fixed-field fixed-field="RefStatus" record="record"></eg-marc-edit-fixed-field>
<eg-marc-edit-fixed-field fixed-field="UpdStatus" record="record"></eg-marc-edit-fixed-field>
</div>
resolve : resolver
});
+ $routeProvider.when('/cat/catalog/authority/:authority_id/marc_edit', {
+ templateUrl: './cat/catalog/t_authority',
+ controller: 'AuthorityCtrl',
+ resolve : resolver
+ });
+
$routeProvider.otherwise({redirectTo : '/cat/catalog/index'});
})
}])
+.controller('AuthorityCtrl',
+ ['$scope','$routeParams','$location','$window','$q','egCore',
+function($scope , $routeParams , $location , $window , $q , egCore) {
+
+ // set record ID on page load if available...
+ $scope.authority_id = $routeParams.authority_id;
+
+ if ($routeParams.authority_id) $scope.from_route = true;
+ else $scope.from_route = false;
+
+ $scope.stop_unload = false;
+}])
+
.controller('URLVerifyCtrl',
['$scope','$location',
function($scope , $location) {
$scope.controlfields = [];
$scope.datafields = [];
- egTagTable.loadTagTable();
+ egTagTable.loadTagTable({ marcRecordType : $scope.record_type });
$scope.saveFlatTextMARC = function () {
$scope.record = new MARC21.Record({ marcbreaker : $scope.flat_text_marc });
fields.marcFormat = args.marcFormat;
}
if (args.marcRecordType) {
- fields.marcFormat = service.normalizeRecordType(args.marcFormat);
+ fields.marcRecordType = service.normalizeRecordType(args.marcRecordType);
}
}
var tt_key = 'current_tag_table_' + fields.marcFormat + '_' +