evergreen/pines.git
12 years agoremoving a reingest process from the 2.1.1-2.1.2 script
Chris Sharp [Sun, 17 Mar 2013 00:00:13 +0000 (20:00 -0400)]
removing a reingest process from the 2.1.1-2.1.2 script

12 years agoone of the other known long-running functions
Chris Sharp [Sat, 16 Mar 2013 23:59:33 +0000 (19:59 -0400)]
one of the other known long-running functions

12 years agoadding dependency tracking on its own because we saw errors when running from the...
Chris Sharp [Sat, 16 Mar 2013 23:58:32 +0000 (19:58 -0400)]
adding dependency tracking on its own because we saw errors when running from the long script

12 years agoBreaking out one of the long-running processes
Chris Sharp [Sat, 16 Mar 2013 23:57:18 +0000 (19:57 -0400)]
Breaking out one of the long-running processes

12 years agocreating a pines-specific version of the 2.1-2.2 script; commenting out patches we...
Chris Sharp [Sat, 16 Mar 2013 23:56:42 +0000 (19:56 -0400)]
creating a pines-specific version of the 2.1-2.2 script; commenting out patches we're adding concurrently and all reingests since we will do one at the end

12 years agoremoving previous "main" upgrade script
Chris Sharp [Sat, 16 Mar 2013 17:23:54 +0000 (13:23 -0400)]
removing previous "main" upgrade script

12 years agoreverting to the original 2.1-2.2 upgrade script for fresh editing
Chris Sharp [Sat, 16 Mar 2013 14:42:37 +0000 (10:42 -0400)]
reverting to the original 2.1-2.2 upgrade script for fresh editing

12 years agocleaning up aborted attempts from previous db upgrades
Chris Sharp [Sat, 16 Mar 2013 14:26:56 +0000 (10:26 -0400)]
cleaning up aborted attempts from previous db upgrades

12 years agoremoving reingests since we will be performing a large reingest at the end
Chris Sharp [Thu, 14 Mar 2013 19:52:12 +0000 (15:52 -0400)]
removing reingests since we will be performing a large reingest at the end

12 years agostarting the pre-upgrade script afresh
Chris Sharp [Wed, 13 Mar 2013 23:20:24 +0000 (19:20 -0400)]
starting the pre-upgrade script afresh

12 years ago0587 is expected to exist in 2.1.1 but never existed in any upgrade scripts we ran...
Chris Sharp [Wed, 13 Mar 2013 17:16:13 +0000 (13:16 -0400)]
0587 is expected to exist in 2.1.1 but never existed in any upgrade scripts we ran to get us there.  We add it here.

12 years agoReify required authority fixed field names
Mike Rylander [Mon, 11 Mar 2013 17:40:46 +0000 (13:40 -0400)]
Reify required authority fixed field names

