working/Evergreen.git
8 years agoLP#1564685 Alert and stop on invalid fields
Bill Erickson [Mon, 28 Mar 2016 19:22:52 +0000 (15:22 -0400)]
LP#1564685 Alert and stop on invalid fields

Display an alert message and prevent save or save+clone when invalid
values exist in the patron edit form.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1564685 Allow barcode as username despite regex
Bill Erickson [Thu, 24 Mar 2016 02:13:44 +0000 (22:13 -0400)]
LP#1564685 Allow barcode as username despite regex

Allow a patron's barcode to be considered a valid username in the patron
editor even in the presence of an 'opac.username_regex' org setting
value that does not match the barcode.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1564685 Avoid dupe usrname warning on matching patron
Bill Erickson [Thu, 24 Mar 2016 01:21:12 +0000 (21:21 -0400)]
LP#1564685 Avoid dupe usrname warning on matching patron

Do not treat usernames as duplicates when they belong to the patron
being edited.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP1564378: Silence Hash Init Warning
Jason Boyer [Thu, 31 Mar 2016 12:08:03 +0000 (08:08 -0400)]
LP1564378: Silence Hash Init Warning

A trivial change to silence a lot of noise (if your libraries
use extending grace periods.)

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Jason Stephenson <jstephenson@mvlcstaff.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
8 years agoLP#1373601: Consider relevant characters before using word-boundary checks
Mike Rylander [Tue, 22 Mar 2016 15:50:58 +0000 (11:50 -0400)]
LP#1373601: Consider relevant characters before using word-boundary checks

To perform unanchored phrase limits, we make sure that the phrase supplied
by the user does not end in the middle of a word by bounding the condition
with word-boundary bracket expresssions.  However, if the phrase starts
or ends with a non-word character (that is, something other than numbers,
letters, or the underscore) then the word-boundary expression won't match.
The effect of this is to cause phrase searches starting or ending in
punctuation to fail when the user would not expect them to.

To address this, we now test the phrase for word-iness at the front and
back before applying word-boundary bracket expressions.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
8 years agoupdate upgrade instructions for 2.10.1
Galen Charlton [Wed, 23 Mar 2016 02:27:04 +0000 (22:27 -0400)]
update upgrade instructions for 2.10.1

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agorelease notes for Evergreen 2.10.1
Galen Charlton [Wed, 23 Mar 2016 02:24:33 +0000 (22:24 -0400)]
release notes for Evergreen 2.10.1

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years ago2.10.0 - 2.10.1 schema update script
Galen Charlton [Wed, 23 Mar 2016 01:51:39 +0000 (21:51 -0400)]
2.10.0 - 2.10.1 schema update script

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1560174 Stamping upgrade script
Dan Wells [Mon, 21 Mar 2016 21:49:15 +0000 (17:49 -0400)]
LP#1560174 Stamping upgrade script

Signed-off-by: Dan Wells <dbw2@calvin.edu>
8 years agoLP#1560174: fix MARC import for database upgraded to 2.10.0
Galen Charlton [Mon, 21 Mar 2016 19:23:42 +0000 (15:23 -0400)]
LP#1560174: fix MARC import for database upgraded to 2.10.0

This patch applies the correct version of the vandelay.ingest_items()
stored procedure introduced in the patch for bug 1548143.

To test
-------
[1] Upgrade an Evergreen database to 2.10.0 (a fresh database
    will not run into the bug).
[2] Try importing a MARC bib record via Vandelay using a profile
    that imports items.  This should fail.
[3] Apply the schema update in this patch.
[4] Repeat step 2; this time, the import should succeed.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
8 years agoclear slate of RELEASE_NOTES_NEXT entries
Galen Charlton [Mon, 21 Mar 2016 13:44:01 +0000 (09:44 -0400)]
clear slate of RELEASE_NOTES_NEXT entries

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoTranslation updates - po files
Galen Charlton [Thu, 17 Mar 2016 21:43:54 +0000 (17:43 -0400)]
Translation updates - po files

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoforward-port the 2.10.0 upgrade instructions
Galen Charlton [Thu, 17 Mar 2016 22:50:40 +0000 (18:50 -0400)]
forward-port the 2.10.0 upgrade instructions

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoforward-port 2.9.3-2.10.0 monolithic DB update script
Galen Charlton [Thu, 17 Mar 2016 22:46:02 +0000 (18:46 -0400)]
forward-port 2.9.3-2.10.0 monolithic DB update script

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoforward-port 2.10.0 release notes
Galen Charlton [Thu, 17 Mar 2016 21:25:14 +0000 (17:25 -0400)]
forward-port 2.10.0 release notes

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoPorting 2.9.2 to 2.9.3 database upgrade script.
Jason Stephenson [Wed, 16 Mar 2016 20:57:00 +0000 (16:57 -0400)]
Porting 2.9.2 to 2.9.3 database upgrade script.

Signed-off-by: Jason Stephenson <jstephenson@mvlcstaff.org>
8 years agoPorting 2.8.6 -> 2.8.7 SQL upgrade
Bill Erickson [Wed, 16 Mar 2016 20:46:38 +0000 (16:46 -0400)]
Porting 2.8.6 -> 2.8.7 SQL upgrade

