]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1701001: carve out a reusable patron search service
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 26 May 2017 20:41:38 +0000 (20:41 +0000)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 31 Jul 2017 21:02:55 +0000 (17:02 -0400)
commit02647cd6833082288fef0c24bcb734d5e1fb2931
tree4cd42e0a8c8d5115d110cbdd19c0412cb084f872
parenta54b18e01f98ac74dfa9ab9e886c344e045e92d7
LP#1701001: carve out a reusable patron search service

This patch moves the patron search service and the base
patron search controller into a separate, reusable
file.  The core patron search service is available for
injection as patronSvc from the new egPatronSearchMod, while
BasePatronSearchCtrl now exists as a base controller for the
patron search form that can be extended as needed by doing
something like this:

module.controller('DerivedPatronSearchCtrl', [
             '$scope', '$controller',
    function ($scope, $controller) {
    // Initialize the super class and extend it.
    angular.extend(this, $controller('BasePatronSearchCtrl', {$scope: $scope}));
...

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/circ/patron/index.tt2
Open-ILS/src/templates/staff/circ/renew/index.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/app.js
Open-ILS/web/js/ui/default/staff/services/patron_search.js [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/test/karma.conf.js