From 15b72b344de8d5b521cddc25081359cd0aa3ea67 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 2 May 2017 14:37:08 -0400 Subject: [PATCH] webstaff: add basic frequency inputs Signed-off-by: Galen Charlton --- .../staff/serials/t_prediction_wizard.tt2 | 42 ++++++++++++++++++++++ .../staff/serials/directives/prediction_wizard.js | 10 ++++++ 2 files changed, 52 insertions(+) diff --git a/Open-ILS/src/templates/staff/serials/t_prediction_wizard.tt2 b/Open-ILS/src/templates/staff/serials/t_prediction_wizard.tt2 index 2635f0e93f..2ab95cc364 100644 --- a/Open-ILS/src/templates/staff/serials/t_prediction_wizard.tt2 +++ b/Open-ILS/src/templates/staff/serials/t_prediction_wizard.tt2 @@ -260,6 +260,48 @@
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
diff --git a/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_wizard.js b/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_wizard.js index 7e6a46cc8d..8437f186ce 100644 --- a/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_wizard.js +++ b/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_wizard.js @@ -32,6 +32,7 @@ function($scope , $q , egSerialsCoreSvc , egCore , egGridDataProvider) { this.alt_enum_levels = []; this.chron_levels = []; this.alt_chron_levels = []; + this.frequency_type = 'preset'; var nr_sf_map = { '0' : 'link', @@ -189,6 +190,15 @@ function($scope , $q , egSerialsCoreSvc , egCore , egGridDataProvider) { } } } + if (self.frequency) { + if (self.frequency.match(/^\d+$/)) { + self.frequency_type = 'numeric'; + self.frequency_numeric = self.frequency; + } else { + self.frequency_type = 'preset'; + self.frequency_preset = self.frequency; + } + } this.add_enum_level = function() { if (self.enum_levels.length < 6) { -- 2.11.0