From 1d743359f253a47ad38e9989725754e17f98811b Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 17 Apr 2017 17:46:05 -0400 Subject: [PATCH] webstaff: create serials distribution/stream grid TODO: move most of this to a separate directive Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/serials/index.tt2 | 1 + Open-ILS/src/templates/staff/serials/t_manage.tt2 | 44 +++++++++++++++++++++++ Open-ILS/web/js/ui/default/staff/serials/app.js | 19 ++++++++-- 3 files changed, 61 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/staff/serials/index.tt2 b/Open-ILS/src/templates/staff/serials/index.tt2 index 9eaa08f5a2..bbb73acc03 100644 --- a/Open-ILS/src/templates/staff/serials/index.tt2 +++ b/Open-ILS/src/templates/staff/serials/index.tt2 @@ -6,6 +6,7 @@ [% BLOCK APP_JS %] + diff --git a/Open-ILS/src/templates/staff/serials/t_manage.tt2 b/Open-ILS/src/templates/staff/serials/t_manage.tt2 index bbd82dae55..78d7112d0a 100644 --- a/Open-ILS/src/templates/staff/serials/t_manage.tt2 +++ b/Open-ILS/src/templates/staff/serials/t_manage.tt2 @@ -9,6 +9,50 @@ otherwise selecting the active table won't work cleanly -->

Create Subscription TODO

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Frequency TODO

diff --git a/Open-ILS/web/js/ui/default/staff/serials/app.js b/Open-ILS/web/js/ui/default/staff/serials/app.js index 5936333451..636f7102c6 100644 --- a/Open-ILS/web/js/ui/default/staff/serials/app.js +++ b/Open-ILS/web/js/ui/default/staff/serials/app.js @@ -1,4 +1,4 @@ -angular.module('egSerialsApp', ['ui.bootstrap','ngRoute','egCoreMod','egGridMod','ngToast']) +angular.module('egSerialsApp', ['ui.bootstrap','ngRoute','egCoreMod','egGridMod','ngToast','egSerialsMod']) .config(['ngToastProvider', function(ngToastProvider) { ngToastProvider.configure({ @@ -27,9 +27,22 @@ angular.module('egSerialsApp', ['ui.bootstrap','ngRoute','egCoreMod','egGridMod' }) .controller('ManageCtrl', - ['$scope','$routeParams','$location','$window','$q', -function($scope , $routeParams , $location , $window , $q + ['$scope','$routeParams','$location','$window','$q','egSerialsCoreSvc','egCore', + 'egGridDataProvider', +function($scope , $routeParams , $location , $window , $q , egSerialsCoreSvc , egCore , + egGridDataProvider ) { $scope.bib_id = $routeParams.bib_id; $scope.active_tab = $routeParams.active_tab ? $routeParams.active_tab : 'create-subscription'; + egSerialsCoreSvc.fetch($scope.bib_id).then(function() { + }); + $scope.distStreamGridControls = { + activateItem : function (item) { } // TODO + }; + $scope.distStreamGridDataProvider = egGridDataProvider.instance({ + get : function(offset, count) { + return this.arrayNotifier(egSerialsCoreSvc.subList, offset, count); + } + }); + }]) -- 2.11.0