working/Evergreen.git
6 years agoJBAS-679 2.5 circ org settings
Bill Erickson [Wed, 6 May 2015 16:28:07 +0000 (12:28 -0400)]
JBAS-679 2.5 circ org settings

Apply values for new org unit settings circ.tally_lost,
ui.circ.items_out.lost, and ui.circ.items_out.claimsreturned.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoDB upgrade: drop/recrecreate constraints in one go as before; debugging
Bill Erickson [Tue, 28 Apr 2015 22:01:27 +0000 (15:01 -0700)]
DB upgrade: drop/recrecreate constraints in one go as before; debugging

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years ago2.5 upgrade debugging; missing metabib_field updates
Bill Erickson [Tue, 21 Apr 2015 21:30:00 +0000 (14:30 -0700)]
2.5 upgrade debugging; missing metabib_field updates

1. Added some additional notices for debugging.

2. Never enountered an error with this, but noticed a table
   which referred to metabib_field needed it's constraint
   updated as well.. metabib.browse_call_number_entry_def_map

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-495 2.5 upgrade more logs/debugging
Bill Erickson [Mon, 20 Apr 2015 17:33:21 +0000 (10:33 -0700)]
JBAS-495 2.5 upgrade more logs/debugging

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoadding secondary collection hq update for 2.5 update
Bill Erickson [Wed, 8 Apr 2015 21:29:19 +0000 (17:29 -0400)]
adding secondary collection hq update for 2.5 update

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years ago2.5 DB; log big updates; avoid big selects
Bill Erickson [Tue, 31 Mar 2015 19:04:40 +0000 (15:04 -0400)]
2.5 DB; log big updates; avoid big selects

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-495 combined 2.4.1 to 2.5.7 DB upgrade
Bill Erickson [Fri, 27 Mar 2015 20:25:07 +0000 (16:25 -0400)]
JBAS-495 combined 2.4.1 to 2.5.7 DB upgrade

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-648 2.5 dev db export
Bill Erickson [Wed, 20 May 2015 17:57:16 +0000 (10:57 -0700)]
JBAS-648 2.5 dev db export

Adds export data tables for floating groups and z39 index field maps.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-679 hide conjoined items commands in bib display
Bill Erickson [Tue, 19 May 2015 19:46:26 +0000 (15:46 -0400)]
JBAS-679 hide conjoined items commands in bib display

We don't use conjoined items, hide the actions in the record detail
UI to avoid confusion, etc.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Conflicts:
Open-ILS/xul/staff_client/chrome/content/cat/opac.xul

6 years agoenable prod and staging clusters in brick manager
Bill Erickson [Tue, 19 May 2015 14:55:09 +0000 (10:55 -0400)]
enable prod and staging clusters in brick manager

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoKMAIN 1715 No Cross References on 2.5
Michael Glass [Wed, 6 May 2015 22:01:34 +0000 (15:01 -0700)]
KMAIN 1715 No Cross References on 2.5

   Add a call to function which creates sees headings to load browse in
   browse.pm

Signed-off-by: Michael Glass <mglass@catalystitservices.com>
modified:   Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Browse.pm

6 years agoeg-updater use series ID for builds stamp
Bill Erickson [Tue, 5 May 2015 20:27:18 +0000 (16:27 -0400)]
eg-updater use series ID for builds stamp

When building a client installer, be sure the
builds/current-client-build.zip (and related files) use the same 'build'
directory as the installer.  This ensures the build series (stamp) ID
matches the installer series (stamp) ID.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoeg-update stamp staff builds w/ version string
Bill Erickson [Tue, 5 May 2015 18:00:17 +0000 (14:00 -0400)]
eg-update stamp staff builds w/ version string

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoeg-updater gracefully handles apache not running
Bill Erickson [Fri, 1 May 2015 16:17:05 +0000 (12:17 -0400)]
eg-updater gracefully handles apache not running

Before, the script would exit because the apache stop command would
return non-zero.

Includes minor wording changes.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-480 Updated DB dev schema/data export
Bill Erickson [Tue, 21 Apr 2015 17:48:48 +0000 (10:48 -0700)]
JBAS-480 Updated DB dev schema/data export

