]> git.evergreen-ils.org Git - working/Evergreen.git/log
working/Evergreen.git
11 years agoStamping upgrade for 'inheritied' typo repair
Bill Erickson [Fri, 4 May 2012 18:46:16 +0000 (14:46 -0400)]
Stamping upgrade for 'inheritied' typo repair

Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoFix "inheritied" typo in global flag
Dan Scott [Fri, 4 May 2012 18:14:12 +0000 (14:14 -0400)]
Fix "inheritied" typo in global flag

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
11 years agoFix typo in TPAC noticed by Warren Layton
Dan Scott [Fri, 4 May 2012 17:55:55 +0000 (13:55 -0400)]
Fix typo in TPAC noticed by Warren Layton

Expiration needs to be spelled correctly; Warren Layton pointed out the
typo while working on a translation of the derived tpac.pot file. Many
thanks, Warren!

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoAdd missing upgrade scripts 0705, 0707 to point-to-point upgrade script
Lebbeous Fogle-Weekley [Fri, 4 May 2012 16:23:19 +0000 (12:23 -0400)]
Add missing upgrade scripts 0705, 0707 to point-to-point upgrade script

These come from bugfixes I pushed to master and rel_2_2 on 28 April 2012
without remembering to address the point-to-point version upgrade script.

See c208754eafadb005439800f7fedd33241fca7b65 (LP #980199) and
89438b46fc39270ac3d47345cd99caacf6b6dee1 (LP #919279).

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoPrereqs: Remove Ubuntu Hardy references
Dan Scott [Mon, 9 Apr 2012 20:31:06 +0000 (16:31 -0400)]
Prereqs: Remove Ubuntu Hardy references

We no longer support Ubuntu Hardy 8.04, so ditch any references to it in
the prerequisite installer.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoPrereqs: update to latest available versions
Dan Scott [Mon, 9 Apr 2012 20:29:46 +0000 (16:29 -0400)]
Prereqs: update to latest available versions

* JavaScript-SpiderMonkey: from 0.20 to 0.21
* libjs: from 1.7.0 to 185-1.0.0
* yaz: from 4.2.17 to 4.2.32

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoPrereqs: Remove references to CentOS / RHEL
Dan Scott [Mon, 9 Apr 2012 20:23:08 +0000 (16:23 -0400)]
Prereqs: Remove references to CentOS / RHEL

The prereqs were focused on the 5.x series for CentOS and RHEL, which is
hella-out-of-date and never really worked anyway. Get rid of the noise
to focus on the signal.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoAllow subscriptions at org units without volumes
Dan Wells [Wed, 25 Apr 2012 19:56:20 +0000 (15:56 -0400)]
Allow subscriptions at org units without volumes

Subscriptions are sometimes owned at the consortium or system
level, so forcing can_have_vols() to be true was incorrect.

This commit removes those checks.  In addition, we also remove
some dead code and make the subscription org unit selector
consistent with the distribution org unit selector.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoAdd indexes to 2.1.2 upgrade script to speed up acq search
Dan Scott [Thu, 3 May 2012 20:44:14 +0000 (16:44 -0400)]
Add indexes to 2.1.2 upgrade script to speed up acq search

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoAdd ISSN fix to the version upgrade script
Mike Rylander [Mon, 26 Mar 2012 15:09:14 +0000 (11:09 -0400)]
Add ISSN fix to the version upgrade script

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoAdd "Updating translations with Launchpad" dev docs
Dan Scott [Thu, 3 May 2012 19:33:51 +0000 (15:33 -0400)]
Add "Updating translations with Launchpad" dev docs

Not 100% sure if this is where we want to keep developer process
documentation, but as I already have it in AsciiDoc we might as well
give it a try.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoAddress date sorting in Item Status and Copy Buckets interfaces, too
Jason Etheridge [Wed, 2 May 2012 19:23:06 +0000 (15:23 -0400)]
Address date sorting in Item Status and Copy Buckets interfaces, too

> The sort_value function for the date columns being used in those
> interfaces had no error protection, and were returning empty strings
> upon failure.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoFix date sorting in patron-related XUL interfaces
Lebbeous Fogle-Weekley [Wed, 2 May 2012 18:01:00 +0000 (14:01 -0400)]
Fix date sorting in patron-related XUL interfaces

Null time stamps are now converted to dates in the Middle Paleolithic
era so they always sort as the lowest date.

Seriously, this is the minimum possible date you can express with a JavaScript
date object.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
11 years agoFix LP 984039: correct Syndetic Kirkus Reviews
Jeff Godin [Tue, 17 Apr 2012 14:46:22 +0000 (10:46 -0400)]
Fix LP 984039: correct Syndetic Kirkus Reviews

Use correct "filename" component of URL for retrieving Kirkus
Reviews content from Syndetic Solutions.

Correct filename confirmed by Bowker technical support, and by
empirical tests.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
11 years agoFix some "null" instead of blank values in JSPac
Thomas Berezansky [Tue, 3 Apr 2012 18:45:10 +0000 (14:45 -0400)]
Fix some "null" instead of blank values in JSPac

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoLink to the Attributions section from the introduction
Dan Scott [Tue, 1 May 2012 06:57:53 +0000 (02:57 -0400)]
Link to the Attributions section from the introduction

We know how to use intra-document links, so let's use them :)

Signed-off-by: Dan Scott <dan@coffeecode.net>
11 years agodblatex hates files with multiple periods
Dan Scott [Tue, 1 May 2012 06:36:11 +0000 (02:36 -0400)]
dblatex hates files with multiple periods

Running the PDF transform was generating errors from dblatex complaining
about unknown file extensions like ".50_Import1.jpg"; this was because
there were two periods in the file name. Easily fixed by renaming the
files, and I removed the useless ALT text from the image attributes in
the same pass.

Signed-off-by: Dan Scott <dan@coffeecode.net>
11 years agoUpdate Release Notes and Installation documents to match code
Dan Scott [Tue, 1 May 2012 06:29:28 +0000 (02:29 -0400)]
Update Release Notes and Installation documents to match code

We need to keep the release notes and installation instructions in sync
with the code versions.

To make our lives easier, use the "leveloffset" AsciiDoc macro so that
we don't have to push all of the heading indicators in the
single-sourced documents down one level manually.

Signed-off-by: Dan Scott <dan@coffeecode.net>
11 years agoRelease notes: clean up and introduce TPAC
Dan Scott [Tue, 1 May 2012 05:52:56 +0000 (01:52 -0400)]
Release notes: clean up and introduce TPAC

General clean-up of the release notes for consistency and to support
PDF output:

* Reformat line-widths to 80 characters or less
* Mark interface window and element names as bold
* Fix up some formatting glitches and headers
* Make the "Documentation is available..." note standard & separated
  by one line; I suspect we will want to modify this globally, so it
  will be easier if it is consistent.

Also, give a brief introduction to the TPAC and mention the forthcoming
JSPAC deprecation in the next feature release.

Signed-off-by: Dan Scott <dan@coffeecode.net>
11 years agoLP992377: More 2.2 release notes from Kathy Lussier
Kathy Lussier [Tue, 1 May 2012 05:26:28 +0000 (01:26 -0400)]
LP992377: More 2.2 release notes from Kathy Lussier

Kathy Lussier <klussier@masslnc.org> contributed significant additions
to the 2.2 release notes in https://bugs.launchpad.net/bugs/992377 -
thanks Kathy!

Signed-off-by: Dan Scott <dan@coffeecode.net>
11 years agoAdd the licensing comment to the new PDF icon
Dan Scott [Mon, 30 Apr 2012 20:15:11 +0000 (16:15 -0400)]
Add the licensing comment to the new PDF icon

Inadvertently pushed the new PDF icon without the licensing statement
embedded as a comment; fix that.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoReplace the questionable PDF icon with a CC-BY-SA icon
Dan Scott [Mon, 30 Apr 2012 20:02:21 +0000 (16:02 -0400)]
Replace the questionable PDF icon with a CC-BY-SA icon

The Adobe PDF icon policy at http://www.adobe.com/misc/linking.html
states that the icon may only be used with PDF documents created by an
Adobe Acrobat product. The DIG PDF files are not produced in this
manner.

Therefore, replace the current icon with a GIF derived from the CC BY-SA
Dropline Etiquette GNOME icons by Silvestre Herrerra
<silvestre.herrera@gmail.com>. Downloaded from
http://art.gnome.org/download/themes/icon/1049/ICON-DroplineEtiquette.tar.bz2

To comply with the "BY" part of BY-SA, the new GIF includes a comment
that clearly states the provenance of the icon.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoadditions to release notes for 2.2
Galen Charlton [Mon, 30 Apr 2012 11:22:01 +0000 (07:22 -0400)]
additions to release notes for 2.2

Written by Sally Fortin <sfortin@esilibrary.com>

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
11 years agoVandelay match set permission additions
Bill Erickson [Wed, 21 Mar 2012 20:33:39 +0000 (16:33 -0400)]
Vandelay match set permission additions

Allow retrieve access for match points with the VIEW_IMPORT_MATCH_SET
permission (in addition to ADMIN_IMPORT_MATCH_SET).

Adds 2 new permissions to the database:

ADMIN_IMPORT_MATCH_SET
VIEW_IMPORT_MATCH_SET

From Jason Stephenson resolving conflicts:
> Conflicts:
>
>  Open-ILS/src/sql/Pg/950.data.seed-values.sql
>
> I had to change the ids of the new permissions because another branch
> had used one of the ids since this branch was last rebased.  I also edited
> the ids in the upgrade script to match what is in 950.data.seed-values.sql.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoUpdate POT files for translators
Dan Scott [Sat, 28 Apr 2012 19:52:54 +0000 (15:52 -0400)]
Update POT files for translators

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoUpdate translations from Launchpad
Dan Scott [Sat, 28 Apr 2012 18:12:43 +0000 (14:12 -0400)]
Update translations from Launchpad

Includes a small update to the update_pofiles to make it easier for
release managers and release maintainers to run translation updates.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoConstrain serial.issuance.holding_code to be valid JSON or NULL
Lebbeous Fogle-Weekley [Thu, 5 Apr 2012 15:46:05 +0000 (11:46 -0400)]
Constrain serial.issuance.holding_code to be valid JSON or NULL

This avoids serial.materialize_holding_code() failing on bad data.  The
upgrade script will actually throw away bad values for
serial.issuance.holding_code.  This is no real loss, since bad data
there prevents any serials functions around the row in question from
working properly anyway.

This problem was reported by Martha Driscoll and Ben Shum.

*Also* put a couple of changes missed from the 0700 upgrade script into
210.schema.serials.sql.

Fix new serial constraint upgrades

1. None of the upgrades so far have moved is_json() from the public
to the evergreen schema.  That's probably a separate issue, but it
should be safe to call it unqualified, and that's what the rest of
the upgrade file does, so we will too.

2. Add a specific SET CONSTRAINT to avoid deferred trigger problems
when ALTERing the table.

3. Make sure that the unwanted columns on materialized_holding_code
do not exist regardless of your upgrade path.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoRemove the "print_nav.tt2" from the TTPAC Password Reset
Michael Peters [Fri, 9 Mar 2012 19:20:09 +0000 (14:20 -0500)]
Remove the "print_nav.tt2" from the TTPAC Password Reset

We no longer use "print_nav.tt2" in TTPAC, but it was still
displaying on the password reset page.  This branch removes it.

Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoAdd missing ADMIN_ORG_UNIT_CUSTOM_TREE permission
Bill Erickson [Thu, 12 Apr 2012 19:34:02 +0000 (15:34 -0400)]
Add missing ADMIN_ORG_UNIT_CUSTOM_TREE permission

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoTPAC: Instrument the search results page
Dan Scott [Fri, 27 Apr 2012 01:56:23 +0000 (21:56 -0400)]
TPAC: Instrument the search results page

Because we want to know why search results can be slowish, add timelog()
entries to pertinent locations in Search.pm.

Quick results on my laptop with the concerto set:
  * 10 results = 1.1 seconds for get_records_and_facets()
  * 50 results = 4.2 seconds for get_records_and_facets()

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoAdd adminitions appendix. ePub is not archiving adminition files unless images are...
rsoulliere [Sat, 28 Apr 2012 17:21:34 +0000 (13:21 -0400)]
Add adminitions appendix. ePub is not archiving adminition files unless images are explicitly used in document with references to files.

11 years agotweak wording - ChangeLogs are generated during release
Galen Charlton [Sat, 28 Apr 2012 14:27:19 +0000 (10:27 -0400)]
tweak wording - ChangeLogs are generated during release

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
11 years agoChangeLog shouldn't merely be empty; it should tell reader where to find a change...
Bradley M. Kuhn [Sat, 28 Apr 2012 14:03:09 +0000 (10:03 -0400)]
ChangeLog shouldn't merely be empty; it should tell reader where to find a change log.

Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
11 years agoupdate epub image.
rsoulliere [Sat, 28 Apr 2012 11:42:30 +0000 (07:42 -0400)]
update epub image.

11 years agoautoreconf -f -i appears to clobber our own INSTALL file with the "standard" one.
Bradley M. Kuhn [Sat, 28 Apr 2012 03:36:19 +0000 (23:36 -0400)]
autoreconf -f -i appears to clobber our own INSTALL file with the "standard" one.

autoreconf -i seems to still work correctly for building Evergreen, therefore,
we should recommend developers do that.

Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
11 years agoAUTHORS, NEWS, and INSTALL files should actually have reasonable content if they...
Bradley M. Kuhn [Sat, 28 Apr 2012 02:08:38 +0000 (22:08 -0400)]
AUTHORS, NEWS, and INSTALL files should actually have reasonable content if they exist.

Specifically, this commit:
   * simply points INSTALL to README via symlink, since install instructions are there.
   * AUTHORS now notes that Evergreen keeps its authors in the git log.
   * NEWS now explains where release notes are.

Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
11 years agoDo not hide copy counts from results in staff client.
Ben Shum [Wed, 25 Apr 2012 03:23:04 +0000 (23:23 -0400)]
Do not hide copy counts from results in staff client.

Remove the check for whether you are a staff login or not.

Ideally, we would want the copy counts to be displayed in both
public catalog and staff client.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoAdd epub icon image.
rsoulliere [Fri, 27 Apr 2012 14:52:03 +0000 (10:52 -0400)]
Add epub icon image.

11 years agoApply timelog() to TPAC record detail page
Lebbeous Fogle-Weekley [Wed, 25 Apr 2012 20:19:45 +0000 (16:19 -0400)]
Apply timelog() to TPAC record detail page

Early suggestion from results is that we either need to use unapi.bre more
smartly, or optimize it further.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoInstrument the TPAC: add timelog() method to EGCatLoader
Dan Scott [Wed, 25 Apr 2012 19:20:46 +0000 (15:20 -0400)]
Instrument the TPAC: add timelog() method to EGCatLoader

Meant for timing how long events take to generate a single TPAC page,
the timelog() method will provide timing in microsecond granularity of
various events required to build the page.

To invoke: $self->timelog("Event description...");

Builds up a context variable named "timing" containing a list of
arrays; each array entry contains a time and the event description.

Disabled by default; to enable, set DEBUG_TIMING = 1 in
OpenILS/WWW/EGCatLoader.pm

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoMerge remote branch 'working/user/dbwells/serial_items_and_note_fixes'
Lebbeous Fogle-Weekley [Wed, 25 Apr 2012 20:24:04 +0000 (16:24 -0400)]
Merge remote branch 'working/user/dbwells/serial_items_and_note_fixes'

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
11 years agoCorrections from Tim Spindler.
rsoulliere [Wed, 25 Apr 2012 17:37:17 +0000 (13:37 -0400)]
Corrections from Tim Spindler.

11 years agoFix image references and continuation formatting
Dan Scott [Tue, 24 Apr 2012 19:30:41 +0000 (15:30 -0400)]
Fix image references and continuation formatting

This enables the production of epub output, as "a2x --format epub"
introduces stricter checking than the default formatting. Good for us,
we get to see more images and cleaner output!

Classes of fixes include:

* Leading '+' to keep numbered bullet sequences in sync only works if
  there are no blank lines around the '+' lines. Easiest to just keep
  the bullets with no blank lines between them.
* Typos in image file names.
* Intradocument link syntax (just use <<id,description>>)
* image:: entries like to have a leading blank line

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoStatistical Categories Editor: more default entry info
Scott Prater [Tue, 24 Apr 2012 15:24:10 +0000 (10:24 -0500)]
Statistical Categories Editor: more default entry info

11 years agoAdd lsa-statcat file to root document.
rsoulliere [Tue, 24 Apr 2012 14:29:28 +0000 (10:29 -0400)]
Add lsa-statcat file to root document.

11 years agoMerge remote branch 'sprater/patstatcat'
rsoulliere [Tue, 24 Apr 2012 14:24:06 +0000 (10:24 -0400)]
Merge remote branch 'sprater/patstatcat'

11 years agoStatistical Categories Editor documentation and images
Scott Prater [Tue, 24 Apr 2012 06:40:21 +0000 (01:40 -0500)]
Statistical Categories Editor documentation and images

11 years agounsaved data loophole
Jason Etheridge [Fri, 30 Mar 2012 19:32:53 +0000 (15:32 -0400)]
unsaved data loophole

The Start/Previous/Next/End/Search Results buttons in the staff client OPAC
wrapper do not fire unsaved data warnings for the MARC editor when changing
records. This plugs that hole, but it's not a complete solution, as you can
still move away from the record by clicking on hyperlinks in the OPAC View,
though that's less likely to happen.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
11 years agoUpdate installation for beta2.
rsoulliere [Mon, 23 Apr 2012 17:22:19 +0000 (13:22 -0400)]
Update installation for beta2.

11 years agoBootstrap via "autoreconf -f -i" instead of "autogen.sh" user/dyrcona/autoreconf
Dan Scott [Sun, 22 Apr 2012 19:40:00 +0000 (15:40 -0400)]
Bootstrap via "autoreconf -f -i" instead of "autogen.sh"

It has always been potentially confusing to maintain two shell scripts
named "autogen.sh" for two distinct purposes in Evergreen. Take
advantage of "autoreconf" that is packaged with autoconf for dev
bootstrapping purposes and trash the old "autogen.sh" as a result.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
12 years agoClean up and refine serial note support, part 3 user/dbwells/serial_items_and_note_fixes
Dan Wells [Tue, 17 Apr 2012 20:48:43 +0000 (16:48 -0400)]
Clean up and refine serial note support, part 3

Add needed menu entries for invoking the serial notes editor from
the list in the Items tab.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoClean up and refine serial note support, part 2
Dan Wells [Tue, 17 Apr 2012 21:35:26 +0000 (17:35 -0400)]
Clean up and refine serial note support, part 2

Because of the way our notes are being rendered, a handful of
special XML characters can break the note interface when editing.
These characters are now properly encoded as entities.

Also, editing of newlines presents a similar issue with different
consequences, and it is handled similarly but separately.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoClean up and refine serial note support, part 1
Dan Wells [Tue, 17 Apr 2012 21:34:06 +0000 (17:34 -0400)]
Clean up and refine serial note support, part 1

This commit fixes a number of minor problems with serial notes:

1) Serial notes are currently returned in "random" (database)
order.  Adding a create_date sort is a sensible default.

2) If you have many notes, they start to display in a squashed and
unreadable fashion.  Switching from a groupbox to a styled vbox
provides a simple workaround.

