working/Evergreen.git
6 years agoDisable SIP stderr logging by default
Bill Erickson [Tue, 23 May 2017 14:44:42 +0000 (10:44 -0400)]
Disable SIP stderr logging by default

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-826 Record hold counts for bib-level only
Bill Erickson [Mon, 22 May 2017 18:21:05 +0000 (14:21 -0400)]
JBAS-826 Record hold counts for bib-level only

Modify the holds-per-record counting code to only look at title-level
holds, for now anyway.  This is makes the query a lot faster, which
is a concern given that we still see several million API calls to
open-ils.circ.bre.holds.count per day.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1554 C/O history logging mods
Bill Erickson [Thu, 1 Sep 2016 21:23:33 +0000 (17:23 -0400)]
JBAS-1554 C/O history logging mods

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1554 C/O history deployment script mods
Bill Erickson [Thu, 1 Sep 2016 21:22:03 +0000 (14:22 -0700)]
JBAS-1554 C/O history deployment script mods

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1554 Patron C/O history migration phase 1
Bill Erickson [Thu, 1 Sep 2016 20:37:39 +0000 (16:37 -0400)]
JBAS-1554 Patron C/O history migration phase 1

New circ history table and functions, plus script to migrate circ
history in batches.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1736 Remove unused, stranded transaction in LI fetcher
Bill Erickson [Tue, 25 Apr 2017 20:23:55 +0000 (16:23 -0400)]
JBAS-1736 Remove unused, stranded transaction in LI fetcher

Remove unnecessary and un-closed xact=>1 in custom lineitem fetching code.
This avoids leaving cstore backends stranded.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1736 Prevent barcode changes on items in controlled statuses
Bill Erickson [Fri, 17 Feb 2017 21:14:31 +0000 (16:14 -0500)]
JBAS-1736 Prevent barcode changes on items in controlled statuses

Disable barcode edit text input when a copy is in a non-editable
status in the "Update Items" and "Create Or Re-Barcode Items" interfaces.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoCAT-103 Clean up pauseComp()
Kyle Huckins [Tue, 3 Jan 2017 23:20:08 +0000 (15:20 -0800)]
CAT-103 Clean up pauseComp()

Remove instances of pauseComp() in copy_browser.js
and cat/util.js in favor of .authoritative calls.

Make open-ils.search.asset.copy.batch.retrieve
authoritative.

Signed-off-by: Kyle Huckins <khuckins@catalystdevworks.com>
6 years agoCAT-47 Checkout receipt shows due date time for hourly checkouts
Victoria Lewis [Thu, 25 Feb 2016 17:05:33 +0000 (12:05 -0500)]
CAT-47 Checkout receipt shows due date time for hourly checkouts

Due date time (hour and minute) shows on checkout receipts
when the circulation duration for the checked out item
is less than a day.

Signed-off-by: Victoria Lewis <vLewis@catalystdevworks.com>
modified:   Open-ILS/xul/staff_client/chrome/content/util/print.js

6 years agoJBAS-826 Revert custom hold counts part I
Bill Erickson [Mon, 6 Feb 2017 21:36:16 +0000 (16:36 -0500)]
JBAS-826 Revert custom hold counts part I

Teach the API to call the stock holds-per-record counting code,
bypassing the custom KCLS code.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1405 Revert custom hold queue stats code
Bill Erickson [Mon, 6 Feb 2017 22:11:53 +0000 (17:11 -0500)]
JBAS-1405 Revert custom hold queue stats code

Return to using the custom hold queue position calculation code.
This merely moves the logic from the DB back into the Perl code.  The
query logic is unchanged.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoLP#1619703 Transfer ACQ lineitem XUL UI
Bill Erickson [Fri, 17 Mar 2017 20:32:38 +0000 (16:32 -0400)]
LP#1619703 Transfer ACQ lineitem XUL UI