MARC update memory leak repair; minor browse fixes;

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-639 Brick manager script
Bill Erickson [Mon, 13 Apr 2015 18:40:58 +0000 (11:40 -0700)]
JBAS-639 Brick manager script

New brick-manager.sh script for stopping, starting, detaching,
attaching, and updating clusters of bricks.  Default clusters include
production, staging, and testing, though the user can optionally
specifify a single server (mainly for testing).

eg-updater.sh gets new commands for stop / start only and detach /
attach only.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoadd new ID for nonresident property owner - it should exclude from updating.
Bradley Bonner [Wed, 8 Apr 2015 21:49:58 +0000 (14:49 -0700)]
add new ID for nonresident property owner - it should exclude from updating.

6 years agoAdding collection-hq scripts
Bill Erickson [Wed, 8 Apr 2015 15:12:13 +0000 (11:12 -0400)]
Adding collection-hq scripts

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-573 eg-stats collector script tracking/updates
Bill Erickson [Thu, 26 Mar 2015 16:08:34 +0000 (12:08 -0400)]
JBAS-573 eg-stats collector script tracking/updates

Use unix::syslog, which is already installed, instead of custom (?)
Logger module.  Remove CPU and RAM stats, since this are better
monitored via external monitoring (zabbix, nagios, etc.)

Install stats collector and keeplive script to /openils/bin

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-479 clean up forked children in throttle_disbatcher.pl
Bill Erickson [Fri, 27 Feb 2015 16:00:12 +0000 (08:00 -0800)]
JBAS-479 clean up forked children in throttle_disbatcher.pl

When registering a sig handler for CHLD, we have to waitpid
for child procs to clean them up or defunct procs will proliferate.

Also update counts with each reaped child, since that's the only
accurate way to know how many children have completed their tasks.

See http://perldoc.perl.org/perlipc.html#Signals SIGCHLD

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoKMAIN-1653
Michael Glass [Thu, 19 Mar 2015 19:51:18 +0000 (15:51 -0400)]
KMAIN-1653
Removed the deprecated link to 'basic search' which appeared on the
browse search results page.

modified:   KCLS/openils/var/templates_kcls/opac/parts/searchbar_browse.tt2

Signed-off-by: Michael Glass <mglass@catalystitservices.com>
6 years agoRecover auto search submission on sort selector change
Bill Erickson [Tue, 17 Mar 2015 20:10:04 +0000 (16:10 -0400)]
Recover auto search submission on sort selector change

Avoid applying two onchange() handlers to a single element, since only
one will ever fire.  In this case, the extra handler prevented the
automatic form submission from running a new search.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoKMAIN-1616 let mkurl() build the URL for us
Bill Erickson [Thu, 12 Mar 2015 20:45:26 +0000 (16:45 -0400)]
KMAIN-1616 let mkurl() build the URL for us

Instead of manually mangling the URL, let the existing mkurl() routine
handle that for us.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoKMAIN-1634 Clicking advanced search link from browse search result opens blank page
Dan Reuther [Mon, 9 Mar 2015 18:42:32 +0000 (14:42 -0400)]
KMAIN-1634 Clicking advanced search link from browse search result opens blank page

Removed url paramaters which referenced default pane, made links
explicitly define pane

cross ported from 65ef57d

Signed-off-by: Dan Reuther <dreuther@catalystitservices.com>
modified:   KCLS/openils/var/templates_kcls/opac/parts/searchbar.tt2
modified:   KCLS/openils/var/templates_kcls/opac/parts/searchbar_browse.tt2

6 years agoKMAIN-1633 Changing sort order on results changes advanced search order
Dan Reuther [Fri, 6 Mar 2015 21:21:46 +0000 (16:21 -0500)]
KMAIN-1633 Changing sort order on results changes advanced search order

 Added check for being on advanced search page before modifying sort order
 cache

cross port of 33c9e4d

Signed-off-by: Dan Reuther <dreuther@catalystitservices.com>
modified:   Open-ILS/web/js/ui/default/opac/simple.js