3) It is currently impossible to display newlines in notes.  We can
deal with this by changing the display style.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoLimit excess serial data fetching
Dan Wells [Tue, 17 Apr 2012 20:02:49 +0000 (16:02 -0400)]
Limit excess serial data fetching

Overfetching and duplication of data in the interface is both
inefficient and bug-inducing.  This reduces a couple big offenders.

First, in the items tab, we will store distribution and subscription
data separately, rather than duplicating for every row.  Second, we
will only redraw rows as needed rather than refresh the whole list so
often.  Finally, we no longer need to lookup call numbers separately,
as they are included in the one-time distribution fetch.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
12 years agoBetter Prediction for Incomplete Chronologies
Dan Wells [Fri, 13 Apr 2012 13:53:32 +0000 (09:53 -0400)]
Better Prediction for Incomplete Chronologies

While relatively rare, some journals record only the year on the
cover, even if they come out monthly or weekly.  This commit
expands our previous support for serials with no chronology at
all to cover serials with partial chronology.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
12 years agoAcq: Refactor General Search for more smarts and speed
Lebbeous Fogle-Weekley [Fri, 13 Apr 2012 21:18:58 +0000 (17:18 -0400)]
Acq: Refactor General Search for more smarts and speed

This started in response to problems discussed around
https://bugs.launchpad.net/evergreen/+bug/967824 , but it really
addresses a distinct issue from that bug.