Signed-off-by: Bill Erickson <berickxx@gmail.com>
8 years agoDocs: 2.9.3 Release notes
Kathy Lussier [Wed, 16 Mar 2016 17:54:10 +0000 (13:54 -0400)]
Docs: 2.9.3 Release notes

Adding bug fixes to the point release notes for 2.9.3

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
8 years agodocs-2.8.7 release notes
Kathy Lussier [Wed, 16 Mar 2016 17:35:22 +0000 (13:35 -0400)]
docs-2.8.7 release notes

Adding point release notes for 2.8.7

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
8 years agoLP#1557621 Verify password barcode / deleted users repair
Bill Erickson [Tue, 15 Mar 2016 16:31:37 +0000 (12:31 -0400)]
LP#1557621 Verify password barcode / deleted users repair

* Fixes bug that caused password verify calls to fail with an exception
  when tested with a barcode.

* Verify API always returns false when tested on deleted users.

To test:

1. In the staff client, navigate to Circulation -> Verify Credentials
2. Confirm username and barcode lookups return success for a non-deleted
   user using the correct password.
3. Delete a test user in the database:
   UPDATE actor.usr SET deleted = TRUE WHERE id = <id-of-test-user>;
4. Re-do step 2 confirming non-success results are returned.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1367926: fix syntax error in DB update script
Galen Charlton [Tue, 15 Mar 2016 17:44:58 +0000 (13:44 -0400)]
LP#1367926: fix syntax error in DB update script

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agodocs: reorganizing, adding information about importing authority records using vandelay
Jane Sandberg [Mon, 14 Mar 2016 23:34:43 +0000 (16:34 -0700)]
docs: reorganizing, adding information about importing authority records using vandelay

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agodocs: Adding instructions for setting up due time in the patron's myopac display
Jane Sandberg [Tue, 1 Mar 2016 00:00:15 +0000 (16:00 -0800)]
docs: Adding instructions for setting up due time in the patron's myopac display

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agodocs: Adding section about facet_groups in advanced search
Jane Sandberg [Mon, 29 Feb 2016 23:42:31 +0000 (15:42 -0800)]
docs: Adding section about facet_groups in advanced search

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoTranslation updates - newpot
Galen Charlton [Tue, 15 Mar 2016 00:50:25 +0000 (20:50 -0400)]
Translation updates - newpot

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP1550035 Address deletion / avoid xact collisions
Bill Erickson [Sun, 6 Mar 2016 23:09:30 +0000 (18:09 -0500)]
LP1550035 Address deletion / avoid xact collisions

Avoid transaction collision errors when updating patrons, in cases where
the patron object has to be updated more than once, by refreshing the
last_xact_id value on the in-progress patron object.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1550036 Linked patrons for new users
Bill Erickson [Sun, 6 Mar 2016 22:50:30 +0000 (17:50 -0500)]
LP#1550036 Linked patrons for new users

Support adding auzillary (linked) groups for new patrons in the browser
client editor.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1553813 Patron editor validation / perm checks.
Bill Erickson [Thu, 25 Feb 2016 04:07:54 +0000 (23:07 -0500)]
LP#1553813 Patron editor validation / perm checks.

1. Adds support for enforcing ui.patron.edit.*.require and
ui.patron.edit.*.regex org unit settings via Angular's ng-pattern and
ng-required attributes.

2. Supports selecting only valid profile groups and home org units.

3. Warns the user when a duplicate barcode or username is encountered.

When any fields in the form are invalid, the save options are disabled.

==

Adds support for enforcing the following permissions:

UPDATE_USER
CREATE_USER
CREATE_USER_GROUP_LINK
UPDATE_PATRON_COLLECTIONS_EXEMPT
UPDATE_PATRON_CLAIM_RETURN_COUNT
UPDATE_PATRON_CLAIM_NEVER_CHECKED_OUT_COUNT
UPDATE_PATRON_ACTIVE_CARD
UPDATE_PATRON_PRIMARY_CARD

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#963341: Unrelated YAOUS breaks MFHD management
Mike Rylander [Mon, 7 Dec 2015 16:57:11 +0000 (11:57 -0500)]
LP#963341: Unrelated YAOUS breaks MFHD management

Part of LP bug 963341 is about how the setting opac.fully_compressed_serial_holdings
breaks staff's ability to manage MFHD attached to serials records.  This
commit unbreaks that by fetching the relevant MFHD regardless of that setting
but should not otherwise change user-visible behavior.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1208613: Reset lineitem cache when resetting table
Dan Wells [Thu, 7 Jan 2016 16:47:43 +0000 (11:47 -0500)]
LP#1208613: Reset lineitem cache when resetting table

Stale cache entries in this table were causing the "expand all"
functionality to break.  This might be a nuclear option, but as far as
I could see, this "cache" gets repopulated on every pagination anyway,
so I don't think we're losing anything.

To test:

[1] Select a large list from the Acquisitions --> My Selection List
    screen.
[2] Click on the Expand All button and the items on the page expand
    with more information.
[3] Click on the Next link to bring up page 2 of the list.
[4] Click on the Expand All button and verify that additional
    information is displayed.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Erica Rohlfs <erohlfs@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1370694: stamp database update