6 years agoKMAIN-1617
Michael Glass [Mon, 2 Mar 2015 23:45:24 +0000 (15:45 -0800)]
KMAIN-1617

Added a span in searchbar.tt2 to make the font sizes match styling of browse search page

modified:   openils/var/templates_kcls/opac/parts/searchbar.tt2

cross ported from f95da61

Signed-off-by: Michael Glass <mglass@catalystitservices.com>
6 years agoKMAIN-1619 Advanced Sort Relevance Bug
Dan Reuther [Fri, 6 Mar 2015 00:12:18 +0000 (19:12 -0500)]
KMAIN-1619 Advanced Sort Relevance Bug

Added a storage string to window.name, which allows the sort result
filter to persist across multiple advanced queries in the same tab

cross port of 2482783

Signed-off-by: Dan Reuther <dreuther@catalystitservices.com>
modified:   KCLS/openils/var/templates_kcls/opac/parts/advanced/search.tt2
modified:   KCLS/openils/var/templates_kcls/opac/parts/filtersort.tt2
modified:   Open-ILS/web/js/ui/default/opac/simple.js

6 years agoKMAIN-1621 Fix permissions for modified_since_export_record_importer
Dan Reuther [Tue, 3 Mar 2015 16:15:12 +0000 (08:15 -0800)]
KMAIN-1621 Fix permissions for modified_since_export_record_importer

Removed sudo in system commands for modified_since_export_record_importer script

Signed-off-by: Dan Reuther <dreuther@catalystsolves.com>
modified:   bs_files/modified_since_export_record_importer.pl
Signed-off-by: Dan Reuther <dreuther@catalystitservices.com>
6 years agoKMAIN-1604 Modify database connection script and export timeout fix
Dan Reuther [Wed, 18 Feb 2015 19:25:42 +0000 (11:25 -0800)]
KMAIN-1604 Modify database connection script and export timeout fix

Set the timeout to 3 seconds in backstage_export.pl to avoid timing out on bib exports.

Changed the database connect sub to connect to apps => 'open-ils.storage' instead of reporter.
Made this change in several files.

Signed-off-by: Dan Reuther <dreuther@catalystsolves.com>
6 years agoKMAIN-1603 Search Links follow default tab
Dan Reuther [Wed, 4 Mar 2015 23:08:03 +0000 (18:08 -0500)]
KMAIN-1603 Search Links follow default tab

Added the correct pane option to the searchbar code.

cross ported from a01eecc

Signed-off-by: Dan Reuther <dreuther@catalystitservices.com>
modified:   KCLS/openils/var/templates_kcls/opac/parts/searchbar.tt2

6 years agoKMAIN-1602: Advance search relevance sort bug
Dan Reuther [Thu, 5 Mar 2015 23:28:40 +0000 (18:28 -0500)]
KMAIN-1602: Advance search relevance sort bug

Changed search.tt2 to default to Relevance for Advanced search while retaining
the default search for browse by removing the passing of the value to filesort.tt2

cross port of 61dcfcd

Signed-off-by: Dan Reuther <dreuther@catalystitservices.com>
modified:   KCLS/openils/var/templates_kcls/opac/parts/advanced/search.tt2

6 years agoJBAS-500 Additional JS cleanup for 2.5 staff client
Bill Erickson [Wed, 25 Mar 2015 15:58:09 +0000 (11:58 -0400)]
JBAS-500 Additional JS cleanup for 2.5 staff client

Loading JSAN from within the TPAC templates more than once was causing
the staff client to lock up.  Plus, there's no reason to load it more
than once.  Kill that and a few other duplicate imports.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoeg-updater typo; remove unneeded staff bulid vars
Bill Erickson [Wed, 25 Mar 2015 15:01:05 +0000 (08:01 -0700)]
eg-updater typo; remove unneeded staff bulid vars

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoKMAIN-1666
Michael Glass [Tue, 24 Mar 2015 21:54:46 +0000 (17:54 -0400)]
KMAIN-1666

Removed add_default_sort function from browse_results tt2 page

modified:   KCLS/openils/var/templates_kcls/opac/browse_results.tt2