Acq General Search relies on lots of joins to make several tables in Acq
searchable by attributes of any of the other tables for rows that happen
to be related.  This is about 1) making better joins and 2) making fewer
joins when you don't need them all for a given search.

Much thanks to Mike Rylander for help figuring out how to efficiently
implement the joins needed for acq.invoice, which is the tricky part.

Less importantly, but still significant for some searches, we also need
case insensitivity for searching on user-linked fields (General Search
always lets you search by any of username/family name/given name/barcode
for these fields) in order to take advantage of some indexes for speed.

This diagram of key Acq relationships is helpful:

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

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoMore patron display css tweaks
Thomas Berezansky [Fri, 13 Apr 2012 14:07:17 +0000 (10:07 -0400)]
More patron display css tweaks

To help prevent some "jumpy" interfaces due to borders and text appearing
and disappearing with selections and updates.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
12 years agoadd more penalty related CSS hooks
Jason Etheridge [Fri, 13 Apr 2012 06:54:13 +0000 (02:54 -0400)]
add more penalty related CSS hooks

PATRON_HAS_CUSTOM_PENALTY (if the penalty is not a stock penalty, based on id)
PATRON_HAS_STAFF_ALERT (if the staff_alert boolean on the penalty is true)
PATRON_HAS_BLOCK (if there's anything in the penalty's block list)
PATRON_HAS_CIRC_BLOCK (if CIRC is in the block list)
PATRON_HAS_RENEW_BLOCK (if RENEW is in the block list)
PATRON_HAS_HOLD_BLOCK (if HOLD is in the block list)
PATRON_HAS_CAPTURE_BLOCK (if CAPTURE is in the block list)
PATRON_HAS_FULFILL_BLOCK (if FULFILL is in the block list)

