LP1164061: Edit authority record by database ID
authorJane Sandberg <sandbej@linnbenton.edu>
Thu, 5 Jul 2018 21:33:24 +0000 (14:33 -0700)
committerBill Erickson <berickxx@gmail.com>
Tue, 14 Aug 2018 18:20:49 +0000 (14:20 -0400)
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 <sandbej@linnbenton.edu>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/cat/catalog/t_retrieve_by_authority_id.tt2 [new file with mode: 0644]
Open-ILS/src/templates/staff/navbar.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
docs/RELEASE_NOTES_NEXT/Cataloging/view-authority-record-by-id.adoc [new file with mode: 0644]

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 (file)
index 0000000..7a9572a
--- /dev/null
@@ -0,0 +1,17 @@
+
+<div class="col-md-3">
+<form ng-submit="submitAuthorityId(args)" role="form" class="form-inline">
+  <div class="input-group">
+
+    <label class="input-group-addon"
+      for="record-retreive-id" >[% l('Authority Record Id') %]</label>
+
+    <input select-me="selectMe" class="form-control"
+      ng-model="args.record_id" focus-me="focusMe"
+      placeholder="[% l('Authority Record Id') %]"
+      id="record-retreive-id" type="text"/>
+
+  </div>
+  <input class="btn btn-default" type="submit" value="[% l('Submit') %]"/>
+</form>
+</div>
index a6a65ad..d3033d7 100644 (file)
               [% l('Manage Authorities') %]
             </a>
           </li>
+          <li>
+            <a href="./cat/catalog/retrieve_by_authority_id" target="_self">
+              <span class="glyphicon glyphicon-file"></span>
+              [% l('Retrieve Authority Record by ID') %]
+            </a>
+          </li>
        </ul>
       </li>
 
index 203bb71..63a177e 100644 (file)
@@ -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 (file)
index 0000000..ee29baa
--- /dev/null
@@ -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.
+