Signed-off-by: Michael Glass <mglass@catalystitservices.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-500 repair JS syntax error in TPAC JS loader
Bill Erickson [Tue, 24 Mar 2015 14:14:12 +0000 (10:14 -0400)]
JBAS-500 repair JS syntax error in TPAC JS loader

* Recover missing '}'
* Reformat to remove tab characters and make easier to read.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoeg-updater standalone staff build; auto-detach
Bill Erickson [Fri, 20 Mar 2015 17:53:26 +0000 (13:53 -0400)]
eg-updater standalone staff build; auto-detach

* Adds a new -k flag for building a staff client without any other
  code deployments or restarts.  Git checkout flags, if specified,
  are honored.

* Removes the -d (no detach) option.  The script now automatically
  detaches if it finds a ping.txt file.  Otherwise, it skips the
  detach step.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoeg-updater chown/restart improvements
Bill Erickson [Thu, 19 Mar 2015 20:12:55 +0000 (16:12 -0400)]
eg-updater chown/restart improvements

* Navigate NFS shares when chowning /openils after an install.
* Add -o option for performing restart only (no code updates).
* Add -f option to modify service startup sleep time.  Some servers take
  a lot longer than others for all services to start up.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoeg-updater -c doc update
Bill Erickson [Thu, 12 Mar 2015 18:38:19 +0000 (14:38 -0400)]
eg-updater -c doc update

The -c command now forces a rebuild instead of skipping it.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-449 SIP test scripts and sample config
Bill Erickson [Fri, 6 Feb 2015 19:14:48 +0000 (14:14 -0500)]
JBAS-449 SIP test scripts and sample config

sip-read-only.py -- item info, patron info, and patron status messages

sip-checkout-checkin.py -- checkout out and back in copes

pysip2-client.ini.example -- sample configuration file

README.asciidoc -- usage

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

Conflicts:
.gitignore

6 years agoJBAS-449 improve script dir names
Bill Erickson [Fri, 6 Feb 2015 19:13:37 +0000 (14:13 -0500)]
JBAS-449 improve script dir names

Better clarify the purpose of each script directory.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-415 warn when leaving brick detached
Bill Erickson [Tue, 10 Mar 2015 16:16:37 +0000 (12:16 -0400)]
JBAS-415 warn when leaving brick detached

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-415 eg-updater staff client build additions
Bill Erickson [Tue, 10 Mar 2015 15:36:49 +0000 (11:36 -0400)]
JBAS-415 eg-updater staff client build additions

Track specific versions on the server, but stamp clients with the series
ID instead of the build ID, so older clients can use new server files by
default.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-415 remove more hard-coded XUL version strings
Bill Erickson [Tue, 10 Mar 2015 15:30:39 +0000 (11:30 -0400)]
JBAS-415 remove more hard-coded XUL version strings

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-415 brick updater additions
Bill Erickson [Tue, 3 Mar 2015 19:49:14 +0000 (14:49 -0500)]
JBAS-415 brick updater additions

* If no branch/tag/pull options are specified, install whatever code is
  present in the repository

* Toggle -c.  No configure/clean is run by default.

* If no client build ID is specified, use the current date

* Run build commands as the owner of the current directory, not
  necessarily as opensrf.

* Move all post-install steps into the main script to finalize support
  for running the script as a non-opensr user.

* Adds support for a code series (-i) parameter for symlinking the
  staff client to support persistent intra-series links.

* eg-updater.sh -x now builds a Windows staff client.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-481 update sequences for sample data
Bill Erickson [Thu, 19 Feb 2015 16:10:27 +0000 (11:10 -0500)]
JBAS-481 update sequences for sample data

When cherry-picking data to insert for various large tables (bibs,
auths, copies, etc.), update the ID sequence for each table to match the
maximum ID used, so that the correct sequence values may be used on
future inserts.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-328 sample authority data / export improvements
Bill Erickson [Wed, 3 Dec 2014 16:32:45 +0000 (11:32 -0500)]
JBAS-328 sample authority data / export improvements

