working/Evergreen.git
11 years agoweb staff: after-action report, cont.
Bill Erickson [Wed, 18 Dec 2013 16:36:19 +0000 (11:36 -0500)]
web staff: after-action report, cont.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff: after-action report, cont.
Bill Erickson [Wed, 18 Dec 2013 16:13:55 +0000 (11:13 -0500)]
web staff: after-action report, cont.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff: initial after-action report
Bill Erickson [Tue, 17 Dec 2013 21:00:36 +0000 (16:00 -0500)]
web staff: initial after-action report

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff: FF autofil login form support
Bill Erickson [Tue, 17 Dec 2013 17:48:08 +0000 (12:48 -0500)]
web staff: FF autofil login form support

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff : lower breakpoint size of CSS grids
Bill Erickson [Tue, 17 Dec 2013 15:47:25 +0000 (10:47 -0500)]
web staff : lower breakpoint size of CSS grids

Replace use of col-lg-* with col-md-*.  This prevents the UI from
switching into "mobile" layout too aggressively.  We may even want
to consider col-sm-* instead, since col-xs is still available for the
smallest screens (phones, etc.).

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff : remove debug line
Bill Erickson [Tue, 17 Dec 2013 15:26:36 +0000 (10:26 -0500)]
web staff : remove debug line

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff; more css repairs
Bill Erickson [Mon, 16 Dec 2013 18:04:04 +0000 (13:04 -0500)]
web staff; more css repairs

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff: log minification
Bill Erickson [Mon, 16 Dec 2013 16:51:35 +0000 (11:51 -0500)]
web staff: log minification

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff: separate circ/patron.css file
Bill Erickson [Mon, 16 Dec 2013 15:54:59 +0000 (10:54 -0500)]
web staff: separate circ/patron.css file

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff : cleanup
Bill Erickson [Mon, 16 Dec 2013 15:18:15 +0000 (10:18 -0500)]
web staff : cleanup

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff : show no-items message on empty holds/items-out tables
Bill Erickson [Mon, 16 Dec 2013 15:02:58 +0000 (10:02 -0500)]
web staff : show no-items message on empty holds/items-out tables

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff : record bucket; bibs link to catalog
Bill Erickson [Mon, 16 Dec 2013 14:28:45 +0000 (09:28 -0500)]
web staff : record bucket; bibs link to catalog

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoMerge branch 'master' of git.evergreen-ils.org:Evergreen into web-staff-proto
Bill Erickson [Mon, 16 Dec 2013 14:14:12 +0000 (09:14 -0500)]
Merge branch 'master' of git.evergreen-ils.org:Evergreen into web-staff-proto

11 years agoweb staff: noncat checkouts
Bill Erickson [Fri, 13 Dec 2013 22:16:06 +0000 (17:16 -0500)]
web staff: noncat checkouts

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoDocumentation for 2.5
Angela Kilsdonk [Fri, 13 Dec 2013 21:30:51 +0000 (16:30 -0500)]
Documentation for 2.5

asciidoc fix

Signed-off-by: Angela Kilsdonk <akilsdonk@esilibrary.com>
11 years agoRevive and update Action Triggers docs for 2.5
Remington Steed [Wed, 20 Nov 2013 14:40:10 +0000 (09:40 -0500)]
Revive and update Action Triggers docs for 2.5

This commit revives the missing Action Triggers docs section, last seen
in the 2.0 version of the docs. Also, several small corrections and
wording edits were made, as well as a few actual feature changes since
version 2.0.  The most explicit of these feature changes is the addition
of a basic description for a new Event Definition field in 2.5: "Event
Repeatability Delay".