also adds stock CSS for PATRON_HAS_STAFF_ALERT, a blue border around the patron
name.

In the color hierarchy, this comes after the normal Green/Lime status, but gets
trumped by any other penalty that sets a colored border.

So, for example, if a patron has no penalties, and you go to Messages and add an
"Alert" note, that equates to the penalty ALERT_NOTE, which has a staff_alert
setting of True.  On a refresh, the patron will then have a blue border around
their name.  If you then create a bill on that patron for $100, triggering the
PATRON_EXCEEDS_FINES penalty, then the patron will gain the normal purple or
lavender border, even though the penalty also has a staff_alert setting of True
and triggers PATRON_HAS_STAFF_ALERT CSS.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
12 years agolp#980303: don't complain about missing plperl
Galen Charlton [Thu, 12 Apr 2012 21:19:40 +0000 (17:19 -0400)]
lp#980303: don't complain about missing plperl

Now that use of PL/PERL has been dropped in favor of
using PL/PERLU for all Perl SPs, settings-tester.pl need not
check for it.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Dan Scott <dan.scott@laurentian.ca>
12 years agoTPAC: Clear params when viewing lists in search results
Dan Scott [Wed, 11 Apr 2012 04:08:41 +0000 (00:08 -0400)]
TPAC: Clear params when viewing lists in search results