Galen Charlton [Mon, 14 Mar 2016 21:35:59 +0000 (17:35 -0400)]
LP#1370694: stamp database update

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1370694: don't update already-customized format.selfcheck.holds
Galen Charlton [Mon, 14 Mar 2016 21:33:49 +0000 (17:33 -0400)]
LP#1370694: don't update already-customized format.selfcheck.holds

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1370694: clean up whitespace
Galen Charlton [Mon, 14 Mar 2016 21:09:53 +0000 (17:09 -0400)]
LP#1370694: clean up whitespace

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1370694 Selfcheck: "Print List" for Holds view does not work
Terran McCanna [Tue, 1 Mar 2016 21:47:20 +0000 (16:47 -0500)]
LP#1370694 Selfcheck: "Print List" for Holds view does not work

Prior to this change, the holds data was not getting passed to the
print function. Now, it is being captured and passed to the print
function. Because of some sorting discrepancies between the order of
the information being passed from here to the action trigger and the
order that the information is presented when pulled directly out of the
database by the action trigger (which led to data mismatches between the
title/author and the hold status/pickup locations for each printed item),
I modified this script to pass all of the hold information together in the
desired order to the action trigger rather than relying on the template
to match the data coming from the script with the data from the database.

This change requires the action trigger printing template to be updated in
order to work. I've included an upgrade script as well as an update to the
seed data script.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jennifer Pringle <jennifer.pringle@bc.libraries.coop>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1551447: stamp database update
Galen Charlton [Mon, 14 Mar 2016 21:01:16 +0000 (17:01 -0400)]
LP#1551447: stamp database update

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1551447: don't update already-customized format.selfcheck.fines
Galen Charlton [Mon, 14 Mar 2016 20:48:50 +0000 (16:48 -0400)]
LP#1551447: don't update already-customized format.selfcheck.fines

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1551447 Selfcheck: Printing Fines Prints All Open Transactions
Terran McCanna [Tue, 1 Mar 2016 22:35:28 +0000 (17:35 -0500)]
LP#1551447 Selfcheck: Printing Fines Prints All Open Transactions

This corrects the behavior of the selfcheck fines receipt print template.
Prior to this, it printed all open billable transactions (eg, every item
that the patron had checked out) regardless of whether or not it had bills
associated with it. This adds a small bit of logic to the template to
check for a balance due. It also updates the javascript to check for a
balance on the account before launching the print function to prevent the
system from taking unnecessary action.

This includes a SQL upgrade script to update the Self-Checked Fines
Receipt template for systems that are already in production, as well as
including an update to the seed data.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jennifer Pringle <jennifer.pringle@bc.libraries.coop>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1275118 Holds history displays canceled holds as active
Terran McCanna [Wed, 2 Mar 2016 21:52:13 +0000 (16:52 -0500)]
LP#1275118 Holds history displays canceled holds as active

Prior to this change, when a patron viewed holds history, canceled holds
displayed as active. From the patron point of view, the hold is no
longer active after it has been canceled.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Erica Rohlfs <erohlfs@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
8 years agoLP#1454871: whitespace cleanup
Galen Charlton [Mon, 14 Mar 2016 19:10:14 +0000 (15:10 -0400)]
LP#1454871: whitespace cleanup

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1454871: Fix KPAC Hold Notification Preferences
Terran McCanna [Thu, 11 Jun 2015 22:15:13 +0000 (18:15 -0400)]
LP#1454871: Fix KPAC Hold Notification Preferences

Correction to KPAC holds notification default preferences to allow for
SMS text messaging options.

Prior to this correction, KPAC hold notifications would only pick up
hold preferences if set to email and/or phone. This correction allows
it to pick up email and/or phone and/or sms notification preferences.

To test, set hold preferences to different options, place hold via the
KPAC, and then view the hold to see which preferences were recognized.
(May need to show columns for Phone Notify, Text Notify, and Email Notify.)

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1548869: tidy up whitespace
Galen Charlton [Mon, 14 Mar 2016 19:06:12 +0000 (15:06 -0400)]
LP#1548869: tidy up whitespace

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1548869 KPAC hold results screen not displaying complete info
Terran McCanna [Wed, 24 Feb 2016 22:17:27 +0000 (17:17 -0500)]
LP#1548869 KPAC hold results screen not displaying complete info

The getit_results.tt2 page was not displaying item title after
hold placement or after adding to a list. It was also not pulling
in the item id (which was needed for navigational links back to the
record) and was not pulling in the list name after adding an item
to a named list.

This patch adds some logic to prevent subroutine conflicts, adds
missing parameters to a function call, and corrects a variable name.

To test:

Log in to the KPAC and perform the following actions:

1. Place a successful hold (results screen should show item title
   and pickup library, and provide links back to record page).
2. Place an unsuccessful hold (try placing a hold on an item you
   already have a hold on - the results screen should show the item
   title).
3. Add item to a temporary list (results screen should show item title).
4. Add item to a named list (results screen should show item title and
   title of list it was added to).

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jennifer Pringle <jennifer.pringle@bc.libraries.coop>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1549393 - Remove undef values from isbn and issn arrays.
Josh Stompro [Sat, 27 Feb 2016 14:54:04 +0000 (08:54 -0600)]
LP#1549393 - Remove undef values from isbn and issn arrays.

This prevents empty requests being sent to content providers.