Added authority records to sample data exporter and applied some general
improvements to the exporter process.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-315 add circ anonymization crontab entries
Bill Erickson [Wed, 28 Jan 2015 16:34:45 +0000 (11:34 -0500)]
JBAS-315 add circ anonymization crontab entries

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoRevert "LP#1386347 hard-coded queue stats for captured holds"
Bill Erickson [Thu, 15 Jan 2015 20:54:16 +0000 (15:54 -0500)]
Revert "LP#1386347 hard-coded queue stats for captured holds"

Return to calculating queue position for captured holds from the
copy map instead of assuming queue position 1.

This reverts commit 23171c7debf33f71ef0d59d2f8b3cdebc8a08f9f.

6 years agoCMD59864 improved log file cleanup
Bill Erickson [Tue, 27 Jan 2015 18:37:05 +0000 (13:37 -0500)]
CMD59864 improved log file cleanup

 * use -mtime instead of -ctime for finding files to delete
 * clean up empty directories
 * extend notes on why we're not using logrotate

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-415 eg-updator uses fast service shutdown
Bill Erickson [Tue, 27 Jan 2015 16:34:26 +0000 (11:34 -0500)]
JBAS-415 eg-updator uses fast service shutdown

osrf_control --stop-all uses a graceful shutdown, which is useful when
it's not clear if activity is ongoing, but takes longer than a
non-graceful shutdown.  Since we don't stop services when they may be
in use, we don't need graceful shutdown.  Use --fast-shutdown-all
instead, which tells each service to stop and clean up immediately.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-415 eg-updator avoids extra git server lookup
Bill Erickson [Mon, 26 Jan 2015 20:52:32 +0000 (12:52 -0800)]
JBAS-415 eg-updator avoids extra git server lookup

Only call git fetch or pull once, so the user won't be
prompted for multiple SSH key logins when using keys/passwords.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-415 EG server updater script
Bill Erickson [Wed, 21 Jan 2015 20:33:52 +0000 (15:33 -0500)]
JBAS-415 EG server updater script

Script for applying and deploying Evergreen updates to an Evergreen
server.  Supports various ways to get the code from git (pulling,
brancheds, tags) and options for how to install the code (web files
only, full rebuild, install only).  See -h for usage.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-415 make autogen less warn-y for less chatty updates
Bill Erickson [Wed, 21 Jan 2015 21:44:19 +0000 (16:44 -0500)]
JBAS-415 make autogen less warn-y for less chatty updates

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-315 circ anon script repair variable thinko
Bill Erickson [Wed, 21 Jan 2015 22:21:16 +0000 (17:21 -0500)]
JBAS-315 circ anon script repair variable thinko

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-315 circ anon script supports configurable windows
Bill Erickson [Wed, 21 Jan 2015 21:36:42 +0000 (16:36 -0500)]
JBAS-315 circ anon script supports configurable windows

Allow the anonymizer to process arbitrarily large windows of
circulations based on their xact_finish date.  This makes it faster to
re-process old circs to accommodate changes in user settings which makes
older circs eligible for anonymization.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 circ purge log max date
Bill Erickson [Fri, 16 Jan 2015 17:33:19 +0000 (12:33 -0500)]
JBAS-258 circ purge log max date

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 install non-standard bin files
Bill Erickson [Fri, 16 Jan 2015 16:50:01 +0000 (11:50 -0500)]
JBAS-258 install non-standard bin files

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-255 repair dev data expor search path
Bill Erickson [Thu, 8 Jan 2015 16:47:19 +0000 (08:47 -0800)]
JBAS-255 repair dev data expor search path

add 'public' to search path so triggers which run for some i
pg_dump'ed data can succeed.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-255 updated production schema export
Bill Erickson [Thu, 8 Jan 2015 16:12:32 +0000 (08:12 -0800)]
JBAS-255 updated production schema export

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-255 schema exporter script
Bill Erickson [Thu, 8 Jan 2015 16:12:20 +0000 (08:12 -0800)]
JBAS-255 schema exporter script

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-255 add hold request cancel causes to demo data export
Bill Erickson [Wed, 7 Jan 2015 22:27:37 +0000 (17:27 -0500)]
JBAS-255 add hold request cancel causes to demo data export

