From e8e766724270ee2b5cac7ef193a4e5647d5d2ad7 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Thu, 5 Jul 2018 14:33:24 -0700 Subject: [PATCH] LP1164061: Edit authority record by database ID Allow users to jump directly to the authority record MARC edit interface by entering the authority record ID. Includes release notes. Signed-off-by: Jane Sandberg Signed-off-by: Bill Erickson --- .../staff/cat/catalog/t_retrieve_by_authority_id.tt2 | 17 +++++++++++++++++ Open-ILS/src/templates/staff/navbar.tt2 | 6 ++++++ Open-ILS/web/js/ui/default/staff/cat/catalog/app.js | 20 ++++++++++++++++++++ .../Cataloging/view-authority-record-by-id.adoc | 17 +++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 Open-ILS/src/templates/staff/cat/catalog/t_retrieve_by_authority_id.tt2 create mode 100644 docs/RELEASE_NOTES_NEXT/Cataloging/view-authority-record-by-id.adoc 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..7a9572a68d --- /dev/null +++ b/Open-ILS/src/templates/staff/cat/catalog/t_retrieve_by_authority_id.tt2 @@ -0,0 +1,17 @@ + +
+
+
+ + + + + +
+ +
+
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 203bb71344..63a177e8de 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,15 @@ function($scope , $routeParams , $location , $q , egCore ) { return loadRecord(args.record_id); } + $scope.submitAuthorityId = function(args) { + 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; diff --git a/docs/RELEASE_NOTES_NEXT/Cataloging/view-authority-record-by-id.adoc b/docs/RELEASE_NOTES_NEXT/Cataloging/view-authority-record-by-id.adoc new file mode 100644 index 0000000000..ee29baa122 --- /dev/null +++ b/docs/RELEASE_NOTES_NEXT/Cataloging/view-authority-record-by-id.adoc @@ -0,0 +1,17 @@ +View Authority Record by Database ID +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +A new interface allows catalogers to retrieve a specific +authority record using its database ID. Catalogers can +find those IDs in subfield $0 of matching fields in +bibliographic records. + +To use the new authority record viewer: + +. Click *Cataloging -> Retrieve Authority Record by ID*. +. Type in the ID number of the authority record you are +interested in. Don't include any prefixes, just the ID +number. +. Click *Submit*. +. View or edit the authority record as needed. + -- 2.11.0