This caused a problem for us because invalid ISBNs were causing
requests to Content Cafe to fail, since Content Cafe returns an
error if there is a blank key sent along with valid ISBNs and UPCs.

Specifically we had problems with DVD records from Baker & Taylor because
B&T creates unoffical ISBNs for the DVDs they sell.  Those ISBN's do
not validate when run through B::ISBN.

ISSNs are also cleaned since they are validated and set to undef if
invalid just like ISBNs are.

It shouldn't hurt to not send blank requests to providers in any case.

To test:
1. I know this is a problem with Content Cafe, I don't
know if any other providers are effected.  Let me know
if you need Content Cafe credentials to test.

2. Add an invalid ISBN 020a entry to a bib record that has added content.
9786316271976 is an example of a fake ISBN that doesn't
pass B::ISBN validation.  Or just make up a fake number.

3. Clear out the memcache entries for that record.  In 2.9+ there
is a link to clear the cache in the record detail view under Permalink.

4. Reload the record and the cover art and other added content should
not be displayed.  This is because the invalid ISBN gets set to undef
, and the undef gets sent to content cafe as a blank key request.

5. Now apply the fix.  Clear the memcache entries for that bib, and now
the cover art should be displayed since the undef entries due to the invalid
ISBN's have been removed.

Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1550495: stamp DB update
Galen Charlton [Mon, 14 Mar 2016 18:46:19 +0000 (14:46 -0400)]
LP#1550495: stamp DB update

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1550495 - Add EDI Cancel Code 85 - used by Baker & Taylor
Josh Stompro [Fri, 4 Mar 2016 19:51:34 +0000 (13:51 -0600)]
LP#1550495 - Add EDI Cancel Code 85 - used by Baker & Taylor

Baker & Taylor send back a quantity code 85 response when they cancel
a line item.  This code wasn't included as one of the built in EDI
codes so those line items were not being canceled automatically in
evergreen.

The system looks for the response code + 1200 to find the cancel reason,
so this code is entered as ID 1285 in the acq.cancel_reason table.

I received confirmation from another system that uses B&T as an EDI vendor
that they also receive code 85 responses when something gets canceled.

Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1556339: Register correct method for open-ils.actor.history.hold.visible*
Jeff Davis [Sat, 12 Mar 2016 01:17:20 +0000 (17:17 -0800)]
LP#1556339: Register correct method for open-ils.actor.history.hold.visible*

This fixes a thinko introduced by the patch for
bug 1527342.

To test:

[1] Log into srfsh as a user that has one or more active
    or historical hold requests, then run

    srfsh# request open-ils.actor open-ils.actor.history.hold.visible "$SESSION"

[2] Verify that data about hold requests is returned.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoDocs: small Asciisoc table syntax fix
Yamil Suarez [Mon, 14 Mar 2016 17:39:14 +0000 (13:39 -0400)]
Docs: small Asciisoc table syntax fix

Signed-off-by: Yamil Suarez <yamil@yamil.com>
8 years agoLP#1551451 Hide OPAC footer when viewed inside staff client
Terran McCanna [Mon, 29 Feb 2016 22:45:43 +0000 (17:45 -0500)]
LP#1551451 Hide OPAC footer when viewed inside staff client

This patch hides the contents of opac/parts/footer.tt2 if being
viewed in a 'staff' context.

To test, view same OPAC pages through browser and through Staff Client.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Erica Rohlfs <erohfls@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1552060: fix persistent login
Galen Charlton [Fri, 4 Mar 2016 19:50:22 +0000 (14:50 -0500)]
LP#1552060: fix persistent login

This patch makes open-ils.auth_internal look for
default_timeout values for persistent authentication
in the intended section of opensrf.xml.

To test:

[1] Attempt to log into the public catalog with the "Stay logged in?"
    option in effect.  The login will either fail or the session
    will not persist when navigating within the "My Account"
    pages.
[2] Apply the patch and restart services.
[3] Attempt step 1 again; this time, authentication should work
    and the session should remain active.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
8 years agoLP#1454884 Hold placed on grouped metabib result displays wrong title
Terran McCanna [Wed, 2 Mar 2016 17:16:43 +0000 (12:16 -0500)]
LP#1454884 Hold placed on grouped metabib result displays wrong title

Prior to this change, a full/extended title displayed even on metarecord
holds that had different extended titles, which sometimes led to situations
where a video's full title displayed on a book hold, or vice versa. This
change displays the short version of the title on metarecord holds and
the full version on individual record holds.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
8 years agoLP 1533331: Stamping upgrade script.
Jason Stephenson [Fri, 4 Mar 2016 16:31:06 +0000 (11:31 -0500)]
LP 1533331: Stamping upgrade script.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
8 years agoLP#1533331 - Fix evergreen.protect_reserved_rows_from_delete() trigger function
Chris Sharp [Mon, 8 Feb 2016 18:00:06 +0000 (13:00 -0500)]
LP#1533331 - Fix evergreen.protect_reserved_rows_from_delete() trigger function

The fix for bug 1513554 included creating a general trigger function to prevent
the deletion of reserved table rows with an ID lower than a specified threshold.
Testing for that seemed to pass muster, but using the function in practice revealed
a failure to delete deletable rows either.