Signed-off-by: Remington Steed <rjs7@calvin.edu>
11 years agoweb staff: checkout form; make style consistent
Bill Erickson [Fri, 13 Dec 2013 18:09:01 +0000 (13:09 -0500)]
web staff: checkout form; make style consistent

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff : load js within body, not after; bump verions.
Bill Erickson [Fri, 13 Dec 2013 16:04:16 +0000 (11:04 -0500)]
web staff : load js within body, not after; bump verions.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff: log - unit tests
Bill Erickson [Fri, 13 Dec 2013 15:22:25 +0000 (10:22 -0500)]
web staff: log - unit tests

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff: unit test structure; sample tests
Bill Erickson [Thu, 12 Dec 2013 18:21:53 +0000 (13:21 -0500)]
web staff: unit test structure; sample tests

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoFix LP1180140, View Holds not working for a serial with subscription and no issuances
Steven Chan [Wed, 15 May 2013 21:30:15 +0000 (14:30 -0700)]
Fix LP1180140, View Holds not working for a serial with subscription and no issuances

A request is made to
open-ils.circ.holds.retrieve_all_from_title,
which is the function Circ/Holds.pm/all_rec_holds().

In the function, when checking for issuance holds, there is a missing @
to dereference the list of issuance IDs, so that the ahr table is search
with badly formed input, which results in returning an undefined list
instead of an empty list.  The error will occur for any record with a
serial.subscription entry but with no related entries in
serial.issuance.

We also recode the initialization of the response object in order to
clarify its expected structure, a hash of array references.

Signed-off-by: Steven Chan <schan@sitka.bclibraries.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoweb staff: recover patron summary groups; more pronounced alt rows
Bill Erickson [Thu, 12 Dec 2013 17:00:46 +0000 (12:00 -0500)]
web staff: recover patron summary groups; more pronounced alt rows

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff : egweb stop-at-index supports /-ended paths
Bill Erickson [Thu, 12 Dec 2013 16:48:39 +0000 (11:48 -0500)]
web staff : egweb stop-at-index supports /-ended paths

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb log : more apache config improvements
Bill Erickson [Thu, 12 Dec 2013 14:24:11 +0000 (09:24 -0500)]
web log : more apache config improvements

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb staff : dynamic apache index delivery
Bill Erickson [Thu, 12 Dec 2013 14:17:06 +0000 (09:17 -0500)]
web staff : dynamic apache index delivery

Generic apache config wasn't working, since different apps create
arbitrarily nested URL parameters, which means each app would need its
own Apache rewrite configuration to sort them all out.

This creates a new OILSWebStopAtIndex EGWeb.pm option which tells the
code to check for the presence of an index file at the current directory
as it's looking up the directory tree for the requested template.

Example w/ stop-at-index enabled.

The code will look for these templates in this order:

URL -> /eg/staff/circ/patron/142/holds

1. staff/circ/patron/142/holds.tt2
2. staff/circ/patron/142/index.tt2
3. staff/circ/patron/142.tt2
4. staff/circ/patron/index.tt2 -- file exists, all done.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoweb log : patron search, use bootstrap grid/form for layout
Bill Erickson [Wed, 11 Dec 2013 20:11:50 +0000 (15:11 -0500)]
web log : patron search, use bootstrap grid/form for layout

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb log : patron search css repairs
Bill Erickson [Wed, 11 Dec 2013 18:14:19 +0000 (13:14 -0500)]
web log : patron search css repairs

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff : log update for apache config
Bill Erickson [Wed, 11 Dec 2013 16:36:58 +0000 (11:36 -0500)]
web staff : log update for apache config

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff : repair apache configuration
Bill Erickson [Wed, 11 Dec 2013 16:33:33 +0000 (11:33 -0500)]
web staff : repair apache configuration

Location per app is no longer necessary.  LocationMatch now supports
arbitrary nesting.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: more patron saerch
Bill Erickson [Wed, 11 Dec 2013 16:08:15 +0000 (11:08 -0500)]
web staff: more patron saerch

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff : remaining patron search fields
Bill Erickson [Tue, 10 Dec 2013 20:35:48 +0000 (15:35 -0500)]
web staff : remaining patron search fields

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoDocumentation for Sorting Billing Columns
Angela Kilsdonk [Tue, 10 Dec 2013 19:52:18 +0000 (14:52 -0500)]
Documentation for Sorting Billing Columns

Docs for sorting money columns in billing interface.  In ersions 2.3-2.5.

Signed-off-by: Angela Kilsdonk <akilsdonk@esilibrary.com>
12 years agoNew documentation for 2.5
Angela Kilsdonk [Tue, 10 Dec 2013 19:30:28 +0000 (14:30 -0500)]
New documentation for 2.5

Documentation for:
-Z39.50 Search Enhancements
-Catalog Browse
-Alternative Hold Pick-up Location
-Marking Items Long Overdue
-Lost and Long Overdue Bill Colors
-Vandelay Item Load

Signed-off-by: Angela Kilsdonk <akilsdonk@esilibrary.com>
12 years agoweb staff : log templates / dynamic strings
Bill Erickson [Tue, 10 Dec 2013 16:10:30 +0000 (11:10 -0500)]
web staff : log templates / dynamic strings

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff : log templates / dynamic strings
Bill Erickson [Tue, 10 Dec 2013 15:58:17 +0000 (10:58 -0500)]
web staff : log templates / dynamic strings

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff : dynamic alert/confirm dialogs
Bill Erickson [Tue, 10 Dec 2013 14:47:19 +0000 (09:47 -0500)]
web staff : dynamic alert/confirm dialogs

Create new services egAlertDialog and egConfirmDialog, which each load
a TT-based template on demand.  This allows us to re-use the templates
instead of having to include one template per alert type, which will
grow indefinitely.

Experimenting with embedding dynamic strings within the TT template, so
that they can be translated alongside other template strings.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoAlways show Email Address label to staff
Thomas Berezansky [Mon, 9 Dec 2013 16:15:29 +0000 (11:15 -0500)]
Always show Email Address label to staff

When placing holds staff commonly change out patrons, and pointing staff
towards the "My Account" area makes no sense to begin with.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoweb staff : log templates (in progress)
Bill Erickson [Mon, 9 Dec 2013 15:33:07 +0000 (10:33 -0500)]
web staff : log templates (in progress)

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoDocumentation typo in Authorities chapter subheading
Elliot Voris [Sat, 7 Dec 2013 21:24:46 +0000 (15:24 -0600)]
Documentation typo in Authorities chapter subheading
Addresses this bugs reported in launchpad:
https://bugs.launchpad.net/evergreen/+bug/1248726

I also browsed through the rest of the docs/admin
directory, and made some (very non-consequential)
changes.

Signed-off-by: Elliot Voris <evoris@slcconline.edu>
Signed-off-by: Robert Soulliere <robert.soulliere@mohawkcollege.ca>
12 years agoweb staff : log templates (in progress)
Bill Erickson [Fri, 6 Dec 2013 19:16:50 +0000 (14:16 -0500)]
web staff : log templates (in progress)

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: hide locale selector when only one locale is available
Bill Erickson [Fri, 6 Dec 2013 17:35:49 +0000 (12:35 -0500)]
web staff: hide locale selector when only one locale is available

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff : locale selector
Bill Erickson [Fri, 6 Dec 2013 15:16:15 +0000 (10:16 -0500)]
web staff : locale selector

leverage the existing set_eg_locale URL parameter for applying the
selected locale.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoPushing upgrade scripts forward
Mike Rylander [Thu, 5 Dec 2013 16:00:55 +0000 (11:00 -0500)]
Pushing upgrade scripts forward

Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agoForward port 2.3.11->2.3.12 DB upgrade
Bill Erickson [Thu, 5 Dec 2013 15:08:34 +0000 (10:08 -0500)]
Forward port 2.3.11->2.3.12 DB upgrade

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoPull in 2.5 version upgrade files
Dan Wells [Thu, 5 Dec 2013 14:49:05 +0000 (09:49 -0500)]
Pull in 2.5 version upgrade files

For 2.5.0 and 2.5.1

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoweb staff / log tidying
Bill Erickson [Wed, 4 Dec 2013 22:18:38 +0000 (17:18 -0500)]
web staff / log tidying

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff / log : promises
Bill Erickson [Wed, 4 Dec 2013 22:12:16 +0000 (17:12 -0500)]
web staff / log : promises

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: cleaning up remainder of inline style
Bill Erickson [Wed, 4 Dec 2013 18:27:04 +0000 (13:27 -0500)]
web staff: cleaning up remainder of inline style

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: extracting some inline css
Bill Erickson [Wed, 4 Dec 2013 16:54:52 +0000 (11:54 -0500)]
web staff: extracting some inline css

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: drive css from templates (like tpac)
Bill Erickson [Wed, 4 Dec 2013 14:50:20 +0000 (09:50 -0500)]
web staff: drive css from templates (like tpac)

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoFix a broken link in the holds docs
Remington Steed [Wed, 4 Dec 2013 14:35:30 +0000 (09:35 -0500)]
Fix a broken link in the holds docs

Signed-off-by: Remington Steed <rjs7@calvin.edu>
12 years agoMerge branch 'master' of git.evergreen-ils.org:Evergreen into web-staff-proto
Bill Erickson [Wed, 4 Dec 2013 14:31:09 +0000 (09:31 -0500)]
Merge branch 'master' of git.evergreen-ils.org:Evergreen into web-staff-proto

12 years agoweb staff: log on workstations/printing
Bill Erickson [Tue, 3 Dec 2013 23:10:43 +0000 (18:10 -0500)]
web staff: log on workstations/printing

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoDocs: integrate holds docs from EG 2.1
Remington Steed [Thu, 21 Nov 2013 15:29:22 +0000 (10:29 -0500)]
Docs: integrate holds docs from EG 2.1

The small amount of Holds docs present in master seemed to fit well at
the end of the older Holds documentation, so this commit appends them
to the new holds.txt file, deletes the previous holds_management.txt file,
and makes the appropriate change to root.txt.

This commit also includes several small formatting improvements, wording
changes, and bug fixes.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
12 years agoweb staff: applying some render-time data sanity checks
Bill Erickson [Mon, 2 Dec 2013 21:23:37 +0000 (16:23 -0500)]
web staff: applying some render-time data sanity checks

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: services for route persistence
Bill Erickson [Mon, 2 Dec 2013 18:42:15 +0000 (13:42 -0500)]
web staff: services for route persistence

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: route to hold shelf dialog
Bill Erickson [Mon, 2 Dec 2013 16:45:29 +0000 (11:45 -0500)]
web staff: route to hold shelf dialog

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff / minor code cleanup
Bill Erickson [Mon, 2 Dec 2013 16:11:25 +0000 (11:11 -0500)]
web staff / minor code cleanup

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff / list supports auto class columns
Bill Erickson [Mon, 2 Dec 2013 16:10:31 +0000 (11:10 -0500)]
web staff / list supports auto class columns

list.addColumnsForClass(classname, basepath)

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: checkin copy alert msg dialog
Bill Erickson [Wed, 27 Nov 2013 19:16:01 +0000 (14:16 -0500)]
web staff: checkin copy alert msg dialog

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: checkin transit dialog
Bill Erickson [Wed, 27 Nov 2013 16:04:20 +0000 (11:04 -0500)]
web staff: checkin transit dialog

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: checkin continued
Bill Erickson [Wed, 27 Nov 2013 14:36:21 +0000 (09:36 -0500)]
web staff: checkin continued

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: initial checkin; egOrg.settings()
Bill Erickson [Tue, 26 Nov 2013 22:13:32 +0000 (17:13 -0500)]
web staff: initial checkin; egOrg.settings()

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoweb staff: style overdue circs in items-out
Bill Erickson [Tue, 26 Nov 2013 20:09:10 +0000 (15:09 -0500)]
web staff: style overdue circs in items-out

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoMerge branch 'master' of git.evergreen-ils.org:Evergreen into web-staff-proto
Bill Erickson [Tue, 26 Nov 2013 19:07:14 +0000 (14:07 -0500)]
Merge branch 'master' of git.evergreen-ils.org:Evergreen into web-staff-proto

12 years agoFix boolean lists; Better atom regex; Caching
Mike Rylander [Wed, 13 Nov 2013 23:15:21 +0000 (18:15 -0500)]
Fix boolean lists; Better atom regex; Caching

First, we didn't need to make $last_type local, and it broke explicit
grouping anyway.  That's removed, and we now reset that (and a few more
like it) at calls to the top level parse() method.  This introduces a
situation where a long list of booleans could cause query plan problems,
so we limit the plan depth to 40 (20 ||'d conditions).

Second, we are smarter about finding the boundary of atoms.  Previous
to this commit, and curly brace could send the parser into a tailspin
from which it would not recover.  Now we use alternation instead of
a character class, which is much safer with the default multi-character
float syntax specifier.

Third, as a catch-all, if we can't parse the remained of a query we
now simply say so (when in debug mode) and go away, instead of risking
an infinite loop.  We do this via a final, unqualified "else" clause
in decompose().

Finally, instead of building 10+ regexp objects on each query parse,
cache them per QP subclass and reuse them.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoLP#1238015 hide patron credit summary when disabled
Bill Erickson [Mon, 28 Oct 2013 14:24:37 +0000 (10:24 -0400)]
LP#1238015 hide patron credit summary when disabled

When the circ.disable_patron_credit / "Disable Patron Credit" org unit
setting is disabled, also hide the patron credit summary information in
the bills interface.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoweb staff / log -> getting started w/ testing
Bill Erickson [Tue, 26 Nov 2013 15:31:24 +0000 (10:31 -0500)]
web staff / log -> getting started w/ testing

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoRe-apply the changes provided by 0802 for backport
Mike Rylander [Mon, 25 Nov 2013 15:14:08 +0000 (10:14 -0500)]
Re-apply the changes provided by  0802 for backport

Preserve record order of subfields for authority heading extraction

When extracting headings from authority records we currently read the
subfields of a tag in configuration order.  We should, instead, read
them in record order, to preserve the desired sorting properties that
the cataloger has encoded in the record.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agoweb staff / log : install and hacking
Bill Erickson [Mon, 25 Nov 2013 14:33:52 +0000 (09:33 -0500)]
web staff / log : install and hacking

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoAngular web staff - initial import
Bill Erickson [Thu, 24 Oct 2013 18:39:33 +0000 (14:39 -0400)]
Angular web staff - initial import

Batch import of staff client prototype work in progress.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoFix copy_table HTML markup errors
Dan Scott [Sun, 27 Oct 2013 17:11:37 +0000 (13:11 -0400)]
Fix copy_table HTML markup errors

TD elements take a "headers" attribute, not a "header" attribute. Also,
we have a few typos in identifying the header attributes.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoLP#1254146 gracefully handle custom trees sans entries
Bill Erickson [Fri, 22 Nov 2013 19:55:26 +0000 (14:55 -0500)]
LP#1254146 gracefully handle custom trees sans entries

Avoid references to custom tree entries when no tree entries for a
custom tree exist.  Prevents:

egweb: template error: undef error - Can't call method "org_unit" on an
undefined value at
/usr/local/share/perl/5.10.1/OpenILS/WWW/EGCatLoader/Util.pm line 185.\n

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoImprove facet styling
Dan Wells [Thu, 14 Nov 2013 20:12:46 +0000 (15:12 -0500)]
Improve facet styling

1) Facets currently display very poorly when the number reaches 3-4
digits.  Facet data is more or less a two column table, so let's style
it that way to make it more robust.

2) Rearrange some styles to reduce redundancy, and allow overflow
where possible.

3) Change the selected highlight to look a little better.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoPulling in new version upgrade
Mike Rylander [Wed, 20 Nov 2013 19:45:18 +0000 (14:45 -0500)]
Pulling in new version upgrade

Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agoLP#1251774 exit and alert on multiple payments per xact
Bill Erickson [Fri, 15 Nov 2013 22:06:53 +0000 (17:06 -0500)]
LP#1251774 exit and alert on multiple payments per xact

If more than one payment for a transaction is received, exit the API
call early and return a MULTIPLE_PAYMENTS_FOR_XACT event.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agoEnforce one-payment-per-xact-per-call
Mike Rylander [Fri, 15 Nov 2013 21:40:36 +0000 (16:40 -0500)]
Enforce one-payment-per-xact-per-call

There is no legitimate reason for a transaction to receive more than
one payment per call to open-ils.circ open-ils.circ.money.payment,
but we have seen the staff client generate such a data structure. This
leads to seemingly duplicate payments, and is bad all around.  So,
we will enforce the restriction by taking only the first payment per
xact in the list of payments.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoReplace erroneous calls to $e->retrieve_authority_record($rec_id).
Jason Stephenson [Fri, 8 Nov 2013 20:02:53 +0000 (15:02 -0500)]
Replace erroneous calls to $e->retrieve_authority_record($rec_id).

On lines 153 and 175 of OpenILS::Application::Cat::Authority calls
like the above should be $e->retrieve_authority_record_entry($rec_id).
This branch replaces the two misspelled calls with the proper ones.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agoLP1093856 fix Fast Item Add with Z39.50 import
Jason Etheridge [Thu, 12 Sep 2013 16:02:15 +0000 (12:02 -0400)]
LP1093856 fix Fast Item Add with Z39.50 import

The first time I tried this fix I ran afoul of
https://bugs.launchpad.net/evergreen/+bug/787561

But a second attempt worked.  So I didn't kill
two birds with one stone, but this should take
care of 1093856.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agoLP#1037171 Removed Expert Search paramters from subject links
Liam Whalen [Mon, 7 Oct 2013 05:11:56 +0000 (22:11 -0700)]
LP#1037171 Removed Expert Search paramters from subject links

After performing an Expert Search, if a user visits a record and then
clicks on one of the author, subject, or series search links within that
record, then they are given the results of the Expert Search again
instead of the relevant subject or author search.

This is happening because the Expert Search parameters are retained in
the URLs via the TT2 MACRO mkurl.  In particular, the tag parameter is
used to identify an Expert Search, so if it is present in a URL, than an
Expert Search will be attempted regardless of which other paramaters are
in the URL.

To fix this, I created two varialbes within header.tt2 above the
definition of mkurl.  These variables group common URL paramters for
Expert Searches and General Search parameters together.  These variables
can be used wherever mkurl is used to strip out unneeded search
paramters.

There is a third variable that is already present within many of these
pages named stop_parms.  While I initially tried to modify this
variable, I found that there are some instances where the general search
parameters should be retained while the Expert Search parameters must go.

This commit uses these three variables togehter as input into the third
arugment of the mkurl MACRO.  The third arugment specifies which
paramtes to remove from the previous URL before making a new URL based
on the pervious URL.

I also added the query parameter to the Place Hold's hold_source_page
URL variable.  I did this, so that the query terms would be preserved
once the user is done placing the hold or decides to cancle the placing
of the hold.

As well, I used the new variables to remove Expert Search paramters
from the Advanced Search links on the results and record pages.

Conflicts:

Open-ILS/src/templates/opac/parts/searchbar.tt2

Signed-off-by: Liam Whalen <whalen.ld@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agoDocs: Remove ref to missing included file
Remington Steed [Mon, 18 Nov 2013 20:42:36 +0000 (15:42 -0500)]
Docs: Remove ref to missing included file

This file was moved into the 2.5 release notes. If others believe it
belongs in the main documentation, it can easily be added in again. For
now, we will remove the reference because it only generates an asciidoc
warning.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
12 years agoDocs: Fix leveloffset bug, raise REL NOTES level
Remington Steed [Mon, 18 Nov 2013 20:21:09 +0000 (15:21 -0500)]
Docs: Fix leveloffset bug, raise REL NOTES level

We should restrict our use of the asciidoc leveloffset command to the
root.txt file, since it is a global setting and cannot be set relative
to an existing offset.

