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)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 11 Aug 2017 14:27:36 +0000 (10:27 -0400)
commit8e13e0c6f2d4317e31d48039b1ead6430e22c21e
treead140881adfcd7cb46aa1f53c943bccf87e6fb30
parent2151722dfff83d4c2ccfe875b9c347cafc803168
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>
Signed-off-by: Chris Sharp <csharp@georgialibraries.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