Adam (and Art, by way of Adam's patch) added a goodly pile of fixed
field definitions that were lacking previously.  The change in this
commit simply changes the label of two (008/11 and 008/15) to those
in use by other parts of the code.  In particular, internally, we call
the field holding a thesaurus code value "Subj" and use that name during
ingest of authority records.  Therefore, that should not change.  This
required a subsequent change to the label of another, to SubjUse.

I've included a duplication in the backend-only (probably deprecated)
version of this mapping to allow the front-end labels to work.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agolp1040381: match up Subj and SubjUse fixed labels
Galen Charlton [Wed, 5 Dec 2012 17:23:04 +0000 (12:23 -0500)]
lp1040381: match up Subj and SubjUse fixed labels

Update the labels used in the fixed field editor for
authority records to match OCLC's labels specified at

http://www.oclc.org/support/documentation/worldcat/authorities/authformat/default.htm

This is consistent with commit's e675b854 change to the
OCLC labels, and also fixes a problem where changing the
008/11 and 008/15 was not reflected in the fixed field boxes.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agoAdd fixed fields missing from previous configuration, namely for MAP and SER record...
Adam Bowling [Fri, 26 Oct 2012 14:59:54 +0000 (10:59 -0400)]
Add fixed fields missing from previous configuration, namely for MAP and SER record types.  Incoporate previous changes for AUT record types from 1040381.

Signed-off-by: Adam Bowling <adbowling@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agoPassword Length Helpers
Michael Peters [Wed, 13 Mar 2013 12:31:43 +0000 (08:31 -0400)]
Password Length Helpers

This branch provides length helpers when patrons are setting or resetting
passwords.

This assumes the default 7 characters, 1 number requirement that comes stock.
You would need to change the hard coded strings if you use a different password
requirement regex in Library Settings Editor.

Signed-off-by: Michael Peters <mpeters@emeralddata.net>
12 years agoPulls the Copy Notes for the records, shows in the table, introduces a new style
edoceo [Thu, 21 Feb 2013 02:21:29 +0000 (18:21 -0800)]
Pulls the Copy Notes for the records, shows in the table, introduces a new style

Signed-off-by: edoceo <code@edoceo.com>
12 years agoStamping upgrade for inactive barcode retrieval
Ben Shum [Tue, 12 Mar 2013 21:22:36 +0000 (17:22 -0400)]
Stamping upgrade for inactive barcode retrieval

Signed-off-by: Ben Shum <bshum@biblio.org>
Conflicts:

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

12 years agoLP#1154235 Allow inactive patron barcode to be loaded
Michael Peters [Tue, 12 Mar 2013 20:14:23 +0000 (16:14 -0400)]
LP#1154235 Allow inactive patron barcode to be loaded

This addresses LP#1154235 by modifying the evergreen.get_barcodes
function to allow users to retrieve patrons in barcode retrieve
who have inactive barcodes.

This returns to functionality in versions prior to around 2.2.x
series.

End result is staff receiving an alert that the patron was
accessed with an invalid barcode.

Signed-off-by: Michael Peters <mpeters@emeralddata.net>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoRevert "Allow inactive patron barcode to be loaded" - going to wait until upgrade...
Chris Sharp [Tue, 12 Mar 2013 20:08:43 +0000 (16:08 -0400)]
Revert "Allow inactive patron barcode to be loaded" - going to wait until upgrade script.

This reverts commit 8618e6a17b87da39c87c31c37d30298fc868af39.

12 years agoAllow inactive patron barcode to be loaded
Thomas Berezansky [Tue, 12 Mar 2013 19:25:21 +0000 (15:25 -0400)]
Allow inactive patron barcode to be loaded

Needs an upgrade script.

AND A BETTER COMMIT MESSAGE.

Signed-off-by nobody because this is horribly incomplete ;)

12 years agoadding new macros to listed ones
Chris Sharp [Wed, 26 Sep 2012 17:14:16 +0000 (13:14 -0400)]
adding new macros to listed ones

12 years agoRemove the hardcoded width of locg dropdown
Michael Peters [Thu, 7 Mar 2013 13:47:37 +0000 (08:47 -0500)]
Remove the hardcoded width of locg dropdown

The hard coded 12em width causes longer library names to be cut
off.  This removes that restriction.

Signed-off-by: Michael Peters <mpeters@emeralddata.net>
12 years agoadding coded value map entries/changes
Chris Sharp [Thu, 7 Mar 2013 01:56:32 +0000 (20:56 -0500)]
adding coded value map entries/changes

12 years agoAdding GPLS Helpdesk link to Staff Client portal page and correcting a small typo
Chris Sharp [Thu, 7 Mar 2013 00:23:33 +0000 (19:23 -0500)]
Adding GPLS Helpdesk link to Staff Client portal page and correcting a small typo

12 years agoremoving journal title and bib call number from query type selector dropdown
Chris Sharp [Wed, 6 Mar 2013 21:56:35 +0000 (16:56 -0500)]
removing journal title and bib call number from query type selector dropdown

12 years agoadding newly designed PINES logos
Chris Sharp [Wed, 6 Mar 2013 18:37:10 +0000 (13:37 -0500)]
adding newly designed PINES logos

12 years agoremoving bib level advanced search filter
Chris Sharp [Wed, 6 Mar 2013 18:31:02 +0000 (13:31 -0500)]
removing bib level advanced search filter

12 years agoadding "Georgia PINES" to the title
Chris Sharp [Wed, 6 Mar 2013 05:06:14 +0000 (00:06 -0500)]
adding "Georgia PINES" to the title

12 years agoadding footer and topnav links and logo
Chris Sharp [Wed, 6 Mar 2013 05:01:18 +0000 (00:01 -0500)]
adding footer and topnav links and logo

