From: Galen Charlton Date: Tue, 2 May 2017 18:37:08 +0000 (-0400) Subject: webstaff: add basic frequency inputs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=15b72b344de8d5b521cddc25081359cd0aa3ea67;p=working%2FEvergreen.git webstaff: add basic frequency inputs Signed-off-by: Galen Charlton --- 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) {