[open-ils-commits] [GIT] Evergreen ILS branch master updated. e8e766724270ee2b5cac7ef193a4e5647d5d2ad7

Evergreen Git git at git.evergreen-ils.org
Tue Aug 14 14:24:59 EDT 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  e8e766724270ee2b5cac7ef193a4e5647d5d2ad7 (commit)
      from  bf0a3fd21abdac7a88eed6fa3510d9f3114e26df (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e8e766724270ee2b5cac7ef193a4e5647d5d2ad7
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Thu Jul 5 14:33:24 2018 -0700

    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 <sandbej at linnbenton.edu>
    Signed-off-by: Bill Erickson <berickxx at gmail.com>

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 0000000..7a9572a
--- /dev/null
+++ b/Open-ILS/src/templates/staff/cat/catalog/t_retrieve_by_authority_id.tt2
@@ -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>
diff --git a/Open-ILS/src/templates/staff/navbar.tt2 b/Open-ILS/src/templates/staff/navbar.tt2
index a6a65ad..d3033d7 100644
--- a/Open-ILS/src/templates/staff/navbar.tt2
+++ b/Open-ILS/src/templates/staff/navbar.tt2
@@ -325,6 +325,12 @@
               [% 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>
 
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 203bb71..63a177e 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 0000000..ee29baa
--- /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.
+

-----------------------------------------------------------------------

Summary of changes:
 .../cat/catalog/t_retrieve_by_authority_id.tt2     |   17 +++++++++++++++++
 Open-ILS/src/templates/staff/navbar.tt2            |    6 ++++++
 .../web/js/ui/default/staff/cat/catalog/app.js     |   20 ++++++++++++++++++++
 .../Cataloging/view-authority-record-by-id.adoc    |   17 +++++++++++++++++
 4 files changed, 60 insertions(+), 0 deletions(-)
 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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list