12 years ago(temporarily?) removing patron opt-ins from PINES OPAC
Chris Sharp [Wed, 6 Mar 2013 04:30:22 +0000 (23:30 -0500)]
(temporarily?) removing patron opt-ins from PINES OPAC

12 years agoattempt to sort libraries by system in tpac results
Chris Sharp [Tue, 5 Mar 2013 15:08:19 +0000 (10:08 -0500)]
attempt to sort libraries by system in tpac results

Includes tsbere's reccomendations to change Record.pm because
it overrides th sorting in AppUtils.pm

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
12 years agoRemove broken error message
Thomas Berezansky [Fri, 24 Aug 2012 14:48:39 +0000 (10:48 -0400)]
Remove broken error message

Checkout fills related hold causes an empty array sometimes, so don't throw
out errors for that.

Also, the original error would itself fail, throwing an error that would
then fail as well, likely due to a copy/paste issue.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
12 years agore-adding STAFF_MIDDLENAME, PATRON_MIDDLENAME, PATRON_EXPIRE_DATE, and PATRON_EXPIRE_...
Chris Sharp [Mon, 25 Feb 2013 15:12:11 +0000 (10:12 -0500)]
re-adding STAFF_MIDDLENAME, PATRON_MIDDLENAME, PATRON_EXPIRE_DATE, and PATRON_EXPIRE_DATE_YMD to rel_2_3_4

12 years agoadding a hyperlink to the item status interface to allow retrieval of hold patron
Josh Lamos [Thu, 17 May 2012 20:06:44 +0000 (16:06 -0400)]
adding a hyperlink to the item status interface to allow retrieval of hold patron

12 years agoadding notes for what to add
Chris Sharp [Wed, 20 Feb 2013 13:43:00 +0000 (08:43 -0500)]
adding notes for what to add

12 years agonow adding the fix for the last thing we added - FIXME: check that these aren't the...
Chris Sharp [Sun, 17 Feb 2013 13:59:18 +0000 (08:59 -0500)]
now adding the fix for the last thing we added - FIXME: check that these aren't the same thing

12 years agofor whatever reason, dependency tracking is not added via the "normal" channels,...
Chris Sharp [Sun, 17 Feb 2013 13:51:39 +0000 (08:51 -0500)]
for whatever reason, dependency tracking is not added via the "normal" channels, so far as I can tell

12 years agodecided that running that function isn't necessary, but it's there for future use
Chris Sharp [Sat, 16 Feb 2013 22:16:17 +0000 (17:16 -0500)]
decided that running that function isn't necessary, but it's there for future use

12 years agofinally found the problem - wrong argument datatype for is_valid_marcxml
Chris Sharp [Sat, 16 Feb 2013 17:52:59 +0000 (12:52 -0500)]
finally found the problem - wrong argument datatype for is_valid_marcxml

12 years agoexplicitly prefixing "evergreen." to the is_valid_xml function :-/
Chris Sharp [Sat, 16 Feb 2013 15:11:16 +0000 (10:11 -0500)]
explicitly prefixing "evergreen." to the is_valid_xml function :-/

12 years agoexplicitly adding search path; altering the regexp_replace function to catch *all...
Chris Sharp [Sat, 16 Feb 2013 14:41:00 +0000 (09:41 -0500)]
explicitly adding search path; altering the regexp_replace function to catch *all* non-unicode-marked records

12 years agocreating 2.2-2.3 wrapper
Chris Sharp [Mon, 17 Sep 2012 22:41:40 +0000 (18:41 -0400)]
creating 2.2-2.3 wrapper

12 years agomore changes
Chris Sharp [Mon, 17 Sep 2012 22:39:55 +0000 (18:39 -0400)]
more changes

12 years agobreaking out another part of the script to run in parallel
Chris Sharp [Mon, 17 Sep 2012 12:15:37 +0000 (08:15 -0400)]
breaking out another part of the script to run in parallel

12 years agotransactionalizing scripts
Chris Sharp [Mon, 17 Sep 2012 11:56:43 +0000 (07:56 -0400)]
transactionalizing scripts

12 years agospecify PGUSER
Chris Sharp [Sun, 16 Sep 2012 17:41:51 +0000 (13:41 -0400)]
specify PGUSER