Includes update to seed data export to pull in the new values.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoutil script for running linux clients
Bill Erickson [Mon, 22 Dec 2014 21:34:50 +0000 (16:34 -0500)]
util script for running linux clients

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoUpdating KCLS DB schema for 2014-12-22
Bill Erickson [Mon, 22 Dec 2014 20:39:48 +0000 (15:39 -0500)]
Updating KCLS DB schema for 2014-12-22

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 syslog file cleanup docs
Bill Erickson [Mon, 22 Dec 2014 15:59:25 +0000 (10:59 -0500)]
JBAS-258 syslog file cleanup docs

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 syslog file cleanup fix comments
Bill Erickson [Mon, 22 Dec 2014 15:48:36 +0000 (10:48 -0500)]
JBAS-258 syslog file cleanup fix comments

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 syslog file cleanup options
Bill Erickson [Mon, 22 Dec 2014 15:38:46 +0000 (10:38 -0500)]
JBAS-258 syslog file cleanup options

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 syslog log file cleanup script
Bill Erickson [Mon, 22 Dec 2014 15:28:40 +0000 (10:28 -0500)]
JBAS-258 syslog log file cleanup script

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 more util script repairs
Bill Erickson [Fri, 19 Dec 2014 19:41:21 +0000 (14:41 -0500)]
JBAS-258 more util script repairs

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 CRONTAB repairs
Bill Erickson [Thu, 18 Dec 2014 18:52:24 +0000 (13:52 -0500)]
JBAS-258 CRONTAB repairs

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 various utility server script repairs
Bill Erickson [Thu, 18 Dec 2014 18:46:54 +0000 (13:46 -0500)]
JBAS-258 various utility server script repairs

 * Give all batch SQL scripts a 0 statement timeout
 * Avoid cd'ing into nonexistent directories

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoScript for starting zoom server on utility
Bill Erickson [Tue, 16 Dec 2014 16:47:55 +0000 (11:47 -0500)]
Script for starting zoom server on utility

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoUpdated utility server crontab script dir
Bill Erickson [Tue, 16 Dec 2014 15:13:12 +0000 (10:13 -0500)]
Updated utility server crontab script dir

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agocopy remoteauth.cgi into ezproxy dir
Bill Erickson [Mon, 15 Dec 2014 22:41:12 +0000 (17:41 -0500)]
copy remoteauth.cgi into ezproxy dir

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoHolds placement avoid calling non-existent func.
Bill Erickson [Mon, 15 Dec 2014 20:08:06 +0000 (15:08 -0500)]
Holds placement avoid calling non-existent func.

Avoid calling an undefined function during hold placement.  In older
versions of opensrf, this kind of the thing would silently fail.  (Well,
it would log to the stderr file).  Modern opensrf allows Perl the throw
a standard exception, which stops execution.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoLP#1386347 hard-coded queue stats for captured holds
Bill Erickson [Tue, 9 Dec 2014 20:10:57 +0000 (15:10 -0500)]
LP#1386347 hard-coded queue stats for captured holds

Return queue position = 1 and # potential copies = 1 for captured
holds.  This change is a result of the fact that captured holds no
longer retain their potential copies list, so the queue calculation can
no longer take place for potential copies (plus it speeds up queue calc
for potential copies).

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoturn staff client publisher into generic post-install script
Bill Erickson [Mon, 8 Dec 2014 20:47:56 +0000 (15:47 -0500)]
turn staff client publisher into generic post-install script

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoStaff client publisher script
Bill Erickson [Mon, 8 Dec 2014 20:37:17 +0000 (15:37 -0500)]
Staff client publisher script

Useful for creating consistent place to fetch staff client build bundles
after each server update.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agorename util scripts dir for added clarity
Bill Erickson [Mon, 8 Dec 2014 20:17:22 +0000 (15:17 -0500)]
rename util scripts dir for added clarity

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 tracking util scripts / crontab
Bill Erickson [Mon, 24 Nov 2014 22:08:53 +0000 (17:08 -0500)]
JBAS-258 tracking util scripts / crontab

