evergreen/equinox.git
13 years agoURLVerify.pm; response throttling repairs url_verify
Bill Erickson [Fri, 31 Aug 2012 13:59:58 +0000 (09:59 -0400)]
URLVerify.pm; response throttling repairs

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoNew container type for url verification sessions
Mike Rylander [Tue, 14 Aug 2012 19:08:40 +0000 (15:08 -0400)]
New container type for url verification sessions

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoFunction for ingesting URLs from container item + session
Mike Rylander [Mon, 13 Aug 2012 20:10:38 +0000 (16:10 -0400)]
Function for ingesting URLs from container item + session

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoURLVerify.pm; docs; tested redirect max/loops and repairs
Bill Erickson [Fri, 10 Aug 2012 13:35:02 +0000 (09:35 -0400)]
URLVerify.pm; docs; tested redirect max/loops and repairs

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; docs; url domain looping; cleanup
Bill Erickson [Fri, 10 Aug 2012 13:10:52 +0000 (09:10 -0400)]
URLVerify.pm; docs; url domain looping; cleanup

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; docs; url shuffling
Bill Erickson [Thu, 9 Aug 2012 20:42:20 +0000 (16:42 -0400)]
URLVerify.pm; docs; url shuffling

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; docs; url shuffling
Bill Erickson [Thu, 9 Aug 2012 20:42:02 +0000 (16:42 -0400)]
URLVerify.pm; docs; url shuffling

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; avoid re-processing same url repairs; honor delay=0
Bill Erickson [Thu, 9 Aug 2012 20:06:34 +0000 (16:06 -0400)]
URLVerify.pm; avoid re-processing same url repairs; honor delay=0

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; avoid re-processing same url within the same attempt (thinko)
Bill Erickson [Thu, 9 Aug 2012 19:40:15 +0000 (15:40 -0400)]
URLVerify.pm; avoid re-processing same url within the same attempt (thinko)

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; avoid re-processing same url within the same attempt
Bill Erickson [Thu, 9 Aug 2012 18:58:41 +0000 (14:58 -0400)]
URLVerify.pm; avoid re-processing same url within the same attempt

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; apply timeout to lwp useragent; comments
Bill Erickson [Thu, 9 Aug 2012 16:57:32 +0000 (12:57 -0400)]
URLVerify.pm; apply timeout to lwp useragent; comments

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoMerge branch 'url_verify' of git.evergreen-ils.org:evergreen/equinox into url_verify
Bill Erickson [Thu, 9 Aug 2012 16:53:33 +0000 (12:53 -0400)]
Merge branch 'url_verify' of git.evergreen-ils.org:evergreen/equinox into url_verify

13 years agoURLVerify.pm; move to lwp to support ftp and simplify
Bill Erickson [Thu, 9 Aug 2012 16:53:02 +0000 (12:53 -0400)]
URLVerify.pm; move to lwp to support ftp and simplify

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoDo the same thing I did to fix constrain names in upgr scripts to baseline
Lebbeous Fogle-Weekley [Thu, 9 Aug 2012 15:36:35 +0000 (11:36 -0400)]
Do the same thing I did to fix constrain names in upgr scripts to baseline

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agourl_verify schema repair / res-code constraint
Bill Erickson [Thu, 9 Aug 2012 15:34:14 +0000 (11:34 -0400)]
url_verify schema repair / res-code constraint

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agourl_verify seed data / sql manifest
Bill Erickson [Thu, 9 Aug 2012 14:51:52 +0000 (10:51 -0400)]
url_verify seed data / sql manifest

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agourl verify seed data repairs
Bill Erickson [Thu, 9 Aug 2012 14:34:34 +0000 (10:34 -0400)]
url verify seed data repairs

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; settings, tmp caching, cleanup / misc
Bill Erickson [Thu, 9 Aug 2012 14:26:02 +0000 (10:26 -0400)]
URLVerify.pm; settings, tmp caching, cleanup / misc

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agourl verify seed data / null constraint repairs
Bill Erickson [Thu, 9 Aug 2012 14:25:28 +0000 (10:25 -0400)]
url verify seed data / null constraint repairs

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agourl_verify seed data (trigger)
Bill Erickson [Thu, 9 Aug 2012 14:23:27 +0000 (10:23 -0400)]
url_verify seed data (trigger)

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agourl_verify perm/org setting seed data
Bill Erickson [Thu, 9 Aug 2012 13:38:33 +0000 (09:38 -0400)]
url_verify perm/org setting seed data

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agourl_verify perm/org setting seed data
Bill Erickson [Thu, 9 Aug 2012 13:27:00 +0000 (09:27 -0400)]
url_verify perm/org setting seed data

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agourl_verify perm/org setting seed data
Bill Erickson [Thu, 9 Aug 2012 13:21:07 +0000 (09:21 -0400)]
url_verify perm/org setting seed data

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; redirects / error handling
Bill Erickson [Wed, 8 Aug 2012 19:38:39 +0000 (15:38 -0400)]
URLVerify.pm; redirects / error handling

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; more testing tweaks
Bill Erickson [Wed, 8 Aug 2012 19:11:19 +0000 (15:11 -0400)]
URLVerify.pm; more testing tweaks

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoMove Fieldmapper API call to Application.pm
Bill Erickson [Wed, 8 Aug 2012 18:26:31 +0000 (14:26 -0400)]
Move Fieldmapper API call to Application.pm