This adds an explicit RETURN to the function, which fixes the issue.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
8 years agoLP#1505286: use older syntax for Pg 9.2+
Galen Charlton [Thu, 3 Mar 2016 13:57:27 +0000 (08:57 -0500)]
LP#1505286: use older syntax for Pg 9.2+

This makes no function difference, but potentially might
remove a small speed bump for folks doing detailed schema
diffs.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP 1505286: Port New Functions to PostgreSQL 9.1
Jason Stephenson [Wed, 2 Mar 2016 14:18:12 +0000 (09:18 -0500)]
LP 1505286: Port New Functions to PostgreSQL 9.1

The functions search.facets_for_record_set and
search.facets_for_metarecord_set that were added in the 0958 upgrade
script from Launchpad Bug #1505286 are not compatible with PostgreSQL
9.1.  This commit makes them compatible with Pg 9.1 for those who need
it.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1371647: fix thinko with ID re-pinning
Galen Charlton [Thu, 3 Mar 2016 13:35:26 +0000 (08:35 -0500)]
LP#1371647: fix thinko with ID re-pinning

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoclear slate of release notes for master
Galen Charlton [Thu, 3 Mar 2016 02:55:03 +0000 (21:55 -0500)]
clear slate of release notes for master

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP #1422932 TPAC: Holds history pager typo
Terran McCanna [Wed, 2 Mar 2016 22:11:40 +0000 (17:11 -0500)]
LP #1422932 TPAC: Holds history pager typo

Corrects typo in link that caused page not found errors when attempting
to navigate multiple pages of hold history through My OPAC.

Patch originally by Bob Wicksall.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1533329: stamp DB update
Galen Charlton [Thu, 3 Mar 2016 02:13:02 +0000 (21:13 -0500)]
LP#1533329: stamp DB update

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1533329: bail out of live Perl test if opt-in not enabled
Galen Charlton [Thu, 3 Mar 2016 02:07:09 +0000 (21:07 -0500)]
LP#1533329: bail out of live Perl test if opt-in not enabled

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1533329: release notes for restricted opt-in
Jeff Davis [Sat, 20 Feb 2016 01:30:36 +0000 (17:30 -0800)]
LP#1533329: release notes for restricted opt-in

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1533329: live tests for opt-in feature
Jeff Davis [Wed, 3 Feb 2016 23:03:49 +0000 (15:03 -0800)]
LP#1533329: live tests for opt-in feature

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1533329: Selectively disallow opt-in based on patron's home library
Jeff Davis [Tue, 12 Jan 2016 19:58:13 +0000 (11:58 -0800)]
LP#1533329: Selectively disallow opt-in based on patron's home library

Patrons from Library A can "opt in" to sharing their personal
information with Library B.  However, hitherto there has been no way for
Library A to prevent their patrons from being opted in at other
libraries.  This would be useful if, for example, Library A is a school
library and does not want other libraries in the consortium to have
access to student accounts.

This commit adds the ability to selectively disallow opt-in by home
library.  Specifically, it makes the following changes:

1. Adds an org setting (org.restrict_opt_to_depth) that governs opt-in
restrictions.  All org units within the home OU's section of the org
tree at or below depth X are within the patron's opt-in scope; opt-in is
disallowed at any library outside of that scope.  If the setting is not
enabled, the entire org tree is effectively within scope.  (None of this
should be confused with the opt boundary, which defines the point at
which patrons need to be opted in vs. just granting access without
opt-in.)

2. Modifies open-ils.actor.user.org_unit_opt_in.check so that it checks
that setting and determines if the current work OU is within the
patron's opt-in scope.  If opt-in is not permitted at this work OU,
an appropriate response is returned.

3. Handles the response in both staff clients.  If opt-in is disallowed,
staff will see an alert which says, "This patron's record is not
viewable at your library."

Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1392396: stamp DB update
Galen Charlton [Thu, 3 Mar 2016 01:28:33 +0000 (20:28 -0500)]
LP#1392396: stamp DB update

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1392396 - Release notes for New Patron Notice A/T.
Josh Stompro [Mon, 17 Aug 2015 13:06:30 +0000 (08:06 -0500)]
LP#1392396 - Release notes for New Patron Notice A/T.

Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1392396 - Changed the hook description to match the other
Josh Stompro [Mon, 17 Aug 2015 18:29:44 +0000 (13:29 -0500)]
LP#1392396 - Changed the hook description to match the other
  au hook entries.

Signed-off-by: Josh Stompro <stomproj@larl.org>
8 years agoLP#1392396 - Renamed hook from "create" to "au.created" to make it
Josh Stompro [Mon, 17 Aug 2015 18:15:32 +0000 (13:15 -0500)]
LP#1392396 - Renamed hook from "create" to "au.created" to make it
  easier to tell that we are talking about "actor.user created date"

Signed-off-by: Josh Stompro <stomproj@larl.org>
Conflicts:
Open-ILS/src/sql/Pg/950.data.seed-values.sql

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1392396 - New patron welcome email action/trigger event def
Josh Stompro [Wed, 29 Apr 2015 19:22:03 +0000 (14:22 -0500)]
LP#1392396 - New patron welcome email action/trigger event def

This adds a new event definition to new installs for sending an email
to new users soon after their accounts are created.

An update script is also included to add this event to existing installs.

