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

Evergreen Git git at git.evergreen-ils.org
Tue Nov 22 10:33:04 EST 2016


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  1fbaa1dde02d7461ffceea542bec7deafd2a99fc (commit)
      from  440887827e25bd9b98e1a85e08ef7f269e4695b9 (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 1fbaa1dde02d7461ffceea542bec7deafd2a99fc
Author: Kyle Huckins <khuckins at catalystdevworks.com>
Date:   Wed Oct 19 11:59:57 2016 -0700

    LP1537214 Staff Initials in Patron Notes
    
    Add Initials field to new note dialog when
    Require Staff Initials option is active.  Notes with
    initials will use the following format:
              "Note [Initials]"
    
    Signed-off-by: Kyle Huckins <khuckins at catalystdevworks.com>
    
     Changes to be committed:
    	modified:   Open-ILS/src/templates/staff/circ/patron/t_new_note_dialog.tt2
    	modified:   Open-ILS/web/js/ui/default/staff/circ/patron/app.js
    
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

diff --git a/Open-ILS/src/templates/staff/circ/patron/t_new_note_dialog.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_new_note_dialog.tt2
index cfc5b40..6e9919a 100644
--- a/Open-ILS/src/templates/staff/circ/patron/t_new_note_dialog.tt2
+++ b/Open-ILS/src/templates/staff/circ/patron/t_new_note_dialog.tt2
@@ -35,6 +35,11 @@
       </div>
     </div>
     <div class="modal-footer">
+      <div class="col-md-2">
+        <input type="text" class="form-control" ng-hide="!require_initials"
+          id="initials" ng-model="args.initials" placeholder="[% l('Initials') %]" 
+          ng-required="require_initials" />
+      </div>
       <input type="submit" class="btn btn-primary" value="[% l('OK') %]"/>
       <button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
     </div>
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js
index 356bdfe..31b2358 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js
@@ -29,6 +29,7 @@ angular.module('egPatronApp', ['ngRoute', 'ui.bootstrap',
         // specific settings from within their respective controllers
         egCore.env.classLoaders.aous = function() {
             return egCore.org.settings([
+                'ui.staff.require_initials.patron_info_notes',
                 'circ.do_not_tally_claims_returned',
                 'circ.tally_lost',
                 'circ.obscure_dob',
@@ -1312,8 +1313,8 @@ function($scope,  $routeParams , $location , egCore , patronSvc) {
 }])
 
 .controller('PatronNotesCtrl',
-       ['$scope','$routeParams','$location','egCore','patronSvc','$uibModal',
-function($scope,  $routeParams , $location , egCore , patronSvc , $uibModal) {
+       ['$scope', '$filter', '$routeParams','$location','egCore','patronSvc','$uibModal',
+function($scope,  $filter, $routeParams , $location , egCore , patronSvc , $uibModal) {
     $scope.initTab('other', $routeParams.id);
     var usr_id = $routeParams.id;
 
@@ -1338,6 +1339,7 @@ function($scope,  $routeParams , $location , egCore , patronSvc , $uibModal) {
             function($scope, $uibModalInstance) {
                 $scope.focusNote = true;
                 $scope.args = {};
+                $scope.require_initials = egCore.env.aous['ui.staff.require_initials.patron_info_notes'];
                 $scope.ok = function(count) { $uibModalInstance.close($scope.args) }
                 $scope.cancel = function () { $uibModalInstance.dismiss() }
             }],
@@ -1350,6 +1352,8 @@ function($scope,  $routeParams , $location , egCore , patronSvc , $uibModal) {
                 note.value(args.value);
                 note.pub(args.pub ? 't' : 'f');
                 note.creator(egCore.auth.user().id());
+                if (args.initials) 
+                    note.value(note.value() + ' [' + args.initials + ']');
                 egCore.pcrud.create(note).then(function() {refreshPage()});
             }
         );

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

Summary of changes:
 .../staff/circ/patron/t_new_note_dialog.tt2        |    5 +++++
 .../web/js/ui/default/staff/circ/patron/app.js     |    8 ++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list