]> 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)
committerJason Etheridge <jason@EquinoxInitiative.org>
Mon, 14 Aug 2017 19:57:55 +0000 (15:57 -0400)
commitfcd4229f895e98de2164012c1730f2479da40096
treee4c405a804a9fc4957c5eaa05f06d3673b42fed9
parent2015799e80e18d4259b7149986fec175e9238aad
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>
Signed-off-by: Jason Etheridge <jason@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