Per LP977353, search terms are propagating when the list is being viewed
in "results" (HTML View), and therefore those search terms block the
display of most or all of the items in the list. Therefore, do not
propagate the other CGI params to the mkurl() call.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
12 years agoAdd pref_ou query filter for preferred library searching
Dan Scott [Fri, 6 Apr 2012 18:52:20 +0000 (14:52 -0400)]
Add pref_ou query filter for preferred library searching

Include the user's "preferred search library" (as set in search
preferences, falling back to home OU) in searches, specifically for the
purposes of ensuring that located URIs at the user's preferred library
would trigger hits where physical copies would be out of scope.

Practical example:

1. User sets preferred search library to BR1.

2. They jump onto the catalogue, log in (which changes their search org
  to their preferred search library of BR1), but then for some reason
  change their search org in the org selector to BR3.

3. They issue a search for "Harry Potter and the Philosopher's Stone".
  BR3 doesn't hold any copies or have any located URIs, but SYS1 (BR1's
  parent) has a PotterMore licence and has added their 856 $9 SYS1 to a
  bib record.

As it currently stands, User is out of luck; they won't see any hits in
search results as there are no copies or located URIs in the BR3 scope.

The proposed enhancement would, however, make the search results contain
a hit for "Harry Potter and the Philosopher's Stone" at the user's
preferred search library.