Move export of opensrf.open-ils.system.fieldmapper API call from
Fieldmapper.pm into Application.pm with the rest of the shared API
calls.  This allows us to remove the OpenSRF::Application base from
Fieldmapper, which was causing some method name collisions.  For
example, if a Fieldmapper object had a field called "session", which,
incidentally, is also a method of OpenSRF::Application, the version
from OpenSRF::Application would get called instead of the Fieldmapper
version, since Fieldmapper methods are defined during AUTOLOAD.
Hilarity was guaranteed to ensue.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; initial testing tweaks
Bill Erickson [Wed, 8 Aug 2012 18:15:25 +0000 (14:15 -0400)]
URLVerify.pm; initial testing tweaks

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; resume options; docs
Bill Erickson [Wed, 8 Aug 2012 16:25:27 +0000 (12:25 -0400)]
URLVerify.pm; resume options; docs

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoLiberalize res_code constraint
Lebbeous Fogle-Weekley [Wed, 8 Aug 2012 15:56:54 +0000 (11:56 -0400)]
Liberalize res_code constraint

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoConstraints need unique names
Lebbeous Fogle-Weekley [Wed, 8 Aug 2012 15:54:21 +0000 (11:54 -0400)]
Constraints need unique names

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoURLVerify.pm; docs / cleanup
Bill Erickson [Wed, 8 Aug 2012 14:29:06 +0000 (10:29 -0400)]
URLVerify.pm; docs / cleanup

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm; firing batch url verify calls
Bill Erickson [Wed, 8 Aug 2012 14:05:35 +0000 (10:05 -0400)]
URLVerify.pm; firing batch url verify calls

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoURLVerify.pm getting started
Bill Erickson [Tue, 7 Aug 2012 20:27:57 +0000 (16:27 -0400)]
URLVerify.pm getting started

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoAdded is_event check to AppUtils
Bill Erickson [Tue, 7 Aug 2012 20:28:33 +0000 (16:28 -0400)]
Added is_event check to AppUtils

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoAdd ON INSERT trigger to parse the URL as it is added
Mike Rylander [Wed, 8 Aug 2012 15:42:41 +0000 (11:42 -0400)]
Add ON INSERT trigger to parse the URL as it is added

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAdd Rose::URI to the CPAN_MODULES list
Mike Rylander [Tue, 7 Aug 2012 16:25:21 +0000 (12:25 -0400)]
Add Rose::URI to the CPAN_MODULES list

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoStart building URL-Validation related funcitons
Mike Rylander [Tue, 7 Aug 2012 13:15:25 +0000 (09:15 -0400)]
Start building URL-Validation related funcitons

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoSchema and IDL changes for URL Verification functionality
Mike Rylander [Mon, 6 Aug 2012 19:51:04 +0000 (15:51 -0400)]
Schema and IDL changes for URL Verification functionality

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoDocumentation: Remove a space causing an error during PDF processing.
Robert Soulliere [Wed, 8 Aug 2012 14:45:33 +0000 (10:45 -0400)]
Documentation: Remove a space causing an error during PDF processing.