12 years agomake it executable
Chris Sharp [Sun, 16 Sep 2012 17:39:11 +0000 (13:39 -0400)]
make it executable

12 years agoBeginning bash wrapper around pines upgrade
Chris Sharp [Sun, 16 Sep 2012 17:37:37 +0000 (13:37 -0400)]
Beginning bash wrapper around pines upgrade

12 years agochanging approaches; breaking up script into parallels
Chris Sharp [Fri, 14 Sep 2012 17:06:41 +0000 (13:06 -0400)]
changing approaches; breaking up script into parallels

12 years agocontinual experimentation with script
Chris Sharp [Fri, 14 Sep 2012 15:49:30 +0000 (11:49 -0400)]
continual experimentation with script

12 years agobreaking out the blu-ray patch to allow actual upgrade to 2.1
Chris Sharp [Fri, 14 Sep 2012 12:51:29 +0000 (08:51 -0400)]
breaking out the blu-ray patch to allow actual upgrade to 2.1

12 years agoadd Dan Scott's is_valid_marcxml() function to ferret out trouble records
Chris Sharp [Thu, 13 Sep 2012 11:32:09 +0000 (07:32 -0400)]
add Dan Scott's is_valid_marcxml() function to ferret out trouble records

12 years agomake sure all our bibs know they're unicode
Chris Sharp [Thu, 13 Sep 2012 11:28:50 +0000 (07:28 -0400)]
make sure all our bibs know they're unicode

12 years agoadding PINES post-upgrade script
Chris Sharp [Fri, 17 Aug 2012 14:35:04 +0000 (10:35 -0400)]
adding PINES post-upgrade script

12 years agoadding PINES pre-upgrade script
Chris Sharp [Fri, 17 Aug 2012 14:33:16 +0000 (10:33 -0400)]
adding PINES pre-upgrade script

12 years agoPINES doesn't have auditor.serial_unit_history, so we create it
Chris Sharp [Fri, 17 Aug 2012 14:13:16 +0000 (10:13 -0400)]
PINES doesn't have auditor.serial_unit_history, so we create it

12 years agoSIP re-login fetches correct auth session
Bill Erickson [Fri, 3 Aug 2012 19:08:51 +0000 (15:08 -0400)]
SIP re-login fetches correct auth session

After a login session expires and the SIP server logs in again to
acquire a new authtoken, be sure to use the new authtoken when fetching
the new session object.  Otherwise, the login_session is left undef and
you may see errors like this when checking in items:

Can't call method "ws_ou" on an undefined value at
/usr/local/share/perl/5.10.1/OpenILS/SIP/Transaction/Checkin.pm line 77.

Incidentally, the checkin code is the only code that references
$sip_handler->{login_session}.  And the problem listed above only occurs
when the login session expires just prior to a checkin call.  In any
other scenario, the login_session would ultimately get repaired.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoRevert "fixing juv-to-adult function"
Chris Sharp [Fri, 25 Jan 2013 18:11:22 +0000 (13:11 -0500)]
Revert "fixing juv-to-adult function"

This reverts commit dafaa5651caa943f08341236f42cfeeafa104cd8.

12 years agofixing juv-to-adult function
Chris Sharp [Thu, 11 Oct 2012 23:33:16 +0000 (19:33 -0400)]
fixing juv-to-adult function

12 years agochanging label in Advanced Search from "Electronic Resources" to "Computer File"
Josh Lamos [Wed, 20 Jun 2012 15:40:18 +0000 (11:40 -0400)]
changing label in Advanced Search from "Electronic Resources" to "Computer File"

12 years agoadding bolding/unbolding to opac
Josh Lamos [Thu, 3 May 2012 14:39:02 +0000 (10:39 -0400)]
adding bolding/unbolding to opac

12 years agoadding little utility to ease tracking down users by ID
Chris Sharp [Fri, 24 Feb 2012 13:03:52 +0000 (08:03 -0500)]
adding little utility to ease tracking down users by ID

12 years agoRevert "Use my_asv here.. surveys pertinent to the workstation library.. in case...
Chris Sharp [Wed, 1 Feb 2012 20:16:08 +0000 (15:16 -0500)]
Revert "Use my_asv here.. surveys pertinent to the workstation library.. in case survey usage ever takes off.  Should probably move some of this to the middle layer"