Copied scripts and crontab from production util and modified to match
new layout and comment out some actions which are not needed by default
on dev, etc. systems (or require human input first).

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-255 KCLS dev DB generation scripts
Bill Erickson [Mon, 3 Nov 2014 16:30:18 +0000 (11:30 -0500)]
JBAS-255 KCLS dev DB generation scripts

 * Script to create a new dev evergreen database
 * Tools for exporting the schema and a dev data subset
 * Production schema snapshot from Oct 2014.
 * Sample data export from Oct 2014.
 * Sample users and transactions
 * Org settings, minus credit card settings

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoAdd cataloging_date to Storage/CDBI
Bill Erickson [Tue, 18 Nov 2014 17:37:27 +0000 (12:37 -0500)]
Add cataloging_date to Storage/CDBI

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/biblio.pm

6 years agoJBAS-237 squashed authority cross-port
Bill Erickson [Mon, 9 Feb 2015 19:55:17 +0000 (14:55 -0500)]
JBAS-237 squashed authority cross-port

Commits ae4d0c7~1..7a98ebd

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Conflicts:
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/Authority.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/authority.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Browse.pm
Open-ILS/src/templates/opac/browse.tt2
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/xul/staff_client/server/cat/marcedit.xul

Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm

Conflicts:
Open-ILS/web/js/ui/default/vandelay/vandelay.js
Open-ILS/xul/staff_client/chrome/content/cat/opac.js

6 years agoJBAS-406 return to using storage for backwards compat
Bill Erickson [Fri, 16 Jan 2015 18:20:03 +0000 (13:20 -0500)]
JBAS-406 return to using storage for backwards compat

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-406 repair BC patron items out API call
Bill Erickson [Thu, 8 Jan 2015 21:06:41 +0000 (13:06 -0800)]
JBAS-406 repair BC patron items out API call

The API now includes circulations which have a stop_fines values of
MAXFINES or LONGOVERDUE, consistent with other items-out API queries.

API also updated to use open-ils.cstore instead of storage for
efficiency.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm

6 years agoAdd missing good/bad selfcheck audio files
Bill Erickson [Thu, 15 Jan 2015 18:45:41 +0000 (13:45 -0500)]
Add missing good/bad selfcheck audio files

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 track KCLS print notice generator
Bill Erickson [Fri, 16 Jan 2015 16:42:09 +0000 (11:42 -0500)]
JBAS-258 track KCLS print notice generator

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-258 Raise fine generator query timeout
Bill Erickson [Fri, 16 Jan 2015 16:40:49 +0000 (11:40 -0500)]
JBAS-258 Raise fine generator query timeout

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoEDI avoid canceling backorder items (from bradley patch) -- part 2
Bill Erickson [Mon, 15 Dec 2014 18:56:53 +0000 (13:56 -0500)]
EDI avoid canceling backorder items (from bradley patch) -- part 2

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoEDI avoid canceling backorder items (from bradley patch)
Bill Erickson [Thu, 11 Dec 2014 23:10:31 +0000 (18:10 -0500)]
EDI avoid canceling backorder items (from bradley patch)

Quoth Bradley:

I did a quick and dirty hack to the perl file EDI.pm to get around this
temporarily. (version 2.4.5)

Normally, the EDI response read would interpret a 400 response as
back-ordererd and assign a cancel reason(and cancel the line item and
its copies). I just tried changing it to 401 instead, causing a 400 to
be ignored.

If there IS a legitimate 401 returned, that might cause trouble! And, I
don't have a way in the client to see back ordered items, although our
staff has other ways to determine that from the vendors.

snippet changed (400 changed to 401):