Sites can trigger the preferred library as part of the query filters
using the "pref_ou(SHORTNAME)" syntax.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
12 years agoNicer staff searches display in record details
Thomas Berezansky [Wed, 11 Apr 2012 18:58:26 +0000 (14:58 -0400)]
Nicer staff searches display in record details

Specifically, don't make us scroll down a few hundred pixels to see the
actual page content.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dan@coffeecode.net>
12 years agofix sort bug introduced with multi-sort
Jason Etheridge [Tue, 10 Apr 2012 17:15:09 +0000 (13:15 -0400)]
fix sort bug introduced with multi-sort

The bug happens on columns without a defined sort_value

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
12 years agoFix bill selection in the billing interface
Jason Etheridge [Tue, 10 Apr 2012 16:57:16 +0000 (12:57 -0400)]
Fix bill selection in the billing interface

We were looking for the checkbox column to be the first treecell in a treerow,
but the ever-present line number column now takes up that position.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoTypos: s/recieve/receive/
Dan Scott [Tue, 10 Apr 2012 04:15:49 +0000 (00:15 -0400)]
Typos: s/recieve/receive/

Signed-off-by: Dan Scott <dscott@laurentian.ca>
12 years agoFix references to 2.2-beta2 throughout the upgrade document
Dan Scott [Mon, 9 Apr 2012 21:07:22 +0000 (17:07 -0400)]
Fix references to 2.2-beta2 throughout the upgrade document

There were a number of references to 2.2.beta1 instead of 2.2-beta1;
also, we're at beta2 now, so point to that. Also, point to the right
version upgrade script (now living in a new directory).

Signed-off-by: Dan Scott <dscott@laurentian.ca>
12 years agoUse STAFF_CLIENT_STAMP_ID, not STAFF_CLIENT_BUILD_ID
Dan Scott [Mon, 9 Apr 2012 21:03:16 +0000 (17:03 -0400)]
Use STAFF_CLIENT_STAMP_ID, not STAFF_CLIENT_BUILD_ID

With recent changes to staff client builds, STAFF_CLIENT_STAMP_ID is now
the preferred environment variable to use.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
12 years agoBump 2.2 beta version number in upgrade script
Thomas Berezansky [Mon, 9 Apr 2012 20:22:06 +0000 (16:22 -0400)]
Bump 2.2 beta version number in upgrade script

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
12 years agoi18n: Robustify db-seed-i18n.py parsing
Dan Scott [Mon, 9 Apr 2012 13:37:57 +0000 (09:37 -0400)]
i18n: Robustify db-seed-i18n.py parsing

Faced with the perplexing use of a space before a comma in
oils_i18n_gettext() keys, db-seed-i18n.py's regex failed. The solution
for a sloppy regex? More powerful regex!

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
12 years agoTPAC: Integrate i18n for TPAC into build process
Dan Scott [Tue, 27 Mar 2012 04:12:43 +0000 (00:12 -0400)]
TPAC: Integrate i18n for TPAC into build process

Support the "standard" i18n build process for internationalization by
integrating the TPAC string extraction (via xgettext.pl) and update /
install bits. Also, add the base POT file to support translation in
Launchpad.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
12 years agoTPAC: Protect against requests for non-existent records
Dan Scott [Sun, 8 Apr 2012 22:13:26 +0000 (18:13 -0400)]
TPAC: Protect against requests for non-existent records

If a record request is received for a record that does not exist (say,
if 100 records have been loaded and someone submits a request for
/eg/opac/record/399), rather than dying with a server error, return
immediately.

