-/*
- * TODO:
- * when this file starts getting too large and we want to add code for
- * UIs that are not typically rendered (i.e. we don't necessarily want
- * to fetch the code on every page load), we can create tab-specific
- * controllers which live in separate JS files which are only fetched
- * when the related tab template is fetched.
+/**
+ * Patron App
+ *
+ * Search, checkout, items out, holds, bills, edit, etc.
*/
angular.module('egPatronApp', ['ngRoute', 'ui.bootstrap',
// data loaded at startup which only requires an authtoken goes
// here. this allows the requests to be run in parallel instead of
// waiting until startup has completed.
- var resolver = {delay :
- // TODO: $inject array
- function(egAuth, egUser, egNet, egEnv, egPCRUD, egStartup, egOrg) {
+ var resolver = {delay : [
+ 'egAuth','egUser','egNet','egEnv','egPCRUD','egStartup','egOrg',
+ function(egAuth , egUser , egNet , egEnv , egPCRUD , egStartup , egOrg) {
// fetch the org settings we care about during egStartup
// and toss them into egEnv as egEnv.aous[name] = value.
egUser.defaultFleshFields.push('ident_type2');
return egStartup.go()
- }};
+ }]};
$routeProvider.when('/circ/patron/search', {
templateUrl: './circ/patron/t_search',