if ($stat = $li_hash->{order_status}) { $logger->info("EDI: lineitem has
order status $stat");

    if ($stat eq '200') { $reason_id = 1007; # not
    accepted

    } elsif ($stat eq '401') { $reason_id = 1283; #
    back-order }

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoremove zips.txt, which now lives in config repo
Bill Erickson [Thu, 20 Nov 2014 17:31:32 +0000 (12:31 -0500)]
remove zips.txt, which now lives in config repo

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agocross-porting jbas-149 and jbas-228 SQL for reference
Bill Erickson [Mon, 8 Dec 2014 17:06:27 +0000 (12:06 -0500)]
cross-porting jbas-149 and jbas-228 SQL for reference

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoLP#1380709 fund_debit.invoice_entry INDEX
Bill Erickson [Mon, 8 Dec 2014 15:34:26 +0000 (10:34 -0500)]
LP#1380709 fund_debit.invoice_entry INDEX

Adds index on new acq.fund_debit.invoice_entry column, since fund_debit
can get quite large.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoLP#1380709 Fund debit links to invoice entry
Bill Erickson [Thu, 16 Oct 2014 20:17:16 +0000 (16:17 -0400)]
LP#1380709 Fund debit links to invoice entry

Fund debits created by lineitem_details (copies) now track which invoice
entry last touched the fund debit.  With this, it's possible to say with
certainty which invoice a fund_debit "belongs" to, which is particularly
useful for reporting fund summary information on an invoice.

Note this has no affect fund_debit's linked to invoice_item's, since
they already link to the fund debits.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-408 delete copy maps at fulfillment time
Bill Erickson [Thu, 15 Jan 2015 20:55:39 +0000 (15:55 -0500)]
JBAS-408 delete copy maps at fulfillment time

Revert part of the change introduced by JBAS-149, which caused hold copy
maps to be deleted at capture time instead of fulfillment time.  That
part of the change (which has no real benefit) had unexpected side
effects.  We now return to deleting copy maps at fulfillment time.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoLP#1386347: Clear hold-copy-map efficiently
Mike Rylander [Wed, 29 Oct 2014 14:37:29 +0000 (10:37 -0400)]
LP#1386347: Clear hold-copy-map efficiently

When capturing or canceling a hold, we can clear the hold-copy-map
with a trigger, saving the time of the user, and making the business
logic simpler.

LP#1386347 copy map trigger wants a RETURN

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Conflicts:
Open-ILS/src/sql/Pg/090.schema.action.sql

6 years agoJBAS-149 reduce clear hold shelf chatter
Bill Erickson [Thu, 30 Oct 2014 21:09:04 +0000 (17:09 -0400)]
JBAS-149 reduce clear hold shelf chatter

Change the client notification update batch size from 25 to 50 to reduce
the overall number of update messages sent to the client in half.  This
reduces the likelihood of communication failures between server/XUL for
long running, streaming requests.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

6 years agoStamping upgrade script for pre-calculate-prox-adjustment for backport
Mike Rylander [Sun, 2 Mar 2014 21:32:20 +0000 (16:32 -0500)]
Stamping upgrade script for pre-calculate-prox-adjustment for backport

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Conflicts:
Open-ILS/src/sql/Pg/002.schema.config.sql

Conflicts:
Open-ILS/src/sql/Pg/002.schema.config.sql

6 years agoCalculate proximity in the DB for speed
Mike Rylander [Sun, 2 Mar 2014 21:29:27 +0000 (16:29 -0500)]
Calculate proximity in the DB for speed

We need to calculate and store a (potenially adjusted) proxmity for
each hold and copy for use in targetting and optimization of op
capture.  Before this commit, we do that within the hold target
code itself.  Now we'll do it when the hold-copy map is inserted,
because we have the same information available at that time as we
have in the targeter.  This will both speed up the apparent cost of
the calculation, because it avoids the cost of a network round-trip,
and the total number of SELECTs we must issue, because the proximity
value will now be cached for use by the proximity map function.

Backward compatability is retained for the create_prox_map() function
in case any other code is depending on that.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm

6 years agoJBAS-234 sort patron event rows descending
Bill Erickson [Thu, 23 Oct 2014 16:03:31 +0000 (12:03 -0400)]
JBAS-234 sort patron event rows descending

Due to how the event rows are inserted, the server side "desc" sort
becomes in effect an "asc" sort.  To achieve a final sort of descending,
this patch makes the server-side sort ascending.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
6 years agoJBAS-224 add date limit support to user event log UI
Bill Erickson [Thu, 16 Oct 2014 22:23:14 +0000 (18:23 -0400)]
JBAS-224 add date limit support to user event log UI

Backporting support for the library setting
'circ.staff.max_visible_event_age' to limit the number of events
displayed in the patron event log interface by date.

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