Eventually we'll want to provide an explicit "record was not
found error" in the TPAC record details; for now the TPAC just displays
zero bib detail.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
12 years agoProtect against empty default_CD_modifiers in opensrf.xml
Mike Rylander [Wed, 29 Feb 2012 17:04:54 +0000 (12:04 -0500)]
Protect against empty default_CD_modifiers in opensrf.xml

If the app settings for the open-ils.search service in opensrf.xml had
an empty (but not entirely missing) <default_CD_modifiers> element, then
the open-ils.storage log would contain entries like the following:

Use of uninitialized value $class in hash element at
/usr/local/share/perl5/OpenILS/Application/Storage/QueryParser.pm

Protect against that problem with more defensive code in QueryParser.pm.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Scott <dan@coffeecode.net>
12 years agoAvoid too-strict controller checks when fleshing for cstore, reporter-store
Lebbeous Fogle-Weekley [Mon, 9 Apr 2012 15:27:53 +0000 (11:27 -0400)]
Avoid too-strict controller checks when fleshing for cstore, reporter-store

Move controller-verificiation from the beginning of recursive
doFieldmapperSearch() to nearer the end, right before we recurse, so we
only check the child class's controller if we're pcrud.  If we're not
pcrud, code that calls doFieldmapperSearch() from the outside will have
already done appropriate testing of the controller.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
12 years agoServer upgrade instructions
Dan Scott [Mon, 9 Apr 2012 16:08:08 +0000 (12:08 -0400)]
Server upgrade instructions

Focus on the database schema first, as the longest part of the job.

Qualify the instructions noting that they are currently oriented
towards a default installation - not particularly realistic.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
12 years agoServer upgrade refinement for 2.2
Dan Scott [Mon, 9 Apr 2012 15:37:35 +0000 (11:37 -0400)]
Server upgrade refinement for 2.2

* Try to use "As the <foobar> user" consistently.
* Remove trailing whitespace from lines
* Use backticks to flag commands in context
* Present names of prereqs and distros in definition lists in bold to
  set them apart visually
* Small typo fixes

Signed-off-by: Dan Scott <dscott@laurentian.ca>
12 years agoOrg Unit Custom Tree supports add directly after delete
Bill Erickson [Tue, 3 Apr 2012 18:39:00 +0000 (14:39 -0400)]
Org Unit Custom Tree supports add directly after delete

When deleting a node from the custom tree, it's necessary to save the
tree store after the final call to store.deleteItem, or the delete
operation will not complete.  Without this, it's not possible to add a
remove org unit back into the custom tree without reloading the UI.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agoOrg unit custom tree sort repairs
Bill Erickson [Tue, 3 Apr 2012 19:14:35 +0000 (15:14 -0400)]
Org unit custom tree sort repairs

Repairs a problem with detecting and storing the sort order of sibling
nodes within custom trees.  The original problem was the result of
comparing parent nodes for non-siblings because of a depth-first tree
traversal.  Now we process siblings in level-order before processing
child nodes.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
12 years agoUpdate release notes.
rsoulliere [Mon, 9 Apr 2012 14:20:56 +0000 (10:20 -0400)]
Update release notes.

12 years agoAppy fixes to acquistions_admin.txt from Tim Spindler.
rsoulliere [Mon, 9 Apr 2012 13:51:50 +0000 (09:51 -0400)]
Appy fixes to acquistions_admin.txt from Tim Spindler.

12 years agoFixes to server_upgrade.txt provided by Dan Scott in bug https://bugs.launchpad.net...
rsoulliere [Mon, 9 Apr 2012 13:34:56 +0000 (09:34 -0400)]
Fixes to server_upgrade.txt provided by Dan Scott in bug https://bugs.launchpad.net/evergreen/+bug/974600. Thanks Dan!

12 years agoBug 957453: Fix error in database seed data
Dan Scott [Mon, 9 Apr 2012 12:59:55 +0000 (08:59 -0400)]
Bug 957453: Fix error in database seed data

The use of an explicit ID in creating a new
action_trigger.event_definition row was followed by the use of the
CURRVAL() function to grab the most recently issued value for
the action_trigger.event_defintion_id_seq sequence - which happened to
be 100, due to a previously issued SETVAL() on the sequence.

This resulted in references to non-existent event definitions and thus
an error in creating the stock database schema.

By using an explicit ID for the dependent row, we avoid this error.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
12 years agoREADME: Clarify PostgreSQL 9.1 vs. 9.0 remote server docs
Dan Scott [Mon, 9 Apr 2012 13:14:16 +0000 (09:14 -0400)]
README: Clarify PostgreSQL 9.1 vs. 9.0 remote server docs

Break out the PostgreSQL 9.1 or later instructions into their own
subsection to clarify how the steps differ from PostgreSQL 9.0.