This reverts commit 54d45c37d91c78cffa00ca3ff0f6298261d548b2.

12 years agoadding custom css to remove display of patron credits
Chris Sharp [Mon, 23 Jan 2012 16:14:02 +0000 (11:14 -0500)]
adding custom css to remove display of patron credits

12 years agoadding file that returns circ mod view to normal
Chris Sharp [Thu, 17 Nov 2011 13:06:10 +0000 (08:06 -0500)]
adding file that returns circ mod view to normal

12 years agoadding PINES logos
Chris Sharp [Thu, 27 Oct 2011 17:29:01 +0000 (13:29 -0400)]
adding PINES logos

12 years agoBumping version numbers, adding Upgrade Script and Changelog
Bill Erickson [Fri, 22 Feb 2013 19:26:42 +0000 (14:26 -0500)]
Bumping version numbers, adding Upgrade Script and Changelog

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoSetting OpenILS.pm VERSION
Bill Erickson [Thu, 21 Feb 2013 18:04:54 +0000 (13:04 -0500)]
Setting OpenILS.pm VERSION

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoTranslations import / newpot : 2.3.4
Bill Erickson [Thu, 21 Feb 2013 16:54:54 +0000 (11:54 -0500)]
Translations import / newpot : 2.3.4

Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoLP 1092284 - Fix add to my list dropdown with ContentCafe links
Ben Shum [Wed, 16 Jan 2013 21:33:22 +0000 (16:33 -0500)]
LP 1092284 - Fix add to my list dropdown with ContentCafe links

As noted in the bug ticket, the dropdown menu for Add to my list disappears
whenever hovering over the Reviews & More link for ContentCafe-enabled TPACs.

Removing position:relative from .results_review seems to keep the two areas
from having any strange interactions.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
12 years agoAcq: EDI omnibus bugfix package
Lebbeous Fogle-Weekley [Wed, 23 Jan 2013 18:07:33 +0000 (13:07 -0500)]
Acq: EDI omnibus bugfix package

EDIReader bugfix - Process misc charges better
    MOA+304 seems to be an encoding peculiar to Ingram for processing fees.

Bubble up errors better from invoice processing
    Errors were getting logged, but weren't linked on the related
    acq.edi_message row in the database like they could have been to make
    debugging easier.

    This incidentally elevates one possible message from warning level to
    error, but even as a warning it was stopping the processing of the
    invoice in question there.  So there's no meaningful difference.

Try harder to associate incoming EDI messages with exact right account
    Sites use many very nearly identical EDI accounts (same host and
    credentials) with different values only for the label and the vendcode.
    This allows mapping of an order to a profile on the vendor side.

    The problem with this is that the edi_fetcher and the processes it
    kicks off did not know how to map incoming messages to the right
    account based on vendcode.  That code simply iterated through
    accounts, using host information and login credentials, and grabbing
    what it can find, as if
    there will be no other Evergreen-side EDI "accounts" with the same
    hostname and loging credentials.

    This should help with that.

Style and whitespace cleanups in O::A::Acq::EDI.pm
    All I could stand before I just couldn't take it anymore.

New PO template created malformed JSON in the INC_COPIES=0 case
    And now it no longer should.

Allow order responses and invoices to omit PO repetition in lineitem refs
    Usually vendor documents have bits of EDI that look like:
    RFF+LI:100/123
    where 100 is a PO number and 123 is a lineitem number.

    Sometimes, for some documents, B&T at least will omit the '100/' part.
    This is fine because we don't really need that number repeated for
    every lineitem.  We do need this change so that our EDI reader code
    can deal with the omission, though.

Be more liberal reading EDIFACT message reference number
    Spec, if I read it correctly, says that this is alphanumeric, not just
    numeric, and ULS is one vendor I've seen taking advantage of letters
    and numbers in that space.

    This commit makes the relevant regex in our EDIReader appropriately
    more tolerant.

Fixes to new vencode parsing for incoming EDI messages

Prevent problem in preventing EDI re-retrieves
    The query we were using before would needlessly transfer large objects,
    potentially hitting Jabber message size limits.

    We're just testing for the existence of such objects, so we need no
    more than a single ID in the result.