Support for marking a bib record as a lineitem transfer destination for
the XUL client.  Adds a new menu entry under the 'Actions For This
Record' menu in the main bib record UI.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoLP#1619703 Transfer ACQ lineitem browser UI
Bill Erickson [Fri, 17 Mar 2017 19:36:35 +0000 (15:36 -0400)]
LP#1619703 Transfer ACQ lineitem browser UI

Supports marking a bib record as a lineitem transfer destination in the
web staff bib record detail interface.  Found in the 'Mark For:' selector
menu.

Supports inititiating the transfer from the embedded ACQ purchase order
interface.  ACQ action is found in the Actions selector for each
lineitem.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoLP#1619703 Transfer ACQ lineitem to bib API
Bill Erickson [Tue, 4 Oct 2016 19:23:22 +0000 (15:23 -0400)]
LP#1619703 Transfer ACQ lineitem to bib API

New open-ils.acq API call for transfering a lineitem and its assets
to a new bib record.

Any asset.call_number's created from the lineitem are migrated to the
new target bib record.

Any monograph parts linked to copies created from the lineitem are
duplicated (if need) on the target bib record and part copy maps are
modified to use the new parts.

API: open-ils.acq.lineitem.transfer_to_bib(auth, li_id, target_bib_id)

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1767 PG 9.6 replace connect-by (perm funcs)
Bill Erickson [Thu, 20 Apr 2017 19:37:31 +0000 (15:37 -0400)]
JBAS-1767 PG 9.6 replace connect-by (perm funcs)

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoCAT-80 Set focus to distribution formula
Kyle Huckins [Tue, 20 Sep 2016 21:12:23 +0000 (14:12 -0700)]
CAT-80 Set focus to distribution formula

Refactor focusCopyLibSelector to accept a boolean
parameter and have the option to move foucs onto
the distribution formula field instead of the first
copy's owning library selector.

Signed-off-by: Kyle Huckins <khuckins@catalystdevworks.com>
6 years agoJBAS-1767 PG 9.6 remove connect-by
Bill Erickson [Mon, 20 Mar 2017 16:09:07 +0000 (12:09 -0400)]
JBAS-1767 PG 9.6 remove connect-by

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoeg-updater -a start-util starts edi_webrick process
Bill Erickson [Mon, 24 Apr 2017 19:14:35 +0000 (15:14 -0400)]
eg-updater -a start-util starts edi_webrick process

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1665 Self-reg kiosk mode additions (submit another, etc.)
Bill Erickson [Thu, 30 Mar 2017 18:41:34 +0000 (14:41 -0400)]
JBAS-1665 Self-reg kiosk mode additions (submit another, etc.)

* Hide submit-another button in kiosk mode
* Adds a black border around the verification requirements "wall of
  text"
* Clicking on a card image now selects the image -- no longer necessary
  to click exactly on the radio input.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1732 Lake Washington school/classroom cards
Bill Erickson [Mon, 6 Mar 2017 21:55:31 +0000 (13:55 -0800)]
JBAS-1732 Lake Washington school/classroom cards

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1761 Skykomish school cards
Bill Erickson [Fri, 10 Mar 2017 20:27:23 +0000 (12:27 -0800)]
JBAS-1761 Skykomish school cards

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1760 Mark claims-returned voids overdues with 'void'
Bill Erickson [Mon, 13 Mar 2017 20:38:50 +0000 (16:38 -0400)]
JBAS-1760 Mark claims-returned voids overdues with 'void'

Revert 2.9-era change that resulted in using Account Adjustment
payments to void overdues when an item is marked claims returned.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoRemove base schema manual HSTORE definitions
Bill Erickson [Fri, 2 Dec 2016 15:43:35 +0000 (10:43 -0500)]
Remove base schema manual HSTORE definitions