Signed-off-by: Robert Soulliere <robert.soulliere@mohawkcollege.ca>
13 years agoTPAC: Remove explicit width on "View my list" button
Dan Scott [Sat, 4 Aug 2012 15:24:15 +0000 (11:24 -0400)]
TPAC: Remove explicit width on "View my list" button

.cached_list_div, which defines the style for the "View my list" button
on the TPAC button bar once an item has been added to a temporary list,
is given an explicit width of 111px, which is problematic for a number
of reasons:

1. If the font-size of the base style is increased, then the text will
   likely wrap.
2. Translations tend to be longer than English, and indeed in fr-CA
   "Afficher ma liste" ends up wrapping onto a second line, which makes
   the button bar look weird.

Accordingly, remove the explicit "width:111px" from the style definition
for .cached_list_div.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
13 years agoRemove extra xulG redefines
Thomas Berezansky [Tue, 7 Aug 2012 18:29:37 +0000 (14:29 -0400)]
Remove extra xulG redefines

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoFix timestamp typo
Thomas Berezansky [Tue, 7 Aug 2012 18:19:56 +0000 (14:19 -0400)]
Fix timestamp typo

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoRedirect to OILS in staff client
Thomas Berezansky [Mon, 6 Aug 2012 16:48:19 +0000 (12:48 -0400)]
Redirect to OILS in staff client

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoAdd dependencies for Fedora
Dan Scott [Fri, 3 Aug 2012 14:59:33 +0000 (10:59 -0400)]
Add dependencies for Fedora

Noted by Net Wolf on the mailing list, some core dependencies were
missing from the Fedora Makefile.install installer. As some of them have
recently been packaged for Fedora 17, add them to the package
collection; others are still unpackaged, so leave them there.

Note: the packages are not available on Fedora 16, but that has a
limited remaining shelf life anyway, so consider this a shift to
supporting only the latest stable version of Fedora.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoImport updated translations from Launchpad; stage 2
Bill Erickson [Fri, 3 Aug 2012 14:02:29 +0000 (10:02 -0400)]
Import updated translations from Launchpad; stage 2

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoImport updated translations from Launchpad; stage 1
Bill Erickson [Fri, 3 Aug 2012 14:00:54 +0000 (10:00 -0400)]
Import updated translations from Launchpad; stage 1

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoInitial cut of 2.3 release notes.
Bill Erickson [Thu, 2 Aug 2012 16:12:49 +0000 (12:12 -0400)]
Initial cut of 2.3 release notes.

Basically, the contents of RELEASE_NOTES_NEXT organized into
RELEASE_NOTES_2_3.txt and removed from RELEASE_NOTE_NEXT.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAdd simple README to RELEASE_NOTE_NEXT
Bill Erickson [Thu, 2 Aug 2012 16:09:42 +0000 (12:09 -0400)]
Add simple README to RELEASE_NOTE_NEXT

Without something in the directory, it will dissappear each time we
create release notes from the contents and delete them, since Git
removes empty directories.  That would likely just lead to confusion.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoDocumentation: adjust documentation for 2_3 release.
Robert Soulliere [Fri, 3 Aug 2012 13:21:18 +0000 (09:21 -0400)]
Documentation: adjust documentation for 2_3 release.

Comment out chapters in root.txt except for basic documentation.
Update upgrade instructions for the 2.3 alpha2 release.

Signed-off-by: Robert Soulliere <robert.soulliere@mohawkcollege.ca>
13 years agoAdd basic release notes for 2.2.1. Not as thorough as notes at major release.
Lebbeous Fogle-Weekley [Fri, 3 Aug 2012 01:37:10 +0000 (21:37 -0400)]
Add basic release notes for 2.2.1.  Not as thorough as notes at major release.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoRepairing upgrade stamp number
Bill Erickson [Thu, 2 Aug 2012 15:35:05 +0000 (11:35 -0400)]
Repairing upgrade stamp number

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoDocumentation: Add Staff account management chapter.
Robert Soulliere [Thu, 2 Aug 2012 14:34:44 +0000 (10:34 -0400)]
Documentation: Add Staff account management chapter.

Converted from 1.6 documentation. Reviewed by Jennifer Turner.

