From: Chris Sharp Date: Wed, 18 Nov 2020 17:44:33 +0000 (-0500) Subject: Bumping version numbers, adding Upgrade Script and Changelog X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=26fdc4ce50196be1b5b6504027259449b9ecc21d;p=working%2FEvergreen.git Bumping version numbers, adding Upgrade Script and Changelog Signed-off-by: Chris Sharp --- diff --git a/ChangeLog b/ChangeLog index 1f72b2c73e..c8affa0d24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,1203 @@ -Evergreen doesn't keep a GNU-style ChangeLog except in release tarballs. -Those seeking a change log are encouraged to run 'git log -v', or read -it online at: http://git.evergreen-ils.org/?p=Evergreen.git;a=log +commit 5da9857e85e4884593caca99b6e4611ec58d1a26 +Author: Chris Sharp +Date: Wed Nov 18 12:39:51 2020 -0500 + + Translation updates - po files + + Signed-off-by: Chris Sharp + +17 16 docs/installation/server_upgrade.adoc + +commit 800c47b46d4cc3e3712e4a2ddbb75a59dd187e4a +Author: Chris Sharp +Date: Wed Nov 18 12:35:07 2020 -0500 + + Bumping Perl version string for 3.5.2 + + Signed-off-by: Chris Sharp + +1 1 Open-ILS/src/perlmods/lib/OpenILS.pm + +commit 5dede0bf767c3a7cc54e33691f24b7542e90b1a6 +Author: Jane Sandberg +Date: Wed Nov 18 09:14:49 2020 -0800 + + Docs: release notes for 3.5.2 + + Signed-off-by: Jane Sandberg + +160 0 docs/RELEASE_NOTES_3_5.adoc + +commit 2a92c6abc329805f9a7277a0ddc7866fa259f366 +Author: Jane Sandberg +Date: Wed Nov 18 09:11:41 2020 -0800 + + Docs: release notes for 3.4.5 + + Signed-off-by: Jane Sandberg + +129 0 docs/RELEASE_NOTES_3_4.adoc + +commit 1b46ee94a5ff6a94a1eb857a85249b57ce85fea1 +Author: Jason Boyer +Date: Fri Nov 13 11:12:22 2020 -0500 + + LP1904220: Fix Booking Service Check + + Instead of trying to tell AppService which router we want to talk + to and confusing it, just tell it we want to talk to a router and + let it do its thing. + + Signed-off-by: Jason Boyer + Signed-off-by: Mike Rylander + +1 6 Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm + +commit d14a0a514f9c5827e04126c13609bbfa83ab219d +Author: Dan Briem +Date: Fri Oct 30 13:06:59 2020 -0400 + + LP#1900184 Patron password use phone not working + + An early return statement in extract_hold_notify() was removed + in 7e92293 and added back in ddf5b4b3, so props set at the end + of that function used in future comparisons never get set. + + This re-removes the return statement and sets the local notify + variable to default string values so the rest of the function + can play out. + + To test: + 1. Set org unit setting: "Patron: password from phone #" to TRUE + at the top context location + 2. Circulation->Register Patron + 3. Type 123-456-7890 into the Daytime Phone field and press tab + 4. Note: the password field isn't updated to the last 4 digits + 5. Apply patch and repeat steps + 6. Note: the password field updates to the last 4 digits + + Signed-off-by: Dan Briem + Signed-off-by: Garry Collum + +1 3 Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js + +commit 925b940012d13e6916f069393cf21fe621fb8170 +Author: Jason Boyer +Date: Fri Oct 30 13:13:30 2020 -0400 + + LP1835127 Follow-up: Correct Translation Ids + + Re-align the translation ids for the new booking permissions so + translations will apply correctly. + + Signed-off-by: Jason Boyer + +2 2 Open-ILS/src/sql/Pg/950.data.seed-values.sql + +commit ff0ff2eb5bebb908aec2b15f6e421e4980089ccc +Author: Jason Boyer +Date: Fri Oct 30 12:56:14 2020 -0400 + + Revert "Repair Permission Seed Data" + + This reverts commit 46a5f66a146e1916900fb2de605413bf83aea972. + The original commit was mistakenly backported too far, these + permissions do not apply to 3.5. + + Signed-off-by: Jason Boyer + +2 6 Open-ILS/src/sql/Pg/950.data.seed-values.sql + +commit b52b2bbb873736e84e6138d1898e191e56412dfd +Author: Jason Etheridge +Date: Fri May 15 14:37:13 2020 -0400 + + LP#1508208: live_t/ test for this branch + + Includes timing information for the checkin, but pass/fail is not predicated on it. + + Signed-off-by: Jason Etheridge + Signed-off-by: Chris Sharp + +219 0 Open-ILS/src/perlmods/live_t/30-lp1508208-age-protect-hold-capture.t + create mode 100644 Open-ILS/src/perlmods/live_t/30-lp1508208-age-protect-hold-capture.t + +commit 0faf4297582f6b1dea21d4d5b7bc016bdf8f8baa +Author: Mike Rylander +Date: Tue Dec 10 17:17:38 2019 -0500 + + LP#1508208: Only look at holds that age protection allows + + When hold capture is attempted, we look at (currently) the first 100 + holds ordered by Best Hold Sort Selection Order. If a very long list + of holds are targetting an age-protected item then op capture may not + have a chance to see a viable hold for that copy. + + This commit attempts to take into account the age protection currently + set for the copy by restricting the holds to just those where the + hold-copy-map proximity is less than or equal to the maximum proximity + allowed by the age protection. This works now because we store the + hold proximity in the hold copy map, where we did not before. + + Being based on the hold-copy-map proximity, which is calculated + proximity, means this is an approximation and the final hold capture + logic may still reject some holds for the copy. Likewise, this does + not entirely eliminate the possibility that there may be a better hold + to capture the copy for if the in-range set of holds is very, very + long, but this should allow hold capture to proceed if even + imperfectly. + + If no age protection is set for the copy, the current behavior + (looking at all holds) is maintained. + + Signed-off-by: Mike Rylander + Signed-off-by: Jason Etheridge + Signed-off-by: Chris Sharp + +4 0 Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm + +commit 4b138835e69538621bf3f85418bf47251df1912a +Author: Chris Sharp +Date: Wed Oct 28 15:57:42 2020 -0400 + + LP#1325704: stamping upgrade script + + Signed-off-by: Chris Sharp + +1 1 Open-ILS/src/sql/Pg/002.schema.config.sql +1 1 Open-ILS/src/sql/Pg/upgrade/{XXXX.schema.lost_lo_claimsret_descrip.sql => 1242.schema.lost_lo_claimsret_descrip.sql} + rename Open-ILS/src/sql/Pg/upgrade/{XXXX.schema.lost_lo_claimsret_descrip.sql => 1242.schema.lost_lo_claimsret_descrip.sql} (96%) + +commit 5cec7db3f311f59878656d735da6ec4deccd4a48 +Author: Remington Steed +Date: Tue May 15 09:46:41 2018 -0400 + + LP#1325704: Update Items-Out YAOUS descrip for web client + + Three settings refer to the "top" and "bottom" lists on the XUL client + Items Out screen. With the web client, these have become three named + tabs. This commit updates the setting descriptions in the seed data so + they reflect the new design. I also attempted to make the meaning of the + values more clear by labeling the two subsettings as "A" and "B". + + Signed-off-by: Remington Steed + Signed-off-by: Terran McCanna + Signed-off-by: Chris Sharp + +18 15 Open-ILS/src/sql/Pg/950.data.seed-values.sql +54 0 Open-ILS/src/sql/Pg/upgrade/XXXX.schema.lost_lo_claimsret_descrip.sql + create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.schema.lost_lo_claimsret_descrip.sql + +commit 760130d48834086eb3bb79d8a953497cd236d61d +Author: Mike Rylander +Date: Mon Oct 12 15:51:29 2020 -0400 + + LP#1893463: Protect against null emails + + Unique indexes on nullable columns will allow multiple conceptually + unique rows if the nullable columns are, in fact, NULL because NULL does + not equal itself. This commit uses COALESCE to make sure that the + nullable email column in the reporter.schedule table gets a value of the + empty string for the purposes of the unique index. The upgrade script + now also takes this into account and ignores the email column. + + Signed-off-by: Mike Rylander + Signed-off-by: Chris Sharp + +1 1 Open-ILS/src/sql/Pg/reporter-schema.sql +2 2 Open-ILS/src/sql/Pg/upgrade/1241.schema.reporter_schedule_uniqueness.sql + +commit d827650b6fa03aacdd6ac6f6cf2d8c8021f5937b +Author: Bill Erickson +Date: Mon Dec 9 11:47:30 2019 -0500 + + LP1855737 Don't send error object across shared worker port + + Data must be string-ifiable to pass across a shared web worker message + port. In Firefox, at least, errors encountered during IndexedDB / + Lovefield operations are not candidates for automatic stringification. + Avoid trying to send the error object back to the caller. + + Signed-off-by: Bill Erickson + Signed-off-by: Chris Sharp + +0 1 Open-ILS/web/js/ui/default/staff/offline-db-worker.js + +commit 75e171b0d09d5df8d49a13ae30c3c3ae7da56538 +Author: Jason Boyer +Date: Wed Oct 14 12:11:27 2020 -0400 + + LP1882828: (follow-up) Add static parameter to ViewChild decorator + + While not strictly required in rel_3_6 and above, rel_3_5 uses + a version of Angular that requires specifying a value for the + static parameter when using the ViewChild decorator on an object. + + Signed-off-by: Jason Boyer + +1 1 Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.ts + +commit d4517a848dc8e8ee50ea3387d3ff8a3aaaf5f116 +Author: Chris Sharp +Date: Wed Oct 7 15:38:34 2020 -0400 + + LP1893463: Follow-up to address de-duplication and adding release notes. + + Signed-off-by: Chris Sharp + Signed-off-by: Jason Stephenson + +14 0 Open-ILS/src/sql/Pg/upgrade/1241.schema.reporter_schedule_uniqueness.sql +5 0 docs/RELEASE_NOTES_NEXT/Reports/deduplicated_reports_schedule.adoc + create mode 100644 docs/RELEASE_NOTES_NEXT/Reports/deduplicated_reports_schedule.adoc + +commit a7a1ed39257504914dcc25fcb4969a135f8421c0 +Author: Chris Sharp +Date: Wed Oct 7 14:54:41 2020 -0400 + + LP1893463: stamp upgrade script + + Signed-off-by: Chris Sharp + +1 1 Open-ILS/src/sql/Pg/002.schema.config.sql +1 1 Open-ILS/src/sql/Pg/upgrade/{XXXX.schema.reporter_schedule_uniqueness.sql => 1241.schema.reporter_schedule_uniqueness.sql} + rename Open-ILS/src/sql/Pg/upgrade/{XXXX.schema.reporter_schedule_uniqueness.sql => 1241.schema.reporter_schedule_uniqueness.sql} (75%) + +commit 360ad1f138a4ca8e1a70d497873b78055ae6c29d +Author: Jason Boyer +Date: Fri Aug 28 17:13:14 2020 -0400 + + LP1893463: Prevent duplicated report outputs + + When re-running recurring reports that are interrupted, + it's possible to end up with a duplicate copy of the next + recurrance of that report. This branch adds a unique index + to reporter.schedule and tells clark-kent.pl not to worry + about it. + + For the purposes of this change a duplicate report is + one where report.schedule has identical values for report, + (output) folder, runner, run_time, and email. + + Signed-off-by: Jason Boyer + Signed-off-by: Chris Sharp + +9 3 Open-ILS/src/reporter/clark-kent.pl +1 0 Open-ILS/src/sql/Pg/reporter-schema.sql +9 0 Open-ILS/src/sql/Pg/upgrade/XXXX.schema.reporter_schedule_uniqueness.sql + create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.schema.reporter_schedule_uniqueness.sql + +commit 94f44679eb693c1245e6c5cf4d42154fa4620597 +Author: Bill Erickson +Date: Fri Nov 8 17:09:03 2019 -0500 + + LP1851882 Relase Notes (Angular catalog hold types) + + Signed-off-by: Bill Erickson + Signed-off-by: Jennifer Weston + Signed-off-by: Chris Sharp + +13 0 docs/RELEASE_NOTES_NEXT/Client/ang-catalog-more-hold-types.adoc + create mode 100644 docs/RELEASE_NOTES_NEXT/Client/ang-catalog-more-hold-types.adoc + +commit 970ddc48b4d448d787a9ee008820d5660d16cc3d +Author: Bill Erickson +Date: Fri Nov 8 17:02:48 2019 -0500 + + LP1851882 Angular catalog recall/force/part holds + + Adds entry points for placing Recall, Force, and Part-level holds. + + For any item-level hold type, the user now has the option to cycle + between Item, Recall, and Force hold types. The selected type affects + the full batch of holds. + + For title-level holds, the user now has the option to select a part as + the hold target for each hold in the list. Part selection is optional. + + Signed-off-by: Bill Erickson + Signed-off-by: Jennifer Weston + Signed-off-by: Chris Sharp + +65 19 Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html +52 12 Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts +1 0 Open-ILS/src/eg2/src/app/staff/share/holds/holds.service.ts +5 0 Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm + +commit c38f5b3aefc3b177cdcf74efe26422e2c28f92c9 +Author: Bill Erickson +Date: Thu Jul 30 12:23:15 2020 -0400 + + LP1872867 Staff catalog filters use search labels + + The Angular staff catalog now displays the search_label value for all of + the coded-value-map filters (search format, item type, etc.) when + available. It falls back to the 'value' field when no search_label exists. + + If a value is not opac_visible, the text "(Hidden)" is appended to the + label. + + Signed-off-by: Bill Erickson + Signed-off-by: Elaine Hardy + +31 16 Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.html + +commit c5482580de24f1ed3c8a956add278064476e370a +Author: Chris Sharp +Date: Thu Sep 24 13:18:39 2020 -0400 + + LP#1776954 - Add release notes + + Signed-off-by: Chris Sharp + +15 0 docs/RELEASE_NOTES_NEXT/Cataloging/blank_tcn_source.adoc + create mode 100644 docs/RELEASE_NOTES_NEXT/Cataloging/blank_tcn_source.adoc + +commit 0cd36dc4addbce44be1b90a026ae7ecdd9dd27f7 +Author: Dan Scott +Date: Thu Jun 14 13:59:42 2018 -0400 + + LP#1776954 Avoid empty string for tcn_source + + The tcn_source for some records is an empty string, instead of the database + default of 'AUTOGEN', because the Perl record import code avoids a Perl warning + in the logger info call by setting the value to an empty string if it can't + find any other source (e.g. OCLC number). Unfortunately, the empty string then + gets passed to the database, meaning that it satisfies the non-NULL constraint + and does not invoke the default value of 'AUTOGEN'. + + The resulting MARCXML then contains an empty, self-closing 901 $b subfield + () that causes an error for some other applications, such + as Zotero, which do not anticipate empty subfields. + + The simple fix applied here is to follow the example for $source and $tcn of + not setting the value of the tcn_source field in the bib record object if the + corresponding variable evaluates to false (such as if it's an empty string). + + To test: create a basic record in the MARC editor that includes minimal fields + (for example, a 100 and 245) so that it has no TCN source to extract. Check the + MARCXML served up by SuperCat ("curl + http:///opac/extras/supercat/retrieve/marcxml-uris/record/"). + Before this patch, it will have a self-closing 901 $b subfield. After applying + this patch and creating a new test record, the new test record will have a + 901$b subfield with the value 'AUTOGEN'. + + A site that has been running without this patch for a long time might want to + check how many bib records they have with an empty tcn_source: + + SELECT COUNT(*) FROM biblio.record_entry WHERE deleted IS FALSE AND tcn_source = ''; + + Sites can fix the problem by issuing UPDATE statements to set the 901$b to a value + like 'AUTOGEN' or 'Unknown'. They should probably do it per-record, however, to + avoid locking the table in a huge commit. + + Signed-off-by: Dan Scott + Signed-off-by: Chris Sharp + +1 1 Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm + +commit c696b86c9bb5ff60e19e7f6e74017daf24c5a802 +Author: Jane Sandberg +Date: Wed Aug 19 16:22:43 2020 -0700 + + LP1882828: Fix issues with displaying cataloged resources in Pull List + + I had mistakenly used switchMap, when I should have used mergeMap. This + led to erroneously canceled subscriptions, leaving rows out of the pull + list. + + This commit also uses getRows, rather than manually setting the + GridDataSource's data. + + Signed-off-by: Jane Sandberg + Signed-off-by: Terran McCanna + Signed-off-by: Galen Charlton + +3 3 Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.html +25 16 Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.ts + +commit 03a09ab37fc492729665c864e7718580ca51389f +Author: Galen Charlton +Date: Thu Sep 24 11:59:02 2020 -0400 + + LP#1882825: (follow-up) include update number + + Signed-off-by: Galen Charlton + +1 1 Open-ILS/src/sql/Pg/upgrade/1239.data.add_missing_setting_for_booking_pull_list_grid.sql + +commit fbf828293e04df6aa248111fef857f1640a0c7b2 +Author: Galen Charlton +Date: Thu Sep 24 11:58:08 2020 -0400 + + LP#1835127: (follow-up) fixes to update script + + - include the version number stamp + - adjust the permission IDs + + Signed-off-by: Galen Charlton + +3 3 Open-ILS/src/sql/Pg/upgrade/1238.data.permission.booking_reservation.sql + +commit 46a5f66a146e1916900fb2de605413bf83aea972 +Author: Jason Boyer +Date: Thu Sep 24 08:03:33 2020 -0400 + + Repair Permission Seed Data + + Signed-off-by: Jason Boyer + +6 2 Open-ILS/src/sql/Pg/950.data.seed-values.sql + +commit 57f58f81c3b3851e554269ad4244a8b96f2d57f0 +Author: Chris Sharp +Date: Wed Sep 23 16:47:33 2020 -0400 + + LP1882825 - Stamp upgrade script + + Signed-off-by: Chris Sharp + +1 1 Open-ILS/src/sql/Pg/002.schema.config.sql +0 0 Open-ILS/src/sql/Pg/upgrade/{XXXX.data.add_missing_setting_for_booking_pull_list_grid.sql => 1239.data.add_missing_setting_for_booking_pull_list_grid.sql} + rename Open-ILS/src/sql/Pg/upgrade/{XXXX.data.add_missing_setting_for_booking_pull_list_grid.sql => 1239.data.add_missing_setting_for_booking_pull_list_grid.sql} (100%) + +commit 3d19c9b83ff12f865b69a5eb11542fe08cb08dc9 +Author: Jane Sandberg +Date: Tue Jun 9 13:51:24 2020 -0700 + + LP1882825: Add setting for booking pull list grid + + Steps to test: + [1] Go to the Booking Pull List. + [2] Change the grid around and try to save. + [3] Note in your browser console an error message: "Error saving columns: No user or workstation setting type exists for eg.grid.booking.pull_list" + [4] Run the database migration included in this commit. + [5] Repeat steps 1-2. + [6] Note that no error message appears. + [7] Try exiting Evergreen and coming back (using the same workstation). Note that your changes to the grid have stuck! + + Signed-off-by: Jane Sandberg + Signed-off-by: Chris Sharp + +6 0 Open-ILS/src/sql/Pg/950.data.seed-values.sql +14 0 Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_missing_setting_for_booking_pull_list_grid.sql + create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_missing_setting_for_booking_pull_list_grid.sql + +commit b61fa26f858c4d9d96c5f93b6954c11d2eddc318 +Author: Chris Sharp +Date: Wed Sep 23 16:39:40 2020 -0400 + + LP#1835127 - Fix conflict with perm IDs vs. commit to master + + Signed-off-by: Chris Sharp + +2 2 Open-ILS/src/sql/Pg/950.data.seed-values.sql +2 2 Open-ILS/src/sql/Pg/upgrade/1238.data.permission.booking_reservation.sql + +commit ef4c86ecfa4e1a80f27bb5171ad370d8723ef0bf +Author: Chris Sharp +Date: Wed Sep 23 16:33:06 2020 -0400 + + LP#1835127 - Stamp upgrade script + + Signed-off-by: Chris Sharp + +1 1 Open-ILS/src/sql/Pg/002.schema.config.sql +0 0 Open-ILS/src/sql/Pg/upgrade/{XXXX.data.permission.booking_reservation.sql => 1238.data.permission.booking_reservation.sql} + rename Open-ILS/src/sql/Pg/upgrade/{XXXX.data.permission.booking_reservation.sql => 1238.data.permission.booking_reservation.sql} (100%) + +commit 3c0eb95ecc23589f1b497fe25b23c1756d1a0518 +Author: Jeff Davis +Date: Wed May 6 14:22:49 2020 -0700 + + LP#1835127: scoped permissions for reservations + + Signed-off-by: Jeff Davis + Signed-off-by: Chris Sharp + +16 8 Open-ILS/examples/fm_IDL.xml +5 1 Open-ILS/src/sql/Pg/950.data.seed-values.sql +12 0 Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_reservation.sql + create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_reservation.sql + +commit 51beb79f5620fcbee3b2bf43b0cf6f446e0bad19 +Author: Dan Briem +Date: Tue Aug 25 15:47:15 2020 -0400 + + LP#1361270 Self-registration doesn't retain org unit on refresh + + This sets the self-registration form's org unit selector to the + the current org unit request parameter if it's set and self- + registration is allowed for that org unit. This will preopulate + the org selector on refresh or error instead of resetting to the + default context. + + To test: + 1. Administration->Local Administration->Library Settings Editor + set Allow Patron Self-Registration to True (top context) + 2. go to OPAC->Request Library Card (stock link is on bottom) + 3. select a Home Library and click Submit Registration + 4. note the Home Library select doesn't retain your selection + 5. apply this fix and repeat steps + 6. note the Home Library is retained + + Signed-off-by: Dan Briem + Signed-off-by: Chris Sharp + +9 1 Open-ILS/src/templates/opac/register.tt2 + +commit 5b370651a585aba036b1b19797f667bdd28f980e +Author: Bill Erickson +Date: Wed Jun 10 11:46:39 2020 -0400 + + LP1883126 Angular accesskey sort repair + + Fixes sorting issue in Angular egAccessKey directive to ensure that the + most recent additions are given highest priority and to ensure that + like keys (same action) are sorted next to each other in the control-h + help dialog. + + Signed-off-by: Bill Erickson + Signed-off-by: Terran McCanna + +1 1 Open-ILS/src/eg2/src/app/share/accesskey/accesskey.service.ts + +commit eb08cca1bcce4736c203aa41de0d23bf2f5956b5 +Author: Bill Erickson +Date: Thu Sep 17 11:39:43 2020 -0400 + + LP1896083 Staff catalog handles not-found barcodes + + Staff catalog => Numeric Search => Item Barcode + + Display the standard 'No Maching Items Were Found' message when a + barcode search returns no results. + + Prior to this patch, the search progress indicator would freeze as the + page failed to completely render on JS error. + + Signed-off-by: Bill Erickson + Signed-off-by: Mary Llewellyn + Signed-off-by: Galen Charlton + +2 0 Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts + +commit 626545b7fdf770172c69f9dd47e6583a77e8b8c4 +Author: Galen Charlton +Date: Mon Sep 21 11:51:09 2020 -0400 + + LP#1788260: stamp schema update + + Signed-off-by: Galen Charlton + +1 1 Open-ILS/src/sql/Pg/002.schema.config.sql +2 0 Open-ILS/src/sql/Pg/upgrade/{XXXX.lp1788260.schema.non-cat-in-house-use-aacct.sql => 1236.lp1788260.schema.non-cat-in-house-use-aacct.sql} + rename Open-ILS/src/sql/Pg/upgrade/{XXXX.lp1788260.schema.non-cat-in-house-use-aacct.sql => 1236.lp1788260.schema.non-cat-in-house-use-aacct.sql} (95%) + +commit 949c8021af29bf1660bf5217d24cc68720217617 +Author: Chris Sharp +Date: Tue Aug 21 14:22:05 2018 -0400 + + LP#1788260 - Break out in-house-use non-cat circulations. + + Previously, all non-cataloged circulations were grouped + together, causing problems for libraries who need to + exclude in-house circulations from circ counts. + + Signed-off-by: Chris Sharp + Signed-off-by: Rogan Hamby + Signed-off-by: Galen Charlton + +1 1 Open-ILS/src/sql/Pg/090.schema.action.sql +60 0 Open-ILS/src/sql/Pg/upgrade/XXXX.lp1788260.schema.non-cat-in-house-use-aacct.sql + create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.lp1788260.schema.non-cat-in-house-use-aacct.sql + +commit 8e568f7f931fc652eed42581fab7c47b527a44fa +Author: Galen Charlton +Date: Fri Sep 11 11:09:39 2020 -0400 + + LP#1851413: stamp schema update + + Signed-off-by: Galen Charlton + +1 1 Open-ILS/src/sql/Pg/002.schema.config.sql +1 1 Open-ILS/src/sql/Pg/upgrade/{XXXX.function.restore_full_path_order.sql => 1228.function.restore_full_path_order.sql} + rename Open-ILS/src/sql/Pg/upgrade/{XXXX.function.restore_full_path_order.sql => 1228.function.restore_full_path_order.sql} (89%) + +commit c421e1efe5ee699e014bd765148fa22c75377cbf +Author: Mike Rylander +Date: Tue Nov 5 12:30:10 2019 -0500 + + LP#1851413: Restore assumed order of full_path + + Some code, including UI rendering code in the reporting interfaces, + assumes that the order of the full_path stored procedure will be the + same as for the ancestors and descendants procedures, which is tree + order from top to bottom. However, because the full_path procedure + simply UNIONs the other two together without an explicit ORDER BY, + that may not be -- and for org hierarchies that have been modified + heavily, often is not -- the case in practice. This is due to + internals of query planning in Postgres. + + The easiest place to see this issues is in the report interface. + Select a template folder that is not currently shared, choose Manage + Folder, select Share Folder, click Go, and see the dropdown of options. + Under some circumstances, the list of org units in the dropdown there + are incorrectly ordered (should be from top of the tree down), and some + that should be available are disabled. + + This commit uses the org unit type depth to order the output as assumed. + + Signed-off-by: Mike Rylander + Signed-off-by: Rogan Hamby + Signed-off-by: Galen Charlton + +8 5 Open-ILS/src/sql/Pg/020.schema.functions.sql +17 0 Open-ILS/src/sql/Pg/upgrade/XXXX.function.restore_full_path_order.sql + create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.function.restore_full_path_order.sql + +commit ff6e0b57c096ea2b02dfab585f26a64a3df717db +Author: Tiffany Little +Date: Fri Mar 1 14:00:59 2019 -0500 + + LP#1418694 Change wording for saving to selection list + + Changes label in line item table Actions menu for 'Save to Selection List' to 'Move to Selection List' to better reflect action taken. + + Signed-off-by: Tiffany Little + Signed-off-by: Mary Llewellyn + Signed-off-by: Jason Boyer + +1 1 Open-ILS/src/templates/acq/common/li_table.tt2 +1 1 Open-ILS/web/js/ui/default/acq/common/li_table.js + +commit 4943454aab9c93a9a4d0a10df9df50d8cf41a679 +Author: Mike Risher +Date: Tue Mar 24 16:40:02 2020 +0000 + + lp1362743 holdings view duplicate barcodes + + Modify holdings view's "replace barcodes" UI so that it doesn't allow one + to enter a duplicate barcode. + + Signed-off-by: Mike Risher + + Changes to be committed: + modified: Open-ILS/src/templates/staff/cat/share/t_replace_barcode.tt2 + modified: Open-ILS/web/js/ui/default/staff/cat/catalog/app.js + + Signed-off-by: Jason Etheridge + +5 3 Open-ILS/src/templates/staff/cat/share/t_replace_barcode.tt2 +16 0 Open-ILS/web/js/ui/default/staff/cat/catalog/app.js + +commit f04480498c59cf8c02c86e0fc845b0bf8ffa93ff +Author: Jane Sandberg +Date: Mon Aug 31 11:35:31 2020 -0700 + + Docs: correcting typos in release notes + + Thanks to Jennifer Weston for reporting these! + + Signed-off-by: Jane Sandberg + +2 2 docs/RELEASE_NOTES_3_4.adoc +2 2 docs/RELEASE_NOTES_3_5.adoc + +commit 30abb49bd07b91c9416856d451cfb3d4caf966d9 +Author: Jeff Davis +Date: Fri May 22 15:40:30 2020 -0700 + + LP#1879993: use default value for opac.hold_notify when appropriate + + Signed-off-by: Jeff Davis + Signed-off-by: Michele Morgan + Signed-off-by: Galen Charlton + +22 6 Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js + +commit cc3342ef4095f79d821ff45cde3bb1897be54344 +Author: Mike Risher +Date: Wed Jun 17 23:36:26 2020 +0000 + + lp1840329 Register Patron keyboard accessibility + + Adjust the register patron page so that the "Primary Name" and + "Preferred Name" tabs are accessible when pressing the tab key. + + Signed-off-by: Mike Risher + Signed-off-by: Ruth Frasur + Signed-off-by: Galen Charlton + +2 2 Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 + +commit f68ac056da2668c917bbede3d495e60eb0ac8d12 +Author: Bill Erickson +Date: Fri Aug 21 11:14:02 2020 -0400 + + LP1891355 Perm group refresh after changes + + Fixes an issue where the permission group interface failed to refresh + the page after an edit and data refetch was performed. At issue was a + progress component which was not rendered/active at the time of refresh, + leading to a JS error, causeing the refresh to stop. + + Signed-off-by: Bill Erickson + Signed-off-by: Galen Charlton + +3 1 Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts + +commit 26569acaef1a2fd3c732caeb3d7c323aaeb9e115 +Author: Bill Erickson +Date: Thu Jul 30 12:30:28 2020 -0400 + + LP1885764 Staff catalog UPC search + + Adds a "UPC" entry in the Query Type selector under the Numeric Search + tab in the Angular staff catalog. + + Signed-off-by: Bill Erickson + Signed-off-by: Galen Charlton + +1 0 Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.html + +commit 03e9c90344bb28fed5603cc3b6a0257c40e939a3 +Author: Mike Risher +Date: Tue Jun 23 21:33:20 2020 +0000 + + lp1795720 add aria-hidden to Angular/AngularJS navbar icons + + Modify the navbar so that aria-hidden is applied to icons, so that they + are hidden from screen readers. + + Signed-off-by: Mike Risher + Signed-off-by: Terran McCanna + Signed-off-by: Galen Charlton + +69 69 Open-ILS/src/eg2/src/app/staff/nav.component.html +90 82 Open-ILS/src/templates/staff/navbar.tt2 + +commit 066b932ecdc4124cdeafe5d03bad48ac655623c4 +Author: Jane Sandberg +Date: Sun Aug 23 12:50:38 2020 -0700 + + Stamping upgrade script for sticky org-select + + Signed-off-by: Jane Sandberg + +1 1 Open-ILS/src/sql/Pg/002.schema.config.sql +1 1 Open-ILS/src/sql/Pg/upgrade/{XXXX.data.holds-for-bib-org-select.sql => 1215.data.holds-for-bib-org-select.sql} + rename Open-ILS/src/sql/Pg/upgrade/{XXXX.data.holds-for-bib-org-select.sql => 1215.data.holds-for-bib-org-select.sql} (83%) + +commit 3bfb9f22291df09ffe0e860624e507b79a451d45 +Author: Bill Erickson +Date: Mon Jul 27 14:21:09 2020 -0400 + + LP1889113 Staff catalog record holds sticky org select + + Teaches the record holds grid to use a persistkey for making the pickup + lib selector sticky. Additionaly, teach the holds retrieval code to + wait until the org select has settled on a value before collecting any + data. + + Also adds the new workstation setting type + 'eg.orgselect.cat.catalog.wide_holds' + + Signed-off-by: Bill Erickson + Signed-off-by: Terran McCanna + Signed-off-by: Jane Sandberg + +2 1 Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html +13 5 Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts +9 0 Open-ILS/src/sql/Pg/950.data.seed-values.sql +17 0 Open-ILS/src/sql/Pg/upgrade/XXXX.data.holds-for-bib-org-select.sql + create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.data.holds-for-bib-org-select.sql + +commit 874c2fe32099d7e406b67b790ecc0a32ed5a0752 +Author: Bill Erickson +Date: Mon Jul 27 14:20:52 2020 -0400 + + LP1889113 Angular org select persistKey support + + * Support reading and writing org-select values using server settings. + * Adds a new @Input fallbackOrg[Id] which is used in cases where no + persisted value is found. + * Adds a new @Otput called componentLoaded which fires once when the + selector has completed all of it's load time work. + * Improvid code documentation. + + Signed-off-by: Bill Erickson + Signed-off-by: Terran McCanna + Signed-off-by: Jane Sandberg + +108 36 Open-ILS/src/eg2/src/app/share/org-select/org-select.component.ts + +commit 4ac3cb4692c56258c494d041714f8129ab34abe0 +Author: Bill Erickson +Date: Thu Aug 20 11:07:13 2020 -0400 + + LP1892077 Staff catalog Holdings grid more columns + + Adds columns for Parts and Circulate As MARC Type. + + Additionally, adds columns for Notes, Tags, and Alerts which display the + count of each linked to a given item. + + Signed-off-by: Bill Erickson + Signed-off-by: Jane Sandberg + +15 0 Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.html +7 2 Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts + +commit 618028b3de811662793a598279b04844fdb4a7c7 +Author: Bill Erickson +Date: Thu Jul 16 14:27:34 2020 -0400 + + LP1865564 Clear holds cache after Request Items + + When staff place holds on a record within the Holdings View via the + Request Items function, reset the holds grid data so it bypasses the + cache and refetches the holds, including the new holds. + + Signed-off-by: Bill Erickson + Signed-off-by: Michele Morgan + Signed-off-by: Galen Charlton + +4 3 Open-ILS/web/js/ui/default/staff/cat/catalog/app.js + +commit 19b94538f3b5fa4bb18865969792b783b06b5f00 +Author: Bill Erickson +Date: Thu Jul 16 12:22:52 2020 -0400 + + LP1865564 Holds grid avoid dupes (AngularJS) + + Address a couple if cases where the record holds grid in the AngularJS + staff catalog would make multiple network calls to fetch holds data. + In some cases, these calls would result displaying duplicate holds. + + 1. Avoid fetching holds when the pickup lib selector fires its on change + if the value provided matches the pickup lib we are already using. + + 2. Avoid reseting and reloading the grid during an active grid load. + Instead wait for the current load to complete before launching the next + load action. + + Patch also includes a minor sanity check in the holdings code to avoid + console errors caused during pickup lib change. + + Signed-off-by: Bill Erickson + Signed-off-by: Michele Morgan + Signed-off-by: Galen Charlton + +41 6 Open-ILS/web/js/ui/default/staff/cat/catalog/app.js +1 0 Open-ILS/web/js/ui/default/staff/cat/services/holdings.js + +commit 0e9f696d0b6930aaf97f7d75f13fad8386360a88 +Author: Jane Sandberg +Date: Thu Aug 20 13:06:47 2020 -0700 + + lp1771386 stamping DB upgrade for inactivate bib on merge + + Signed-off-by: Jane Sandberg + +1 1 Open-ILS/src/sql/Pg/002.schema.config.sql +1 1 Open-ILS/src/sql/Pg/upgrade/{xxxx.make_source_bib_inactive_on_merge.sql => 1214.make_source_bib_inactive_on_merge.sql} + rename Open-ILS/src/sql/Pg/upgrade/{xxxx.make_source_bib_inactive_on_merge.sql => 1214.make_source_bib_inactive_on_merge.sql} (99%) + +commit 42230ca2a4a2ffc013a87646f12f4584f727247a +Author: Rogan Hamby +Date: Thu Aug 20 13:04:10 2020 -0400 + + lp1771386 update to record merge assets function to make source bib inactive as well as flagged deleted + + Signed-off-by: Rogan Hamby + Signed-off-by: Beth Willis + Signed-off-by: Jane Sandberg + +1 0 Open-ILS/src/sql/Pg/999.functions.global.sql +278 0 Open-ILS/src/sql/Pg/upgrade/xxxx.make_source_bib_inactive_on_merge.sql + create mode 100644 Open-ILS/src/sql/Pg/upgrade/xxxx.make_source_bib_inactive_on_merge.sql + +commit abd0fb6ad240a6b4c36590132e10dbb57da3cd18 +Author: Garry Collum +Date: Mon Jul 13 11:34:55 2020 -0400 + + LP#1844732 Circulation Modifier Display when Batch Editing Items + + Fixes the circulation modifiers multivalue list when editing items with + more than one circulation modifier. + + To test in with the concerto data, go to Server Administrator -> + Circulation Modifiers and create a couple of circ modifiers (kittens, + puppies). + + Bring up the holdings view of a bib and edit a few items assigning these + items to each of the circ modifiers. + + After assigning circ modifiers to several items, bring up some of these + items into the item editor making sure that you have chosen items that + have both circ modifiers. + + View the multiple values for the circ modifiers. It will display + something like 'No (10)'. + + Apply the patch. Bring up the items again and view the multiple values. + The circ modifiers will be listed indivitually with a number + representing the number of items with that circ modifier. + + Signed-off-by: Garry Collum + Signed-off-by: Jennifer Pringle + Signed-off-by: Galen Charlton + +1 1 Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 + +commit 9785e203112e2ab028625e2a6c5843c90f8505c9 +Author: Mike Risher +Date: Fri Jun 5 18:31:22 2020 +0000 + + lp1747664 add batch edit of call numbers to item bucket + + Modify the item bucket so that one can batch edit call numbers, like + one can from the item status page. + + Signed-off-by: Mike Risher + Signed-off-by: Elaine Hardy + Signed-off-by: Galen Charlton + +2 0 Open-ILS/src/templates/staff/cat/bucket/copy/t_view.tt2 +12 5 Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js + +commit a128fd1f3bb5c2b362876fcbf2977b28a572c51f +Author: Bill Erickson +Date: Mon Sep 23 17:17:13 2019 -0400 + + LP1845047 Ignore grid page size pref when paging disabled + + Ignore any saved value for page size on grids configured with paging + disabled. Such grids are required to show all rows or any data past the + first page would be innaccessible. + + Signed-off-by: Bill Erickson + Signed-off-by: Elaine Hardy + Signed-off-by: Galen Charlton + +1 1 Open-ILS/src/eg2/src/app/share/grid/grid.ts + +commit 6031988a452251109028ac3731c696174bde7dc8 +Author: Bill Erickson +Date: Mon Aug 10 15:19:51 2020 -0400 + + LP1850825 Vandely export set default record source + + Provide a default value for the record ID source (csv, id, bucket) in + the Vandelay record export interface. Without this, a record source was + only specified if the source value was modified. Defaults to 'csv'. + + Signed-off-by: Bill Erickson + Signed-off-by: Rogan Hamby + Signed-off-by: Galen Charlton + +1 1 Open-ILS/src/eg2/src/app/staff/cat/vandelay/export.component.ts + +commit b3a8c8bfbeb41a30a532ebfba30682f538d5d5c0 +Author: Bill Erickson +Date: Wed Aug 5 11:41:14 2020 -0400 + + LP1890351 Vandelay queue type selector retains data + + Avoid clearing the queue list grid when a click on the Queue Type + selector results in selecting the same queue type as the type already + loaded. + + Signed-off-by: Bill Erickson + Signed-off-by: Jane Sandberg + Signed-off-by: Galen Charlton + +1 0 Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue-list.component.ts + +commit a9e54f3fb3969b31843a8cdd89637fc21173017c +Author: Bill Erickson +Date: Tue Aug 11 11:07:04 2020 -0400 + + LP1839562 Ang Vandelay Match Set Replace Mode + + Recover "Replace Mode" functionality in the Vandelay Match Set editor + interface, so existing nodes (e.g. And) may be replaced with other nodes + (e.g. Or) without modifying the rest of the tree structure. + + Values (Record Attrs / MARC Fields) can replace other values. Booleans + can replace any type of tree node. + + Signed-off-by: Bill Erickson + Signed-off-by: Mary Llewellyn + Signed-off-by: Christine Morgan + Signed-off-by: Galen Charlton + +7 0 Open-ILS/src/eg2/src/app/staff/cat/vandelay/match-set-expression.component.html +34 14 Open-ILS/src/eg2/src/app/staff/cat/vandelay/match-set-expression.component.ts + +commit af0d5a1d34688a66e6562b52c3e5857eb446a706 +Author: Jane Sandberg +Date: Mon Aug 17 13:51:59 2020 -0700 + + lp1801947 (follow-up): specify behavior for eg-help-popover button + + Signed-off-by: Jane Sandberg + +2 0 Open-ILS/src/templates/staff/share/t_help_popover.tt2 + +commit 076962bda5036dce5c414dfcf431212fb23d7433 +Author: Mike Risher +Date: Fri Jun 19 20:00:04 2020 +0000 + + lp1801947 eg-help-popover accessibility + + Modify the eg-help-popover directive so that it can be invoked via + a keyboard action. + + Signed-off-by: Mike Risher + + Changes to be committed: + modified: Open-ILS/src/templates/staff/css/style.css.tt2 + modified: Open-ILS/src/templates/staff/share/t_help_popover.tt2 + + Signed-off-by: Terran McCanna + Signed-off-by: Jane Sandberg + +3 0 Open-ILS/src/templates/staff/css/style.css.tt2 +6 4 Open-ILS/src/templates/staff/share/t_help_popover.tt2 + +commit 69bcfb0f20e19a585a65c2c4910ad2e1326f35a2 +Author: Mike Risher +Date: Fri Aug 7 20:14:40 2020 +0000 + + LP#1724019 Offline Circulation Orgs Alphabetized + + On the offline circulation interface adjust the orgs so that they're + sorted alphabetically. Preserve the org hierarchy. + + Signed-off-by: Mike Risher + + Changes to be committed: + modified: Open-ILS/web/js/ui/default/staff/services/env.js + modified: Open-ILS/web/js/ui/default/staff/services/lovefield.js + + Signed-off-by: Bill Erickson + +9 9 Open-ILS/web/js/ui/default/staff/services/env.js +5 0 Open-ILS/web/js/ui/default/staff/services/lovefield.js + +commit ce33f2c2bfa52b1aeb68bf603e5c30b9ce3b1f10 +Author: Bill Erickson +Date: Mon Aug 10 11:09:35 2020 -0400 + + LP1890849 Grid context menu override fixed width + + Allow grid context menus to expand horizontally for longer terms to + avoid scroll bars and/or having text get cut off. + + Signed-off-by: Bill Erickson + Signed-off-by: Jane Sandberg + +5 0 Open-ILS/src/eg2/src/app/share/grid/grid.component.css + +commit deeae84d6a2a9c0c5ce35a990de8ec0d059d8e85 +Author: Galen Charlton +Date: Thu Aug 13 16:01:08 2020 -0400 + + LP#1839365: (follow-up) update AngularJS login page as well + + Signed-off-by: Galen Charlton + +1 1 Open-ILS/src/templates/staff/t_login.tt2 + +commit 0f66a7019747396de23316643f565f3afadf62d9 +Author: Shula Link +Date: Tue Oct 22 11:06:44 2019 -0400 + + LP#1839365: add h1 heading to Angular staff login page + + Signed-off-by: Shula Link + Signed-off-by: Terran McCanna + Signed-off-by: Galen Charlton + +1 1 Open-ILS/src/eg2/src/app/staff/login.component.html + +commit 54d9e5acee884970527981455616a05b4c0b9411 +Author: Bill Erickson +Date: Thu Jul 30 15:29:08 2020 -0400 + + LP1889685 Staff catalog record CN browse retains search + + Using the Shelf Browse tab on the record detail page in the Angular + staff catalog no longer clobbers the active search, allowing the search + navigation buttons (Next, Previous, etc.) to continue working. + + Signed-off-by: Bill Erickson + Signed-off-by: Galen Charlton + +7 0 Open-ILS/src/eg2/src/app/staff/catalog/cnbrowse/results.component.ts + +commit 1e048263333beb98bd9487fbc8191eddcb054098 +Author: Mike Risher +Date: Wed Aug 5 21:34:12 2020 +0000 + + lp1890498: Replace Item Barcode now warns about duplicate barcode + + Modify the Replace Item Barcode page so that it displays an error + message when trying to replace a barcode with a barcode already + in use. + + Signed-off-by: Mike Risher + Signed-off-by: Elaine Hardy + Signed-off-by: Galen Charlton + +3 0 Open-ILS/src/templates/staff/cat/share/t_replace_barcode.tt2 +17 6 Open-ILS/web/js/ui/default/staff/cat/item/replace_barcode/app.js + +commit b4390e6d3b2a8110ae080e92d55f78f08d862d76 +Author: Mike Risher +Date: Fri Jun 12 22:17:44 2020 +0000 + + LP#1207744: fix display of duplicate results when viewing report folders + + When you repeatedly click the link to display a template, report, or + output folder on the reports UI, the contents of that folder can + display multiple times. This patch addresses this bug and prevents + duplicate contents from displaying. + + Signed-off-by: Mike Risher + Signed-off-by: Terran McCanna + Signed-off-by: Galen Charlton + +4 2 Open-ILS/web/reports/oils_rpt_folder_window.js + +commit 39da539ac7e9af31ba92e2956bdd83f19e6204fd +Author: Jane Sandberg +Date: Thu Aug 13 06:51:26 2020 -0700 + + Docs: ldconfig needs to be run when installing on Ubuntu 18.04 too + + Signed-off-by: Jane Sandberg + +1 1 docs/installation/server_installation.adoc + +commit 3e6bc88c1f6525248716f52986c73251ce2ba864 +Author: Jane Sandberg +Date: Tue Aug 11 16:58:47 2020 -0700 + + Forward-port 3.5.1 upgrade script + + Signed-off-by: Jane Sandberg + +600 0 Open-ILS/src/sql/Pg/version-upgrade/3.5.0-3.5.1-upgrade-db.sql + create mode 100644 Open-ILS/src/sql/Pg/version-upgrade/3.5.0-3.5.1-upgrade-db.sql + +commit 7d6a6a46fa01b5c7fe0f54270048768be1d291d8 +Author: Jane Sandberg +Date: Tue Aug 11 16:09:51 2020 -0700 + + Docs: asciidoc syntax correction for 3.4 release notes + + Signed-off-by: Jane Sandberg + +3 3 docs/RELEASE_NOTES_3_4.adoc diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application.pm index d750216454..9faaa891b0 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application.pm @@ -7,7 +7,7 @@ use OpenILS::Utils::Fieldmapper; sub ils_version { # version format is "x-y-z", for example "2-0-0" for Evergreen 2.0.0 # For branches, format is "x-y" - return "HEAD"; + return "3-5-2"; } __PACKAGE__->register_method( diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index e53625661a..2adbe0f232 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -93,6 +93,7 @@ CREATE TRIGGER no_overlapping_deps FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1242', :eg_version); -- remingtron/terranm +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('3.5.2', :eg_version); CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/version-upgrade/3.5.1-3.5.2-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/3.5.1-3.5.2-upgrade-db.sql new file mode 100644 index 0000000000..1493fbf11a --- /dev/null +++ b/Open-ILS/src/sql/Pg/version-upgrade/3.5.1-3.5.2-upgrade-db.sql @@ -0,0 +1,470 @@ +--Upgrade Script for 3.5.1 to 3.5.2 +\set eg_version '''3.5.2''' +BEGIN; +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('3.5.2', :eg_version); + +SELECT evergreen.upgrade_deps_block_check('1214', :eg_version); + +CREATE OR REPLACE FUNCTION asset.merge_record_assets( target_record BIGINT, source_record BIGINT ) RETURNS INT AS $func$ +DECLARE + moved_objects INT := 0; + source_cn asset.call_number%ROWTYPE; + target_cn asset.call_number%ROWTYPE; + metarec metabib.metarecord%ROWTYPE; + hold action.hold_request%ROWTYPE; + ser_rec serial.record_entry%ROWTYPE; + ser_sub serial.subscription%ROWTYPE; + acq_lineitem acq.lineitem%ROWTYPE; + acq_request acq.user_request%ROWTYPE; + booking booking.resource_type%ROWTYPE; + source_part biblio.monograph_part%ROWTYPE; + target_part biblio.monograph_part%ROWTYPE; + multi_home biblio.peer_bib_copy_map%ROWTYPE; + uri_count INT := 0; + counter INT := 0; + uri_datafield TEXT; + uri_text TEXT := ''; +BEGIN + + -- move any 856 entries on records that have at least one MARC-mapped URI entry + SELECT INTO uri_count COUNT(*) + FROM asset.uri_call_number_map m + JOIN asset.call_number cn ON (m.call_number = cn.id) + WHERE cn.record = source_record; + + IF uri_count > 0 THEN + + -- This returns more nodes than you might expect: + -- 7 instead of 1 for an 856 with $u $y $9 + SELECT COUNT(*) INTO counter + FROM oils_xpath_table( + 'id', + 'marc', + 'biblio.record_entry', + '//*[@tag="856"]', + 'id=' || source_record + ) as t(i int,c text); + + FOR i IN 1 .. counter LOOP + SELECT '' || + STRING_AGG( + '' || + regexp_replace( + regexp_replace( + regexp_replace(data,'&','&','g'), + '>', '>', 'g' + ), + '<', '<', 'g' + ) || '', '' + ) || '' INTO uri_datafield + FROM oils_xpath_table( + 'id', + 'marc', + 'biblio.record_entry', + '//*[@tag="856"][position()=' || i || ']/@ind1|' || + '//*[@tag="856"][position()=' || i || ']/@ind2|' || + '//*[@tag="856"][position()=' || i || ']/*/@code|' || + '//*[@tag="856"][position()=' || i || ']/*[@code]', + 'id=' || source_record + ) as t(id int,ind1 text, ind2 text,subfield text,data text); + + -- As most of the results will be NULL, protect against NULLifying + -- the valid content that we do generate + uri_text := uri_text || COALESCE(uri_datafield, ''); + END LOOP; + + IF uri_text <> '' THEN + UPDATE biblio.record_entry + SET marc = regexp_replace(marc,'(]*record>)', uri_text || E'\\1') + WHERE id = target_record; + END IF; + + END IF; + + -- Find and move metarecords to the target record + SELECT INTO metarec * + FROM metabib.metarecord + WHERE master_record = source_record; + + IF FOUND THEN + UPDATE metabib.metarecord + SET master_record = target_record, + mods = NULL + WHERE id = metarec.id; + + moved_objects := moved_objects + 1; + END IF; + + -- Find call numbers attached to the source ... + FOR source_cn IN SELECT * FROM asset.call_number WHERE record = source_record LOOP + + SELECT INTO target_cn * + FROM asset.call_number + WHERE label = source_cn.label + AND prefix = source_cn.prefix + AND suffix = source_cn.suffix + AND owning_lib = source_cn.owning_lib + AND record = target_record + AND NOT deleted; + + -- ... and if there's a conflicting one on the target ... + IF FOUND THEN + + -- ... move the copies to that, and ... + UPDATE asset.copy + SET call_number = target_cn.id + WHERE call_number = source_cn.id; + + -- ... move V holds to the move-target call number + FOR hold IN SELECT * FROM action.hold_request WHERE target = source_cn.id AND hold_type = 'V' LOOP + + UPDATE action.hold_request + SET target = target_cn.id + WHERE id = hold.id; + + moved_objects := moved_objects + 1; + END LOOP; + + UPDATE asset.call_number SET deleted = TRUE WHERE id = source_cn.id; + + -- ... if not ... + ELSE + -- ... just move the call number to the target record + UPDATE asset.call_number + SET record = target_record + WHERE id = source_cn.id; + END IF; + + moved_objects := moved_objects + 1; + END LOOP; + + -- Find T holds targeting the source record ... + FOR hold IN SELECT * FROM action.hold_request WHERE target = source_record AND hold_type = 'T' LOOP + + -- ... and move them to the target record + UPDATE action.hold_request + SET target = target_record + WHERE id = hold.id; + + moved_objects := moved_objects + 1; + END LOOP; + + -- Find serial records targeting the source record ... + FOR ser_rec IN SELECT * FROM serial.record_entry WHERE record = source_record LOOP + -- ... and move them to the target record + UPDATE serial.record_entry + SET record = target_record + WHERE id = ser_rec.id; + + moved_objects := moved_objects + 1; + END LOOP; + + -- Find serial subscriptions targeting the source record ... + FOR ser_sub IN SELECT * FROM serial.subscription WHERE record_entry = source_record LOOP + -- ... and move them to the target record + UPDATE serial.subscription + SET record_entry = target_record + WHERE id = ser_sub.id; + + moved_objects := moved_objects + 1; + END LOOP; + + -- Find booking resource types targeting the source record ... + FOR booking IN SELECT * FROM booking.resource_type WHERE record = source_record LOOP + -- ... and move them to the target record + UPDATE booking.resource_type + SET record = target_record + WHERE id = booking.id; + + moved_objects := moved_objects + 1; + END LOOP; + + -- Find acq lineitems targeting the source record ... + FOR acq_lineitem IN SELECT * FROM acq.lineitem WHERE eg_bib_id = source_record LOOP + -- ... and move them to the target record + UPDATE acq.lineitem + SET eg_bib_id = target_record + WHERE id = acq_lineitem.id; + + moved_objects := moved_objects + 1; + END LOOP; + + -- Find acq user purchase requests targeting the source record ... + FOR acq_request IN SELECT * FROM acq.user_request WHERE eg_bib = source_record LOOP + -- ... and move them to the target record + UPDATE acq.user_request + SET eg_bib = target_record + WHERE id = acq_request.id; + + moved_objects := moved_objects + 1; + END LOOP; + + -- Find parts attached to the source ... + FOR source_part IN SELECT * FROM biblio.monograph_part WHERE record = source_record LOOP + + SELECT INTO target_part * + FROM biblio.monograph_part + WHERE label = source_part.label + AND record = target_record; + + -- ... and if there's a conflicting one on the target ... + IF FOUND THEN + + -- ... move the copy-part maps to that, and ... + UPDATE asset.copy_part_map + SET part = target_part.id + WHERE part = source_part.id; + + -- ... move P holds to the move-target part + FOR hold IN SELECT * FROM action.hold_request WHERE target = source_part.id AND hold_type = 'P' LOOP + + UPDATE action.hold_request + SET target = target_part.id + WHERE id = hold.id; + + moved_objects := moved_objects + 1; + END LOOP; + + -- ... if not ... + ELSE + -- ... just move the part to the target record + UPDATE biblio.monograph_part + SET record = target_record + WHERE id = source_part.id; + END IF; + + moved_objects := moved_objects + 1; + END LOOP; + + -- Find multi_home items attached to the source ... + FOR multi_home IN SELECT * FROM biblio.peer_bib_copy_map WHERE peer_record = source_record LOOP + -- ... and move them to the target record + UPDATE biblio.peer_bib_copy_map + SET peer_record = target_record + WHERE id = multi_home.id; + + moved_objects := moved_objects + 1; + END LOOP; + + -- And delete mappings where the item's home bib was merged with the peer bib + DELETE FROM biblio.peer_bib_copy_map WHERE peer_record = ( + SELECT (SELECT record FROM asset.call_number WHERE id = call_number) + FROM asset.copy WHERE id = target_copy + ); + + -- Apply merge tracking + UPDATE biblio.record_entry + SET merge_date = NOW() WHERE id = target_record; + + UPDATE biblio.record_entry + SET merge_date = NOW(), merged_to = target_record + WHERE id = source_record; + + -- replace book bag entries of source_record with target_record + UPDATE container.biblio_record_entry_bucket_item + SET target_biblio_record_entry = target_record + WHERE bucket IN (SELECT id FROM container.biblio_record_entry_bucket WHERE btype = 'bookbag') + AND target_biblio_record_entry = source_record; + + -- Finally, "delete" the source record + UPDATE biblio.record_entry SET active = FALSE WHERE id = source_record; + DELETE FROM biblio.record_entry WHERE id = source_record; + + -- That's all, folks! + RETURN moved_objects; +END; +$func$ LANGUAGE plpgsql; + + +SELECT evergreen.upgrade_deps_block_check('1215', :eg_version); + +INSERT INTO config.workstation_setting_type (name, grp, datatype, label) +VALUES ( + 'eg.orgselect.cat.catalog.wide_holds', 'gui', 'integer', + oils_i18n_gettext( + 'eg.orgselect.cat.catalog.wide_holds', + 'Default org unit for catalog holds org unit selector', + 'cwst', 'label' + ) +); + + + + +SELECT evergreen.upgrade_deps_block_check('1228', :eg_version); + +CREATE OR REPLACE FUNCTION actor.org_unit_full_path ( INT ) RETURNS SETOF actor.org_unit AS $$ + SELECT aou.* + FROM actor.org_unit AS aou + JOIN ( + (SELECT au.id, t.depth FROM actor.org_unit_ancestors($1) AS au JOIN actor.org_unit_type t ON (au.ou_type = t.id)) + UNION + (SELECT au.id, t.depth FROM actor.org_unit_descendants($1) AS au JOIN actor.org_unit_type t ON (au.ou_type = t.id)) + ) AS ad ON (aou.id=ad.id) + ORDER BY ad.depth; +$$ LANGUAGE SQL STABLE; + + + +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1236', :eg_version); + +CREATE OR REPLACE VIEW action.all_circulation_combined_types AS + SELECT acirc.id AS id, + acirc.xact_start, + acirc.circ_lib, + acirc.circ_staff, + acirc.create_time, + ac_acirc.circ_modifier AS item_type, + 'regular_circ'::text AS circ_type + FROM action.circulation acirc, + asset.copy ac_acirc + WHERE acirc.target_copy = ac_acirc.id +UNION ALL + SELECT ancc.id::BIGINT AS id, + ancc.circ_time AS xact_start, + ancc.circ_lib, + ancc.staff AS circ_staff, + ancc.circ_time AS create_time, + cnct_ancc.name AS item_type, + 'non-cat_circ'::text AS circ_type + FROM action.non_cataloged_circulation ancc, + config.non_cataloged_type cnct_ancc + WHERE ancc.item_type = cnct_ancc.id +UNION ALL + SELECT aihu.id::BIGINT AS id, + aihu.use_time AS xact_start, + aihu.org_unit AS circ_lib, + aihu.staff AS circ_staff, + aihu.use_time AS create_time, + ac_aihu.circ_modifier AS item_type, + 'in-house_use'::text AS circ_type + FROM action.in_house_use aihu, + asset.copy ac_aihu + WHERE aihu.item = ac_aihu.id +UNION ALL + SELECT ancihu.id::BIGINT AS id, + ancihu.use_time AS xact_start, + ancihu.org_unit AS circ_lib, + ancihu.staff AS circ_staff, + ancihu.use_time AS create_time, + cnct_ancihu.name AS item_type, + 'non-cat-in-house_use'::text AS circ_type + FROM action.non_cat_in_house_use ancihu, + config.non_cataloged_type cnct_ancihu + WHERE ancihu.item_type = cnct_ancihu.id +UNION ALL + SELECT aacirc.id AS id, + aacirc.xact_start, + aacirc.circ_lib, + aacirc.circ_staff, + aacirc.create_time, + ac_aacirc.circ_modifier AS item_type, + 'aged_circ'::text AS circ_type + FROM action.aged_circulation aacirc, + asset.copy ac_aacirc + WHERE aacirc.target_copy = ac_aacirc.id; + + + +SELECT evergreen.upgrade_deps_block_check('1238', :eg_version); + +INSERT INTO permission.perm_list ( id, code, description ) VALUES + ( 625, 'VIEW_BOOKING_RESERVATION', oils_i18n_gettext(625, + 'View booking reservations', 'ppl', 'description')), + ( 626, 'VIEW_BOOKING_RESERVATION_ATTR_MAP', oils_i18n_gettext(626, + 'View booking reservation attribute maps', 'ppl', 'description')) +; + + +SELECT evergreen.upgrade_deps_block_check('1239', :eg_version); + +INSERT INTO config.workstation_setting_type (name, grp, datatype, label) +VALUES ( + 'eg.grid.booking.pull_list', 'gui', 'object', + oils_i18n_gettext( + 'booking.pull_list', + 'Grid Config: Booking Pull List', + 'cwst', 'label') +); + + +SELECT evergreen.upgrade_deps_block_check('1241', :eg_version); + +SET CONSTRAINTS ALL IMMEDIATE; -- to address "pending trigger events" error + +-- Dedupe the table before applying the script. Preserve the original to allow the admin to delete it manually later. +CREATE TABLE reporter.schedule_original (LIKE reporter.schedule); +INSERT INTO reporter.schedule_original SELECT * FROM reporter.schedule; +TRUNCATE reporter.schedule; +INSERT INTO reporter.schedule (SELECT DISTINCT ON (report, folder, runner, run_time) id, report, folder, runner, run_time, start_time, complete_time, email, excel_format, html_format, csv_format, chart_pie, chart_bar, chart_line, error_code, error_text FROM reporter.schedule_original); +\qecho NOTE: This has created a backup of the original reporter.schedule +\qecho table, named reporter.schedule_original. Once you are sure that everything +\qecho works as expected, you can delete that table by issuing the following: +\qecho +\qecho 'DROP TABLE reporter.schedule_original;' +\qecho + +-- Explicitly supply the name because it is referenced in clark-kent.pl +CREATE UNIQUE INDEX rpt_sched_recurrence_once_idx ON reporter.schedule (report,folder,runner,run_time,COALESCE(email,'')); + + + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('1242', :eg_version); + +-- Long Overdue +UPDATE config.org_unit_setting_type +SET description = oils_i18n_gettext( + 'ui.circ.items_out.longoverdue', +'Value is a numeric code, describing: A. In which tab ("Items Checked Out", '|| +'or "Other/Special Circulations") the circulation '|| +'should appear while checked out, and B. Whether the circulation should '|| +'continue to appear in the "Other" tab when checked in with '|| +'oustanding fines. '|| +'1 = (A) "Items", (B) "Other". 2 = (A) "Other", (B) "Other". ' || +'5 = (A) "Items", (B) do not display. 6 = (A) "Other", (B) do not display.', + 'coust', + 'description' + ) +WHERE NAME = 'ui.circ.items_out.longoverdue'; + +-- Lost +UPDATE config.org_unit_setting_type +SET description = oils_i18n_gettext( + 'ui.circ.items_out.lost', +'Value is a numeric code, describing: A. In which tab ("Items Checked Out", '|| +'or "Other/Special Circulations") the circulation '|| +'should appear while checked out, and B. Whether the circulation should '|| +'continue to appear in the "Other" tab when checked in with '|| +'oustanding fines. '|| +'1 = (A) "Items", (B) "Other". 2 = (A) "Other", (B) "Other". ' || +'5 = (A) "Items", (B) do not display. 6 = (A) "Other", (B) do not display.', + 'coust', + 'description' + ) +WHERE NAME = 'ui.circ.items_out.lost'; + +-- Claims Returned +UPDATE config.org_unit_setting_type +SET description = oils_i18n_gettext( + 'ui.circ.items_out.claimsreturned', +'Value is a numeric code, describing: A. In which tab ("Items Checked Out", '|| +'or "Other/Special Circulations") the circulation '|| +'should appear while checked out, and B. Whether the circulation should '|| +'continue to appear in the "Other" tab when checked in with '|| +'oustanding fines. '|| +'1 = (A) "Items", (B) "Other". 2 = (A) "Other", (B) "Other". ' || +'5 = (A) "Items", (B) do not display. 6 = (A) "Other", (B) do not display.', + 'coust', + 'description' + ) +WHERE NAME = 'ui.circ.items_out.claimsreturned'; + +COMMIT; + +-- Update auditor tables to catch changes to source tables. +-- Can be removed/skipped if there were no schema changes. +SELECT auditor.update_auditors(); diff --git a/Open-ILS/xul/staff_client/chrome/content/main/about.html b/Open-ILS/xul/staff_client/chrome/content/main/about.html index b2b87b683f..77062f5906 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/about.html +++ b/Open-ILS/xul/staff_client/chrome/content/main/about.html @@ -1,7 +1,7 @@

