working/Evergreen.git
13 years agoMerge remote-tracking branch 'working/collab/sprater/patron_statcat_enhancements... collab/dyrcona/patron_statcat_enhancements
Jason Stephenson [Fri, 30 Mar 2012 15:56:49 +0000 (11:56 -0400)]
Merge remote-tracking branch 'working/collab/sprater/patron_statcat_enhancements' into patron_statcat_enhancements

Conflicts:
Open-ILS/src/sql/Pg/950.data.seed-values.sql

Note the conflicts are above are with permission IDs.  I have resolved
the conflicts with the master branch at the time of the merge.  Note
that there are conflicts with these IDs and other branches waiting to
be merged.  Depending upon when this branch is merged, these ID
conflicts will need to be resolved again, and the permission IDs in
the upgrade script will need to be edited as well.

This signof covers the following commit hashes:

5ac38befb7153ed18e604640e2ebf0b95b9eea56
2a7a2bf1c5f61120915d1d5623ddd5c365a93fd9
0fa8c00b098b196b48634c8c2cffe8c63143c7f7
93961e42b1073934582f94db85fccb99881ad0d6
a09ac93c8b03f8d9bc13e232fa5259b4f8aa631c
2ba119eb757d45037d69e4df6d252a0be00f2d97
7caa4c27159645155b587b9bb290ec41a961ae2e
586f3c4fc1a5509dc53eff01b688a28b966aa63c
75db6a45c458c7c2154432637dfb6d49327b755b
3570ae808b5c43811e9238d05f41aa99bea1a616
c4d4ae6b9cec623f1efbe12ff3d198e3a4b6c44c
46f963d9e5e4c34012850754a8e911b3e724787f
bf5416490911d26ada69b35fe539813bfc00d004
3352de3091bd522ba050a2befa0b710d0d630097
b94dce0707f1fe5c07ac80d0bec6f22ad0fc5234
f50b90a37a9e529d2d773fed068ecd05cbab20a2
845f059b6b9512405b7bc1bba75e45347fe059c7
1b373e8e4485a6bbcc51b90e702f30bed0e9943f
3cf640ca6e273d64fc5a26ea984fab36235b9ff4
0ac5a97b7fa461b73ce02447a113ef4674e73137

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoLP#520632 Fix for-loop over orgArraySearcher to preserve order
Michael Peters [Thu, 29 Mar 2012 18:59:20 +0000 (14:59 -0400)]
LP#520632 Fix for-loop over orgArraySearcher to preserve order

Authored by Remington Steed

This commit fixes the sort order in IE, Google Chrome of the
org unit's when choosing a search depth.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoStamping upgrade script for currently unfillable holds
Mike Rylander [Thu, 29 Mar 2012 17:36:46 +0000 (13:36 -0400)]
Stamping upgrade script for currently unfillable holds

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAdd PLACE_UNFILLABLE_HOLD permission
Thomas Berezansky [Sat, 14 Jan 2012 14:58:33 +0000 (09:58 -0500)]
Add PLACE_UNFILLABLE_HOLD permission

And hook it up in JSPac and TPac.

General idea: If you have the permission you can place holds that will not
fill right now, in general, for any reason.

In TPac, I replaced the previous "check the last failure code" line. The
new permission basically accomplishes the same thing for now, and is less
likely to return different results from placement attempt to placement
attempt. Also, only checking one failure code of potential hundreds didn't
make a lot of sense.

In the event of age protected copies the age protected prompt wins out.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoHold targeter cancellation action/trigger repairs
Bill Erickson [Wed, 28 Mar 2012 19:44:44 +0000 (15:44 -0400)]
Hold targeter cancellation action/trigger repairs

When a hold/reservation is cancelled via the targeter and passed off to
action/trigger for possible event creation, ensure that all fields on
the hold are in sync w/ the master db before the hand-off.  Otherwise,
critical values, like cancel_time may be null, which can cause A/T
event creation to fail.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoACQ provider admin page display improvements
Bill Erickson [Fri, 23 Mar 2012 14:57:59 +0000 (10:57 -0400)]
ACQ provider admin page display improvements

1. Sort providers I have permission to edit to the front.

2. Improved support for viewing all providers the user has access to
view.

3. Enable the grid filter

4. Template cleanup to avoid the unnecessary horizontal scroll that
sometimes occurs along the top.

5. Misc code cleanup

Signed-off-by: Bill Erickson <berick@esilibrary.com>
acq provider layout fixes

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agotrivial fix for Copy Buckets toolbar button
Jason Etheridge [Thu, 29 Mar 2012 15:19:28 +0000 (11:19 -0400)]
trivial fix for Copy Buckets toolbar button

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
13 years agoAdd Makefile to rebuild targets for generated files collab/dyrcona/lp960552_autoconf_subvars
Dan Scott [Thu, 22 Mar 2012 20:04:39 +0000 (16:04 -0400)]
Add Makefile to rebuild targets for generated files

If you rerun ./configure with a different option (such as
--sysconf=foo), the changed Makefile needs to trigger a rebuild of the
generated files. Otherwise, the first generated version of the file is
always newer than its *.in counterpart and a rebuild won't be triggered
on subsequent ./configure runs.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoMove towards build-time configuration of variables
Dan Scott [Thu, 22 Mar 2012 15:09:44 +0000 (11:09 -0400)]
Move towards build-time configuration of variables

We moved a lot of variable configuration into AC_CONFIG_FILES in
autoconf for the sake of convenience, but that turned out to be
problematic, as James Fournie noted in LP 960552, as the warning in
http://www.gnu.org/software/automake/manual/html_node/Scripts.html
notes: "building scripts this way has one drawback: directory variables
such as $(datadir) are not fully expanded and may refer to other
directory variables".

This was particularly a problem for variables such as @sysconfdir@ in
code that doesn't understand shell syntax - such as Cronscript.pm.

This commit moves towards build-time configuration of those variables.
We still use *.in files, but mark the built versions as dependencies in
build recipes such that we can build and test within the source
directory without having to install the files. We also gain the
advantage of teaching "make clean" to clean up the built versions of the
files.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoStamping No plperl Upgrade Script
Thomas Berezansky [Thu, 29 Mar 2012 14:15:30 +0000 (10:15 -0400)]
Stamping No plperl Upgrade Script

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoWe use plperlu, not plperl. So don't load both!
Thomas Berezansky [Tue, 27 Mar 2012 16:48:31 +0000 (12:48 -0400)]
We use plperlu, not plperl. So don't load both!

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoACQ fund admin UI improvements
Bill Erickson [Thu, 22 Mar 2012 15:56:00 +0000 (11:56 -0400)]
ACQ fund admin UI improvements

* Fund retrieval directly via AutoGrid/pcrud, now that pcrud supports fleshing.
* Sort funds I can edit to the front of the list
* Enable the new improved grid filter dialog
* Leverage onItemReceived for caching funds for balanceInfo getter
* Add some height to the grid to allow more rows to be visible in the page (without scrolling)

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoACQ Fund retrieval API permission improvements
Bill Erickson [Thu, 22 Mar 2012 20:07:34 +0000 (16:07 -0400)]
ACQ Fund retrieval API permission improvements

Allow users with ADMIN_ACQ_FUND (in addition to the deprecated
ADMIN_FUND) permission to retrieve fund year information via
open-ils.acq.fund.org[.years].retrieve

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoACQ fund summary object fleshing in IDL
Bill Erickson [Thu, 22 Mar 2012 15:53:40 +0000 (11:53 -0400)]
ACQ fund summary object fleshing in IDL

Add links for fund summary classes in the IDL to allow for direct
fleshing of summary objects via pcrud.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoAutoGrid onItemReceived support
Bill Erickson [Fri, 23 Mar 2012 16:04:02 +0000 (12:04 -0400)]
AutoGrid onItemReceived support

Adds support for a new call-back, called when a grid row item is
received (via pcrud onresponse).  If defined, The call-back is passed
the received item before the it's added to the data store.  This allows
users to get a direct handle on received objects.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoremove XXXX script
Jason Etheridge [Wed, 28 Mar 2012 20:43:15 +0000 (16:43 -0400)]
remove XXXX script

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
13 years agoStamping upgrade script for custom toolbars
Thomas Berezansky [Wed, 28 Mar 2012 19:52:21 +0000 (15:52 -0400)]
Stamping upgrade script for custom toolbars

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agofix a Down action bug in Configure Toolbars
Jason Etheridge [Wed, 28 Mar 2012 19:19:42 +0000 (15:19 -0400)]
fix a Down action bug in Configure Toolbars

where the list selection index could be set to an invalid value, which could
cause errors for actions acting upon that index

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agofix editing of multiple toolbarseparators
Jason Etheridge [Wed, 28 Mar 2012 15:37:12 +0000 (11:37 -0400)]
fix editing of multiple toolbarseparators

and toolbarspacers.  Also beef up the hardcoded toolbar to match the stock circ
toolbar.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoreworked toolbars for dynamism
Jason Etheridge [Tue, 20 Mar 2012 20:52:13 +0000 (16:52 -0400)]
reworked toolbars for dynamism

uses the data from action.toolbar

also a Toolbar Configuration UI

also added more toolbar buttons, though they need icons

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agofix constraint syntax
Jason Etheridge [Tue, 20 Mar 2012 17:03:21 +0000 (13:03 -0400)]
fix constraint syntax

and add in toolbar related permissions, plus a missing and unrelated perm: IMPORT_AUTHORITY_MARC

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoBeginning an unwrapped upgrade script
Mike Rylander [Tue, 20 Mar 2012 16:28:58 +0000 (12:28 -0400)]
Beginning an unwrapped upgrade script

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoDB layout for recording custom toolbars
Mike Rylander [Mon, 19 Mar 2012 19:58:51 +0000 (15:58 -0400)]
DB layout for recording custom toolbars

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoutility functions for Javascript Shell
Jason Etheridge [Thu, 22 Mar 2012 04:12:34 +0000 (00:12 -0400)]
utility functions for Javascript Shell

win_list() returns an array of "eg_main" chrome windows

get_tab() takes two forms:

    get_tab(chrome_window,tab_index)
    get_tab(tab_index)

The latter invocation assumes the first chrome window returned by win_list().

get_tab returns an object with the keys 'name' and 'content', pointing to the
tab label and the tab panel -> iframe -> contentWindow, respectively.

So let's say you had a patron account open in tab 1, and the Javascript Shell
open in tab 2.  In the shell, you could do:

    var o = get_tab(1);

o.name might contain something like

    1 Patron: Circulator, Ima

and you could do this to refresh that interface:

    o.content.g.patron.refresh_all()

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoFix ordinal column with multiple lists
Jason Etheridge [Thu, 22 Mar 2012 05:54:20 +0000 (01:54 -0400)]
Fix ordinal column with multiple lists

Before this fix, if more than one util.list powered list existed within a given
document/window, they would each intefere with the other's ordinal column.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agomore workstation related options for ses()
Jason Etheridge [Thu, 22 Mar 2012 03:05:52 +0000 (23:05 -0400)]
more workstation related options for ses()

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoTPAC: Suppress copy counts for libraries that own zero copies collab/dyrcona/tpac-suppress-preferred-library-count-with-0
Dan Scott [Wed, 28 Mar 2012 02:33:31 +0000 (22:33 -0400)]
TPAC: Suppress copy counts for libraries that own zero copies

Rather than slavishly showing the copy counts for libraries even when
the library has no copies to show, avoid wasting the precious display
space and suppress the output.

This was a problem for both search scope libraries and preferred library
in the search results, and for just preferred library in record details.
This commit makes the behaviour consistent, in favour of suppressing the
display of copy counts when there's nothing to display.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoFix NULL interval for action_trigger.event_definition.delay
Dan Scott [Tue, 27 Mar 2012 19:07:14 +0000 (15:07 -0400)]
Fix NULL interval for action_trigger.event_definition.delay

The delay column in action_trigger.event_definition is defined as NOT
NULL, therefore we should not try to push a NULL into it as that makes
PostgreSQL unhappy.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoFix seed data script syntax errors
Dan Scott [Tue, 27 Mar 2012 18:40:49 +0000 (14:40 -0400)]
Fix seed data script syntax errors

Commas were missing at the end of some lines. Fix that so that the
database can be created relatively cleanly again.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoTemplate processor always falls back to en_us
Bill Erickson [Tue, 27 Mar 2012 14:25:36 +0000 (10:25 -0400)]
Template processor always falls back to en_us

When no locales are registered and/or when a given locale is missing
a translation, fall back to en_us as the default locale.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agolp965651: add missing commas
Galen Charlton [Mon, 26 Mar 2012 20:11:34 +0000 (16:11 -0400)]
lp965651: add missing commas

Patch by Jason Stephenson, Comma Hunter

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
13 years agolp965637: add missing comma to fix syntax error
Galen Charlton [Mon, 26 Mar 2012 20:07:09 +0000 (16:07 -0400)]
lp965637: add missing comma to fix syntax error

Patch from Jason Stephenson

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
13 years agoAdd patron prefix upgrade to the version upgrade script
Mike Rylander [Mon, 26 Mar 2012 17:53:19 +0000 (13:53 -0400)]
Add patron prefix upgrade to the version upgrade script

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoStamping patron prefix upgrade script
Mike Rylander [Mon, 26 Mar 2012 17:52:25 +0000 (13:52 -0400)]
Stamping patron prefix upgrade script

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAdd a prefix field to patron registration interface
Michael Peters [Mon, 30 Jan 2012 16:55:23 +0000 (11:55 -0500)]
Add a prefix field to patron registration interface

Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoversion fix for 0692/0693
Jason Etheridge [Mon, 26 Mar 2012 16:27:38 +0000 (12:27 -0400)]
version fix for 0692/0693

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
13 years agoAdd ISSN fix to the version upgrade script
Mike Rylander [Mon, 26 Mar 2012 15:11:18 +0000 (11:11 -0400)]
Add ISSN fix to the version upgrade script

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoStamping upgrade script for ISSN normalization fix
Mike Rylander [Mon, 26 Mar 2012 14:57:52 +0000 (10:57 -0400)]
Stamping upgrade script for ISSN normalization fix

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoLP932540: Fix ISSN indexing
Dan Scott [Thu, 22 Mar 2012 02:39:40 +0000 (22:39 -0400)]
LP932540: Fix ISSN indexing

The default config.metabib_field_index_norm_map contains a 'replace'
entry for the ISSN identifier field that replaces spaces with "". That
was meant to handle ISSNs that incorrectly contain a space instead of a
hyphen; it normalizes them from: "1234 1234" to "12341234".

However, that breaks indexing ISSNs if there are multiple ISSNs in the
record, or even if there is an extra character in the same subfield as
the primary ISSN, as all spaces are removed.

This commit removes the 'replace' entry for the ISSN identifier field
and reindexes potentially damaged ISSN index entries.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoPatron Stat Cat Enhancements: Only show default entry for new patrons collab/sprater/patron_statcat_enhancements user/sprater/patron_statcat_enhancements
Scott Prater [Thu, 22 Mar 2012 02:44:23 +0000 (21:44 -0500)]
Patron Stat Cat Enhancements: Only show default entry for new patrons

Only display the default entry when registering new patrons.
Otherwise, display the saved value for the patron or nothing.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: SQL upgrade statements
Scott Prater [Tue, 28 Feb 2012 19:43:00 +0000 (13:43 -0600)]
Patron Stat Cat Enhancements: SQL upgrade statements

Add SQL upgrade statements:  new table stat_cat_entry_default,
new columns 'required' and 'allow_freetext' on actor.stat_cat,
and new permissions to create, delete default entries.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Rearrange stat cat editor screen
Scott Prater [Tue, 28 Feb 2012 16:22:29 +0000 (10:22 -0600)]
Patron Stat Cat Enhancements: Rearrange stat cat editor screen

Rearrange the statistical categories editor interface to correctly
display the "Archived" radio buttons along side the other radio
buttons.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Fix values stored, then displayed in "Allow freetext...
Scott Prater [Thu, 16 Feb 2012 03:28:46 +0000 (21:28 -0600)]
Patron Stat Cat Enhancements: Fix values stored, then displayed in "Allow freetext" categories

In the patron registration screen:  the widget dijit.form.FilteringSelect
stores the option value, not the displayed value, unlike ComboBox; so store
the FilteringSelect displayedValue, then set the FilteringSelect displayedValue
with the value retrieved from the patron/stat_cat_entry map table.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Enforce stat_cat "allow_freetext" flag in patron regist...
Scott Prater [Wed, 18 Jan 2012 20:30:00 +0000 (14:30 -0600)]
Patron Stat Cat Enhancements: Enforce stat_cat "allow_freetext" flag in patron registration screen

If a patron statistical category is flagged to disallow user-provided
entries, make the category form field a FilteringSelect box;  otherwise,
make it a ComboBox.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Enforce stat_cat "required" flag in patron registration...
Scott Prater [Wed, 18 Jan 2012 19:57:44 +0000 (13:57 -0600)]
Patron Stat Cat Enhancements: Enforce stat_cat "required" flag in patron registration screen

If a patron statistical category is flagged as required, make
the category form field a required field, and validate it before
submitting the form.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Modify stat cat editor HTML to manipulate patron stat...
Scott Prater [Tue, 27 Dec 2011 22:19:20 +0000 (16:19 -0600)]
Patron Stat Cat Enhancements: Modify stat cat editor HTML to manipulate patron stat cat default entries.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Modify stat cat editor javascript to manipulate patron...
Scott Prater [Tue, 27 Dec 2011 22:17:35 +0000 (16:17 -0600)]
Patron Stat Cat Enhancements: Modify stat cat editor javascript to manipulate patron stat cat default entries.

Add functions, methods, variables to Statistical Categories Editor
javascript to manage patron stat cat default entries.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Add language entities for default stat cat entry labels.
Scott Prater [Tue, 27 Dec 2011 22:10:00 +0000 (16:10 -0600)]
Patron Stat Cat Enhancements: Add language entities for default stat cat entry labels.

Add label entities for setting a default entry;  rename staff.server.admin.stat_cat.edit_entry_name_submit
to staff.server.admin.stat_cat.edit_entry_submit.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Add permissions for manipulating stat_cat_entry_default.
Scott Prater [Tue, 27 Dec 2011 22:06:19 +0000 (16:06 -0600)]
Patron Stat Cat Enhancements: Add permissions for manipulating stat_cat_entry_default.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Add Publisher actor methods for stat_cat_entry_default...
Scott Prater [Tue, 27 Dec 2011 21:56:25 +0000 (15:56 -0600)]
Patron Stat Cat Enhancements: Add Publisher actor methods for stat_cat_entry_default objects.

Add methods actor_stat_cat_entry_default and actor_stat_cat_entry_default_ancestor
to retrieve and populate stat_cat_entry_default objects.  Modify ranged_actor_stat_cat_entry
and fleshed_actor_stat_cat to also include default entry objects, if present.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Add Pg DBI actor::stat_cat_entry_default table and...
Scott Prater [Tue, 27 Dec 2011 21:51:51 +0000 (15:51 -0600)]
Patron Stat Cat Enhancements: Add Pg DBI actor::stat_cat_entry_default table and sequence.

Add actor::stat_cat_entry_default->table and
actor::stat_cat_entry_default->sequence.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Add CDBI package actor::stat_cat_entry_default.
Scott Prater [Tue, 27 Dec 2011 21:49:38 +0000 (15:49 -0600)]
Patron Stat Cat Enhancements: Add CDBI package actor::stat_cat_entry_default.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Link CDBI actor::stat_cat_entry_default to parent entities.
Scott Prater [Tue, 27 Dec 2011 21:46:34 +0000 (15:46 -0600)]
Patron Stat Cat Enhancements: Link CDBI actor::stat_cat_entry_default to parent entities.

Add relations between actor::stat_cat and actor::stat_cat_entry to actor::stat_cat_entry_default.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Add OpenSRF CRUD methods for actor statistical category...
Scott Prater [Tue, 27 Dec 2011 21:42:44 +0000 (15:42 -0600)]
Patron Stat Cat Enhancements: Add OpenSRF CRUD methods for actor statistical category default entries.

Added methods to create, delete, update default entries for patron statistical
categories.  Modified create_stat_cat and create_stat_cat_entry to also create,
update stat_cat_entry_default objects if present in the request.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Add OpenSRF methods for retrieving actor stat cat defau...
Scott Prater [Tue, 27 Dec 2011 21:36:15 +0000 (15:36 -0600)]
Patron Stat Cat Enhancements: Add OpenSRF methods for retrieving actor stat cat default entries.

Added the methods 'fetch_stat_cat_entry_default' and
'fetch_stat_cat_entry_default_by_stat_cat_and_org' for
fetching stat_cat_entry_default objects.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Add event for ACTOR_STAT_CAT_ENTRY_DEFAULT_NOT_FOUND
Scott Prater [Tue, 27 Dec 2011 21:31:58 +0000 (15:31 -0600)]
Patron Stat Cat Enhancements: Add event for ACTOR_STAT_CAT_ENTRY_DEFAULT_NOT_FOUND

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Add stat_cat_entry_default IDL class
Scott Prater [Tue, 27 Dec 2011 21:28:00 +0000 (15:28 -0600)]
Patron Stat Cat Enhancements: Add stat_cat_entry_default IDL class

Add stat_cat_entry_default IDL class, and links to actor.stat_cat and
actor.stat_cat_entry

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Add default entry table to database
Scott Prater [Wed, 21 Mar 2012 03:14:07 +0000 (22:14 -0500)]
Patron Stat Cat Enhancements: Add default entry table to database

Add actor.stat_cat_entry_default table to Pg database.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoPatron Stat Cat Enhancements: Add 'allow free text' and 'required' flags
Scott Prater [Wed, 21 Mar 2012 03:12:21 +0000 (22:12 -0500)]
Patron Stat Cat Enhancements: Add 'allow free text' and 'required' flags

Add database entities, controller mappings, and HTML/Javascript
widgets to allow administrators to set and persist 'required'
and 'allow free text' boolean flags for patron statistical categories
in the Statistical Categories Editor.

Signed-off-by: Scott Prater <sprater@gmail.com>
13 years agoStamped upgrade for 'allow fines during closings'
Bill Erickson [Fri, 23 Mar 2012 21:03:47 +0000 (17:03 -0400)]
Stamped upgrade for 'allow fines during closings'

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoAllow fines to accrue during closings
Mike Rylander [Fri, 23 Mar 2012 16:23:59 +0000 (12:23 -0400)]
Allow fines to accrue during closings

Evergreen skips fines during scheduled closings.  With this commit, a new
Org Unit Setting labeled 'Charge fines on overdue circulations when closed'
is available to force fines to accrue during closures.  Logic repiars and
out-of-scope (strict) variable repairs from Bill Erickson.

This work is sponsored by the NC Cardinal consortium in North Carolina.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoAlt serials opac reloading cleanup
Lebbeous Fogle-Weekley [Mon, 19 Mar 2012 18:39:09 +0000 (14:39 -0400)]
Alt serials opac reloading cleanup

Removed a call to xulG.reload_opac() that was no longer wanted

More debuggable.  I think it might still be possbile to get to alt
serial control interfaces in contexts where they don't have
xulG.reload_opac(), but I can't think of any way to do it just now.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAlt serials reload opac after changes
Bill Erickson [Mon, 19 Mar 2012 15:12:06 +0000 (11:12 -0400)]
Alt serials reload opac after changes

Using the new onPostSubmit handler for AutoGrid.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAutoGrid generic onPostSubmit handler
Bill Erickson [Mon, 19 Mar 2012 15:10:55 +0000 (11:10 -0400)]
AutoGrid generic onPostSubmit handler

Called w/ no arguments after any CRUD actions occur.  This includes
EditPane / EditDialog actions as well as deleteSelected.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoFollowup fix to teaching AutoGrid to reload_opac()
Lebbeous Fogle-Weekley [Fri, 9 Mar 2012 17:54:37 +0000 (12:54 -0500)]
Followup fix to teaching AutoGrid to reload_opac()

For deleting a list of selected items, only reload_opac() once at the
end, not once for each item deleted.

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 agoAlt Serial Control interfaces and Batch Receive reload OPAC when possible
Lebbeous Fogle-Weekley [Fri, 9 Mar 2012 17:10:20 +0000 (12:10 -0500)]
Alt Serial Control interfaces and Batch Receive reload OPAC when possible

Really, since the Alt Serial Control interfaces are built on AutoGrid,
all we have to do there is teach AutoGrid (and its constituent EditPane)
to try for reload_opac on write operations.

This may cause more reloads of the OPAC than are truly necessary, but
mainly in cases when nobody's looking because the OPAC is hidden away
in another tab.  That's preferable to the alternative of littering the
codebase with dozens of instances of
    try { xulG.reload_opac(); } catch (E) { }
which would just be ugly, bad and unmaintainable.

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 agoupdating item out count in patron display
Jason Etheridge [Fri, 9 Mar 2012 09:45:14 +0000 (04:45 -0500)]
updating item out count in patron display

For checkouts (and checkouts converted into renewals), this updates the item out
count in the patron summary sidebar, and under the Items Out navigation button.

It also updates the Items Out sub-interface if that interface has been opened.

However, we are adding an extra network call to update the summary sidebar.  We
may want to have the checkout method return that data (the checkout count
summary) instead.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoReload the OPAC via Holdings Maintenance
Jason Etheridge [Thu, 8 Mar 2012 19:51:32 +0000 (14:51 -0500)]
Reload the OPAC via Holdings Maintenance

Makes reloading a page wrapped in util.browser more accessible to foreign
window contexts.  Gives all the interfaces hanging off the chrome OPAC wrapper
the ability to reload the OPAC frame via xulG.reload_opac().  Have Holdings
Maintenance do this whenever its list is refreshed.  And "Add Volumes", whether
invoked from Actions for this Record, or from the click link in the record
summary pane.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoStamping upgrade script for ACQ search improvements
Mike Rylander [Fri, 23 Mar 2012 20:23:32 +0000 (16:23 -0400)]
Stamping upgrade script for ACQ search improvements

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoPO Invoice link search by PO instead of Lineitem
Bill Erickson [Thu, 16 Feb 2012 17:50:47 +0000 (12:50 -0500)]
PO Invoice link search by PO instead of Lineitem

The button which allows the user to jump from the PO to linked invoices
now retrieves invoices directly based on the PO ID and instead of
jumping though the lineitem, which only works for POs that have
lineitems (invoiced).

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAcq: improve General Search's ability to find invoices
Lebbeous Fogle-Weekley [Tue, 14 Feb 2012 22:49:54 +0000 (17:49 -0500)]
Acq: improve General Search's ability to find invoices

Invoices in Evergreen have complex relationships with other items.  They
can be related to lineitems (and ultimately POs and selection lists) by
invoice *entries*, or to PO items (and ultimately etc etc) by invoice
*items*, or directly to purchase orders by either of the above mentioned
acq.invoice_{entry,item} objects.

This should make general search more able to find invoices related to
other objects whose fields you might search against in Acquistions
General search.

Here's a diagram that I created to help me think about how to write
these joins:

https://docs.google.com/drawings/d/15ExkiYvq0skfobbocvPWxwdZkb7aykEZpLGfbP9PL04/edit

At Bill Erickson's suggestion, I wound up putting the joins into an IDL view
("acqus") rather than trying to express them in JSON query, which was turning
into a real time sink.

To prevent this change from making Acq General Search slower than it
was, I've also added indices on all the foreign keys used in the IDL
view, so that the joins should be as fast as possible.

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 agoAutoFieldWidget single-object cache repairs
Bill Erickson [Thu, 22 Mar 2012 17:41:29 +0000 (13:41 -0400)]
AutoFieldWidget single-object cache repairs

Caching single objects linked off the context object was failing in most
cases as it was caching under the display name instead of the true value
(pkey) for the linked object.  This fixes that by always caching the
linked object by its true value, so that future cache lookups will be
looking in the right place.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoPermaCrud.js flesh support
Bill Erickson [Thu, 22 Mar 2012 15:53:55 +0000 (11:53 -0400)]
PermaCrud.js flesh support

Now that open-ils.pcrud supports fleshing, allow flesh params to pass
through PermaCrud.js

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoStamping upgrade script for in-db unAPI + TPAC cleanup from Dan Scott
Mike Rylander [Fri, 23 Mar 2012 16:45:38 +0000 (12:45 -0400)]
Stamping upgrade script for in-db unAPI + TPAC cleanup from Dan Scott

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoTPAC: Show preferred library copies only in consortial scope
Dan Scott [Thu, 22 Mar 2012 00:00:01 +0000 (20:00 -0400)]
TPAC: Show preferred library copies only in consortial scope

A refinement of the preferred library display: only when the user is at
the consortial scope should the preferred library copies float to the
top. At all other scopes, the preferred library copies will appear in
their proper place in the org unit hierarchy (or not at all if outside
of the chosen scope).

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoTPAC: Sort copies from preferred library first
Dan Scott [Wed, 21 Mar 2012 04:14:56 +0000 (00:14 -0400)]
TPAC: Sort copies from preferred library first

This commit makes copies from the preferred library (if any) sort first
in the displayed copy list in search results and record details, even
if the search scope would otherwise not include the preferred library's
copies at all.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoTPAC: Fix filtering of org units in record details
Dan Scott [Wed, 21 Mar 2012 04:40:42 +0000 (00:40 -0400)]
TPAC: Fix filtering of org units in record details

The syntax for the filtering clause isn't quite right for the
non-opac-visible org units; remove the braces and win.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoTPAC / unapi: Overhaul copy and located URI display
Dan Scott [Wed, 21 Mar 2012 02:00:11 +0000 (22:00 -0400)]
TPAC / unapi: Overhaul copy and located URI display

In unauthenticated mode, sort returned copies in the following order:

1. Search library proximity
2. Search library name
3. (Search results only) Call number, by most available copy status
4. Call number label
5. Copy status availability

Also return & display the copy counts ("x of y copies are available")
for the search library and each of its parents.

We can also determine "preferred library" as follows, taking the first
match:

1. A new GET param, "plib", specifying the number of the OU
2. If authenticated, the user's "search library" preference setting;
3. If authenticated, the user's home library;
4. Physical location in which the search is being issued (if any)

Given a preferred library:

1. Promote the copies (if any) for the preferred library to the top of
   the copy display list.
2. Include the copy count for the preferred library if it is outside of
   the scope of the search library;
3. In record details, give users the ability to jump to their preferred
   library scope via "Show preferred library" beside the preferred
   library copy count, if applicable. If your search library is located
   beneath your pref library in the org hierarchy, then you'll get just
   the "copy depth" link instead.

Also, untangle the located URIs from physical call numbers in
in-database unapi.

We had been facing the limitation of URIs being limited by the maximum
number of call numbers, with the result that URIs may or may not have
been displayed. Now, we take the bold tack of returning all URIs that
are in scope for both the search library and the preferred library. No
limiting is currently possible, but in the realistic worst case scenario
of both search lib and pref lib being set to an OU at depth 4, we'll get
a maximum of 8 different URIs back to display. (More realistically, it's
unlikely that a different URI will be set for each level of the
hierarchy.)

Some of the more granular code changes are as follows:

* Add attributes to in-db unapi acp, sunit, holdings_xml

This gives us more flexibility in displaying due dates within search
results or other contexts in which holdings are displayed. The
age_protect, copy_id, and vol_id attributes are required by the record
summary display.