Signed-off-by: Josh Stompro <stomproj@larl.org>
Conflicts:
Open-ILS/src/sql/Pg/950.data.seed-values.sql

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1371647: stamp DB upgrade
Galen Charlton [Wed, 2 Mar 2016 23:08:42 +0000 (18:08 -0500)]
LP#1371647: stamp DB upgrade

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1371647: tweak pinned IDs
Galen Charlton [Wed, 2 Mar 2016 23:05:13 +0000 (18:05 -0500)]
LP#1371647: tweak pinned IDs

Tweak an ID to avoid an overlap with the change
for LP#1519055.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP 1371647: Additional Fixed Fields and Values
Jason Boyer [Thu, 17 Sep 2015 12:11:08 +0000 (08:11 -0400)]
LP 1371647: Additional Fixed Fields and Values

Define all fixed fields for use in the MARC editor and
add acceptable values for context menues. Also define
composite coded values for special multi-position
single character fields.

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1391282: Add Auto-Submitted: auto-generated header to included A/T email templates.
Josh Stompro [Wed, 22 Apr 2015 15:59:39 +0000 (10:59 -0500)]
LP#1391282: Add Auto-Submitted: auto-generated header to included A/T email templates.

This patch updates various stock A/T definitions for
email notifications to add the following email header:

Auto-Submitted: auto-generated

This specifies to email clients that the message was
generated by a computer program and that no automatic
response is desired (particularly out-of-office/vacation
responses).

No upgrade script is provided; administrators who
wish to use this header for existing notices should
update them manually.

Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1375043: add release notes
Galen Charlton [Wed, 2 Mar 2016 22:34:13 +0000 (17:34 -0500)]
LP#1375043: add release notes

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1375043: Support for in-A/T telephony configuration
Mike Rylander [Sun, 28 Sep 2014 20:37:33 +0000 (16:37 -0400)]
LP#1375043: Support for in-A/T telephony configuration

The AstCall reactor module creates a callfile for Asterisk, given a
template describing the message and an environment defining
necessary information for contacting the Asterisk server and scheduling
a call with it.

If you have only one SIP server, you can set it up like this in the
opensrf.xml configuration file:

    <telephony>
        <!-- replace all values below when telephony server is configured -->
        <enabled>0</enabled>
        <driver>SIP</driver> <!-- SIP (default) or multi -->
        <channels> <!-- explicit list of channels used if multi -->
            <!-- A channel specifies technology/resource -->
            <channel>Zap/1</channel>
            <channel>Zap/2</channel>
            <channel>IAX/user:secret@widgets.biz</channel>
        </channels>
        <host>localhost</host>
        <port>10080</port>
        <user>evergreen</user>
        <pw>evergreen</pw>
        <!--
            The overall composition of callfiles is determined by the
            relevant template, but this section can be invoked for callfile
            configs common to all outbound calls.
            callfile_lines will be inserted into ALL generated callfiles
            after the Channel line. This content mat be overridden
            (in whole) by the org unit setting callfile_lines.
            Warning: Invalid syntax may break ALL outbound calls.
        -->
        <!-- <callfile_lines>
            MaxRetries: 3
            RetryTime: 60
            WaitTime: 30
            Archive: 1
            Extension: 10
        </callfile_lines> -->
    </telephony>

To support more than one SIP server, say, per library, you can use
Action/Trigger parameters like these, which model the same information
as above:

    enabled = 0
    driver = "SIP"
    channels = ["Zap/1", "Zap/2", "IAX/user:secret@widgets.biz"]
    host = "localhost"
    port = "10080"
    user = "evergreen"
    pw = "evergreen"
    callfile_lines = ["MaxRetries: 3", "RetryTime: 60", "WaitTime: 30", "Archive: 1", "Extension: 10"]

Co-author credit goes to Steve Callender, who helped build this patch.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP #1466173 Selfcheck Hide UI Elements Until Patron Auth
Terran McCanna [Thu, 25 Feb 2016 21:26:46 +0000 (16:26 -0500)]
LP #1466173 Selfcheck Hide UI Elements Until Patron Auth

Currently, there are visible elements on the lower portion of the
login screen that the patron cannot use until after authenticating.
This patch hides those elements except when the patron is authenticated.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1470957: stamp schema upgrade
Galen Charlton [Wed, 2 Mar 2016 22:09:39 +0000 (17:09 -0500)]
LP#1470957: stamp schema upgrade

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1470957: adjust a previous regression test
Galen Charlton [Wed, 2 Mar 2016 22:07:28 +0000 (17:07 -0500)]
LP#1470957: adjust a previous regression test

Now that there are normalizers set for pubdate,
008/Date1 = "    " is now normalized to "0000".

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1470957: provide pgTAP test for expected pubdate normalization
Galen Charlton [Wed, 2 Mar 2016 22:02:04 +0000 (17:02 -0500)]
LP#1470957: provide pgTAP test for expected pubdate normalization

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1470957: update upgrade script
Galen Charlton [Wed, 2 Mar 2016 21:33:16 +0000 (16:33 -0500)]
LP#1470957: update upgrade script

This commit updates the upgrade script to account
for other changes to metabib.reingest_record_attributes()
that were made since the original patch.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1470957: Normalize date1 (pubdate sorter) to null when not numeric
Mike Rylander [Thu, 2 Jul 2015 18:44:25 +0000 (14:44 -0400)]
LP#1470957: Normalize date1 (pubdate sorter) to null when not numeric