As of PG 9.1, we no longer need to create all of the hstore components
(operators, etc.) in the schema.  A simple "create extension hstore"
handles that for us.  Removing the manual operator creation also avoids
deprecation warnings when buliding new databases.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1739 ADP file management script
Bill Erickson [Tue, 28 Feb 2017 17:43:39 +0000 (12:43 -0500)]
JBAS-1739 ADP file management script

Script to archive daily ADP files and alert when a daily file is not
delivered.  Runs on the SFTP server.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1760 Mark lost voids overdues with 'void'
Bill Erickson [Thu, 9 Mar 2017 17:50:07 +0000 (12:50 -0500)]
JBAS-1760 Mark lost voids overdues with 'void'

Revert 2.9-era change that resulted in using Account Adjustment payments
to void overdues when an item is marked lost.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1665 SCKO return-to timeout before login
Bill Erickson [Wed, 8 Mar 2017 20:13:25 +0000 (15:13 -0500)]
JBAS-1665 SCKO return-to timeout before login

Allow SCKO to timeout and return to the return-to URL (if set) even
if the patron login process never completes.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1705 New headings defaults to yesterday repair
Bill Erickson [Tue, 7 Mar 2017 16:51:17 +0000 (11:51 -0500)]
JBAS-1705 New headings defaults to yesterday repair

Avoid clobbering the default date value when the first query is run.
Use the values (yesterday) set in the init function.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1705 New headings search excludes 12am next day
Bill Erickson [Thu, 2 Feb 2017 17:25:01 +0000 (12:25 -0500)]
JBAS-1705 New headings search excludes 12am next day

Search for headings with dates < end-date + 1 day, instead of <= (or
between) so that 12am next day is not included.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1705 New heading does not fire at load
Bill Erickson [Mon, 23 Jan 2017 16:25:11 +0000 (11:25 -0500)]
JBAS-1705 New heading does not fire at load

Avoid starting the report until the user has initiated the report.
Report date range defaults to yesterday.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1705 New heading remove TCN href
Bill Erickson [Mon, 23 Jan 2017 15:15:32 +0000 (10:15 -0500)]
JBAS-1705 New heading remove TCN href

Display TCN as a regular text value instead of a link, since it's mainly
used for copy/paste.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1665 SCKO fix return-to from timeout
Bill Erickson [Mon, 27 Feb 2017 17:23:02 +0000 (12:23 -0500)]
JBAS-1665 SCKO fix return-to from timeout

Fix the return-to URL handling when accessed from the various
auto-timeout operations.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1665 return-to=self option; timeout repairs
Bill Erickson [Wed, 15 Feb 2017 17:33:56 +0000 (12:33 -0500)]
JBAS-1665 return-to=self option; timeout repairs

Adds a special ?return-to=self parameter, telling the UI to return to
its own URL after completion / timeout / exit.

Rely solely on JS activity checker for page timeouts.  Otherwise, the
refresh simply overrides the activity checker.

Put all timeout value configuration into the template so no JS changes
are required for timeout changes.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1665 Field validation CSS repair
Bill Erickson [Mon, 30 Jan 2017 15:21:16 +0000 (10:21 -0500)]
JBAS-1665 Field validation CSS repair

Use jquery to set/remove classes during field validation tests to ensure
other classes on the elements are not accidentally removed.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1665 Kiosk defaults to pickup at lib
Bill Erickson [Wed, 25 Jan 2017 17:47:51 +0000 (09:47 -0800)]
JBAS-1665 Kiosk defaults to pickup at lib

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1665 Self-reg docs on success page; raise suc. timeout
Bill Erickson [Thu, 19 Jan 2017 21:53:05 +0000 (16:53 -0500)]
JBAS-1665 Self-reg docs on success page; raise suc. timeout

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1665 Selfreg no-wrapper=>kiosk; inline docs WIP
Bill Erickson [Thu, 12 Jan 2017 17:34:13 +0000 (12:34 -0500)]
JBAS-1665 Selfreg no-wrapper=>kiosk; inline docs WIP

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1665 Self-register no-wrapper hides sidebar
Bill Erickson [Thu, 12 Jan 2017 17:06:40 +0000 (12:06 -0500)]
JBAS-1665 Self-register no-wrapper hides sidebar

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1665 Selfcheck return-to URL option
Bill Erickson [Fri, 6 Jan 2017 19:53:31 +0000 (14:53 -0500)]
JBAS-1665 Selfcheck return-to URL option