Signed-off-by: Robert Soulliere <robert.soulliere@mohawkcollege.ca>
13 years agoFix up whitespace in a couple of SIP modules
Dan Scott [Thu, 2 Aug 2012 03:05:58 +0000 (23:05 -0400)]
Fix up whitespace in a couple of SIP modules

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoAdd SIP support for Fine Items field
Jeff Godin [Tue, 19 Jun 2012 19:31:08 +0000 (15:31 -0400)]
Add SIP support for Fine Items field

Add support for SIP Fine Items, msg 64 field AV.

Display outstanding balance, last_billing_type, and a description.

For circulation xacts, description is title / author from MODS.

For grocery xacts, description is last_billing_note.

Wishlist LP 1012328

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoPass authtoken to OpenILS::SIP::Patron objects
Jeff Godin [Tue, 19 Jun 2012 19:10:07 +0000 (15:10 -0400)]
Pass authtoken to OpenILS::SIP::Patron objects

To support retrieval of billing details, OpenILS::SIP::Patron
objects need an auth token.

Teach OpenILS::SIP->find_patron to pass patron objects an auth
token, and also move existing "find patron by what key: barcode or
database id?" logic into find_patron (and out of
OpenILS::SIP::Patron->new).

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoWrap upgrade script for search filter group admin UI
Dan Scott [Wed, 1 Aug 2012 21:33:48 +0000 (17:33 -0400)]
Wrap upgrade script for search filter group admin UI

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoSearch filter group doc repair
Bill Erickson [Wed, 25 Jul 2012 13:43:43 +0000 (09:43 -0400)]
Search filter group doc repair

Change the example in the docs to have correct syntax:

filter_group=reading_level becomes filter_group='reading_level'

Thanks to kmlussier for pointing this out.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoAdd missing search filter group view/admin perm
Bill Erickson [Thu, 31 May 2012 14:06:17 +0000 (10:06 -0400)]
Add missing search filter group view/admin perm

ADMIN_SEARCH_FILTER_GROUP
VIEW_SEARCH_FILTER_GROUP

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoSearch filter groups release notes
Bill Erickson [Thu, 31 May 2012 13:27:40 +0000 (09:27 -0400)]
Search filter groups release notes

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoSearch filter groups admin UI staff menu entry
Bill Erickson [Thu, 31 May 2012 13:37:58 +0000 (09:37 -0400)]
Search filter groups admin UI staff menu entry

Admin -> Local Administration -> Search Filter Groups

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoSearch filter groups admin UI / API
Bill Erickson [Fri, 25 May 2012 13:22:36 +0000 (09:22 -0400)]
Search filter groups admin UI / API

UI for managing search filter groups and group entries.

This inclues a new API call for performing CRUD actions on filter
group entries:

open-ils.actor.filter_group_entry.crud

This new API call was necessary because entries link to
actor.search_query's, whose write access cannot be controled by pcrud.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoAdd WEBDIR to Open-ILS/xul/staff_client/Makefile.am.
Jason Stephenson [Wed, 25 Apr 2012 19:06:38 +0000 (15:06 -0400)]
Add WEBDIR to Open-ILS/xul/staff_client/Makefile.am.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoFix place hold hiding logic
Thomas Berezansky [Wed, 1 Aug 2012 20:40:51 +0000 (16:40 -0400)]
Fix place hold hiding logic

Always show the place hold link for staff with permission to place holds
that won't fill currently.

Otherwise, only show the link if:
There are holdable copies
AND
We aren't blocking OR there are no available copies

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTPAC: Wrap "holdable copies" upgrade script
Dan Scott [Wed, 1 Aug 2012 20:54:32 +0000 (16:54 -0400)]
TPAC: Wrap "holdable copies" upgrade script

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoBlock "Place Hold" link in TPAC if item is available
Art Rhyno [Fri, 27 Jul 2012 15:39:14 +0000 (11:39 -0400)]
Block "Place Hold" link in TPAC if item is available

Suppress the display of the "Place Hold" link based on whether an item
is available. This is set as a preference in config.tt2. Some sites
may want the ability to place holds regardless of availability.