* Enable TPAC to display records via HSTORE-based unapi

Now that unapi requires HSTORE-based LIMIT and OFFSET arguments, take
the simplest possible approach to get get_records_and_facets() working
again.

In search results, we want to limit both the number of copies we get
back (defaulting to a maximum of 5 copies per call number) and the
number of call numbers we get back (defaulting to a maximum of 5 call
numbers), so that we don't get 50 call numbers each with 5 copies back
and wind up grinding Evergreen's performance down to a halt.

Rough thought is that the caller can filter through the (maximum) 25
hits that are returned to present their preferred results. For example,
a site could opt to show 5 different call numbers with just one copy per
call number, or 5 different copies for a single call number, or all 25.

* Avoid deleted call numbers, copies, and sunits

The rewrite of unapi removed the filters for deleted call numbers that
were added to master in LP# 893315 / commit hash 47a16f516d. Fix this
to prevent returning pages of results that would show nothing in the
TPAC because all of the call numbers were deleted.

* Display multiple URIs correctly

We weren't clearing the hash each time that we added it to the list of
URIs, and that ended up duplicating the URI rather than adding distinct
URIs.

* Take copy availability into account for copy order

This is most important in the LIMITed list of copies returned to the
TPAC search results page, but also useful on the record details page.

This commit adds "copy status ranking" into the result ordering, such
that more available copies will be returned first in the list (and thus,
in the case of search results where call numbers and copies are
typically limited (currently to 5 of 5), ensuring that the most
available copies are likely to be seen by users).

The "availability" ranking for a copy is defined by a new function,
evergreen.rank_cp_status(), that takes criteria from the
config.copy_status table and ranks it in three tiers, as follows:

1. Most available =  opac_visible and copy_active are both TRUE
2. Almost available = holdable and opac_visible are TRUE, but
   copy_active is FALSE, or status ID = 1 ("Checked out")
3. Unavailable = anything else.

Thus, changing copy availability ranking (such as demoting "On holds
shelf" from the "most available" status to "almost available"), is
simply a matter of tweaking the evergreen.rank_cp_status() function.

* unapi database functions: mark STABLE

Thomas Berezansky suggested marking one of the new database functions in
the in-database unapi suite as STABLE to help the optimizer, which lead
to us realizing that everything can be marked as stable. This should
enable the planner to generate better plans than if left to the default
pessimistic level of VOLATILE.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAdd per-class limit support to the tag URI parser; correct location/org thinko
Mike Rylander [Wed, 3 Aug 2011 18:23:11 +0000 (14:23 -0400)]
Add per-class limit support to the tag URI parser; correct location/org thinko

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoSupport per-class sub-object limit/offset
Mike Rylander [Tue, 2 Aug 2011 18:44:53 +0000 (14:44 -0400)]
Support per-class sub-object limit/offset

Change the signature for in-db unapi functions so that the limit /
offset arguments become HSTORE values, rather than plain INTEGER values.
This gives you the ability to specify limits and offsets at both the
volume and copy level, via the likes of 'acp=>5, acn=>10' to
specify 5 copies and 10 volumes.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoWrap upgrade script for bib record email / print actions
Dan Scott [Thu, 22 Mar 2012 21:07:10 +0000 (17:07 -0400)]
Wrap upgrade script for bib record email / print actions

Thanks again to Bill Erickson for another nice piece o' functionality.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTpac: record detail print and email
Bill Erickson [Wed, 29 Feb 2012 15:49:18 +0000 (10:49 -0500)]
Tpac: record detail print and email

Implements Print and Email actions (as links below add-to-list) in the
tpac record detail page.

The existing bib record print/email A/T seed templates were also updated
like so:

* Instead of using the reporter tables, bib data is fetched and
extracted via unapi, which allows access to SVF data (etc) and is more
consistent with the tpac.

* A number of unused A/T evnironment entries for the seed templates were
removed.

* The delay for the email template was explicitly set to 00:00:00
instead of the default 5 minutes to get the emails out quicker.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoWrap upgrade script for CSV circ history export
Dan Scott [Thu, 22 Mar 2012 16:53:13 +0000 (12:53 -0400)]
Wrap upgrade script for CSV circ history export

Thanks, Bill!

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTPac: Circulation history CSV export
Bill Erickson [Wed, 22 Feb 2012 18:14:13 +0000 (13:14 -0500)]
TPac: Circulation history CSV export

This adds a new "Download CSV" button to the TPac circulation history
interface.  The CSV is generated from a new Action/Trigger event
definition.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Conflicts:

Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql

Signed-off-by: Dan Scott <dan@coffeecode.net>
13 years ago.gitignore update - ignore more built files
Dan Scott [Thu, 22 Mar 2012 04:15:28 +0000 (00:15 -0400)]
.gitignore update - ignore more built files

Signed-off-by: Dan Scott <dan@coffeecode.net>
13 years agoTPAC: Tiny fix for + instead of _ string cat operator
Dan Scott [Thu, 22 Mar 2012 04:08:45 +0000 (00:08 -0400)]
TPAC: Tiny fix for + instead of _ string cat operator

Quiet down, Apache logs.

Signed-off-by: Dan Scott <dan@coffeecode.net>
13 years agoTPAC: suppress warning about splice() when the array in question is too short
Lebbeous Fogle-Weekley [Wed, 21 Mar 2012 14:03:18 +0000 (10:03 -0400)]
TPAC: suppress warning about splice() when the array in question is too short

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Scott <dan@coffeecode.net>
13 years agoShooting 2 obvious thinkos d-e-d dead. Pardon the rogueness.
Mike Rylander [Wed, 21 Mar 2012 16:14:44 +0000 (12:14 -0400)]
Shooting 2 obvious thinkos d-e-d dead. Pardon the rogueness.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoFix Auditor Boost upgrade script
Thomas Berezansky [Wed, 21 Mar 2012 13:55:31 +0000 (09:55 -0400)]
Fix Auditor Boost upgrade script

CREATE FUNCTION needs an OR REPLACE included.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoTPac; credit card assumes all xacts if none selected
Bill Erickson [Fri, 3 Feb 2012 21:32:03 +0000 (16:32 -0500)]
TPac; credit card assumes all xacts if none selected

For consistency with the initial payment form and to preserve backwards
compatibility, if no transactions are selected, assume the user wants to
pay for all transactions.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoTPac; credit card payment "Processing..." page
Bill Erickson [Mon, 21 Nov 2011 20:47:37 +0000 (15:47 -0500)]
TPac; credit card payment "Processing..." page

To prevent impatient patrons from re-submitting credit card payment
request forms, insert a Processing... page between the initial form
submission and the actual payment processing.

Steps 3-5 are new or modified.

1. User selects transactions to pay
2. User fills in payment form and Submits
3. Payment form data is cached in memcache with a temporary token
4. Processing page is displayed with message about how processing the
   payment can take time, do not refresh, etc.
5. Page is refreshed via http meta refresh to submit the form using
   the temp token.  The page is not visibly changed, though, since it
   takes time for the form submission to begin returning data.
6. User is directed to the payment results page.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoTPac; support context-genereted refresh content
Bill Erickson [Mon, 21 Nov 2011 20:44:40 +0000 (15:44 -0500)]
TPac; support context-genereted refresh content

If the tpac context object contains a "refresh" attribute, it will be
used as the content attribute in a <meta http-equiv="refresh" ...>
element in the page head.  If present, it will override the default
refresh content for the authentication timeout.

While we're in there, let's use the more correct form of the content
attribute:  content="x; url=foo"

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAdd the session to Circ set_audit_info calls
Thomas Berezansky [Tue, 20 Mar 2012 22:42:28 +0000 (18:42 -0400)]
Add the session to Circ set_audit_info calls

Because I apparently wasn't thinking about how I wrote the apputils piece
when I added them.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoLP914821 template selection should be sticky
Jason Etheridge [Wed, 11 Jan 2012 18:57:43 +0000 (13:57 -0500)]
LP914821 template selection should be sticky

in Unified Volume/Copy Editor.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAutoSuggest: Have the server cache for us if we're not using cookies
Mike Rylander [Tue, 20 Mar 2012 20:16:44 +0000 (16:16 -0400)]
AutoSuggest: Have the server cache for us if we're not using cookies

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoAutoSuggest: Don't try to store cmc and cmf caches in a cookie. Too big.
Lebbeous Fogle-Weekley [Mon, 19 Mar 2012 15:08:08 +0000 (11:08 -0400)]
AutoSuggest: Don't try to store cmc and cmf caches in a cookie. Too big.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoFix a couple of templates with multiple class attributes in tags.
Jason Stephenson [Tue, 20 Mar 2012 17:47:00 +0000 (13:47 -0400)]
Fix a couple of templates with multiple class attributes in tags.

There should only be one class attribute on a HTML tag. However,
multiple classes can be combined in a single attribute argument.

See: http://www.w3schools.com/tags/att_standard_class.asp

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoBackdate into grace period - include last second
Thomas Berezansky [Thu, 15 Mar 2012 21:04:51 +0000 (17:04 -0400)]
Backdate into grace period - include last second

The last second of the grace period is ignored on backdated checkins, but
should still count as "in" the grace period.

This fixes that.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAutoSuggest: don't force-scroll browser; that's irritating
Lebbeous Fogle-Weekley [Tue, 13 Mar 2012 15:21:59 +0000 (11:21 -0400)]
AutoSuggest: don't force-scroll browser; that's irritating

By default, Dijits and things that inherit from Dijits (at least in
Dojo 1.3.3 that we're still using), have a true value for an attribute
called scrollOnFocus.  This makes your browser jump to ensure that the
widget that just received focus is in view.

You don't always want this though.  Try expanding the extras on the
record detail page of the TPAC without this commit, but with AutoSuggest
enabled, for example.

This commit sets the scrollOnFocus attribute to false for the
AutoSuggest widget.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoPropagate search location on "Another Search" link
Dan Scott [Sat, 10 Mar 2012 16:27:08 +0000 (11:27 -0500)]
Propagate search location on "Another Search" link

In commit 27b2037d72b I had intentionally prevented "Another Search" on
the results page from propagating the current search location, in the
belief that sites would want to use that as a way of starting a brand
new search session; after all, both the "Advanced search" and "Search
toolbar" offer propagation of the current parameters.

However, a number of people including Kathy Lussier and Ben Shum
indicated that they expected "Another Search" to maintain scope as well,
so we will propagate state here.

Sites may want to customize this link or the top-left logo link if they
want to provide a "Start a new search session" option.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>