New URL option return-to=http://example.org used for overriding the
default patron timeout / logout destination.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1665 Self-register return-to/no-wrapper options
Bill Erickson [Fri, 6 Jan 2017 19:49:31 +0000 (14:49 -0500)]
JBAS-1665 Self-register return-to/no-wrapper options

New URL parameter controls:

return-to=https://example.org -- override the default post-submit and
timeout redirect URL.

no-wrapper=1 -- hide the kcls.org header/footers.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoZero claims / lib use only notify controls
Bill Erickson [Fri, 3 Mar 2017 17:10:52 +0000 (12:10 -0500)]
Zero claims / lib use only notify controls

Only email results of the zero-claims and lib-use-only batch updates
when the EG_UTIL_NOTIFY env variable is true (generally prod only).

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoZero claim return and lib use only make executable
Bill Erickson [Thu, 2 Mar 2017 21:48:03 +0000 (16:48 -0500)]
Zero claim return and lib use only make executable

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1491 Claims return reset batch updates
Bradley Bonner [Thu, 2 Mar 2017 18:16:27 +0000 (10:16 -0800)]
JBAS-1491 Claims return reset batch updates

nightly jobs to reset claims returned count for patrons every
5 years (from usr create date) or on their 18th birthday

Bradley Bonner
bbonner@kcls.org

6 years agoJBAS-1750 Lib use only status updates
Bradley Bonner [Thu, 2 Mar 2017 21:35:16 +0000 (13:35 -0800)]
JBAS-1750 Lib use only status updates

Switch available items with circulate flag = false to Lib Use Only status.

Bradley Bonner
bbonner@kcls.org

6 years agoRevert "LP1402018_Acq_Copy_location_UI_scoped_to_registered_workstation"
Bill Erickson [Wed, 1 Mar 2017 20:52:21 +0000 (15:52 -0500)]
Revert "LP1402018_Acq_Copy_location_UI_scoped_to_registered_workstation"

JBAS-1706 limit to workstation-local copy locations in ACQ selectors.

This works OK for us becuase we have a acp_location_fixer_trig on
asset.copy and a nightly location fixer process
(copy_loc_fix/run_copy_location_fix.sh) to forces copies to use the
location matching their circ lib.

The extra copies added by this commit make the selector practically
unusable.

This reverts commit 025682d8d58785d030e0ed43fb9e9d37d168388a.

6 years agoCAT-111 Holding Maintenance Item Update Bug
Kyle Huckins [Wed, 1 Feb 2017 19:23:21 +0000 (11:23 -0800)]
CAT-111 Holding Maintenance Item Update Bug

Bugfix for CAT-69.  Add .length to comparison in copies_to_check
for loop in g.gather_copies.

Update copies in g.gather_copies.

Add FM_ACP_UNFLESHED_BATCH_RETRIEVE.authoritative API and call it
in g_stash_and_close();.

Signed-off-by: Kyle Huckins <khuckins@catalystdevworks.com>
 Changes to be committed:
modified:   Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
modified:   Open-ILS/xul/staff_client/chrome/content/main/constants.js
modified:   Open-ILS/xul/staff_client/server/cat/update_items.js

6 years agoAdding 75-year card to patron self-register
Bill Erickson [Mon, 27 Feb 2017 19:11:39 +0000 (14:11 -0500)]
Adding 75-year card to patron self-register

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1734 Enable Northshore teacher imports
Bill Erickson [Thu, 16 Feb 2017 21:02:46 +0000 (16:02 -0500)]
JBAS-1734 Enable Northshore teacher imports

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1735 Activate Snoqualmie teacher cards
Bill Erickson [Wed, 15 Feb 2017 22:58:21 +0000 (17:58 -0500)]
JBAS-1735 Activate Snoqualmie teacher cards

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoOS update script staged updates
Bill Erickson [Tue, 10 Jan 2017 16:49:35 +0000 (11:49 -0500)]
OS update script staged updates

Support update/upgrade in one stage, followed by dist-upgrade in a
secondary stage with optional reboot in between.  The goal is to reduce
the kernel / grub install errors for prod servers, where grub fails to
install correctly after dist-upgrade, requiring a manual grub reinstall.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1730 Disable hold canceled User Message event def
Bill Erickson [Tue, 21 Feb 2017 20:38:36 +0000 (15:38 -0500)]
JBAS-1730 Disable hold canceled User Message event def

2.9 Adds a few event defs for generating user-visible hold notification
messages.  One of them was enabled by default.  This commit disables it.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1525 Delete holds history retention user settings
Bill Erickson [Thu, 13 Oct 2016 19:36:28 +0000 (15:36 -0400)]
JBAS-1525 Delete holds history retention user settings

Clear all user settings for managing holds history retention, so all
applicable holds can be aged.

Any new holds history retention starting with this commit will be
starting fresh.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1525 Holds purge settings and cron script
Bill Erickson [Wed, 21 Sep 2016 16:10:48 +0000 (12:10 -0400)]
JBAS-1525 Holds purge settings and cron script

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1725 Enable Renton teacher cards
Bill Erickson [Tue, 31 Jan 2017 19:11:06 +0000 (14:11 -0500)]
JBAS-1725 Enable Renton teacher cards

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1688 Backstage monthly auths use FTP
Bill Erickson [Fri, 20 Jan 2017 15:03:36 +0000 (10:03 -0500)]
JBAS-1688 Backstage monthly auths use FTP

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1688 Backstage quarterly file/url name repair
Bill Erickson [Fri, 13 Jan 2017 22:10:11 +0000 (17:10 -0500)]
JBAS-1688 Backstage quarterly file/url name repair

Quarterly files come from the FTP server, monthly files come from the
HTTP server.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1445 2.9 SQL update statement timeouts
Bill Erickson [Fri, 3 Feb 2017 16:31:23 +0000 (11:31 -0500)]
JBAS-1445 2.9 SQL update statement timeouts

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1717 Student card processor ignores duplicate IDs
Bill Erickson [Tue, 10 Jan 2017 23:08:44 +0000 (18:08 -0500)]
JBAS-1717 Student card processor ignores duplicate IDs

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1717 Enable Riverview teacher cards
Bill Erickson [Tue, 10 Jan 2017 23:08:31 +0000 (18:08 -0500)]
JBAS-1717 Enable Riverview teacher cards

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage processor -d db-host
Bill Erickson [Thu, 12 Jan 2017 15:44:41 +0000 (10:44 -0500)]
JBAS-1437 Backstage processor -d db-host

Make it easy to override the PGHOST parameter from within the Backstage
processor.  This way we don't have to modify and reset the value from
within CRON when we want to use a DB host that is not the system
default.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoStudent importer script sanity checks
Bill Erickson [Mon, 9 Jan 2017 15:43:17 +0000 (10:43 -0500)]
Student importer script sanity checks

1. Skip rows in the CSV file that contain no data for student_id.

2. Avoid trying to create students whose barcode matches an existing
   username in addition to an existing barcode.

3. Avoid inspecting and translating data for non-new accounts when only
   importing new accounts.  This reduces the work load of the script and
   allows it to complete faster.

4. Improve handling/logging for empty files