We supply a normalizer function for making sure date-ish values are
always numeric (several, in fact) but we don't enable them by default
for appropriate fields.  This does that.

Additionally, we allow NULL sorters so that the reingest of a "broken"
record will get fixed.

We avoid the need for a reingest to cover the sorter issue by removing
non-numeric pubdate sorters.

To test
-------
[1] Identify some records where the Date1 value in the 008 field
    is '||||'.
[2] Perform a catalog search that includes some of those records
    and sort by publication date newest to oldest. Note that
    the |||| records sort at the top.
[3] Apply the patch and perform the schema update.
[4] Perform the search again (possibly clearing the search
    results cache first).  This time, the |||| records should
    sort near the end.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jennifer Pringle <jennifer.pringle@bc.libraries.coop>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1492793: add release notes
Galen Charlton [Tue, 16 Feb 2016 20:47:47 +0000 (15:47 -0500)]
LP#1492793: add release notes

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
8 years agoLP#1492793: teach Clark Kent to set the Pg app name
Galen Charlton [Tue, 16 Feb 2016 20:36:26 +0000 (15:36 -0500)]
LP#1492793: teach Clark Kent to set the Pg app name

Clark Kent can now also use the application_name
setting in the relevant sections of opensrf.xml to
set the Pg application name.

To test:

[1] Apply the patch, restarting opensrf.settings, and
    start Clark.
[2] Run a report that will take at least a minute to
    finish. While it is running, query the pg_stat_activity
    table. There should be at least one row where the
    application_name column is set to 'Clark Kent (reports)'.
[3] Note that since the master Clark process opens a database
    connection, checks whether there are any reports to run,
    then immediately closes the connection, it's unlikely that
    you'll catch a 'Clark Kent (state)' connection when
    querying pg_stat_activity.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
8 years agoLP1492793: Support Application Name Postgres Option
Jason Boyer [Sun, 6 Sep 2015 16:58:49 +0000 (12:58 -0400)]
LP1492793: Support Application Name Postgres Option

If app_settings/database/application_name is defined,
connections by that service will have the application_name
postgres option set, allowing log analyzers to associate
queries and services.

To test:

[1] Apply the patch and restart OpenSRF services.
[2] Query the pg_stat_activity table in the PostgreSQL
    database; the application_name column should now
    be populated with values like 'open-ils.cstore'
    or 'open-ils.storage' that indicate which Evergreen
    service holds the database connection.

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
8 years agoLP#1516757: add Perl test case
Galen Charlton [Wed, 2 Mar 2016 20:38:52 +0000 (15:38 -0500)]
LP#1516757: add Perl test case

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1516757: ensure that SIP2 returns DOB correctly
Bill Erickson [Mon, 16 Nov 2015 19:48:23 +0000 (14:48 -0500)]
LP#1516757: ensure that SIP2 returns DOB correctly

Parse dates of birth using the local timezone to ensure that the date in
the database will match what is sent to SIP clients.  Otherwise, the
date will be parsed as UTC and may result in the DoB value being offset
by one day in the SIP response.

To test
-------
[1] Fire up a SIP client of some sort and retrieve a patron record;
    verify that the patron's date of birth is correct, and not
    offset by one day.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1516022: new reporting source for hold/copy ratios
Josh Stompro [Wed, 16 Dec 2015 17:31:40 +0000 (11:31 -0600)]
LP#1516022: new reporting source for hold/copy ratios

Fixed the link field name so it matches the new field name for the
Pickup Library, pickup_lib_or_desc.

Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
8 years agoLP#1516022: add release note
Galen Charlton [Fri, 13 Nov 2015 14:19:17 +0000 (14:19 +0000)]
LP#1516022: add release note

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
8 years agoLP#1516022: new reporting source for hold/copy ratios
Galen Charlton [Mon, 19 Oct 2015 20:41:12 +0000 (20:41 +0000)]
LP#1516022: new reporting source for hold/copy ratios