Signed-off-by: Art Rhyno <art632000@yahoo.ca>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTPac: Hide place hold links when not holdable
Thomas Berezansky [Wed, 18 Apr 2012 21:03:05 +0000 (17:03 -0400)]
TPac: Hide place hold links when not holdable

The only check done is on the holdable flags:
Copy
Status
Location

Hold rules themselves are not checked.

Note that place hold links are shown either way when you can have the
PLACE_UNFILLABLE_HOLD permission and are logged into the staff client.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoOperator Change Fun
Thomas Berezansky [Thu, 12 Apr 2012 14:23:12 +0000 (10:23 -0400)]
Operator Change Fun

Allow for temporary, staff, and permanent operator changes.

Temporary uses a temp authtoken for a few minute timeout.

Staff uses a normal staff login authtoken for a multi-hour timeout.

Permanent is a staff change that disregards the previous login instead of
allowing it to be recovered by using the menu item again.

I also fixed things up so later timeouts can re-use the previous duration
and fixed up some title bar issues:

1 - Login screen shows version again (needed a document in the title set)
2 - Menu windows don't forget the server name
3 - Menu windows keep the same number for their lifetime

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoRip modal_xulG_stack out, replace with openDialog
Thomas Berezansky [Wed, 11 Apr 2012 23:53:48 +0000 (19:53 -0400)]
Rip modal_xulG_stack out, replace with openDialog

This converts the util/window.js open function to a wrapper around the
openDialog function and passes xulG in that way, as well as teaches
global_util.js to look for it having been passed in via the arguments
parameter on window.

The non-modal "push it into place" is still done as well, in case some
window isn't using global_util.js and needs xulG.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoStamping upgrade script for JEDI with Copies
Mike Rylander [Wed, 1 Aug 2012 19:17:59 +0000 (15:17 -0400)]
Stamping upgrade script for JEDI with Copies

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoEDI ORDER template, now with copies
Bill Erickson [Fri, 27 Jul 2012 16:11:23 +0000 (12:11 -0400)]
EDI ORDER template, now with copies

Adds a new "copies" structure to the stock JEDI ORDER template.  Copies
are ultimately mapped into one or more GIR segments in the outbound EDI.
This commit only adds the change to the stock template (seed data).  It
also adds entries to the environment for the stock template and existing
template 23 via upgrade script (to expedite local template editing).

With the current template, GIR segments look like so:

GIR+001+8:LCO+TESTFUND2:LFN+SYS1-BR1:LLO+FIC ROW 456:LSM+Stacks:LSQ'
GIR+002+9:LCO+TESTFUND2:LFN+SYS1-BR1:LLO+FIC ROW 456:LSM+Stacks:LSQ'
GIR+003+10:LCO+TESTFUND2:LFN+SYS1-BR1:LLO+FIC ROW 456:LSM+Stacks:LSQ'
GIR+004+11:LCO+TESTFUND2:LFN+SYS1-BR1:LLO+FIC ROW 456:LSM+Stacks:LSQ'
GIR+005+12:LCO+TESTFUND2:LFN+SYS1-BR1:LLO+FIC ROW 456:LSM+Stacks:LSQ'
GIR+006+13:LCO+TESTFUND2:LFN+SYS1-BR2:LLO+FIC ROW 456:LSM+Young Adult:LSQ'
GIR+007+14:LCO+TESTFUND2:LFN+SYS1-BR2:LLO+FIC ROW 456:LSM+Young Adult:LSQ'
GIR+008+15:LCO+TESTFUND2:LFN+SYS1-BR2:LLO+FIC ROW 456:LSM+Young Adult:LSQ'

LQT / quantity is also supported.

The current implementation is meant to cover all possible fields so that
users can remove/alter items on a vendor by vendor basis as needed.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAdded debug-only option to edi_pusher.pl
Bill Erickson [Fri, 27 Jul 2012 15:11:25 +0000 (11:11 -0400)]
Added debug-only option to edi_pusher.pl

Option causes the final EDI to be printed to STDOUT, but does not
populate any data in the DB nor does it FTP the file to the vendor.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoFeed JEDI to the EDI translator to get EDI, and vice versa.
Lebbeous Fogle-Weekley [Thu, 26 Jul 2012 14:17:06 +0000 (10:17 -0400)]
Feed JEDI to the EDI translator to get EDI, and vice versa.