5. Exit with status 0 for calls to announce with the 'die' flag set to
   true.  In other words, treat them as expected errors that fail
   gracefully without preventing the calling script (sftp-client-agent)
   from exiting on an expected error.

6. Strip non-alpha-numeric characters from student_id values

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1662 Snoqualmie School/Classroom cards
Bill Erickson [Mon, 21 Nov 2016 19:16:53 +0000 (11:16 -0800)]
JBAS-1662 Snoqualmie School/Classroom cards

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoCAT-54 Offline rcpt shows last 4 of barcode
Kyle Huckins [Fri, 8 Apr 2016 21:16:41 +0000 (14:16 -0700)]
CAT-54 Offline rcpt shows last 4 of barcode

Change printing param for Patron Barcode from the entire barcode to the
last four digits using substring -4.

Add asterisk as filler before last 4 digits of patron barcode on receipt.

Signed-off-by: Kyle Huckins <khuckins@catalystdevworks.com>
6 years agoJBAS-1696 Patron editor suffix label change
Bill Erickson [Fri, 6 Jan 2017 18:57:54 +0000 (13:57 -0500)]
JBAS-1696 Patron editor suffix label change

Suffix => Suffix/(Preferred Name)

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoCAT-56 Offline Circ Loan Duration Mods
Kyle Huckins [Fri, 8 Apr 2016 18:38:57 +0000 (11:38 -0700)]
CAT-56 Offline Circ Loan Duration Mods

Remove options for 3 and 30 days.

Add options for same day, 42 days, and full year.

Merge in year handling from dev/berick/cat-56-offline-due-date-experiment.
Change ev.target.value handling for the non-option to allow for same-day
handling.

Signed-off-by: Kyle Huckins <khuckins@catalystdevworks.com>
 Changes to be committed:
modified:   Open-ILS/web/opac/locale/en-US/lang.dtd
modified:   Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js
modified:   Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.xul

6 years agoJBAS-1672 Bellevue teacher cards
Bill Erickson [Wed, 30 Nov 2016 19:03:09 +0000 (14:03 -0500)]
JBAS-1672 Bellevue teacher cards

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1699 Linking config remove old maps
Bill Erickson [Tue, 3 Jan 2017 22:44:13 +0000 (17:44 -0500)]
JBAS-1699 Linking config remove old maps

Remove the hard-coded bib-to-auth linking maps and the code the
displayed how the linking maps changed when loading them from the DB.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1701 Stale browse entry cleaner stmt timeout
Bill Erickson [Thu, 29 Dec 2016 17:49:40 +0000 (09:49 -0800)]
JBAS-1701 Stale browse entry cleaner stmt timeout

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1699 Linking config loaded from database
Bill Erickson [Wed, 21 Dec 2016 20:31:49 +0000 (15:31 -0500)]
JBAS-1699 Linking config loaded from database

Load the bib-to-auth record maps from the
authority.control_set_bib_field data instead of hard-coding the maps in
the script.  This sychronizes the linking configs and the authority data
propagation configs to avoid cases where a mismatch can lead to bib
field deletions.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage processor script
Bill Erickson [Mon, 19 Dec 2016 17:32:37 +0000 (12:32 -0500)]
JBAS-1437 Backstage processor script

Script to fetch and process monthly and quarterly Backstage data.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Linking script additions and repairs
Bill Erickson [Thu, 15 Dec 2016 17:18:20 +0000 (12:18 -0500)]
JBAS-1437 Linking script additions and repairs

Teach the bib linker how to find the records to link instead of
requiring external batch files.

Remove aging perl docs.

Update and rename link-all-bibs-daily.sh to leverage the new bib
linker bib-finding parameters.

Remove no longer needed find-bibs-to-link script, which is superseded by
the above.

Update README to reflect changes.

==

Adds a collection of common logging and DB utility to a new DB module
OpenILS::Utils::KCLSScriptUtil.

Updated various Backstage / linking scripts to use this new module.
More migrations to follow.