This commit also raises the Release Notes section to the highest level
in order to prevent the lowest level subsections within it from being
lost. This is in response to asciidoc errors:

    WARNING: RELEASE_NOTES_2_5.txt: line 950: missing section: [sect5]

Signed-off-by: Remington Steed <rjs7@calvin.edu>
12 years agoDocument how to load concerto sample data
Dan Scott [Fri, 15 Nov 2013 16:25:35 +0000 (11:25 -0500)]
Document how to load concerto sample data

We might as well make it as easy as possible for people to use the
sample dataset that we created!

Signed-off-by: Dan Scott <dscott@laurentian.ca>
12 years agoAdd basic docs for testing with pgTAP
Dan Scott [Thu, 14 Nov 2013 23:17:58 +0000 (18:17 -0500)]
Add basic docs for testing with pgTAP

This can be expanded to describe how to create pgTAP tests later. For
now, let's help people actually set up their environment and test.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
12 years agoFix untranslatable strings in several dijits:
Pasi Kallinen [Tue, 9 Jul 2013 06:52:22 +0000 (09:52 +0300)]
Fix untranslatable strings in several dijits:

AutoGrid, EditPane, FlattenerGrid, GridColumnPicker and HoldingCode.

[LFW: One string amended in conflict resolution; commit message edited
to wrap; one line of code moved (this.nls assignment in
GridColumnPicker.js).]

Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
12 years agoLP1251424 - Fix for submit button when placing holds in staff client
Steven Callender [Thu, 14 Nov 2013 20:42:12 +0000 (15:42 -0500)]
LP1251424 - Fix for submit button when placing holds in staff client

I've moved the initializing of the cur_hold_barcode variable
to within the function rather than floating outside of it.
This seemed to fix an intermittent issue where the submit
button would not become activatable when first going to the
place hold screen via the staff client. To create the hold,
ths user had to cycle through the "Place hold by patron barcode"
option and then back to "Place hold for me" option.

It looked like behind the scenes for certain org units that
variable would not be set and the button will not open until
it at least has something. This causes it to be set on the initial
loading of the screen.

Signed-off-by: Steven Callender <stevecallender@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agolp1012237 HOLD_ITEM_CHECKED_OUT display
Garry Collum [Mon, 22 Jul 2013 18:30:04 +0000 (14:30 -0400)]
lp1012237 HOLD_ITEM_CHECKED_OUT display

Added a definition to the HOLD_ITEM_CHECKED_OUT event in ils_events.xml.
Trying to be generic between the opac and the staff client the message
reads, "The item you have attempted to place on hold is already checked
out to the requestor."

[LFW: I made a tiny spelling change to be consistent with other
appearances in Evergreen of the term "requestor".]

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
12 years agoUpdate version of release notes in 2.5 docs
Remington Steed [Mon, 11 Nov 2013 19:15:25 +0000 (14:15 -0500)]
Update version of release notes in 2.5 docs

Signed-off-by: Remington Steed <rjs7@calvin.edu>
12 years agoAcq: Improvements to account-matching incoming EDI messages
Lebbeous Fogle-Weekley [Mon, 14 Oct 2013 21:28:07 +0000 (17:28 -0400)]
Acq: Improvements to account-matching incoming EDI messages

The way the EDI fetcher works gives us a problem. That process iterates
over EDI accounts for which it has FTP host and credential information,
downloads documents from each of those sites, and files the messages
within those documents under the EDI account from which the login
credentials came. The problem is that in practice the exact same host
and login information is used by multiple accounts under the same
vendor, and files relating to these sub-accounts are commingled, so that
you can't make the decision about which messages should be filed under
which accounts based on the name of the document or its location. You
have to make that decision later, based on its contents.

We are already incompletely doing this, distinguishing between
sub-accounts under which we could file our messages when the vendor
specifies the buyer's SAN next to the specific sub-account number *and*
those sub-accounts belong to different Evergreen org units. We still
need ways to distinguish in other cases.

This will do what is natural for at least one vendor, and match the
message content against the vendacct field of the acq.edi_account table.

*Also,*