Run this script as the opensrf user.

INPUT_IS_EDI=1 perl test_edi_translator.pl < blob.edi

-or-

perl test_edi_translator.pl < blob.jedi

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoWhitespace fixes in Collections.pm
Lebbeous Fogle-Weekley [Wed, 1 Aug 2012 18:51:39 +0000 (14:51 -0400)]
Whitespace fixes in Collections.pm

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoCollections user balance API / batch file output
Bill Erickson [Thu, 12 Apr 2012 15:44:44 +0000 (11:44 -0400)]
Collections user balance API / batch file output

New API open-ils.collections.user_balance_summary.generate,
which generates summary information on patron balance owed for all open
transactions that occurred at the requested location.  Optional flag
supports including per-xact summary information as well.  The summary
information is written to an XML file and placed in a protected, shared
web directory for download after the file has been generated.

During creation, the output file will have a .tmp suffix, allowing
clients to poll for file completion.

Includes a new opensrf.xml app_setting for open-ils.collections to
specifiy the batch file directory as well as a sample Apache config in
eg_vhost.conf

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoFieldmapper toXML repairs and additions
Bill Erickson [Thu, 12 Apr 2012 15:07:10 +0000 (11:07 -0400)]
Fieldmapper toXML repairs and additions

1. Be sure the append the current element to the document in progress

2. Use the class hint instead of the fully qualified class_name (e.g.
Fielmapper::actor::user) to avoid XML errors:

namespace error : Failed to parse QName 'Fieldmapper:'

3. Added support for additional options including "no_virt" which tells
the routine to skip all virtual fields and "skip_fields" to support
leaving specific fields out of the output.  The main use case for skip
fields is au => ['passwd'], but other examples might include large
fields like bre => ['marc'].

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoTeach Fieldmapper how to turn FM objects into simple XML
Mike Rylander [Tue, 10 Apr 2012 20:28:40 +0000 (16:28 -0400)]
Teach Fieldmapper how to turn FM objects into simple XML

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoStamping upgrade script 0732
Lebbeous Fogle-Weekley [Wed, 1 Aug 2012 18:30:07 +0000 (14:30 -0400)]
Stamping upgrade script 0732

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoACQ unified search submit on enter (for real)
Bill Erickson [Wed, 1 Aug 2012 17:54:00 +0000 (13:54 -0400)]
ACQ unified search submit on enter (for real)

This replaces the old-style submit on enter handler which was based
attaching key handlers to the dijit domNode, which does not work for
filtering selects (i.e. more complicated dijits) w/ the dijit-sanctioned
dojo.connect(..., 'onkeyup', ...), which works regardless.  This also
covers more form input elements which were overlooked with the original
submit-on-enter code.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoACQ invoice formatting improvements
Bill Erickson [Thu, 12 Jul 2012 19:26:50 +0000 (15:26 -0400)]
ACQ invoice formatting improvements

Prevent # invoiced and # paid inputs from wrapping.  Also, make the text
boxes a little smaller to reduce horizontal space requirements.  It's
still possible to enter any value, but only the 4 least significant
digits are visible.  Since it's not common to invoice 10k+ copies of the
same item, this seems like a fair trade off.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoACQ invoice inline lineitem search and add
Bill Erickson [Tue, 10 Jul 2012 15:07:53 +0000 (11:07 -0400)]
ACQ invoice inline lineitem search and add

The Invoice UI is how composed of two tabs, the main invoice tab and a new
Search tab.  The search tab consists of a subset of the Acquisitions unified
search interface.  The goal is to allow users to search for lineitems to
invoice.  Search results may be added directly to the growing invoice.  A
number of small usability features are included.