Signed-off-by: Dan Scott <dan@coffeecode.net>
12 years agoTPAC: Show deleted record warning for deleted records
Dan Scott [Sun, 8 Apr 2012 19:47:10 +0000 (15:47 -0400)]
TPAC: Show deleted record warning for deleted records

At the cost of an extra database query per record displayed, we can
properly activate the "This record has been deleted..." message. Prior
to this commit, the message was embedded on every page but hidden via
CSS - which isn't great for search engines or source-reading types.

Now we only include & display the message if it has, in fact, been
deleted.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoUpdate acquistions Selections_lists_po file.
rsoulliere [Mon, 9 Apr 2012 12:27:14 +0000 (08:27 -0400)]
Update acquistions Selections_lists_po file.

12 years agoStamp tpac value maps upgrade script
Thomas Berezansky [Mon, 9 Apr 2012 01:32:25 +0000 (21:32 -0400)]
Stamp tpac value maps upgrade script

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
12 years agoAdd "Simple" flag for selectors
Thomas Berezansky [Thu, 5 Apr 2012 19:39:40 +0000 (15:39 -0400)]
Add "Simple" flag for selectors

This causes JSPac to ignore them and TPac to sort them above a divider.

Also fixes an issue where excessive escaping was being done on values. This
would break some values in the value map selectors.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoAdd i18n tag to coded value map value/description
Thomas Berezansky [Thu, 29 Mar 2012 20:39:10 +0000 (16:39 -0400)]
Add i18n tag to coded value map value/description

Because the seed data assumes they are translated, so tell the IDL.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoCoded Value Maps Opac Visible/Search Labels
Thomas Berezansky [Thu, 29 Mar 2012 19:37:07 +0000 (15:37 -0400)]
Coded Value Maps Opac Visible/Search Labels

Add two new fields to Coded Value Maps:

1 - Opac Visible, for "does this show up in opac limiter boxes"
2 - Search Label, for "what does this get called for those boxes"

Intended use cases include:

Re-labeling MARC fields without changing the base MARC information, say
because you don't expect patrons to understand "Projected Medium".

Hiding things that don't apply, say the vast majority of language limiters,
without needing to delete rows.

I also hooked it up in JSPac, because it was easy to do so.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
12 years agoformatting fixes.
rsoulliere [Thu, 5 Apr 2012 16:44:17 +0000 (12:44 -0400)]
formatting fixes.

12 years agoTypo fixing.
rsoulliere [Thu, 5 Apr 2012 16:26:34 +0000 (12:26 -0400)]
Typo fixing.

12 years agotypo fix.
rsoulliere [Thu, 5 Apr 2012 14:55:49 +0000 (10:55 -0400)]
typo fix.

12 years agoAdd acquisitiosn images.
rsoulliere [Thu, 5 Apr 2012 14:52:19 +0000 (10:52 -0400)]
Add acquisitiosn images.

12 years agoAdd acquisitions admin documentation from Tim Spindler.
rsoulliere [Thu, 5 Apr 2012 14:37:41 +0000 (10:37 -0400)]
Add acquisitions admin documentation from Tim Spindler.

12 years agoMerge selction lists sections into one chapter file.
rsoulliere [Thu, 5 Apr 2012 14:32:31 +0000 (10:32 -0400)]
Merge selction lists sections into one chapter file.

12 years agoAdd acquisitions intro.
rsoulliere [Thu, 5 Apr 2012 12:23:09 +0000 (08:23 -0400)]
Add acquisitions intro.

12 years agoAdd acquistions chapters to 2.2 from Tim Spindler.
rsoulliere [Thu, 5 Apr 2012 12:18:47 +0000 (08:18 -0400)]
Add acquistions chapters to 2.2 from Tim Spindler.

12 years agoUpdate Serials image files.
rsoulliere [Wed, 4 Apr 2012 19:53:15 +0000 (15:53 -0400)]
Update Serials image files.

12 years agoFixed a slight misspelling, as noted in https://bugs.launchpad.net/evergreen/+bug...
Joseph Lewis [Tue, 3 Apr 2012 16:13:20 +0000 (10:13 -0600)]
Fixed a slight misspelling, as noted in https://bugs.launchpad.net/evergreen/+bug/915564

Signed-off-by: Joseph Lewis <joehms22@gmail.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
12 years agoMerge branch 'master' of git://git.evergreen-ils.org/Evergreen
Lebbeous Fogle-Weekley [Tue, 3 Apr 2012 16:53:04 +0000 (12:53 -0400)]
Merge branch 'master' of git://git.evergreen-ils.org/Evergreen

12 years agoMerge remote branch 'working/user/dbwells/shared_siss_editor'
Lebbeous Fogle-Weekley [Tue, 3 Apr 2012 16:49:28 +0000 (12:49 -0400)]
Merge remote branch 'working/user/dbwells/shared_siss_editor'

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