Fix EDI invoices for ULS, improve troubleshootability
    1) Taxes appear in different, but still valid way in ULS invoices than
    in invoices from other vendors observed to date.

    2) Invoices from ULS use MOA 203 to indicate unit price instead of the
    usual meaning of whole-lineitem price.

    3) Now abuse acq.invoice.note to leave better troubleshooting
    breadcrumbs.

Invoices from EDI had unsavable invoice_items attached
    Deal with this by letting us create fund_debits a little later than in
    the previous workflow. We have to, because the EDI-level stuff creating
    the invoice doesn't know what fund we want to target for taxes and misc
    charges.

    The problem we're fixing manifested by showing an alert() dialog about
    ACQ_FUND_DEBIT_NOT_FOUND.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoDon't sort filter group entries in the template
Mike Rylander [Thu, 14 Feb 2013 16:00:42 +0000 (11:00 -0500)]
Don't sort filter group entries in the template

They are now delivered sorted by 'pos', and the template sorting was
ascii-betical anyway, which is incorrect.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoSort search filter group entries by 'pos'
Mike Rylander [Thu, 14 Feb 2013 15:51:37 +0000 (10:51 -0500)]
Sort search filter group entries by 'pos'

We use a fleshed cstore call to grab search filter groups and their entries,
but we don't currently sort them by their 'pos' field, which is it's purpose.
cstore will apply order_by expressions to the applicable tables in a fleshed
search/retrieve. This does that.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoForceExternal: Compare hostnames case insensitive
Thomas Berezansky [Wed, 6 Feb 2013 21:01:49 +0000 (16:01 -0500)]
ForceExternal: Compare hostnames case insensitive

Lowercase both sides to avoid "right host, wrong case" issues.

Resolves LP1081699 where the external browser would be used due to
hostname case sensitivity.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoTPAC: Make locale picker match default locale
Dan Scott [Mon, 21 Jan 2013 22:02:42 +0000 (17:02 -0500)]
TPAC: Make locale picker match default locale

As noted by Pasi Kallinen, the language picker would not reflect the
chosen locale unless your cookie had been set or there was an explicit
CGI parameter with the locale name.

Accordingly, get the default locale from the context vars and use that
to set the selected value for the language picker in the absence of
anything else, to prevent the picker from possibly confusingly showing
the first language alphabetically rather than the currently displayed
language in the rest of the UI.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoLP #1092921: Display of/sorting by CN affixes in Simplified Hold Pull List
Lebbeous Fogle-Weekley [Wed, 2 Jan 2013 17:33:36 +0000 (12:33 -0500)]
LP #1092921: Display of/sorting by CN affixes in Simplified Hold Pull List

In the Simplified Hold Pull List interface, the "Call Number Label" column
displays the call number of the copy targeted by the hold in each row,
and it does so by combining affixes with the actual label field.
Sorting of this column actually uses the call number sortkey generated
in-database for this purpose.

Sometimes this means that sorting order doesn't match what you'd
expect to see with this column.  Opinions differ on desired behavior, so
now you can explicity add columns to the table for call number prefix
and suffix, and sort on either of those (potentially in combination with
other columns).

Amended from an earlier version of this commit that still didn't sort
CN prefix and suffix columns quite right.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Conflicts:
Open-ILS/src/templates/circ/hold_pull_list.tt2

Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoLP#1067361: vandelay: batch queue deletion no longer works
Mark Cooper [Tue, 16 Oct 2012 18:02:23 +0000 (11:02 -0700)]
LP#1067361: vandelay: batch queue deletion no longer works

Because window.location.reload can trigger before the deletions
have occurred. Simple fix (band aid?) is to make the delete
calls in sync.

Signed-off-by: Mark Cooper <markchristophercooper@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoLP1054053 - Remove white padding around login inputs
Ben Shum [Tue, 29 Jan 2013 05:27:55 +0000 (00:27 -0500)]
LP1054053 - Remove white padding around login inputs

Forget efforts to make the boxes bigger and smoother as it was in the past.
Instead, opting for a cleaner look by removing the extra white background
that was part of the padding surrounding the actual login input area. This
removes the feeling that the box area should have been bigger than it really
is.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
12 years agoReplace "Mirror Mirror" default non-AC jacket cover
Michael Peters [Tue, 27 Nov 2012 14:05:35 +0000 (09:05 -0500)]
Replace "Mirror Mirror" default non-AC jacket cover