Features
~~~~~~~~

    * Option (default) to limit searches to invoiceable items.
        ** These are lineitems that are not cancelled, have at least one
           invoiceable copy, linked to a PO whose provider matches that of the
           current invoice, and are not already linked to the current invoice.

    * Search defaults to last-run search (on workstation).
    * New Lineitem Detail filter options
    * Sort searches by lineitem number (default) and title.
    * There is a new Expected Cost field which includes both the total invoiced
      cost plus the anticipated cost of lineitems as they are added.
    * New Price per Copy field
    * Lineitem count field
    * Show / Hide Invoice details button.  Details are displayed by default, but
      hidden when the user enters the search tab.  From there it remains hidden
      until manually shown (or a new invoice is opened).
    * A new "Save & Clear" button which saves the current invoice then clears
      the invoice display to create a new invoice.
    * Provider, shipper, and receiver fields are auto-populated from the
      first-added invoice data (when not already set).
    * Totals are now read-only, since they are derived from existing data (and
      are informational only).

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoEditPane setFieldValue method
Bill Erickson [Fri, 20 Jul 2012 17:53:35 +0000 (13:53 -0400)]
EditPane setFieldValue method

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoEditPane.js API repairs
Bill Erickson [Fri, 20 Jul 2012 15:15:25 +0000 (11:15 -0400)]
EditPane.js API repairs

By default, don't throw an exception from EditPane.getFieldValue when a
field is required and the value is null.  Otherwise, external code is
unable to use this method for inspecting the pane.  Make checkRequired
an additional method flag.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoACQ lineitem summary moved to real DB view
Bill Erickson [Fri, 20 Jul 2012 14:25:39 +0000 (10:25 -0400)]
ACQ lineitem summary moved to real DB view

This is allows us to create new IDL views based on the lineitem summary.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoEDI Invoicing
Lebbeous Fogle-Weekley [Tue, 17 Jul 2012 21:59:23 +0000 (17:59 -0400)]
EDI Invoicing

Includes patch for edi4r to make invoice parsing possible.

Also adds OpenILS::Utils::LooseEDI module.  This doesn't try to do the
validation and other helpful things that Business::EDI aims to do, but it
does let us get up and running relatively quickly at getting data from EDI
invoices if we know what we're looking for.

[Amended to add bits about tax, plus release note blurb.]

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoVandelay Copy Overlay support
Bill Erickson [Fri, 27 Jul 2012 20:11:54 +0000 (16:11 -0400)]
Vandelay Copy Overlay support

Vandelay Item Attributes (Cataloging -> MARC Import /
Export -> Import Item Attribute Definitions) contains
a new field called "Overlay Match ID".  The presence of data
in this field extracted from an import-item copy indicates
to the Vandelay import process that a copy overlay is requested
instead of new copy creation.  The value for the field is the
copy id for bib record queues and the ACQ lineitem_detail ID for
Acquisitions Queues.  For either type of queue, however, overlay
occurs against a real copy (asset.copy).  In the ACQ queue case,
we use the lineitem_detail ID because this is the data ACQ
providers and sub-systems will have access to.

When a match point ID value is a set and a matching copy is found,
the values extracted from the inbound copy data are used to replace
values on the existing found copy, including the call-number label.
Any fields on the inbound copy that are empty are ignored.

One use case for this feature are shelf-ready items produced by a
3rd-party (e.g. ACQ provider) and delivered to the library via MARC
file for upload.  The file might contain improved MARC bibliographic
data as well as real barcodes (i.e. not temporary ACQ generated
barcodes) for the copies already purchased through the vendor.

Permission
~~~~~~~~~

This adds a new permission called IMPORT_OVERLAY_COPY which is
required to perform the copy overlay step.

Regardless of permission, it is not possible to overlay values on
a copy unless the imported bib record links (creates/overlays/merges)
to/with the owning bib record for the copy to be overlaid.  This is
both for security and removal of a potent foot-gun.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoStamping Encumbrance-only rollover DB upgrade
Bill Erickson [Tue, 31 Jul 2012 13:14:40 +0000 (09:14 -0400)]
Stamping Encumbrance-only rollover DB upgrade

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoFinishing off rollover-without-money feature
Lebbeous Fogle-Weekley [Fri, 27 Jul 2012 17:32:12 +0000 (13:32 -0400)]
Finishing off rollover-without-money feature

- Minor correction to make stock schema match upgrade script match.
- OU setting determining whether to offer rollover-without-money in UI
   and allow it in DB.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoAllow propagation of encumbrances without funds
Mike Rylander [Thu, 26 Jul 2012 13:35:01 +0000 (09:35 -0400)]
Allow propagation of encumbrances without funds