We were re-retrieving the working acq.edi_message row from the database
before writing it, throwing away possible changes to the object in hand
made by O::A::Acq::EDI::process_parsed_msg(). We should only do that in
the case where that function has raised an exception.

We were doing the same kind of thing in another place actually inside
process_parsed_msg() where we set the edi_message's purchase_order field
based on the first lineitem encountered if the message itself didn't
specify a valid PO identifier.

This supports making account-correction work for ORDRSP messages in
addition to INVOIC messages.

We also propagate that same correction to the provider and shipper
fields of any invoices that get created from said edi_message.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoTPAC: Remove fixed height from 'View My List' button
Dan Wells [Mon, 28 Oct 2013 15:23:08 +0000 (11:23 -0400)]
TPAC: Remove fixed height from 'View My List' button

The TPAC button styles have been largely consolidated, but this little
outlier got missed.  It doesn't do anything of noticeable value in
recent browsers, and in fact hurts the display by causing the "Sort by"
widget to "hang" when resizing the window to certain intermediate
sizes.  Remove it.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoForward-port upgrade scripts from recent releases
Dan Wells [Fri, 8 Nov 2013 16:30:13 +0000 (11:30 -0500)]
Forward-port upgrade scripts from recent releases

In accordance with LP #894052.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoUpdate OpenSRF minimum version in install docs
Dan Wells [Thu, 7 Nov 2013 20:13:55 +0000 (15:13 -0500)]
Update OpenSRF minimum version in install docs

Evergreen now requires OpenSRF 2.2.1 or later, so it makes sense to be
clear about it.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoUpdate upgrade instructions for 2.5.0 release
Dan Wells [Thu, 7 Nov 2013 20:10:02 +0000 (15:10 -0500)]
Update upgrade instructions for 2.5.0 release

- Bump up minimum OpenSRF to 2.2.1
- Replace all 2.5-beta1 markers (and few stray 2.4 markers) with 2.5.0

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoTranslation updates - newpot
Dan Wells [Thu, 7 Nov 2013 16:39:12 +0000 (11:39 -0500)]
Translation updates - newpot

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoTranslation updates - po files
Dan Wells [Thu, 7 Nov 2013 16:31:54 +0000 (11:31 -0500)]
Translation updates - po files

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoDon't auto-logout TPAC in staff client
Jeff Godin [Wed, 6 Nov 2013 17:07:07 +0000 (12:07 -0500)]
Don't auto-logout TPAC in staff client

Wrap the meta refresh in TPAC within a check for ctx.is_staff, so
that idle TPAC tabs will not log out when running within the staff
client.

This is intended to resolve the primary cause of symptoms mentioned
in bug 1036318 "OPAC timeout within the client"

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
12 years agoFix typos in 2.5 release notes
Dan Wells [Wed, 6 Nov 2013 22:24:38 +0000 (17:24 -0500)]
Fix typos in 2.5 release notes

These typos were fixed in the separate (now deleted) files, but only
after the collective file had been built.  This commit transfers those
fixes to the built file.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoDelete separate NEXT release notes
Dan Wells [Wed, 6 Nov 2013 22:02:16 +0000 (17:02 -0500)]
Delete separate NEXT release notes

These files have been carefully woven together into a single document,
so it is time to part with these bits and pieces.

Also, add a DONOTREMOVE file to preserve the SIP folder in the same
fashion as the others.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoRemove manual TPAC locale applications
Bill Erickson [Thu, 6 Jun 2013 14:02:27 +0000 (10:02 -0400)]
Remove manual TPAC locale applications

OpenILS::Utils::CStoreEditor::default_locale is no longer set, since the
opensrf client locale is now global.  Remove all references to this
variable.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoDefault per-request TPAC locale
Bill Erickson [Thu, 23 May 2013 19:20:14 +0000 (15:20 -0400)]
Default per-request TPAC locale

Set the OpenSRF default client locale for each TPAC request to ensure
all outbound OpenSRF calls use the requested locale.  When done, reset
the locale to the OpenSRF default.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>