Thomas Berezansky [Fri, 23 May 2014 19:40:23 +0000 (15:40 -0400)]
LP#
1322341: Count part holds on records
Also fix a small mistake in metarecord matching
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Thomas Berezansky [Fri, 18 Apr 2014 13:46:13 +0000 (09:46 -0400)]
LP#
1277551: Limit simplified pull list to available copies
Copies that are targeted by a hold but are not in available or reshelving
statuses should not show up on a pull list.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Blake Henderson [Tue, 1 Jul 2014 22:06:30 +0000 (17:06 -0500)]
LP1277556 Fast Item Add no longer opens record after copy is created
Altered save_attempt to handle undefined and true cases for replace_on_complete
When fastItemAdd is not used, replace_on_complete is undefined
When it is used, and successful, replace_on_complete will be set to true
then we need it to execute result.on_complete()
Signed-off-by: Blake Henderson <blake@mobiusconsortium.org>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
Kathy Lussier [Tue, 19 Aug 2014 18:29:56 +0000 (14:29 -0400)]
lp1182605 Add sort value for holds interfaces
Holds interfaces were still sorting incorrectly, so let's add a sort value
there.
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Victoria Lewis [Wed, 30 Apr 2014 22:09:07 +0000 (15:09 -0700)]
lp1182605 Abstracting out common functionality from code that sorts call numbers by label_sortkey
Code had been added to insure that LC call numbers are sorting as they should by asset.call_number.label_sortkey.
Code was duplicated in the 'call_number column' in the 'columns' group and in the 'hold_columns'group.
I abstracted the logic out of 'sort_value' and 'render' in the 'call_number' column in the 'columns' group and from
'render' in the 'call_number' column in the 'hold_columns' group to a utility function called
'sort_call_numbers_by_label_sortkey'.
Signed-off-by: Victoria Lewis <vcamklewis@gmail.com>
modified: xul/staff_client/server/circ/util.js
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Kyle Tomita [Mon, 2 Dec 2013 23:50:17 +0000 (15:50 -0800)]
LP1182605 : LC call numbers sort improperly in tabular displays
The issue was that the column was sorting on the label (call number)
and not label_sortkey. An attribute 'sort_value' was added that used
label_sortkey.
Signed-off-by: Kyle Tomita <tomitakyle@gmail.com>
modified: Open-ILS/xul/staff_client/server/circ/util.js
(cherry picked from commit
696ce9e6c36bffd1d8c884baab2f5d36687e741b)
Signed-off-by: Victoria Lewis <vcamklewis@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Dan Wells [Mon, 7 Jul 2014 17:16:58 +0000 (13:16 -0400)]
Fix currently harmless but still confusing sigil error
get_org_descendants() returns an array ref, not a list, so it doesn't
make sense to assign it to an '@orgs' variable. Lucky for us, our
where-parser treats this single element list containing the ref in the
same manner as the proper ref itself, but at best, it is still very
confusing to see.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Dan Wells [Thu, 8 May 2014 20:18:11 +0000 (16:18 -0400)]
LP#
1078787 Fix serial scoping in TPAC
If you have generated holdings, but are not using the "compressed"
display, your holdings show up regardless of scope. This change
limits the display to only sdists with a holding_lib in your current
search scope.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Mike Rylander [Mon, 25 Aug 2014 17:44:55 +0000 (13:44 -0400)]
LP#800478: Stamping upgrade script for fund transfer fix
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Bill Erickson [Tue, 25 Feb 2014 17:23:13 +0000 (12:23 -0500)]
LP#800478 repair logic error in acq fund transfer
The source data for the amount applied to each allocation and transfer
(in certain circumstances) was incorrect.
The transfer amount should not be the total amount allocated from the
source to the fund, but instead the amount of the funding source credit
in cases where we have to pull money from multiple funding source
credits.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Liam Whalen <liam.whalen@bc.libraries.coop>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Mike Rylander [Wed, 9 Oct 2013 15:36:52 +0000 (11:36 -0400)]
LP#
1339190: Have Evergreen save authtoken state to support IO::Multiplex mode
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Mike Rylander [Wed, 11 Sep 2013 20:02:24 +0000 (16:02 -0400)]
LP#
1339190: support disconnection for SIP multiplex purposes
This patch adds a disconnect method to close the OpenSRF
connect; this method is invoked only when the Net::Server::Multiplex
personality is in use.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Remington Steed [Tue, 5 Aug 2014 15:23:20 +0000 (11:23 -0400)]
Docs: Update commands for authority importing script
The tools used for importing authority records from the command line have
been modified since the original docs were written. Testing revealed these
changes, which are reflected in this commit.
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Bill Erickson [Tue, 8 Oct 2013 19:58:56 +0000 (15:58 -0400)]
LP#
1348731: have SIP gateway use a login nonce
Since multiple SIP clients may use the same credentials, avoid the
same-username race condition to authentication by applying a login nonce
value.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Bill Erickson [Tue, 8 Oct 2013 19:52:12 +0000 (15:52 -0400)]
LP#
1348731: Optional Auth login nonce to differentiate same-username logins
If multiple login attempts are made using the same username within a
very short period of time, a race condition exists where, upon
completion of the first login, the auth init cache data for any pending
logins are removed, since there can only be one instance of cached init
data per username.
This adds support for allowing the caller to pass in a random string
which is added to the cache key as a way to differentiate between logins
using the same username.
The seed is passed into auth init as an optional secondary parameter
and passed again (via the "nonce" argument) to auth complete to ensure
consistent cache keys across both interactions.
Example:
my $nonce = rand($$);
my $seed = request(
'open-ils.auth',
'open-ils.auth.authenticate.init', $username, $nonce );
my $response = request(
'open-ils.auth',
'open-ils.auth.authenticate.complete',
{
username => $username,
password => md5_hex($seed . md5_hex($password)),
type => 'opac',
nonce => $nonce
}
);
The race condition has been observed with the SIP2 gateway when
multiple devices have been configured to use the same account.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Mike Rylander [Mon, 14 Jul 2014 18:57:38 +0000 (14:57 -0400)]
LP#
1341703 Thinko in Batch Edit (hidden by older OpenSRFs)
There's a bug on line 272 of O::A::Cat.pm where we called a non-existent
method named respond_complete on the invocant object. Instead, we need to
call that on the client object (spelled $conn in this method). Batch bib
edit won't work on new OpenSRF's until this is fixed.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Dan Wells [Mon, 14 Jul 2014 21:18:20 +0000 (17:18 -0400)]
Forward-port 2.5.6 upgrade script
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Yamil Suarez [Wed, 9 Jul 2014 21:23:49 +0000 (17:23 -0400)]
Documentation: updated some SIP content
Signed-off-by: Yamil Suarez <yamil@yamil.com>
Yamil Suarez [Wed, 9 Jul 2014 01:13:07 +0000 (21:13 -0400)]
Documentation: added AsciiDoc version of old SIP docs from EG 1.6/2.0 docs
Signed-off-by: Yamil Suarez <yamil@yamil.com>
Galen Charlton [Wed, 9 Jul 2014 16:07:32 +0000 (09:07 -0700)]
LP#
1339767: follow-up: Thumbs.db, not Thumbs.DB
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Galen Charlton [Wed, 9 Jul 2014 15:47:09 +0000 (08:47 -0700)]
LP#
1339767: add Thumbs.DB to .gitignore
Removes a minor annoyance for documenters who use recent
versions of Windows
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Dan Wells [Mon, 7 Jul 2014 17:49:15 +0000 (13:49 -0400)]
Forward port 2.5.5 upgrade script
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Remington Steed [Fri, 6 Jun 2014 15:59:58 +0000 (11:59 -0400)]
LP#968514: Revive bib/auth importing docs from 2.1, add intro
This commit revives the following sections from the 2.1 version of the docs
and updates them for 2.6:
- marc_export: Exporting Bibliographic Records into MARC files
- includes new options for 2.6
- Importing Authority Records from Command Line
- Importing Authority Records from the Staff Client
The first two are included in a new section called "Support Scripts"
within the "Developer Resources" section, with a new intro and summary
of other commonly used scripts provided with Evergreen. The third section
is moved inside the Cataloging chapter "Batch Importing MARC Records",
with slight modifications to the intro to that chapter.
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Erica Rohlfs [Fri, 30 May 2014 19:12:29 +0000 (15:12 -0400)]
Docs: Minor wording change
Signed-off-by: Erica Rohlfs <erohlfs@esilibrary.com>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Robert Soulliere [Wed, 2 Jul 2014 17:45:23 +0000 (13:45 -0400)]
Documentation: Updated 2.5 upgrade instructions.
- Added db upgrades up to 2.5.5.
- Added a note about reingesting records after the upgrade has been completed.
Signed-off-by: Robert Soulliere <robert.soulliere@mohawkcollege.ca>
Yamil Suarez [Tue, 1 Jul 2014 19:42:17 +0000 (15:42 -0400)]
Documentation: Added 'Using the OPAC' documentation
Older DocBook content that covered how to do searches on the OPAC was updated
to use Asciidoc.
Signed-off-by: Yamil Suarez <yamil@yamil.com>
Ben Shum [Thu, 26 Jun 2014 19:42:51 +0000 (15:42 -0400)]
LP#925776 Stamping upgrade script for 2.5 for function staff uri visibility
Signed-off-by: Ben Shum <bshum@biblio.org>
Mike Rylander [Fri, 9 May 2014 14:35:08 +0000 (10:35 -0400)]
LP#925776 Adding 2.5-ish upgrade script.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Mike Rylander [Fri, 2 May 2014 13:10:09 +0000 (09:10 -0400)]
LP#925776: Recheck located uri visibility
Previous to this commit, once we have determined that there are no
local Located URIs or foreign copies, we include the record in the
result set in the staff client. However, the desire of library staff
is that foreign Located URIs be valid as a visibility limiter. So
we now recheck at the end for that situation. This honors the new
"Located URIs act like copies" global flag.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Kathy Lussier [Thu, 26 Jun 2014 14:56:20 +0000 (10:56 -0400)]
Documentation for cataloging electronic resources
Moving up and updating Located URI documentation from 1.6 and transcendent bib
source documentation from the wiki.
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Bill Erickson [Thu, 6 Jun 2013 15:13:35 +0000 (11:13 -0400)]
LP#
1179660: remove call to undefined initialize func
Remove call to nonexistant function Search::Z3950->initialize. Prior to
now, this would have quietly failed, but with AUTOLOAD to be removed
from OpenSRF, it would fail with full shock and awe.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Search.pm
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Dan Scott [Fri, 6 Jun 2014 00:27:39 +0000 (20:27 -0400)]
LP#
1303544 Trim junk from the ISBN in record summary
When asserting that we are publishing an ISBN, move the "(pbk.)"
and similar such matter outside of the schema.org <span property="isbn">
element.
See "The walking dead" in the sample dataset for an example.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
Galen Charlton [Thu, 5 Jun 2014 22:16:23 +0000 (15:16 -0700)]
LP#
1326983: excluded fulfilled holds when adding hold_request.shelf_expires_soon events
This patch adjusts the example A/T filter for the
hold_request.shelf_expires_soon hook to exclude hold requests that are
already marked as fulfilled. This saves time creating events that
would immediately be marked as invalid per the HoldIsAvailable
validator.
It also addresses an issue for large databases that have lots of
fulfilled holds wherein hold_request.shelf_expires_soon events can
fail to be added at all due to a cstore timeout.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Bill Erickson [Thu, 5 Jun 2014 13:47:36 +0000 (09:47 -0400)]
LP#
1326806 Minor repairs to EDI admin documentation
Updates to EDI account Path/Incoming/Account docs.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Jeff Davis [Tue, 25 Feb 2014 20:41:56 +0000 (12:41 -0800)]
LP#
1284832: Add missing seed data: enable combined search for only the subject class by default
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Dan Pearl [Tue, 20 May 2014 17:12:47 +0000 (13:12 -0400)]
LP#
1321363: Suppress Hold Transit use elicits client error
This change restores the behavior as designed.
Signed-off-by: Dan Pearl <dpearl@cwmars.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Dan Wells [Thu, 29 May 2014 13:15:01 +0000 (09:15 -0400)]
Forward port 2.5.4 upgrade script
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Galen Charlton [Tue, 20 May 2014 17:09:08 +0000 (10:09 -0700)]
LP#
1296937: move the $force_bc parameter of ->charged_items() to an implementation method
Argubably, the $force_bc parameter of OpenILS::SIP::Patron->charged_items()
method exists solely as an implementation convenience for the renew-all
code. Consequently, this patch removes the $force_bc parameter from the
public interface for charged_items() and spins it off into a new
implementation method.
This patch should be applied at the same time that a reversion of
SIPServer commit
c97d64412bc is applied. Note that a user who upgrades
SIPServer without upgrading Evergreen to a version that contains this
patch will end up in a situation where the code that counts active
loans for the patron information response will fetch the loans using
$force_bc set to true; this works only by coincidence.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jeff Godin <jgodin@tadl.org>
Bill Erickson [Thu, 22 May 2014 18:41:17 +0000 (14:41 -0400)]
LP#
1322303 cleanse backdate for checkin overdue voiding
Passing raw backdates, particularly from offline transactions, which
have a space between the date and time, to
DateTime::Format::ISO8601->parse_datetime results in "Invalid date
format:" errors. Pass the date through the cleanse routine first.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Josh Stompro [Wed, 21 May 2014 13:37:58 +0000 (08:37 -0500)]
(doc) 'debian-wheezy' was left out of the OS options
Just added 'debian-wheezy' to the OS options, it was left out by mistake.
Signed-off-by: Josh Stompro <Stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Josh Stompro [Mon, 19 May 2014 20:17:15 +0000 (15:17 -0500)]
(doc) add overdues to summary of the phone list feature
Added "or overdues" to the summary so it is clear that phonelist
handles both holds and overdues.
Signed-off-by: Josh Stompro <Stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Dan Wells [Thu, 22 May 2014 15:24:41 +0000 (11:24 -0400)]
LP#
1314920 Stamping upgrade script
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Jason Etheridge [Thu, 1 May 2014 08:15:55 +0000 (04:15 -0400)]
LP#
1314920 change the desc for the org hiding setting
so that it references physical_loc instead of ol
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Jeff Godin [Wed, 30 Oct 2013 18:37:10 +0000 (14:37 -0400)]
LP#
1246843: Don't show contact invalidators for new users
Don't show contact invalidator buttons for new users. This affects
staged users and cloned users, where the contact fields have a value
when the editor initially loads.
Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Mike Rylander [Tue, 20 May 2014 18:30:20 +0000 (14:30 -0400)]
LP#
1321429: Use server-local time as best-guess
When first calculating the shelf expire time, we assume "now" as
the starting point by calling DateTime->now(). However, that gives
us the time in UTC. That's not good because closed dates are stored
timezone-aware. Instead, ask for server-local time.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Galen Charlton [Tue, 20 May 2014 23:48:57 +0000 (16:48 -0700)]
LP#
1312945: pin schema update
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Conflicts:
Open-ILS/src/sql/Pg/002.schema.config.sql
Galen Charlton [Tue, 20 May 2014 23:46:02 +0000 (16:46 -0700)]
LP#
1312945: add regression test
This adds a test for the change to the
authority.calculate_authority_linking stored function.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Mike Rylander [Wed, 30 Apr 2014 22:38:29 +0000 (18:38 -0400)]
LP#
1312945: baseline schema update
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Srey Seng <sreyseng@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Srey Seng [Wed, 30 Apr 2014 22:20:17 +0000 (15:20 -0700)]
LP#
1312945: authority.calculate_authority_linking and multiple linked tags
The function "authority.calculate_authority_linking" was not able to deal with
situations where there are multiple marc tags that are linkable. The function
only process the first tag that contains a linking_subfield and returns that
to be inserted into the authority_linking table, even when there are more than
one of the same tag with linking_subfield.
Added an additional loop to loop through each tag, for situations where there are
multiples of each tag.
Signed-off-by: Srey Seng <sreyseng@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Mike Rylander [Wed, 30 Apr 2014 16:58:11 +0000 (12:58 -0400)]
LP#
1312945: auth-auth linking: cache less agressively and look for all links
There was a logic inversion that was causing miss-use of a per-
record cache mechanism. I remove that entirely, as it's not helpful
in practice.
Also, after finding one use of a linked field we moved on to the
next, though it is possible for more than one link to exist for
different uses of a name, say. Now we'll loop through all fields
to find all possible linkages.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Srey Seng <sreyseng@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Galen Charlton [Tue, 20 May 2014 15:46:47 +0000 (08:46 -0700)]
LP#
1296937: (follow-up) make $ids_only be the last parameter for ->charged_items()
This change ensures that if a site fails to upgrade SIPServer at the
same time that they upgrade Evergreen, the renew all message won't
break on them.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Thomas Berezansky [Thu, 23 Jan 2014 17:07:06 +0000 (12:07 -0500)]
LP#
1296937: (SIP2) Add ids_only parameter to _items functions
This allows the caller to skip loading of barcodes and/or titles when
they are not needed, such as when the plan is to return counts, not
details. Per bug
1321017, this is particular useful for patrons
that have metarecord holds.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Yamil Suarez [Thu, 8 May 2014 21:37:07 +0000 (17:37 -0400)]
Documentation: add a 'where' clause to bib record import stored procedure
The stored procedure for doing bib record import was lacking a 'where'
clause in one of the update statements.
Signed-off-by: Yamil Suarez <yamil@yamil.com>
Kathy Lussier [Thu, 1 May 2014 21:55:23 +0000 (17:55 -0400)]
Fix for Library Links Documentation
Fix for the note formatting in the Library Links Documentation.
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Yamil Suarez [Wed, 30 Apr 2014 15:57:16 +0000 (11:57 -0400)]
Documentation: added missing word to 'library settings editor' docs
Added "editor" to label of what menu should be used.
Signed-off-by: Yamil Suarez <yamil@yamil.com>
Kathy Lussier [Sun, 27 Apr 2014 05:13:59 +0000 (01:13 -0400)]
Docs for library links
Adding documentation for the new 2.5 feature allowing sites to configure
links to their web sites from the catalog.
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Dan Wells [Thu, 16 Jan 2014 21:01:09 +0000 (16:01 -0500)]
Rejigger 2.4.3-2.5.0 upgrade bits
As reported in LP#
1261355, Postgres fails in some cases when changing
constraints on existing data inside a transaction. This may or may not
fix the actual problem, but it at least tidies up these changes, and
will make it much cleaner to move outside the transaction if needed.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Dan Wells [Thu, 6 Mar 2014 23:17:56 +0000 (18:17 -0500)]
Forward-port 2.5.2-2.5.3 upgrade script
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Dan Wells [Thu, 17 Apr 2014 17:00:25 +0000 (13:00 -0400)]
Tweak 0877 upgrade file for 2.5
The 0877 upgrade file for 2.6 lacked in parsimony because it assumed
it would generally run as part of the 2.6.0 upgrade, and that required
a full reingest anyway.
Credit for this "quick" version goes to Mike Rylander.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Ben Shum [Fri, 28 Mar 2014 20:53:39 +0000 (16:53 -0400)]
LP#
1259665 Stamping upgrade for 800t search and facets
Signed-off-by: Ben Shum <bshum@biblio.org>
Dan Wells [Thu, 27 Mar 2014 18:19:34 +0000 (14:19 -0400)]
LP#
1259665 Split series browse config from search
When we added browse support in 2.5, we took extra care to ensure that
our series browse entries would sort and display reliably.
800t does not specify non-filing characters, so it was excluded from
browse. Unfortunately, since browse and search had a single root
config, this removed 800t from search as well.
While we may want to reconsider expanding later on, this commit takes
a conservative approach, and uses all series values for search and
facets, but only entries with a usable filing indicator will be
extracted for browse. It accomplishes this by splitting the series
config in two, one config for search/faceting, and a second config
dedicated to browse (similar to what was done for title).
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
Jeff Godin [Wed, 30 Oct 2013 17:17:25 +0000 (13:17 -0400)]
Add alert in user editor for method errors
Add an alert() in the user editor so that method errors are not
silent.
Without this, a method error (such as when saving a patron fails at
the db level) is silent. Better to at least inform the user that
something is amiss.
Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Bill Erickson [Sat, 22 Mar 2014 01:05:14 +0000 (21:05 -0400)]
LP#
1115599: Ignore canceled lineitems during batch cancel
Continue ignoring already-canceled lineitems during batch cancel so that
a) no unnecessary calls are made and b) staff can be alerted when no
viable lineitems were selected for the requested action.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Kathy Lussier [Wed, 29 Jan 2014 22:07:29 +0000 (17:07 -0500)]
LP#
1115599: Allow cancelled lineitems to be received and invoiced
Acquisitions staff need to be able to receive and invoice cancelled items,
particularly when those items are backordered. This branch restores the
ability to perform these actions on cancelled lineitems from the PO
screen.
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Lebbeous Fogle-Weekley [Thu, 20 Feb 2014 17:21:57 +0000 (12:21 -0500)]
LP#
1282704: Serials: in routing lists, avoid extra page breaks wasting paper at print time
If you're using batch receive, and you have two copies (and therefore
two streams) that you're receiving with the Routing List? checkbox
checked, but only one of those streams actually has a routing list,
you'll note before this patch is applied that you get an extra page of
blank paper if you print the routing list that pops up.
This fixes that.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Yamil Suarez [Fri, 28 Mar 2014 15:45:11 +0000 (11:45 -0400)]
Documentation: Changed return type of staging_importer() SP
Now it returns VOID, before it retunred NULL and gave an error
Signed-off-by: Yamil Suarez <yamil@yamil.com>
Jason Etheridge [Fri, 8 Nov 2013 19:12:43 +0000 (14:12 -0500)]
remove XUL @persist from list column definitions
We moved away from @persist a long time ago, but some cruft remained. This
would cause a local file, localstore.rdf, to balloon in size as columns were
adjusted in XUL-based lists. Since this is an XML file, writing and parsing
it can get very expensive if the file grows too large, which it has done for
some people.
This change keeps that file from growing further based on these list columns,
but it may be worth deleting the localstore.rdf file or creating a new staff
client profile (uninstalling and reinstalling the staff client DOES NOT
accomplish this).
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Remington Steed [Tue, 25 Mar 2014 13:30:38 +0000 (09:30 -0400)]
Change xref syntax to avoid docs processing bug
The current Documentation processing script can't handle the newer xref
syntax for cross references. Let's use the older syntax for now, and
consider changing over in the future, after the processing bug is fixed.
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Remington Steed [Thu, 20 Mar 2014 19:52:30 +0000 (15:52 -0400)]
Docs: Revive/merge content into "Using the Staff Client"
This commit brings in three old sections and merges with any similar
content.
- Revive old section about sticky check box settings
- Merge old section about Font and Sound settings
Adds a brief section about zooming in the OPAC, and otherwise only
reformats some lines to make them git-friendly.
- Docs: Fix and copy Customize Toolbars section
The old "Customizable Toolbar" docs section is already revived in the
Evergreen Book "System Configuration and Customization" chapter. Since
this feature seems to belong under "Using the Staff Client ->
Workstation Administration", this commit duplicates it into that
chapter. This also fixes a few asciidoc bugs in both places. And it
fixes one bug in root.txt which caused "phonelist.txt" to be mentioned
at the bottom of this section, but not actually included in the docs
structure.
In addition, the section "Button Bar/Toolbar" that was also under
"Workstation Administration" has been moved up a level, since it
pertains more to staff client users rather than admins. And the
admin-specific content at the end of that section has been replaced
with a link to the newly duplicated "Customizable Toolbar" section.
The result of this reorganization should be:
- Using the Staff Client
- Button Bar/Toolbar (for staff client users)
- Workstation Administration
- Customizable Toolbar (for staff client admins)
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Remington Steed [Thu, 20 Mar 2014 18:53:00 +0000 (14:53 -0400)]
Docs: Revive old section about Column Picker
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Remington Steed [Thu, 20 Mar 2014 14:53:36 +0000 (10:53 -0400)]
Add missing screenshot files for new 2.5 Acq import feature
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Remington Steed [Wed, 19 Mar 2014 19:56:44 +0000 (15:56 -0400)]
Docs: Reformat numbered lists into AsciiDoc syntax
This commit improves list formatting in the Batch Importing section by
converting various hard-coded numbered lists into AsciiDoc syntax. Where
images are included, those are forced to be inline by adding a '+' to the
preceeding line. And whitespace was removed from the end of two lines. No
other changes are included.
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Remington Steed [Mon, 13 Jan 2014 14:44:55 +0000 (09:44 -0500)]
Document new 2.5 feature in Acq docs
This commit adds documentation in two places for the new Acq feature
"Opportunistic Acquisitions In-Process Copy Overlay". First, a short
note is added to the "Load MARC Order Records" doc. Second, the feature
is described more thoroughly in the "Batch Importing MARC Records" doc.
Also, this commit cleans up a hard-coded ordered list and a few small
wording and formatting problems.
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Remington Steed [Wed, 5 Mar 2014 22:57:24 +0000 (17:57 -0500)]
LP1198983: Remove deprecated useragent.override variable
To quote Dan Wells in bug comment #6:
Back in the 2.2 days, Evergreen had code which set the
'general.useragent.override' to something like 'Mozilla/5.0 (Windows; U;
Windows NT 6.1; en-US; rv:1.9.2.25) Gecko/
20111212 oils_xulrunner
/xul/rel_2_2_0/server/'. For anyone who once had a 2.2 client installed
and upgraded from it, this setting persists (this is the situation for
most stations in our library).
Since this string does not match the new test for 'open_ils_staff_client'
in the useragent, these clients are not properly streaming requests. This
problem was most easily noticed in Vandelay progress bars (they always
jumped from 0% to 100%).
This commit adds the code provided by Bill Erickson in the LP bug
comments. To test it, you can add the 'general.useragent.override'
setting to your staff client with any value (using the 'about:config'
interface), then run this code and check that your setting is gone.
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Bill Erickson [Tue, 18 Feb 2014 19:38:07 +0000 (14:38 -0500)]
LP#
1281750 Ignore deleted users in usrgroup info APIs
Ignore deleted users in these API calls:
open-ils.actor.usergroup.members.balance_owed
open-ils.actor.usergroup.members.retrieve
open-ils.actor.usergroup.leaders.retrieve
open-ils.actor.address.members
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Elliot V [Fri, 7 Mar 2014 05:43:00 +0000 (23:43 -0600)]
LP#
1077811 Inconsistent INSTALL Instructions
The preamble to the installation instructions, intended for
developers, is a bit unclear. The instructions describe actions
that should take place at two different points in the installation.
This commit moves the instructions to download and install the Dojo
Toolkit until after the opensrf Linux user already owns the
/openils directory. It also adds the appropriate note for non-devs
to skip this section.
Signed-off-by: Elliot V <evoris@slcconline.edu>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Dan Wells [Wed, 5 Mar 2014 17:24:19 +0000 (12:24 -0500)]
LP#
1287510 Add missing column to upgrade script
If you come via upgrade and not a fresh 2.5 DB, you are probably
missing the action.aged_hold_request.behind_desk column. Add it in a
harmless way.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
Ben Shum [Fri, 28 Feb 2014 17:38:36 +0000 (12:38 -0500)]
LP1272316 - Stamping upgrade script for pre-calculate-prox-adjustment
Signed-off-by: Ben Shum <bshum@biblio.org>
Mike Rylander [Fri, 14 Feb 2014 17:01:37 +0000 (12:01 -0500)]
LP1272316 - Calculate proximity in the DB for speed
We need to calculate and store a (potenially adjusted) proxmity for
each hold and copy for use in targetting and optimization of op
capture. Before this commit, we do that within the hold target
code itself. Now we'll do it when the hold-copy map is inserted,
because we have the same information available at that time as we
have in the targeter. This will both speed up the apparent cost of
the calculation, because it avoids the cost of a network round-trip,
and the total number of SELECTs we must issue, because the proximity
value will now be cached for use by the proximity map function.
Backward compatability is retained for the create_prox_map() function
in case any other code is depending on that.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Lebbeous Fogle-Weekley [Fri, 24 Jan 2014 17:33:13 +0000 (12:33 -0500)]
LP1272316 - Followup to make ou_ancestor_setting() even faster
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Lebbeous Fogle-Weekley [Fri, 24 Jan 2014 17:24:06 +0000 (12:24 -0500)]
LP1272316 - Speed up these settings lookups in the hold targeter that get repeated a ...
... lot when there are lots of copies for a hold.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Dan Wells [Fri, 21 Feb 2014 21:34:58 +0000 (16:34 -0500)]
Stamping 0868 - 'behind_desk' fixes
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Conflicts:
Open-ILS/src/sql/Pg/002.schema.config.sql
Bill Erickson [Tue, 18 Feb 2014 19:16:40 +0000 (14:16 -0500)]
LP#
1281744 Aged hold purging column repair
Add missing non-NULLable "behind_desk" column to
action.all_hold_request, which is used during holds deletion and
archiving.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Dan Wells [Thu, 20 Feb 2014 15:13:07 +0000 (10:13 -0500)]
Stamping 0862 - changes for Encode.pm 2.54+
Also, remove extra XXXX file which someone had preserved by mistake.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Dan Wells [Tue, 14 Jan 2014 19:12:53 +0000 (14:12 -0500)]
Upgrade file for Encode.pm 2.54+ changes
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Dan Scott [Fri, 25 Oct 2013 17:54:35 +0000 (13:54 -0400)]
Add pgTAP test for normalized MARC records
Specifically, we're concerned about ensuring that any changes related to
the fix for Encode (requiring the removal of the effectively useless but
now erroring decode_utf8()) do not inadvertently change the content of
the MARC records on ingest. Because we wouldn't want to have to reingest
everything to normalize search, etc.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Dan Scott [Thu, 24 Oct 2013 21:44:00 +0000 (17:44 -0400)]
Test Perl Unicode normalization process
Add some basic tests of our Unicode normalization (and entityization)
process.
Also, 'use utf8;' tells the script that it contains UTF8 characters,
not binary bytes, and resolves a test problem.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Dan Scott [Mon, 21 Oct 2013 15:58:06 +0000 (11:58 -0400)]
Encode.pm change to the UTF8 flag
In the past, decode_utf8() silently ignored attempts to decode data
with the UTF8 flag on. However, Encode.pm changed around 2.53 and
resulted in wide-character errors preventing the likes of
--load-all-sample from working.
Since our data should already be UTF8 when it hits these functions, we
should not be trying to decode it in the first place.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Ben Shum [Sat, 8 Feb 2014 08:42:07 +0000 (03:42 -0500)]
LP1125471 - Use label instead of id in recording in-house use prompt
When recording multiple in-house use with the library settings for threshold
prompts, the prompt would bring up the ID as the variable instead of the name
of the non-cataloged material. This caused confusion among staff members who
might see a message like: "Are you sure you want to mark 9 as having been used
21 times?" (9 being the id, not the name of the non-cataloged material)
This commit leverages existing code which had been commented out and under
the ID to use the label name for the non-cataloged material instead. Also,
minor bugfix with a missing semi-colon at the end of the function being used.
Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Bill Erickson [Mon, 30 Dec 2013 18:49:01 +0000 (13:49 -0500)]
Vandelay: increase queued item creation timeout
Allow up to 10 minutes to create each queued vandelay record to avoid
timeouts in item creation caused by pathologicaly long-running record
match set queries.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Mike Rylander [Thu, 12 Sep 2013 17:26:21 +0000 (13:26 -0400)]
Keep standard INNER joins above possible OUTERs
We always join metabib.record_attr, and we always use an INNER join
to the core table, so keep that join first. Likewise with the join
to biblio.record_entry. Dynamic joins may be OUTER, though, and while
join reordering in Postgres is smart, let's not give it the chance to
fail.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Thomas Berezansky [Thu, 21 Jun 2012 15:38:39 +0000 (11:38 -0400)]
Assume that future checkins are junk input
This can happen with SIP2 clients with badly set clocks.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Mike Rylander [Wed, 12 Feb 2014 22:19:55 +0000 (17:19 -0500)]
LP1046026 - Fix duplicate rows in holds pull list
If there are multiple CAPTURE-blocking penalties we could see dupes on the
pull list. This avoids that.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Dan Wells [Fri, 9 Nov 2012 21:12:58 +0000 (16:12 -0500)]
Prevent odd TPAC base URL redirect
As it stands, in a default install, if you browse to
http://yourserver.com/eg/opac
you are redirected to a login page, and if you login, you then get
to the 404 page. This behavior is caused by the fact that *any*
URLs which do not match a few select cases are assumed to be
"secure" resources, when in fact they might not even exist.
This commit catches any attempt to browse this 'base' and simply
redirects to the "home" page instead.
This addresses the most obvious and likely 404 of this type, but
we might consider catching some other cases (e.g. eg/opac/record/).
In addition (or as an alternative), we could also create a function
call which simply checks the validity of a URL before we ask the
user to login to see it.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Pasi Kallinen [Thu, 12 Sep 2013 08:55:36 +0000 (11:55 +0300)]
Fix some javascript errors, trying to access nonexistent widgets
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Melissa Ceraso <mceraso@biblio.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Mike Rylander [Fri, 7 Feb 2014 21:00:01 +0000 (16:00 -0500)]
Include calculated 0-prox locations in the stalling interval for op capture
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Mike Rylander [Tue, 21 Jan 2014 17:31:13 +0000 (12:31 -0500)]
Use copy owning library as the context for finding best hold sort order setting
In the olden days before best hold sort order and proximity adjustment, there was
no need to consider any context org other than "here", because the choices were,
essentially, FIFO or Traditional applied within the hard-boundary range. However,
now we need to decided whose rule to follow, and the most correct arbiter of that
is the owning library of the call number of the copy. We avoid copy circ lib
because that can change with floating copies.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Kyle Tomita [Thu, 6 Feb 2014 00:23:18 +0000 (16:23 -0800)]
LP1155769: Items repeated in tpac display, others not visible
This was an issue with the query and ordering by a column that was
sometimes null (copy_number). Added barcode to be a sort rather than
replacing copy_number, per bshum's suggestion. Not replacing allows
libraries that use copy_number to continue to use them as well.
Signed-off-by: Kyle Tomita <tomitakyle@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Bill Erickson [Thu, 9 Jan 2014 16:24:08 +0000 (11:24 -0500)]
LP#
1164720 Prevent empty names in TPAC lists
Form submission for list creation with an empty name value now prevents
list creation and redirects the user to a new error page explaining why
list creation failed.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Jeff Godin [Wed, 30 Oct 2013 17:20:28 +0000 (13:20 -0400)]
Skip duplicate username check when username unchanged
Changing a username, then changing back to the user's current
username results in a duplicate username detection -- a false
positive due to the API call finding a user with that username --
the current user. This prevents you from saving any other changes
you may have made to the user.
This can be prevented by skipping the duplicate username check if
the user is not new and the username in the field matches the
username stored in the in-memory Javascript representation of the
user.
There's still a potential corner case which could be avoided by
using a new/modified API call to either accept an "except this
au.id" argument or to return the au.id of the found user, but I
don't see a need for that at this point.
Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Ben Shum <bshum@biblio.org>