Some libraries must return all unspent money to some funding agencies at the
end of the year.  To support this, we give the year-end close-out operation
the ability to dump the money from rollover-enabled funds into the void. Funds
are still created for the next year, and encumbrances are moved to theses
analogous funds.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoSupport SIP payment type 02 - credit card
Jeff Godin [Tue, 19 Jun 2012 16:31:03 +0000 (12:31 -0400)]
Support SIP payment type 02 - credit card

Record SIP payments with payment type 02 as credit_card_payment in
Evergreen.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoFix LP 829630, Show in Catalogue not working on Bills screen
Steven Chan [Sun, 8 Jul 2012 18:20:11 +0000 (11:20 -0700)]
Fix LP 829630, Show in Catalogue not working on Bills screen

The page is looking for a messagecatalog XUL element with id
'catStrings', but is not finding it, and so we add it to the relevant
XUL file.

It's odd why it is omitted, because a browse through the repository
doesn't show any changes that would explain the error.

Signed-off-by: James Fournie <jfournie@sitka.bclibraries.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoUse bash and the postgres built-in array_agg
Mike Rylander [Thu, 14 Jun 2012 11:34:12 +0000 (07:34 -0400)]
Use bash and the postgres built-in array_agg

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoWrap upgrade script for TPAC advanced search VR formats
Dan Scott [Mon, 30 Jul 2012 20:24:45 +0000 (16:24 -0400)]
Wrap upgrade script for TPAC advanced search VR formats

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTPac: Advanced Search Config
Thomas Berezansky [Fri, 13 Apr 2012 21:24:43 +0000 (17:24 -0400)]
TPac: Advanced Search Config

Move advanced search limiter config to config.tt2.

This should, in theory, make it much easier to customize the fields shown
for searching in TPac.

Also adds the VR Format Coded Value Maps so that we can populate that
limiter with them.

And removes dojo.css from being loaded - That includes reset stuff that
messes with our CSS but doesn't seem to give us any benefit.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTPAC: Address remaining colors and background URL image
Dan Scott [Mon, 30 Jul 2012 03:19:21 +0000 (23:19 -0400)]
TPAC: Address remaining colors and background URL image

Thanks to Thomas Berezansky for finding these remaining hard-coded CSS
colors, and raising a question about one of the background images that
turns out to not currently being in use.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoTPAC CSS: catch new colours added to master recently
Dan Scott [Sun, 29 Jul 2012 04:31:14 +0000 (00:31 -0400)]
TPAC CSS: catch new colours added to master recently

A few new colours were added to the CSS with recent features; roll them
into the CSS templates for good measure.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoTPAC CSS: Whitespace consistency
Dan Scott [Sun, 29 Jul 2012 04:19:30 +0000 (00:19 -0400)]
TPAC CSS: Whitespace consistency

Resolve the spaces and tabs quandary.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoTPAC CSS: Remove unused classes and associated images
Dan Scott [Sun, 29 Jul 2012 04:15:07 +0000 (00:15 -0400)]
TPAC CSS: Remove unused classes and associated images

Combing through the remaining url() usages in the TPAC CSS, it seems
that most of the usages are unreferenced in the actual TPAC. Therefore,
delete the cruft.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoTemplatize TPAC styles
Dan Scott [Thu, 26 Jul 2012 21:39:06 +0000 (17:39 -0400)]
Templatize TPAC styles

Begin by gathering the colors together in one consistent file, such that
skinning for the purposes of color only needs to touch one small file.
Also, it should make things easier for designers to reduce drastically
the number of colors that are actually used in the design.

Also, enable TT to handle the CSS files in Apache configuration.

Also, convert the login background image into a simple gradient.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoNew XUL user perm editor
Thomas Berezansky [Sun, 29 Jul 2012 16:49:20 +0000 (12:49 -0400)]
New XUL user perm editor

The xhtml one doesn't work in newer xulrunners.

Also, as the same issue breaks the pre-2.0 user editor I have removed it
outright, including taking a stab at removing old language strings.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoMerge branch 'master' of git.evergreen-ils.org:Evergreen
Mike Rylander [Mon, 30 Jul 2012 19:08:47 +0000 (15:08 -0400)]
Merge branch 'master' of git.evergreen-ils.org:Evergreen

Appologies for the merge commit noise...

Signed-off-by: Mike Rylander <mrylander@gmail.com>