Every item in KPAC that doesn't have a jacket cover uses
the cover for "Mirror Mirror".  This is inappropriate, so
lets replace it with a small blank image.

Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoLP1053526 - Don't inadvertently modify the in-memory org tree when printing
Jason Etheridge [Thu, 20 Sep 2012 17:10:15 +0000 (13:10 -0400)]
LP1053526 - Don't inadvertently modify the in-memory org tree when printing

To see an example of this causing a problem, load Holdings Maintenance for
an arbitrary bib record with items. Make sure the Hide Empty Libs checkbox
is checked. Hit the Print button at the bottom of the UI (it's okay to then
Cancel the print). Then hit Refresh. It should result in an org.children()
is null error.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoCopy_offset and copy_limit shouldn't persist in URL
Kathy Lussier [Thu, 31 Jan 2013 15:51:40 +0000 (10:51 -0500)]
Copy_offset and copy_limit shouldn't persist in URL

Added copy_offset and copy_limit to stop_parms definition so that they
don't persist in URL when returning to search results or launching
subject/series searches.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoSerials: Caption/pattern wizard use enum fields for chronology when no enum
Lebbeous Fogle-Weekley [Mon, 21 Jan 2013 19:54:55 +0000 (14:54 -0500)]
Serials: Caption/pattern wizard use enum fields for chronology when no enum

MFHD spec says that when there are no ‡a - ‡f enumeration captions, any
chronology captions should move back from their usual ‡i - ‡m places
back into enumeration space.

The predictions engine we already have deals with this better than with
the wrong patterns we were creating before, e.g.:

853 20 ‡81 ‡i(year) ‡j(month) ‡wm

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoDeal with opt-in boundaries defensively
Dan Scott [Fri, 17 Aug 2012 20:07:19 +0000 (16:07 -0400)]
Deal with opt-in boundaries defensively

If a site had not set an 'org.patron_opt_default' OU setting, then it
seemed that a DEFAULT value was getting dumped into the "create opt-in"
INSERT statement for the org_unit argument, and that (as there is a
non-NULL constraint on the column and no default value for the column)
resulted in the patron not getting opted in.

One way for sites to deal with this is to set an opt-in boundary at the
consortial level, along the lines of:

INSERT INTO actor.org_unit_setting (org_unit, name, value)
  VALUES (1, 'org.patron_opt_default', 2);

Alternatively, in the absense of any such setting, opt-in should
continue to work as it had before the new feature was added; this change
keeps the old behaviour active in that case.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: James Fournie <jfournie@sitka.bclibraries.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoLP1051112 - Display lineitem commands menu on empty picklists
Bill Erickson [Mon, 5 Nov 2012 14:22:55 +0000 (09:22 -0500)]
LP1051112 - Display lineitem commands menu on empty picklists

Ensure that the lineitem commands drop-down menu appears even when the
picklist is empty.  Previously, the commands were not displayed until
the first lineitem was retrieved.  For empty picklists, of course, there
will be no first lineitem.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoDocumentation: acquisitions updates
Kathy Lussier [Sat, 26 Jan 2013 02:35:13 +0000 (21:35 -0500)]
Documentation: acquisitions updates

Update Search for Line Items from an Invoice section to reflect minor
changes that came with lp1050008. Also, moved received Items from an
Invoice section to fall within the rest of the Invoices section.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
12 years agoDocumentation: Update staff client installation for 2.3.3 version.
Robert Soulliere [Tue, 22 Jan 2013 14:36:08 +0000 (09:36 -0500)]
Documentation: Update staff client installation for 2.3.3 version.

Signed-off-by: Robert Soulliere <robert.soulliere@mohawkcollege.ca>
12 years agoDocumentation: Update upgrading the server instructions to point to 2.3.3.
Robert Soulliere [Tue, 22 Jan 2013 14:17:26 +0000 (09:17 -0500)]
Documentation: Update upgrading the server instructions to point to 2.3.3.

Signed-off-by: Robert Soulliere <robert.soulliere@mohawkcollege.ca>
12 years agoLP1054053 - make default input font darker
Ben Shum [Fri, 21 Dec 2012 20:47:40 +0000 (15:47 -0500)]
LP1054053 - make default input font darker

The original light grey made it difficult to see what was being input.
Change to use text font color variable (black by default).

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Dan Scott <dan@coffeecode.net>
12 years agoTPAC: Prevent numeric subfields in series display
Dan Scott [Tue, 8 Jan 2013 22:02:38 +0000 (17:02 -0500)]
TPAC: Prevent numeric subfields in series display

Series fields can theoretically contain linking subfields ($6, $8) and
other numeric subfields that aren't meant to be displayed. So, do not
display them.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoTPAC - hide subfield 6 and 8 from record title display
Ben Shum [Sun, 2 Dec 2012 05:02:25 +0000 (00:02 -0500)]
TPAC - hide subfield 6 and 8 from record title display

Record display previously showed every subfield associated with tag 245
to display the title in TPAC's record view.  Hide subfields 6 and 8
because they only show linkage information that does not contribute to
the actual title content.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
12 years agoUpdate staff client's about page to include newest core committers
Ben Shum [Mon, 3 Dec 2012 15:37:43 +0000 (10:37 -0500)]
Update staff client's about page to include newest core committers

The newest core committers were elected during the Evergreen Hack-A-Way on
October 10, 2012:

Jeff Godin, Traverse Area District Library
Benjamin Shum, Bibliomation, Inc.
Jason Stephenson, Merrimack Valley Library Consortium

Also update language of page to reflect that these contributors are now core
"committers" rather than "developers".  And move past core committers into
their own section.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
12 years agoAdd 2.2.4 -> 2.2.5 upgrade script
Lebbeous Fogle-Weekley [Wed, 16 Jan 2013 20:18:56 +0000 (15:18 -0500)]
Add 2.2.4 -> 2.2.5 upgrade script

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoForward-porting 2.3.2 -> 2.3.3 DB upgrade
Bill Erickson [Wed, 16 Jan 2013 20:18:57 +0000 (15:18 -0500)]
Forward-porting 2.3.2 -> 2.3.3 DB upgrade

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
12 years agoLP#1098377: protect against even more cstore segfaults
Galen Charlton [Tue, 15 Jan 2013 16:30:41 +0000 (11:30 -0500)]
LP#1098377: protect against even more cstore segfaults

Following up on the preceding patch, passing null
as the savepoint name to savepoint.release and
savepoint.rollback would also segfault cstore.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
12 years agoVerify savepoint name is non-null
Bill Erickson [Tue, 15 Jan 2013 15:58:16 +0000 (10:58 -0500)]
Verify savepoint name is non-null

Before we attempt to mangle the name, let's ensure that it's non-null.
Otherwise, segfaults ensue.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
12 years agoProtect against overly long savepoint names
Dan Scott [Fri, 11 Jan 2013 06:32:13 +0000 (01:32 -0500)]
Protect against overly long savepoint names

Per http://postgresql.org/docs/9.1/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS,
the maximum identifier length works out to being 63 bytes (+1 for the
null terminator), so to avoid potential memory pressure by a 10GB string
somehow being passed in as the savepoint name, malloc no more than 64
bytes and copy no more than 63 bytes from the incoming name to the
escaped name.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
12 years agoLP#1098377: sanitize savepoint names
Galen Charlton [Fri, 11 Jan 2013 07:30:50 +0000 (02:30 -0500)]
LP#1098377: sanitize savepoint names

When invoking open-ils.{cstore,pcrud,rstore}.savepoint.*, the
caller supplies a name for the savepoint.  However, the savepoint
names could be constructed so that the caller could execute
arbitrary SQL.  This patch sanitizes the name so that it contains
only alphanumeric and underscore characters.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
12 years ago2.3.3 translations : repair Finnish translator email
Bill Erickson [Wed, 16 Jan 2013 16:04:23 +0000 (11:04 -0500)]
2.3.3 translations : repair Finnish translator email

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
12 years ago2.3.3 translations : newpot
Bill Erickson [Wed, 16 Jan 2013 15:39:31 +0000 (10:39 -0500)]
2.3.3 translations : newpot

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
12 years ago2.3.3 translations : update profiles
Bill Erickson [Wed, 16 Jan 2013 15:35:33 +0000 (10:35 -0500)]
2.3.3 translations : update profiles

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>