Evergreen

Target Server ID:

-

$HeadURL$

+

http://git.evergreen-ils.org/?p=Evergreen.git;a=shortlog;h=refs/heads/tags/rel_3_5_2

What is Evergreen?

diff --git a/Open-ILS/xul/staff_client/defaults/preferences/prefs.js b/Open-ILS/xul/staff_client/defaults/preferences/prefs.js index 0613a13ddf..05c0a1045d 100644 --- a/Open-ILS/xul/staff_client/defaults/preferences/prefs.js +++ b/Open-ILS/xul/staff_client/defaults/preferences/prefs.js @@ -11,7 +11,7 @@ pref("toolkit.singletonWindowType", "eg_main"); pref("open-ils.enable_join_tabs", true); // We'll use this one to help brand some build information into the client, and rely on subversion keywords -pref("open-ils.repository.headURL","$HeadURL$"); +pref("open-ils.repository.headURL","http://git.evergreen-ils.org/?p=Evergreen.git;a=shortlog;h=refs/heads/tags/rel_3_5_2"); pref("open-ils.repository.author","$Author$"); pref("open-ils.repository.revision","$Revision$"); pref("open-ils.repository.date","$Date$"); diff --git a/Open-ILS/xul/staff_client/windowssetup.nsi b/Open-ILS/xul/staff_client/windowssetup.nsi index a9543579a8..14fd31ea5c 100644 --- a/Open-ILS/xul/staff_client/windowssetup.nsi +++ b/Open-ILS/xul/staff_client/windowssetup.nsi @@ -3,7 +3,7 @@ ; HM NIS Edit Wizard helper defines ; Old versions of makensis don't like this, moved to Makefile ;!define /file PRODUCT_VERSION "client/VERSION" -!define PRODUCT_TAG "Master" +!define PRODUCT_TAG "3.5" !define PRODUCT_INSTALL_TAG "${PRODUCT_TAG}" !define UI_IMAGESET "beta" ;!define UI_IMAGESET "release" diff --git a/README b/README deleted file mode 120000 index 1ee2103e6f..0000000000 --- a/README +++ /dev/null @@ -1 +0,0 @@ -docs/installation/server_installation.adoc \ No newline at end of file diff --git a/README b/README new file mode 100644 index 0000000000..eb54986652 --- /dev/null +++ b/README @@ -0,0 +1,662 @@ +Installing the Evergreen server +=============================== +:toc: +:numbered: + +Preamble: referenced user accounts +---------------------------------- + +In subsequent sections, we will refer to a number of different accounts, as +follows: + + * Linux user accounts: + ** The *user* Linux account is the account that you use to log onto the + Linux system as a regular user. + ** The *root* Linux account is an account that has system administrator + privileges. On Debian you can switch to this account from + your *user* account by issuing the `su -` command and entering the + password for the *root* account when prompted. On Ubuntu you can switch + to this account from your *user* account using the `sudo su -` command + and entering the password for your *user* account when prompted. + ** The *opensrf* Linux account is an account that you create when installing + OpenSRF. You can switch to this account from the *root* account by + issuing the `su - opensrf` command. + ** The *postgres* Linux account is created automatically when you install + the PostgreSQL database server. You can switch to this account from the + *root* account by issuing the `su - postgres` command. + * PostgreSQL user accounts: + ** The *evergreen* PostgreSQL account is a superuser account that you will + create to connect to the PostgreSQL database server. + * Evergreen administrator account: + ** The *egadmin* Evergreen account is an administrator account for + Evergreen that you will use to test connectivity and configure your + Evergreen instance. + +Preamble: developer instructions +-------------------------------- + +[NOTE] +Skip this section if you are using an official release tarball downloaded +from http://evergreen-ils.org/egdownloads + +Developers working directly with the source code from the Git repository, +rather than an official release tarball, must perform one step before they +can proceed with the `./configure` step. + +As the *user* Linux account, issue the following command in the Evergreen +source directory to generate the configure script and Makefiles: + +[source, bash] +------------------------------------------------------------------------------ +autoreconf -i +------------------------------------------------------------------------------ + +Installing prerequisites +------------------------ + + * **PostgreSQL**: The minimum supported version is 9.6. + * **Linux**: Evergreen has been tested on + Debian Buster (10), + Debian Stretch (9), + Debian Jessie (8), + Ubuntu Bionic Beaver (18.04), + and Ubuntu Xenial Xerus (16.04). + If you are running an older version of these distributions, you may want + to upgrade before upgrading Evergreen. For instructions on upgrading these + distributions, visit the Debian or Ubuntu websites. + * **OpenSRF**: The minimum supported version of OpenSRF is 3.2.0. + + +Evergreen has a number of prerequisite packages that must be installed +before you can successfully configure, compile, and install Evergreen. + +1. Begin by installing the most recent version of OpenSRF (3.2.0 or later). + You can download OpenSRF releases from http://evergreen-ils.org/opensrf-downloads/ ++ +2. Issue the following commands as the *root* Linux account to install + prerequisites using the `Makefile.install` prerequisite installer, + substituting `debian-buster`,`debian-stretch`,`debian-jessie`,`ubuntu-bionic`, or + `ubuntu-xenial` for below: ++ +[source, bash] +------------------------------------------------------------------------------ +make -f Open-ILS/src/extras/Makefile.install +------------------------------------------------------------------------------ ++ +[[optional_developer_additions]] +3. OPTIONAL: Developer additions ++ +To perform certain developer tasks from a Git source code checkout, +including the testing of the Angular web client components, +additional packages may be required. As the *root* Linux account: ++ + * To install packages needed for retrieving and managing web dependencies, + use the -developer Makefile.install target. Currently, + this is only needed for building and installing the web + staff client. ++ +[source, bash] +------------------------------------------------------------------------------ +make -f Open-ILS/src/extras/Makefile.install -developer +------------------------------------------------------------------------------ ++ + * To install packages required for building Evergreen translations, use + the -translator Makefile.install target. ++ +[source, bash] +------------------------------------------------------------------------------ +make -f Open-ILS/src/extras/Makefile.install -translator +------------------------------------------------------------------------------ ++ + * To install packages required for building Evergreen release bundles, use + the -packager Makefile.install target. ++ +[source, bash] +------------------------------------------------------------------------------ +make -f Open-ILS/src/extras/Makefile.install -packager +------------------------------------------------------------------------------ + +Extra steps for web staff client +-------------------------------- + +[NOTE] +Skip this entire section if you are using an official release tarball downloaded +from http://evergreen-ils.org/downloads. Otherwise, ensure you have installed the +<> before proceeding. + +[[install_files_for_web_staff_client]] +Install AngularJS files for web staff client +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +1. Building, Testing, Minification: The remaining steps all take place within + the staff JS web root: ++ +[source,sh] +------------------------------------------------------------------------------ +cd $EVERGREEN_ROOT/Open-ILS/web/js/ui/default/staff/ +------------------------------------------------------------------------------ ++ +2. Install Project-local Dependencies. npm inspects the 'package.json' file + for dependencies and fetches them from the Node package network. ++ +[source,sh] +------------------------------------------------------------------------------ +npm install # fetch JS dependencies +------------------------------------------------------------------------------ ++ +3. Run the build script. ++ +[source,sh] +------------------------------------------------------------------------------ +# build, concat+minify +npm run build-prod +------------------------------------------------------------------------------ ++ +4. OPTIONAL: Test web client code if the -developer packages were installed. + CHROME_BIN should be set to the path to chrome or chromimum, e.g., + `/usr/bin/chromium`: ++ +[source,sh] +------------------------------------------------------------------------------ +CHROME_BIN=/path/to/chrome npm run test +------------------------------------------------------------------------------ + +[[install_files_for_angular_web_staff_client]] +Install Angular files for web staff client +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +1. Building, Testing, Minification: The remaining steps all take place within + the Angular staff root: ++ +[source,sh] +------------------------------------------------------------------------------ +cd $EVERGREEN_ROOT/Open-ILS/src/eg2/ +------------------------------------------------------------------------------ ++ +2. Install Project-local Dependencies. npm inspects the 'package.json' file + for dependencies and fetches them from the Node package network. ++ +[source,sh] +------------------------------------------------------------------------------ +npm install # fetch JS dependencies +------------------------------------------------------------------------------ ++ +3. Run the build script. ++ +[source,sh] +------------------------------------------------------------------------------ +# build and run tests +ng build --prod +------------------------------------------------------------------------------ ++ +4. OPTIONAL: Test eg2 web client code if the -developer packages were installed: + CHROME_BIN should be set to the path to chrome or chromimum, e.g., + `/usr/bin/chromium`: ++ +[source,sh] +------------------------------------------------------------------------------ +CHROME_BIN=/path/to/chrome npm run test +------------------------------------------------------------------------------ + +Configuration and compilation instructions +------------------------------------------ + +For the time being, we are still installing everything in the `/openils/` +directory. From the Evergreen source directory, issue the following commands as +the *user* Linux account to configure and build Evergreen: + +[source, bash] +------------------------------------------------------------------------------ +PATH=/openils/bin:$PATH ./configure --prefix=/openils --sysconfdir=/openils/conf +make +------------------------------------------------------------------------------ + +These instructions assume that you have also installed OpenSRF under `/openils/`. +If not, please adjust PATH as needed so that the Evergreen `configure` script +can find `osrf_config`. + +Installation instructions +------------------------- + +1. Once you have configured and compiled Evergreen, issue the following + command as the *root* Linux account to install Evergreen and copy + example configuration files to `/openils/conf`. ++ +[source, bash] +------------------------------------------------------------------------------ +make install +------------------------------------------------------------------------------ + +Change ownership of the Evergreen files +--------------------------------------- + +All files in the `/openils/` directory and subdirectories must be owned by the +`opensrf` user. Issue the following command as the *root* Linux account to +change the ownership on the files: + +[source, bash] +------------------------------------------------------------------------------ +chown -R opensrf:opensrf /openils +------------------------------------------------------------------------------ + +Run ldconfig +------------ + +On Ubuntu 18.04 or Debian Stretch / Buster, run the following command as the root user: + +[source, bash] +------------------------------------------------------------------------------ +ldconfig +------------------------------------------------------------------------------ + +Additional Instructions for Developers +-------------------------------------- + +[NOTE] +Skip this section if you are using an official release tarball downloaded +from http://evergreen-ils.org/egdownloads + +Developers working directly with the source code from the Git repository, +rather than an official release tarball, need to install the Dojo Toolkit +set of JavaScript libraries. The appropriate version of Dojo is included in +Evergreen release tarballs. Developers should install the Dojo 1.3.3 version +of Dojo by issuing the following commands as the *opensrf* Linux account: + +[source, bash] +------------------------------------------------------------------------------ +wget http://download.dojotoolkit.org/release-1.3.3/dojo-release-1.3.3.tar.gz +tar -C /openils/var/web/js -xzf dojo-release-1.3.3.tar.gz +cp -r /openils/var/web/js/dojo-release-1.3.3/* /openils/var/web/js/dojo/. +------------------------------------------------------------------------------ + + +Configure the Apache Web server +------------------------------- + +. Use the example configuration files to configure your Web server for +the Evergreen catalog, web staff client, Web services, and administration +interfaces. Issue the following commands as the *root* Linux account: ++ +[source,bash] +------------------------------------------------------------------------------------ +cp Open-ILS/examples/apache_24/eg_24.conf /etc/apache2/sites-available/eg.conf +cp Open-ILS/examples/apache_24/eg_vhost_24.conf /etc/apache2/eg_vhost.conf +cp Open-ILS/examples/apache_24/eg_startup /etc/apache2/ +# Now set up SSL +mkdir /etc/apache2/ssl +cd /etc/apache2/ssl +------------------------------------------------------------------------------------ ++ +. The `openssl` command cuts a new SSL key for your Apache server. For a +production server, you should purchase a signed SSL certificate, but you can +just use a self-signed certificate and accept the warnings in the +and browser during testing and development. Create an SSL key for the Apache +server by issuing the following command as the *root* Linux account: ++ +[source,bash] +------------------------------------------------------------------------------ +openssl req -new -x509 -days 365 -nodes -out server.crt -keyout server.key +------------------------------------------------------------------------------ ++ +. As the *root* Linux account, edit the `eg.conf` file that you copied into +place. + a. To enable access to the offline upload / execute interface from any + workstation on any network, make the following change (and note that + you *must* secure this for a production instance): + * Replace `Require host 10.0.0.0/8` with `Require all granted` +. Change the user for the Apache server. + * As the *root* Linux account, edit + `/etc/apache2/envvars`. Change `export APACHE_RUN_USER=www-data` to + `export APACHE_RUN_USER=opensrf`. +. As the *root* Linux account, configure Apache with KeepAlive settings + appropriate for Evergreen. Higher values can improve the performance of a + single client by allowing multiple requests to be sent over the same TCP + connection, but increase the risk of using up all available Apache child + processes and memory. + * Edit `/etc/apache2/apache2.conf`. + a. Change `KeepAliveTimeout` to `1`. + b. Change `MaxKeepAliveRequests` to `100`. +. As the *root* Linux account, configure the prefork module to start and keep + enough Apache servers available to provide quick responses to clients without + running out of memory. The following settings are a good starting point for a + site that exposes the default Evergreen catalogue to the web: ++ +.`/etc/apache2/mods-available/mpm_prefork.conf` +[source,bash] +------------------------------------------------------------------------------ + + StartServers 15 + MinSpareServers 5 + MaxSpareServers 15 + MaxRequestWorkers 75 + MaxConnectionsPerChild 500 + +------------------------------------------------------------------------------ ++ +. As the *root* user, enable the mpm_prefork module: ++ +[source,bash] +------------------------------------------------------------------------------ +a2dismod mpm_event +a2enmod mpm_prefork +------------------------------------------------------------------------------ ++ +. As the *root* Linux account, enable the Evergreen site: ++ +[source,bash] +------------------------------------------------------------------------------ +a2dissite 000-default # OPTIONAL: disable the default site (the "It Works" page) +a2ensite eg.conf +------------------------------------------------------------------------------ ++ +. As the *root* Linux account, enable Apache to write + to the lock directory; this is currently necessary because Apache + is running as the `opensrf` user: ++ +[source,bash] +------------------------------------------------------------------------------ +chown opensrf /var/lock/apache2 +------------------------------------------------------------------------------ + +Learn more about additional Apache options in the following sections: + + * <<_apache_rewrite_tricks,Apache Rewrite Tricks>> + * <<_apache_access_handler_perl_module,Apache Access Handler Perl Module>> + +Configure OpenSRF for the Evergreen application +----------------------------------------------- +There are a number of example OpenSRF configuration files in `/openils/conf/` +that you can use as a template for your Evergreen installation. Issue the +following commands as the *opensrf* Linux account: + +[source, bash] +------------------------------------------------------------------------------ +cp -b /openils/conf/opensrf_core.xml.example /openils/conf/opensrf_core.xml +cp -b /openils/conf/opensrf.xml.example /openils/conf/opensrf.xml +------------------------------------------------------------------------------ + +When you installed OpenSRF, you created four Jabber users on two +separate domains and edited the `opensrf_core.xml` file accordingly. Please +refer back to the OpenSRF README and, as the *opensrf* Linux account, edit the +Evergreen version of the `opensrf_core.xml` file using the same Jabber users +and domains as you used while installing and testing OpenSRF. + +[NOTE] +The `-b` flag tells the `cp` command to create a backup version of the +destination file. The backup version of the destination file has a tilde (`~`) +appended to the file name, so if you have forgotten the Jabber users and +domains, you can retrieve the settings from the backup version of the files. + +`eg_db_config`, described in <<_creating_the_evergreen_database,Creating the Evergreen +database>>, sets the database connection information in `opensrf.xml` for you. + +Configure action triggers for the Evergreen application +------------------------------------------------------- +_Action Triggers_ provide hooks for the system to perform actions when a given +event occurs; for example, to generate reminder or overdue notices, the +`checkout.due` hook is processed and events are triggered for potential actions +if there is no checkin time. + +To enable the default set of hooks, issue the following command as the +*opensrf* Linux account: + +[source, bash] +------------------------------------------------------------------------------ +cp -b /openils/conf/action_trigger_filters.json.example /openils/conf/action_trigger_filters.json +------------------------------------------------------------------------------ + +For more information about configuring and running action triggers, see +<<_processing_action_triggers,Notifications / Action Triggers>>. + +Creating the Evergreen database +------------------------------- + +Setting up the PostgreSQL server +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +For production use, most libraries install the PostgreSQL database server on a +dedicated machine. Therefore, by default, the `Makefile.install` prerequisite +installer does *not* install the PostgreSQL 9 database server that is required +by every Evergreen system. You can install the packages required by Debian or +Ubuntu on the machine of your choice using the following commands as the +*root* Linux account: + +. Installing PostgreSQL server packages + +Each OS build target provides the postgres server installation packages +required for each operating system. To install Postgres server packages, +use the make target 'postgres-server-'. Choose the most appropriate +command below based on your operating system. This will install PostgreSQL 9.6, +the minimum supported version. + +[source, bash] +------------------------------------------------------------------------------ +make -f Open-ILS/src/extras/Makefile.install postgres-server-debian-buster +make -f Open-ILS/src/extras/Makefile.install postgres-server-debian-stretch +make -f Open-ILS/src/extras/Makefile.install postgres-server-debian-jessie +make -f Open-ILS/src/extras/Makefile.install postgres-server-ubuntu-xenial +make -f Open-ILS/src/extras/Makefile.install postgres-server-ubuntu-bionic +------------------------------------------------------------------------------ + +To install PostgreSQL version 10, use the following command for your operating +system: + +[source, bash] +------------------------------------------------------------------------------ +make -f Open-ILS/src/extras/Makefile.install postgres-server-debian-buster-10 +make -f Open-ILS/src/extras/Makefile.install postgres-server-debian-stretch-10 +make -f Open-ILS/src/extras/Makefile.install postgres-server-debian-jessie-10 +make -f Open-ILS/src/extras/Makefile.install postgres-server-ubuntu-xenial-10 +make -f Open-ILS/src/extras/Makefile.install postgres-server-ubuntu-bionic-10 +------------------------------------------------------------------------------ + +For a standalone PostgreSQL server, install the following Perl modules for your +distribution as the *root* Linux account: + +.(Debian and Ubuntu) +No extra modules required for these distributions. + +You need to create a PostgreSQL superuser to create and access the database. +Issue the following command as the *postgres* Linux account to create a new +PostgreSQL superuser named `evergreen`. When prompted, enter the new user's +password: + +[source, bash] +------------------------------------------------------------------------------ +createuser -s -P evergreen +------------------------------------------------------------------------------ + +.Enabling connections to the PostgreSQL database + +Your PostgreSQL database may be configured by default to prevent connections, +for example, it might reject attempts to connect via TCP/IP or from other +servers. To enable TCP/IP connections from localhost, check your `pg_hba.conf` +file, found in the `/etc/postgresql/` directory on Debian and Ubuntu. +A simple way to enable TCP/IP +connections from localhost to all databases with password authentication, which +would be suitable for a test install of Evergreen on a single server, is to +ensure the file contains the following entries _before_ any "host ... ident" +entries: + +------------------------------------------------------------------------------ +host all all ::1/128 md5 +host all all 127.0.0.1/32 md5 +------------------------------------------------------------------------------ + +When you change the `pg_hba.conf` file, you will need to reload PostgreSQL to +make the changes take effect. For more information on configuring connectivity +to PostgreSQL, see +http://www.postgresql.org/docs/devel/static/auth-pg-hba-conf.html + +Creating the Evergreen database and schema +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Once you have created the *evergreen* PostgreSQL account, you also need to +create the database and schema, and configure your configuration files to point +at the database server. Issue the following command as the *root* Linux account +from inside the Evergreen source directory, replacing , , +, , and with the appropriate values for your +PostgreSQL database (where and are for the *evergreen* +PostgreSQL account you just created), and replace and +with the values you want for the *egadmin* Evergreen administrator account: + +[source, bash] +------------------------------------------------------------------------------ +perl Open-ILS/src/support-scripts/eg_db_config --update-config \ + --service all --create-database --create-schema --create-offline \ + --user --password --hostname --port \ + --database --admin-user --admin-pass +------------------------------------------------------------------------------ + +This creates the database and schema and configures all of the services in +your `/openils/conf/opensrf.xml` configuration file to point to that database. +It also creates the configuration files required by the Evergreen `cgi-bin` +administration scripts, and sets the user name and password for the *egadmin* +Evergreen administrator account to your requested values. + +You can get a complete set of options for `eg_db_config` by passing the +`--help` parameter. + +Loading sample data +~~~~~~~~~~~~~~~~~~~ +If you add the `--load-all-sample` parameter to the `eg_db_config` command, +a set of authority and bibliographic records, call numbers, copies, staff +and regular users, and transactions will be loaded into your target +database. This sample dataset is commonly referred to as the _concerto_ +sample data, and can be useful for testing out Evergreen functionality and +for creating problem reports that developers can easily recreate with their +own copy of the _concerto_ sample data. + +Creating the database on a remote server +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In a production instance of Evergreen, your PostgreSQL server should be +installed on a dedicated server. + +PostgreSQL 9.6 and later +^^^^^^^^^^^^^^^^^^^^^^^^ +To create the database instance on a remote database server running PostgreSQL +9.6 or later, simply use the `--create-database` flag on `eg_db_config`. + +Starting Evergreen +------------------ +1. As the *root* Linux account, start the `memcached` and `ejabberd` services +(if they aren't already running): ++ +[source, bash] +------------------------------------------------------------------------------ +/etc/init.d/ejabberd start +/etc/init.d/memcached start +------------------------------------------------------------------------------ ++ +2. As the *opensrf* Linux account, start Evergreen. The `-l` flag in the +following command is only necessary if you want to force Evergreen to treat the +hostname as `localhost`; if you configured `opensrf.xml` using the real +hostname of your machine as returned by `perl -ENet::Domain 'print +Net::Domain::hostfqdn() . "\n";'`, you should not use the `-l` flag. ++ +[source, bash] +------------------------------------------------------------------------------ +osrf_control -l --start-all +------------------------------------------------------------------------------ ++ + ** If you receive the error message `bash: osrf_control: command not found`, + then your environment variable `PATH` does not include the `/openils/bin` + directory; this should have been set in the *opensrf* Linux account's + `.bashrc` configuration file. To manually set the `PATH` variable, edit the + configuration file `~/.bashrc` as the *opensrf* Linux account and add the + following line: ++ +[source, bash] +------------------------------------------------------------------------------ +export PATH=$PATH:/openils/bin +------------------------------------------------------------------------------ ++ +3. As the *opensrf* Linux account, generate the Web files needed by the web staff + client and catalogue and update the organization unit proximity (you need to do + this the first time you start Evergreen, and after that each time you change the library org unit configuration. +): ++ +[source, bash] +------------------------------------------------------------------------------ +autogen.sh +------------------------------------------------------------------------------ ++ +4. As the *root* Linux account, restart the Apache Web server: ++ +[source, bash] +------------------------------------------------------------------------------ +/etc/init.d/apache2 restart +------------------------------------------------------------------------------ ++ +If the Apache Web server was running when you started the OpenSRF services, you +might not be able to successfully log in to the OPAC or web staff client until the +Apache Web server is restarted. + +Testing connections to Evergreen +-------------------------------- + +Once you have installed and started Evergreen, test your connection to +Evergreen via `srfsh`. As the *opensrf* Linux account, issue the following +commands to start `srfsh` and try to log onto the Evergreen server using the +*egadmin* Evergreen administrator user name and password that you set using the +`eg_db_config` command: + +[source, bash] +------------------------------------------------------------------------------ +/openils/bin/srfsh +srfsh% login +------------------------------------------------------------------------------ + +You should see a result like: + + Received Data: "250bf1518c7527a03249858687714376" + ------------------------------------ + Request Completed Successfully + Request Time in seconds: 0.045286 + ------------------------------------ + + Received Data: { + "ilsevent":0, + "textcode":"SUCCESS", + "desc":" ", + "pid":21616, + "stacktrace":"oils_auth.c:304", + "payload":{ + "authtoken":"e5f9827cc0f93b503a1cc66bee6bdd1a", + "authtime":420 + } + + } + + ------------------------------------ + Request Completed Successfully + Request Time in seconds: 1.336568 + ------------------------------------ +[[install-troubleshooting-1]] +If this does not work, it's time to do some troubleshooting. + + * As the *opensrf* Linux account, run the `settings-tester.pl` script to see + if it finds any system configuration problems. The script is found at + `Open-ILS/src/support-scripts/settings-tester.pl` in the Evergreen source + tree. + * Follow the steps in the http://evergreen-ils.org/dokuwiki/doku.php?id=troubleshooting:checking_for_errors[troubleshooting guide]. + * If you have faithfully followed the entire set of installation steps + listed here, you are probably extremely close to a working system. + Gather your configuration files and log files and contact the + http://evergreen-ils.org/communicate/mailing-lists/[Evergreen development +mailing list] for assistance before making any drastic changes to your system + configuration. + +Getting help +------------ + +Need help installing or using Evergreen? Join the mailing lists at +http://evergreen-ils.org/communicate/mailing-lists/ or contact us on the Freenode +IRC network on the #evergreen channel. + +License +------- +This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 +Unported License. To view a copy of this license, visit +http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative +Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA. diff --git a/configure.ac b/configure.ac index d807121082..ea2201e3e6 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ export PATH=${PATH}:/usr/sbin AC_PREREQ(2.61) -AC_INIT(Open-ILS, trunk, open-ils-dev@list.georgialibraries.org) +AC_INIT(Open-ILS, 3.5.2, open-ils-dev@list.georgialibraries.org) AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE