From: Jane Sandberg Date: Thu, 5 Jul 2018 21:33:24 +0000 (-0700) Subject: LP1164061: Edit authority record by database ID X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=94b7f0ceb4ed3daf3a500c3ce8c595a8d5e1247c;p=working%2FEvergreen.git LP1164061: Edit authority record by database ID Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_retrieve_by_authority_id.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_retrieve_by_authority_id.tt2 new file mode 100644 index 0000000000..73d822a108 --- /dev/null +++ b/Open-ILS/src/templates/staff/cat/catalog/t_retrieve_by_authority_id.tt2 @@ -0,0 +1,27 @@ + +
+
+
+ + + + + +
+ +
+
+ +
+
+
+
+
+
+ [% l('Authority Record Not Found: [_1]', '{{recordNotFound}}') %] +
+ diff --git a/Open-ILS/src/templates/staff/navbar.tt2 b/Open-ILS/src/templates/staff/navbar.tt2 index a6a65ad58c..d3033d7c7b 100644 --- a/Open-ILS/src/templates/staff/navbar.tt2 +++ b/Open-ILS/src/templates/staff/navbar.tt2 @@ -325,6 +325,12 @@ [% l('Manage Authorities') %] +
  • + + + [% l('Retrieve Authority Record by ID') %] + +
  • diff --git a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js index 4b3d186975..2a293e9443 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js @@ -61,6 +61,12 @@ angular.module('egCatalogApp', ['ui.bootstrap','ngRoute','ngLocationUpdate','egC resolve : resolver }); + $routeProvider.when('/cat/catalog/retrieve_by_authority_id', { + templateUrl: './cat/catalog/t_retrieve_by_authority_id', + controller: 'CatalogRecordRetrieve', + resolve : resolver + }); + $routeProvider.when('/cat/catalog/new_bib', { templateUrl: './cat/catalog/t_new_bib', controller: 'NewBibCtrl', @@ -135,6 +141,11 @@ function($scope , $routeParams , $location , $q , egCore ) { .path('/cat/catalog/record/' + record_id); } + function loadAuthorityRecord(record_id) { + $location + .path('/cat/catalog/authority/' + record_id + '/marc_edit'); + } + $scope.submitId = function(args) { $scope.recordNotFound = null; if (!args.record_id) return; @@ -145,6 +156,16 @@ function($scope , $routeParams , $location , $q , egCore ) { return loadRecord(args.record_id); } + $scope.submitAuthorityId = function(args) { + $scope.recordNotFound = null; + if (!args.record_id) return; + + // blur so next time it's set to true it will re-apply select() + $scope.selectMe = false; + + return loadAuthorityRecord(args.record_id); + } + $scope.submitTCN = function(args) { $scope.recordNotFound = null; $scope.moreRecordsFound = null;