[open-ils-commits] [GIT] Evergreen ILS branch master updated. 7bdfe9f5a2e8771c481bf8e15ad7da350b654533
Evergreen Git
git at git.evergreen-ils.org
Wed Aug 24 14:57:08 EDT 2016
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 7bdfe9f5a2e8771c481bf8e15ad7da350b654533 (commit)
via 6d176feb4e4bbfc67e9c4179cd7e446fd148fd4d (commit)
from fd725a7eb939fedb31f6eb13066f45b35baabb9c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7bdfe9f5a2e8771c481bf8e15ad7da350b654533
Author: Mike Rylander <mrylander at gmail.com>
Date: Wed Aug 24 14:55:29 2016 -0400
Stamping upgrade script for badge seed data
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index d696bf5..d0fc23a 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -91,7 +91,7 @@ CREATE TRIGGER no_overlapping_deps
BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0994', :eg_version); -- berick/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0995', :eg_version); -- kmlussier/miker
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.popularity-badge-seed-data.sql b/Open-ILS/src/sql/Pg/upgrade/0995.data.popularity-badge-seed-data.sql
similarity index 88%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.data.popularity-badge-seed-data.sql
rename to Open-ILS/src/sql/Pg/upgrade/0995.data.popularity-badge-seed-data.sql
index 61f9118..fe9ea27 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.popularity-badge-seed-data.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/0995.data.popularity-badge-seed-data.sql
@@ -1,6 +1,6 @@
BEGIN;
--SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('0995', :eg_version);
INSERT INTO rating.badge (name, description, scope, weight, horizon_age, importance_age, importance_interval, importance_scale, recalc_interval, popularity_parameter, percentile)
VALUES('Top Holds Over Last 5 Years', 'The top 97th percentile for holds requested over the past five years on all materials. More weight is given to holds requested over the last year, with importance decreasing for every year after that.', 1, 3, '5 years', '5 years', '1 year', 2, '1 day', 2, 97);
commit 6d176feb4e4bbfc67e9c4179cd7e446fd148fd4d
Author: Kathy Lussier <klussier at masslnc.org>
Date: Tue Aug 23 16:01:35 2016 -0400
LP#1614237: Popularity badge seed data
Adding popularity badge seed data for a badge based on Holds Requested over the
past 5 years.
Signed-off-by: Kathy Lussier <klussier at masslnc.org>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql
index b21fe2a..dbbbdde 100644
--- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql
+++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql
@@ -5129,6 +5129,10 @@ INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES (
,(1, 'circ.grace.extend', 'true')
;
+--220.schema.rating.sql (Default badge for popularity ranking)
+INSERT INTO rating.badge (name, description, scope, weight, horizon_age, importance_age, importance_interval, importance_scale, recalc_interval, popularity_parameter, percentile)
+ VALUES('Top Holds Over Last 5 Years', 'The top 97th percentile for holds requested over the past five years on all materials. More weight is given to holds requested over the last year, with importance decreasing for every year after that.', 1, 3, '5 years', '5 years', '1 year', 2, '1 day', 2, 97);
+
-- Staged Search (for default matchpoints)
INSERT INTO search.relevance_adjustment (field, bump_type, multiplier) VALUES(1, 'first_word', 1.5);
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.popularity-badge-seed-data.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.popularity-badge-seed-data.sql
new file mode 100644
index 0000000..61f9118
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.popularity-badge-seed-data.sql
@@ -0,0 +1,8 @@
+BEGIN;
+
+-SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version);
+
+INSERT INTO rating.badge (name, description, scope, weight, horizon_age, importance_age, importance_interval, importance_scale, recalc_interval, popularity_parameter, percentile)
+ VALUES('Top Holds Over Last 5 Years', 'The top 97th percentile for holds requested over the past five years on all materials. More weight is given to holds requested over the last year, with importance decreasing for every year after that.', 1, 3, '5 years', '5 years', '1 year', 2, '1 day', 2, 97);
+
+COMMIT;
diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/popularity-rating.txt b/docs/RELEASE_NOTES_NEXT/OPAC/popularity-rating.txt
index 6383fd5..bd88ac8 100644
--- a/docs/RELEASE_NOTES_NEXT/OPAC/popularity-rating.txt
+++ b/docs/RELEASE_NOTES_NEXT/OPAC/popularity-rating.txt
@@ -50,10 +50,13 @@ All popularity badge definitions will describe a set of configuration, populatio
** Bibliographic Record Age (days)
** Publication Age (days)
** Available On-Line (for e-books, etc)
+** Copy Count
* *Fixed Rating:* An optional override supplying a fixed popularity value for all records earning this badge. For some popularity types, such as "Available On-Line", it is preferable to specify, rather than calculate, the popularity value for a badge. This is presented as a number spinner with a value ranging from 1 to 5.
* *Inclusion Threshold Percentile:* Cumulative distribution percentile. This is presented as a number spinner of "percentile" values ranging from 50 to 100, indicating the number of how much of the population a record's score must be better than in order to earn the badge. Leaving this value unset will allow the entire population to earn the badge.
* *Discard most common:* A value that, if greater than 0, will ignore records with extremely common values so that outliers are more readily identified, and the distribution of values can be assumed to be more normal. Many popularity parameters, such as those for circulation counts, benefit from this input filter. This is presented as a number spinner initially set to 0 that indicates the number of distinct, low values -- but not the values themselves -- to exclude from the population.
+This new feature comes with a starter badge based on the top 97th percentile of holds requested over the past five years.
+
A word about Inclusion Threshold Percentile
+++++++++++++++++++++++++++++++++++++++++++
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +-
Open-ILS/src/sql/Pg/950.data.seed-values.sql | 4 ++++
.../0995.data.popularity-badge-seed-data.sql | 8 ++++++++
docs/RELEASE_NOTES_NEXT/OPAC/popularity-rating.txt | 3 +++
4 files changed, 16 insertions(+), 1 deletions(-)
create mode 100644 Open-ILS/src/sql/Pg/upgrade/0995.data.popularity-badge-seed-data.sql
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list