This patch adds a new reporting source, "Hold/Copy Ratio per Bib
and Pickup Library (and Descendants)", that, for each bib
that has a hold request on it or any of its components,
calculates the following:

 - active holds at each OU (including the OU's descendants)
 - holdable copies at each OU (and its descendants)
 - the ratio of the above two counts
 - counts and ratio across the entire consortium

This work was sponsored by the Pennsylvania Integrated Library
System (PaILS).

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
8 years agoLP#1531976: fix bringing up Mesage Center and Triggered Events
Thomas Berezansky [Thu, 7 Jan 2016 19:34:18 +0000 (14:34 -0500)]
LP#1531976: fix bringing up Mesage Center and Triggered Events

This patch fixes a bug in the XUL staff client where
using Other -> Triggered Events from the patron page,
then Other -> Message Center, only brings up the Triggered
Events page in both cases (and vice versa).

This patch works by preventing the deck code from thinking they are
the same page, despite both using the browser wrapper as their base URL.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1519911: upgrade script to fix self-checkout receipt A/T template
Galen Charlton [Wed, 2 Mar 2016 19:32:35 +0000 (14:32 -0500)]
LP#1519911: upgrade script to fix self-checkout receipt A/T template

This patch adds an update to fix the "lb_addr.post_code" typo
in the stock A/T event definition for self-checkout receipts.
This update changes the definition *only* if it has not
been customized by the user, and it does not attempt to
fix any copies of that definition.

To test
-------
[1] Upon applying the update, generate a receipt from the
    web-based self-check interface.  The library's postal
    code (if set) should now display in the receipt.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1519911: fix typos in some seed A/T tempaltes
Terran McCanna [Tue, 1 Mar 2016 23:09:05 +0000 (18:09 -0500)]
LP#1519911: fix typos in some seed A/T tempaltes

This corrects typos in the seed data for these action trigger templates:

- Self-Checkout Receipt
- Hold Cancelled (No Target) Email Notification
- Hold Cancelled (No Target) User Message

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1544723: i18n - Add webstaff to update_pofiles
Ben Shum [Thu, 11 Feb 2016 19:16:28 +0000 (14:16 -0500)]
LP#1544723: i18n - Add webstaff to update_pofiles

Add webstaff po file to the update_pofiles script so that future syncs
from the Launchpad bzr will update the webstaff po files.

Signed-off-by: Ben Shum <ben@evergreener.net>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1545226 - Fix MARC Batch Editor status screen.
Josh Stompro [Mon, 15 Feb 2016 14:24:38 +0000 (08:24 -0600)]
LP#1545226 - Fix MARC Batch Editor status screen.

This patch does the following:

  - The html table was broken, fixed the markup.
  - Added some styling to the table.
  - Added a row with total records info.
  - Fixed the progress bar popup; it now displays
    percentage completion and has a title so it is
    wide enough to do so
  - Added color to failed row (red), and to completion text (green).

To test:

[1] In the staff interface (both XUL and web), perform
    a MARC Batch Edit on a bucket that contains at least
    a few bib records.
[2] Verify that the progress dialog now displays the
    percentage completion of the batch edit; verify
    that there is now a row displaying the total number
    of records.

Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1548147: add release notes
Galen Charlton [Wed, 2 Mar 2016 18:46:19 +0000 (13:46 -0500)]
LP#1548147: add release notes

Also, here is a test plan for the future:

[1] Using MARC Batch Import/Export, load a file
    of MARC records into a queue (arranging the matching
    criteria so that at least a few of the records
    aren't automatically imported into the catalog).
[2] Inspect the queue, and click on the "Export Non-Imported
    Records link", then save the resulting file.
[3] Verify that the file contains, in MARC format, the set
    of records that were not imported into the catalog.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1548147: set export format to MARC
Galen Charlton [Wed, 2 Mar 2016 18:42:11 +0000 (13:42 -0500)]
LP#1548147: set export format to MARC

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1548147 Quick Export Feature for Vandelay Queues
Dan Wells [Thu, 25 Feb 2016 16:44:23 +0000 (11:44 -0500)]
LP#1548147 Quick Export Feature for Vandelay Queues

When we import records into Vandelay, sometimes some of the records
are not what we expected, so they get rejected.  These records often
need to be loaded using a different set of options, so this link makes
it convenient to get a new file of just the rejects.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
8 years agoLP#1507845 SEO home.tt2 template repair
Bill Erickson [Wed, 2 Mar 2016 15:47:29 +0000 (10:47 -0500)]
LP#1507845 SEO home.tt2 template repair

Ensure all TT code lives within the [% ... %] blocks.  This fixes an
issue where TT code "ctx.metalinks.push('');" was appearing in the
catalog as bare text.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
8 years agoLP#1312699 Circ history clear-all repair
Bill Erickson [Wed, 2 Mar 2016 15:30:24 +0000 (10:30 -0500)]
LP#1312699 Circ history clear-all repair

Repairs circ ID filter to allow all items in circ history to clear when
patrons disable circulation history.

open-ils.cstore will fail on {in => undef} queries.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
8 years agoLP#1507845: Improve search engine optimization
Dan Scott [Tue, 20 Oct 2015 02:21:58 +0000 (22:21 -0400)]
LP#1507845: Improve search engine optimization

Back in bug # 1414033 , we added rel="nofollow" attributes to many of the links
that led to search results or call number browsing. This was the right idea,
but a bit overzealous as it turns out. We actually want search engines to
follow those links; we just don't want search engines to index them.

Therefore, we can tweak the <meta> tag in the results and browse page headers
to say "follow,noindex", and remove many of the inline rel="nofollow"
attributes from the other pages.

In addition, add a rel="canonical" link to the catalogue home page.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <ben@evergreener.net>
Conflicts:
Open-ILS/src/templates/opac/parts/record/subjects.tt2

8 years agoLP#1312699: Minor modifications to patron checkout history deletions
Jake Litrell [Tue, 1 Mar 2016 22:22:28 +0000 (17:22 -0500)]
LP#1312699: Minor modifications to patron checkout history deletions

Minor modifications to make patron checkout history deletions work with
the new table.  open-ils.actor.history.circ.clear
extended to take an optional list of circ_ids, to limit what's deleted
from the history.

Signed-off-by: Jake Litrell <jake@masslnc.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
8 years agoLP#1312699: Whitespace cleanup.
Jake Litrell [Tue, 1 Mar 2016 21:42:35 +0000 (16:42 -0500)]
LP#1312699: Whitespace cleanup.

Signed-off-by: Jake Litrell <jake@masslnc.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>