Auth2Auth gets --auth-mod-since

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1671 Shoreline school/classroom cards
Bill Erickson [Thu, 8 Dec 2016 15:39:16 +0000 (07:39 -0800)]
JBAS-1671 Shoreline school/classroom cards

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1446 KCLS 2.8/2.9 Release notes
Bill Erickson [Fri, 9 Dec 2016 16:47:18 +0000 (11:47 -0500)]
JBAS-1446 KCLS 2.8/2.9 Release notes

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1446 Copy 2.6/2.7 release notes into main branch
Bill Erickson [Fri, 9 Dec 2016 16:47:02 +0000 (11:47 -0500)]
JBAS-1446 Copy 2.6/2.7 release notes into main branch

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1692 2.7 -> 2.9 SQL Upgrade X-Ports
Bill Erickson [Wed, 14 Dec 2016 15:51:54 +0000 (10:51 -0500)]
JBAS-1692 2.7 -> 2.9 SQL Upgrade X-Ports

Port KCLS mods to modified functions back into upgrade script.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1692 2.7 -> 2.9 SQL Upgrade
Bill Erickson [Fri, 9 Dec 2016 20:59:29 +0000 (15:59 -0500)]
JBAS-1692 2.7 -> 2.9 SQL Upgrade

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoAdditional Issaquah/Northshore classroom cards
Bill Erickson [Tue, 13 Dec 2016 15:38:11 +0000 (07:38 -0800)]
Additional Issaquah/Northshore classroom cards

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage export skips bibs with warnings
Bill Erickson [Fri, 9 Dec 2016 16:00:43 +0000 (08:00 -0800)]
JBAS-1437 Backstage export skips bibs with warnings

So far this only affects bibs with invalid leader lengths.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage quarterly export docs
Bill Erickson [Thu, 8 Dec 2016 22:27:31 +0000 (17:27 -0500)]
JBAS-1437 Backstage quarterly export docs

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage importer db handle resets
Bill Erickson [Wed, 7 Dec 2016 17:20:04 +0000 (09:20 -0800)]
JBAS-1437 Backstage importer db handle resets

Periodically close and reopen the DB connection to avoid using any one
connection for extended periods of time, which can be bad when SQL
queries have memory leaks, as with bib record updates.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage importer process bibs first
Bill Erickson [Wed, 7 Dec 2016 16:04:19 +0000 (11:04 -0500)]
JBAS-1437 Backstage importer process bibs first

When processing a ZIP file, process bib files before authority files.
On large data sets, processing bibs first allows staff to resume normal
bib editing operations earlier.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage importer --marc-file option
Bill Erickson [Wed, 7 Dec 2016 15:20:11 +0000 (10:20 -0500)]
JBAS-1437 Backstage importer --marc-file option

Importer now supports processing a single MARC file in addition to
ZIP files as before.  Zip file option is now specified via --zip-file.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Bib batch linker continued
Bill Erickson [Fri, 2 Dec 2016 20:14:09 +0000 (15:14 -0500)]
JBAS-1437 Bib batch linker continued

Bug fixes, documentation.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Remove legacy linking/backstage scripts
Bill Erickson [Fri, 2 Dec 2016 19:40:49 +0000 (14:40 -0500)]
JBAS-1437 Remove legacy linking/backstage scripts

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Move authority/BS scripts to authority-control
Bill Erickson [Fri, 2 Dec 2016 19:40:21 +0000 (14:40 -0500)]
JBAS-1437 Move authority/BS scripts to authority-control

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 bib linking log more info
Bill Erickson [Fri, 2 Dec 2016 19:02:23 +0000 (14:02 -0500)]
JBAS-1437 bib linking log more info

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Week-spanning bib link batcher script
Bill Erickson [Fri, 2 Dec 2016 18:57:02 +0000 (13:57 -0500)]
JBAS-1437 Week-spanning bib link batcher script

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Bibs-to-link finder and batch generator
Bill Erickson [Fri, 2 Dec 2016 17:04:17 +0000 (12:04 -0500)]
JBAS-1437 Bibs-to-link finder and batch generator

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 B2A linking additional query options
Bill Erickson [Mon, 7 Nov 2016 21:38:49 +0000 (16:38 -0500)]
JBAS-1437 B2A linking additional query options

* --all uses direct DB connection
  * Fetching all record ID's via cstore is a bad idea.
* order by ID
* better logging
* --sort-desc option

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 B2A link clean up bogus fast headings; leave OK ones
Bill Erickson [Mon, 7 Nov 2016 21:09:04 +0000 (16:09 -0500)]
JBAS-1437 B2A link clean up bogus fast headings; leave OK ones

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage scripts default DB settings
Bill Erickson [Fri, 28 Oct 2016 21:51:52 +0000 (17:51 -0400)]
JBAS-1437 Backstage scripts default DB settings

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Auth linker uses 'KCLS' control number identifer
Bill Erickson [Thu, 27 Oct 2016 20:22:55 +0000 (16:22 -0400)]
JBAS-1437 Auth linker uses 'KCLS' control number identifer

Affects bib-to-auth and auth-to-auth linking.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage update authority 005 date values
Bill Erickson [Wed, 26 Oct 2016 16:30:32 +0000 (12:30 -0400)]
JBAS-1437 Backstage update authority 005 date values

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Bib ignores 'fast' headings.
Bill Erickson [Wed, 26 Oct 2016 16:03:21 +0000 (12:03 -0400)]
JBAS-1437 Bib ignores 'fast' headings.

Avoid any attempts at controlling fields whose thesaurus value (ind2=7
and $2) is 'fast'.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 BS search mod bibs once
Bill Erickson [Wed, 26 Oct 2016 14:23:35 +0000 (10:23 -0400)]
JBAS-1437 BS search mod bibs once

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage 010z replace records
Bill Erickson [Tue, 25 Oct 2016 21:06:03 +0000 (17:06 -0400)]
JBAS-1437 Backstage 010z replace records

Replace authority records whose 010a matches the 010z value for inbound
records.

Also avoid looking up deleted records when looking for matches.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage quarterly export docs
Bill Erickson [Mon, 26 Sep 2016 15:18:06 +0000 (11:18 -0400)]
JBAS-1437 Backstage quarterly export docs

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage process bib/auth file names update
Bill Erickson [Mon, 26 Sep 2016 14:29:09 +0000 (07:29 -0700)]
JBAS-1437 Backstage process bib/auth file names update

Handle inconsistencies in BS results file naming.

* Process files ending in .UTF8 or .MRC
* Treat file with name AUTH as new/modified authority records.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Auth-2-auth linker --file option
Bill Erickson [Mon, 26 Sep 2016 14:18:42 +0000 (10:18 -0400)]
JBAS-1437 Auth-2-auth linker --file option

Supports a --file option pointing to file of authority record IDs, one
ID per line.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Backstage record export/import scripts
Bill Erickson [Mon, 20 Jun 2016 19:33:56 +0000 (15:33 -0400)]
JBAS-1437 Backstage record export/import scripts

* export-bibs.pl : export bib records to send to Backstage
* process-backstage-files.pl : process bib/auth records returned from BS
* README.adoc : howto docs

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-1437 Auth2bib links honors authority 008 #14/#15
Bill Erickson [Thu, 25 Aug 2016 21:03:57 +0000 (17:03 -0400)]
JBAS-1437 Auth2bib links honors authority 008 #14/#15

Only link 1XX and 7XX bib fields to authority records whose 008 #14
field is 'a'.

Only link 6XX bib fields to authority records whose 008 #15 field is 'a'.

https://www.loc.gov/marc/authority/ad008.html

Signed-off-by: Bill Erickson <berickxx@gmail.com>