miker [Wed, 16 Mar 2011 16:07:02 +0000 (16:07 +0000)]
upgrade script matching r19759-r19761
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19774
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Wed, 16 Mar 2011 14:31:38 +0000 (14:31 +0000)]
dedicated renewal interface should use receipt printer
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19771
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 16 Mar 2011 14:19:04 +0000 (14:19 +0000)]
Patch from Steve Callendar addressing CN sort order on page 0 (and before) of CN browse
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19766
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 16 Mar 2011 13:39:15 +0000 (13:39 +0000)]
Patch from Steve Callendar addressing holdability tests for copies
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19765
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 16 Mar 2011 04:34:45 +0000 (04:34 +0000)]
Backport r19756 and r19758 for proper namespaces in aggregate functions
Schema creation and recreation tested with PostgreSQL 8.4 and 9.0 and
seems good. Fingers crossed.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19762
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 16 Mar 2011 04:04:19 +0000 (04:04 +0000)]
Set default db schema search path to public,pg_catalog
With the addition of the 'evergreen' schema, we discovered that
all of the unqualified database objects were being created in
the 'evergreen' schema if the database user name was 'evergreen'
(as the default search path is "$user",public we started matching
"$user").
Thomas Berezansky proposed a variation of the function provided
here for changing database settings. By creating the function in
the first schema file, the subsequent connections pick up the
new default search path and all works blissfully as it once did.
Long term, we should probably move towards explicitly qualified
database objects.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19761
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Tue, 15 Mar 2011 22:46:23 +0000 (22:46 +0000)]
Re-enable close button for staff client tabs
There is a different fix for this in trunk/2.1, but I thought a simple fix for this was worth adding for those sticking with 2.0 for a while.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19757
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Tue, 15 Mar 2011 17:19:26 +0000 (17:19 +0000)]
teach the 1.6-2.0 reingest generator about "tnf"-tag rows for title sorting
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19755
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Tue, 15 Mar 2011 01:38:35 +0000 (01:38 +0000)]
Prevent creation of report folders with empty folder names
Addresses LP # 720755. Clicking the "Create Folder" button when
no folder name has been supplied is now a no-op.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19743
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Mon, 14 Mar 2011 17:42:20 +0000 (17:42 +0000)]
exit gen_fines_stop early if there is nothing to do; prevents (unneeded) secondary call to ->wait_complete on potentially undef reference
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19740
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Sat, 12 Mar 2011 23:14:20 +0000 (23:14 +0000)]
Clean up build errors when creating/recreating database schema
Dropping the evergreen schema cascaded and wiped out some previously
defined functions, so move it ahead of the other functions. (And maybe
we can start moving those public functions into the evergreen schema?)
DROP AGGREGATE IF EXISTS exists on any version of PostgreSQL that we
care about for Evergreen 2.0, so we can use it to avoid false errors
during schema creation.
FTS config was complaining about public.english_nostop in the ALTER
statement, so remove the schema qualification. This seems to have
been there for a long time?
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19721
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Sat, 12 Mar 2011 22:21:42 +0000 (22:21 +0000)]
Use valid DDL for forgotten index on actor.card
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19720
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Sat, 12 Mar 2011 03:14:10 +0000 (03:14 +0000)]
Resolve inconsistent results when invoking LOWER() in C vs. UTF8 locale databases
As reported by the Fundamental Science Library of Armenia, patron searches
were not retrieving patrons who were known to be part of the patron database.
While the initial approach to solve this problem used an encode_utf8() call
to encode the data before passing it on to the database, this turned out to
break the patron search function in other environments.
Testing by Dan Wells confirmed that the LOWER() function returned different
results when invoked against text in a database created with LC_CTYPE=C vs
a database created with LC_CTYPE=*.UTF-8. As the patron search function
used a Perl lc() function call to convert the incoming data to lowercase,
the success of the call depended on the LC_CTYPE value of the database.
To avoid this problem in the future, we define our own evergreen.lowercase()
function that can reliably produce lowercase text for characters outside
the Latin1 range, and we convert our indexes and function calls to use that
function consistently.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19717
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Fri, 11 Mar 2011 21:51:40 +0000 (21:51 +0000)]
only append street2 to CC payment address if no address is provided by the caller
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19713
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Fri, 11 Mar 2011 20:45:52 +0000 (20:45 +0000)]
Backport r19709 from trunk
Acq: The "Claim-Ready Items" interface did not render correctly for > 1 item
The problem was racy async rendering logic. Now we look at our whole result
set and build our table accordingly at the end.
This interface should probably learn about paging one day in order to
handle large result sets.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19710
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 11 Mar 2011 20:40:47 +0000 (20:40 +0000)]
Update the README to include explict LC_CTYPE/LC_COLLATE db settings
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19708
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 11 Mar 2011 20:39:03 +0000 (20:39 +0000)]
LANG=C results in SQL_ASCII encoding by default for PostgreSQL, which isn't cool
We want LC_CTYPE=C and LC_COLLATE=C, and SERVER_ENCODING=UTF8.
The docs have been adjusted as 8.4 and up now offer database-level
--lc-ctype / --lc-collate options for createdb command.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19705
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Fri, 11 Mar 2011 20:23:17 +0000 (20:23 +0000)]
use the existing util method for mvr-izing, since it handles some additional important steps (e.g. capturing doc_id)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19702
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 11 Mar 2011 16:46:15 +0000 (16:46 +0000)]
Ensure incoming query values to patron search are UTF8-encoded
Addresses the problem reported with searching for patrons with
Armenian names, where Unicode query params were getting corrupted
on its way to the database.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19699
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Thu, 10 Mar 2011 18:25:22 +0000 (18:25 +0000)]
Make the password reset upgrade safe for fresh DBs, upgraded DBs, and mangled DBs
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19689
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Thu, 10 Mar 2011 17:16:01 +0000 (17:16 +0000)]
Backport r19682 from trunk
Booking: don't bail out completely on COPY_ALERT_MESSAGE when returning items
Provide overridability.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19686
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 10 Mar 2011 15:43:55 +0000 (15:43 +0000)]
Skip fine generation when the fine interval is day-granular, meaning fines are handled by the nightly cron script
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19679
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 10 Mar 2011 02:32:27 +0000 (02:32 +0000)]
do some fancy dancing to make moving an event def around possible
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19672
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 9 Mar 2011 22:00:45 +0000 (22:00 +0000)]
'newpo' in install_all_locales was wiping out all fr-CA translations
Long story short, we would rather have install_all_locales fail loudly
than silently wipe out fr-CA.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19670
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 9 Mar 2011 21:54:40 +0000 (21:54 +0000)]
We should not be dropping and recreating the booking schema -- it was installed in 1.6.1
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19667
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 9 Mar 2011 19:08:43 +0000 (19:08 +0000)]
Draw pre-cataloged items (author and title) in My Account checkedout screen
Two problems: FETCH_MODS_FROM_COPY returns an object, so we weren't
getting to the point of fetching the raw copy itself, and there was
some confusion about pre-cataloged vs. non-cataloged items that is
hopefully straightened out now.
Addresses LP # 723895
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19655
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 9 Mar 2011 18:42:10 +0000 (18:42 +0000)]
2.0.3 upgrade script
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19652
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Wed, 9 Mar 2011 17:10:57 +0000 (17:10 +0000)]
Fix LP bug #727432, "overpaying with patron credit can generate a double credit"
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19651
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Tue, 8 Mar 2011 20:47:02 +0000 (20:47 +0000)]
Add missing ampersand to ind1 attribute in identifier index xpaths
This addresses LP # 731564. Thanks to Dan Wells for identifying (hah)
the identifier xpath problem!
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19644
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Tue, 8 Mar 2011 19:15:58 +0000 (19:15 +0000)]
Address LP bug #724583, "Paying Bills with Patron Credit does not always decrease patron Credit"
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19641
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 7 Mar 2011 20:28:14 +0000 (20:28 +0000)]
We now require PG 9.0+, say as much in the README; also, other assorted updates to version numbers
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19630
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Mon, 7 Mar 2011 15:14:01 +0000 (15:14 +0000)]
Fix cloning of AutoField widgets: LP #728055
Cloning Action/Trigger event definitions was not working properly, as
all values were being copied from the original object using their display
strings rather than the underlying values.
Bill Erickson suggested a fix in IRC that works, so full credit to him
for this change!
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19592
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Sat, 5 Mar 2011 03:18:56 +0000 (03:18 +0000)]
Correct search index definitions for subject|complete and identifier|bibcn
Dan Wells reported in LP# 729385 that the index definitions for
subject|complete and identifier|bibcn were not working, and traced
the problem to a change in how indexes are generated in 2.0+. Dropping
the trailing '//text()' on these two indexes addresses the problem.
Sites upgrading from a previous version of Evergreen 2.0 will want
to refresh the indexes after applying this schema change to enable
searches against subject|complete and identifier|bibcn to work.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19589
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Fri, 4 Mar 2011 19:49:09 +0000 (19:49 +0000)]
Respect a setting of depth=0. In particular, this fixes holdings requests for branch-level searches with an 'Everything' scope.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19585
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 4 Mar 2011 04:58:41 +0000 (04:58 +0000)]
Backport SRU fixes from trunk (r19572, r19573)
Add complete set of Evergreen search aliases and attributes to SRU explain
Original "pull from database" code had limited the search aliases to those
that were qualified; now we pull all of them, and if they are not qualified,
we qualify them as "eg".
In addition, for some of the non-index attributes (sort, direction, site,
available), restore the descriptive title that was previously available.
Slightly longer term we will add a "description" column to
config.metabib_search_alias to store this information.
By returning explicit index and title elements from the method,
we can backport cleanly to 2.0 and set the stage for pulling the
title element directly from the database in 2.1 and beyond.
In addition, the enriched object enables us to get rid of the
hardcoded nested qualifier map for bibs.
Finally, we also fix the mappings of SRU qualifiers to Evergreen
search aliases (in many cases we had been quietly falling back
to plain kw searches, which was not cool).
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19576
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Thu, 3 Mar 2011 16:04:38 +0000 (16:04 +0000)]
when using the force-reload option to reset timeout, propagate the ws_ou and wsid values from the cached user object into the reloaded user object
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19571
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 3 Mar 2011 15:48:31 +0000 (15:48 +0000)]
Patch (mildly revised) from Anoop Atre to address new Postgres 9.0 strictness requirements involving plan invalidation
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19569
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 3 Mar 2011 06:01:58 +0000 (06:01 +0000)]
Draw SRU search indexes from config.metabib_search_alias
We had hardcoded search indexes for SRU, but thanks to the work
of Mike Rylander, it is fairly easy to remove that brittle code
and replace it with code that polls the contents of
config.metabib_search_alias and dumps it into the explain document.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19567
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 2 Mar 2011 21:15:15 +0000 (21:15 +0000)]
Call number sorting "before" the context needs to be segregated based on directly on the label, "here-and-after" on the bytea version. Testing bears this out, but more eyes would be appreciated.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19562
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Tue, 1 Mar 2011 05:34:17 +0000 (05:34 +0000)]
Add a TT helper to encode email headers in UTF-8
This can and should be used to encode any headers (To, From, Subject, etc)
in an email that might include text outside of the ASCII 7-bit range. Names
of people or libraries, for example, that might otherwise come out garbled.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19548
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Fri, 25 Feb 2011 21:33:46 +0000 (21:33 +0000)]
Updated org selector code in org setting UI
Removed some ad-hoc org-unit tree widget code and replaced with
the a standard solution from the openils dojo user lib.
Pass the auth on org value retrieval to pick up perm-protected settings.
Use STAFF_LOGIN for context selector perm, since each setting has its
own perm that is checked before fetching.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19545
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 25 Feb 2011 19:14:02 +0000 (19:14 +0000)]
make sure asset.call_number.label_sortkey is up to date
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19542
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Thu, 24 Feb 2011 21:58:32 +0000 (21:58 +0000)]
typo fix
"Pat, I'd like to buy a vowel"
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19539
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Thu, 24 Feb 2011 20:04:33 +0000 (20:04 +0000)]
Fix regex in maintain 901c
The previous regex would delete any 901 fields *and* any fields which followed. Since the 901 is typically the last field, this problem didn't surface during testing.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19536
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Thu, 24 Feb 2011 16:53:12 +0000 (16:53 +0000)]
added missing columns to CDBI table definitions
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19533
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Thu, 24 Feb 2011 15:35:51 +0000 (15:35 +0000)]
Per Robert Soulliere, it can be necessary in some cases to clean out bad
data from action.reservation_transit_copy before applying the missing
fkeys to said table.
https://bugs.launchpad.net/evergreen/+bug/721450
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19529
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Wed, 23 Feb 2011 22:22:32 +0000 (22:22 +0000)]
clear out the hold_copy_map entries for holds cancelled via the clear-shelf processes
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19527
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 23 Feb 2011 21:34:03 +0000 (21:34 +0000)]
include copy/call_number deletedness in staff-version copy counts
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19524
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 23 Feb 2011 15:07:17 +0000 (15:07 +0000)]
Add 830 as a controllable bibliographic field in authority linking script
Per http://www.loc.gov/marc/bibliographic/bd830.html, bibliographic 830
should be controlled by authority 130. The "common cataloging practice"
in 830 of omitting non-filing characters may cause some entries to not be
linked that otherwise would be.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19520
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 23 Feb 2011 02:12:02 +0000 (02:12 +0000)]
Correct the install location for Dojo i18n bundles
We had been converting xx-YY into xx/yy for a directory structure,
but current evidence shows that it should be xx-yy. Hard to believe
we've overlooked this for so long. Also, with the exception of the
en-ca/en-gb/en-us locales, we should probably trim the locale to
just xx - but that's a different problem, and let's just focus on
getting this working to begin with.
Addresses Launchpad # 723489
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19509
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Tue, 22 Feb 2011 21:19:38 +0000 (21:19 +0000)]
dojo.js has to be loaded from the same domain as the page, unless it's a cross-domain build
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19505
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 21 Feb 2011 18:45:38 +0000 (18:45 +0000)]
2.0.2 upgrade script
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19500
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 21 Feb 2011 18:30:19 +0000 (18:30 +0000)]
Make sure we continue looping in situations where there is only one copy
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19497
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 21 Feb 2011 15:37:19 +0000 (15:37 +0000)]
Addressing LP bug: https://bugs.launchpad.net/evergreen/+bug/721450
If a series-class index definition has been removed, the data remains in the field entry table. This is because there was no fkey previously. We need to clean that data out so that the fkey can be validated during upgrade.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19492
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 18 Feb 2011 18:46:41 +0000 (18:46 +0000)]
Whitespace - convert mix of tabs/spaces to pure spaces
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19490
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 18 Feb 2011 18:46:22 +0000 (18:46 +0000)]
Switch to BT.textContent() for Opera compatibility
The BT.textContent() method abstracts away some of the browser
differences for us. Most importantly, it makes Opera happy.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19489
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Thu, 17 Feb 2011 20:57:31 +0000 (20:57 +0000)]
Backport r19470 from trunk
Booking: fix the targeter in the I'm-reserving-this-exact-resource-with-this-
exact-barcode case.
It should have always worked like this. This should better mirror the behavior
in the holds targeter when placing a copy-level hold. Basically don't fail
to target a resource for a reservation later just because it's not in an
available status right at this moment.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19472
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 17 Feb 2011 20:28:56 +0000 (20:28 +0000)]
Note --admin-user / --admin-pass options for eg_db_config.pl
Missed backporting this doc from trunk - thanks to Chris Sharp for
pointing this out.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19469
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 17 Feb 2011 18:57:02 +0000 (18:57 +0000)]
Avoid mixed-content warnings due to HTTP link for Google Chrome Frame
We're hardcoding this to HTTPS for now to avoid the mixed-content warnings that
occur when content location is https:// and the linked script is at http:// but
a config-aware patch probably wouldn't be a bad idea.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19468
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 17 Feb 2011 03:31:01 +0000 (03:31 +0000)]
Teach maintain_901 trigger to respect the "Use record ID for TCN" global flag
Rather than relying on the Perl layer to set the correct TCN on the way in,
do it as part of the in-database indexing to ensure that we have consistent
results no matter how the record gets into the database.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19460
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 16 Feb 2011 22:24:16 +0000 (22:24 +0000)]
Patch based on work by Dan Wells to improve Opera BibTemplate support
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19457
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Sun, 13 Feb 2011 03:19:36 +0000 (03:19 +0000)]
Teach authority_control_fields.pl about record ranges
Passing --record 10,000 times at the command line sucks, and
--all is not particularly realistic for large databases. Adding
--start_id and --end_id makes this script more usable.
Also provide reasonably full POD documentation, and rely on
Pod::Usage to provide help based on it when help is requested
or passed in options don't make sense.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19441
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 11 Feb 2011 21:45:20 +0000 (21:45 +0000)]
Normalize ISBNs by stripping hyphens in search methods and in reporter.materialized_simple_record
We weren't normalizing ISBNs in search or in reporter.materialized_simple_record
which required users to exactly match the form of the ISBN as entered in the
MARC record to get a successful search result - pretty hit or miss.
The longer term fix in 2.0 and above is to make the ISBN search search against
the identifier|isbn index, which also gets ISBN10/ISBN13 equivalence goodness.
But this patch will be relatively easy to backport through to 1.6.1 and plugs
some of the holes in our exposed APIs and search points in the short term.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19434
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 11 Feb 2011 00:51:07 +0000 (00:51 +0000)]
Postgres 9.0 is more strict about variable names in functions. We will probably hit more of these, but these in particular break the OPAC.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19429
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 10 Feb 2011 15:31:49 +0000 (15:31 +0000)]
Correct syntax error in BadDebt.pm
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19424
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Wed, 9 Feb 2011 18:58:40 +0000 (18:58 +0000)]
Reduce hard-coded strings in Serial Control interfaces
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19421
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Wed, 9 Feb 2011 18:26:06 +0000 (18:26 +0000)]
allow item status update if either status-specific perm is allowed or UPDATE_COPY is allowed. fire off related A/T events after the initial transaction has been committed
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19416
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Wed, 9 Feb 2011 05:34:29 +0000 (05:34 +0000)]
tweak selector used for font_helper() CSS classes
Makes the flat-text MARC editor respect the global font settings,
resolving bug https://bugs.launchpad.net/evergreen/+bug/678078
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19413
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Tue, 8 Feb 2011 06:21:18 +0000 (06:21 +0000)]
Remove syntax error from O:A:Storage:Publisher:authority and add strict pragma
Came across a line of dead code while debugging a related problem, and
noticed that strict/warnings wasn't in place, so I culled the dead code
and added use strict/use warnings accordingly (now that we no longer
have the syntax error caused by the dead code).
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19407
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Tue, 8 Feb 2011 06:13:05 +0000 (06:13 +0000)]
Create authorities that only contain controlled subfields (LP 712496)
Selecting "Create authority" on a field containing uncontrolled subfields
would generate an authority record that contained those uncontrolled
subfields. This would, in turn, prevent the "Validate" button from operating
correctly - if you added a 700 with $a and $c subfields, clicked "Create
authority", and then immediately clicked "Validate", the field would show
up as red.
Now we filter out the uncontrolled subfields before they get sent to
the "Create authority" function, avoiding this validation problem.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19405
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Tue, 8 Feb 2011 05:12:28 +0000 (05:12 +0000)]
Ensure new authority ID subfield is inserted in the correct XUL DOM location
Addresses LP 712499. After creating an authority via the context menu
in the MARC editor, the new ID subfield ($0) would be created right after
the subfield on which the context menu was invoked. It turns out that it
was being placed in the wrong location, and one symptom was that the
Validate button would not validate the controlled field against the newly
created authority.
Now we hunt through the parent DOM nodes until we find the 'sf_box' element
and then we append the ID subfield to that node. We also eliminate some
duplicate code by defining a common function so that the problem can be
fixed in one stroke...
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19403
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Tue, 8 Feb 2011 03:50:58 +0000 (03:50 +0000)]
Prevent authority context menu on whitespace content
Continuing the refinement of LP 712538, if the subfield contains
only whitespace, treat it as though it were empty for the purposes
of the context menu.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19401
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Tue, 8 Feb 2011 03:50:27 +0000 (03:50 +0000)]
Prevent authority context menu from being displayed on empty content (LP 712538)
It's confusing to have the authority context menu - particularly the
"Create authority" options - appear for empty content. Check to ensure
that the subfield being clicked on actually has some content before
displaying the authority context menu.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19400
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 4 Feb 2011 19:28:58 +0000 (19:28 +0000)]
upgrade script
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19388
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Fri, 4 Feb 2011 18:53:11 +0000 (18:53 +0000)]
Fix ModsParser.pm bug involving invalid ISBNs. See bug #697398.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19384
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Fri, 4 Feb 2011 00:15:24 +0000 (00:15 +0000)]
ported open-ils.actor.user.transaction.[fleshed.]retrieve to CStoreEditor both for cleanup and to take advantage of .authoritative. Use authoritative version in staff client
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19380
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Thu, 3 Feb 2011 23:31:55 +0000 (23:31 +0000)]
clear shelf expire time and some other fields when un-cancelling a hold
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19376
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Thu, 3 Feb 2011 16:49:24 +0000 (16:49 +0000)]
Two binding fixes for manage items
The first fix is more or less cosmetic. When selecting a target unit, both areas need to refresh in order to not show the selected unit's items in the main list.
The second fix involves handling cases where moving items from one unit to another does not empty the 'donor' unit. In those cases, we need to update the contents of both the new and the old unit.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19374
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 3 Feb 2011 14:16:25 +0000 (14:16 +0000)]
Authorities: control 610/611, do not control 4xx by default
The 4xx fields in bibliographic records have not been controlled
fields for some time (1988 for CAN/MARC, 1999 for USMARC per)
http://www.loc.gov/marc/bibliographic/bd4xx.html; and
http://www.oclc.org/bibformats/en/4xx/default.shtm also lists
these as obsolete. So, remove them from the default controlled
fields in Evergreen.
Also, add 610/611 to the controlled fields list (per LP #712467).
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19372
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Wed, 2 Feb 2011 20:52:11 +0000 (20:52 +0000)]
let due date show up correctly in the copy browser for circulating items
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19370
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Wed, 2 Feb 2011 19:57:41 +0000 (19:57 +0000)]
backport r19364 from trunk for stat cat field value removal in patron editor
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19365
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Wed, 2 Feb 2011 18:54:05 +0000 (18:54 +0000)]
exit finish_fines_and_voiding() if there is no open circ
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19362
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 2 Feb 2011 03:29:27 +0000 (03:29 +0000)]
Apply autogenerate barcode trigger to serial.unit to enable serial checkin
Serial checkin tried to use the '@@AUTO' macro to autogenerate barcodes,
but unfortunately the required trigger had only been defined on the parent
table asset.copy and not on the child table serial.unit. Here we define the
trigger on serial.unit to resolve that problem.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19360
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Tue, 1 Feb 2011 23:40:24 +0000 (23:40 +0000)]
make sure that inline overdue fines generation completes before we attempt to void overdues fines in checkin, otherwise it's possible to create multiple services (storage and cstore) competing for the same DB row mid-transaction, resulting in cstore timeouts and rollback of checkin. This could happen with backdated or amnesty checkins
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19358
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 1 Feb 2011 21:39:37 +0000 (21:39 +0000)]
Backport r19355 from trunk
Acq: Improving on r19351, don't let showCreatePane() be issued repeatedly to
fill the window with redundant dialogs, since a) it looks silly, and b) the
dialogs don't work when there are more than one of them. Thanks again Dan.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19356
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 1 Feb 2011 21:23:29 +0000 (21:23 +0000)]
Backport r19353 from trunk
This should get this correct version of postgresql installed for clean
installations on debian-lenny, *if* your system has the backports repo enabled.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19354
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 1 Feb 2011 21:16:37 +0000 (21:16 +0000)]
Backport r19351 from trunk
Acq: make the "new provider" button under Admin -> Server Admin ->
Acquisitions -> Providers not produce a dialog with a ton of mysterious
whitespace. Spotted by Dan Scott.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19352
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Mon, 31 Jan 2011 19:55:34 +0000 (19:55 +0000)]
backport 19344, 19345 for patron purge fix for handling former staff users
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19346
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Sun, 30 Jan 2011 05:22:04 +0000 (05:22 +0000)]
Don't attempt to control 4xx fields in records
Per LP bug # 708029, it doesn't make sense to apply an
authority control on a 4xx field; so remove those entries
from the authority tag map.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19337
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Sun, 30 Jan 2011 05:20:33 +0000 (05:20 +0000)]
Use the browse method instead of startwith for Manage Authorities, too
Now that the browse method is working properly, adopt it for the
Manage Authorities interface as well so that context around the
search term can be provided.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19336
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Sun, 30 Jan 2011 05:19:15 +0000 (05:19 +0000)]
Correct authority browsing for reals
First, restore the >= enable before and after ranges in
authority_tag_sf_browse(), after I mistakenly removed it in
r19131; the second storage request for $after does not
stomp on the prior $before results, it simply gets pushed
onto the carefully constructed list of $before results,
ensuring that our target is in the middle of page 0.
Second, we're treating all of the "tag" members in the
method registration as list references now (for the purpose
of searching against 4xx/5xx in the .refs. variants), but
that was blowing up when we registered just a single tag as
a string and tried to treat the scalar as a list reference.
I could have checked to see if what we had incoming was a
reference and dance accordingly, but opted to just define
all single-tag entries as single-element arrays instead.
Applied the same to startwith.
Finally, in r19331 I had used chop() to ensure that an
exact match for startwith would be returned as element 1 on
page 0, instead of appearing as the last element of page -1.
I had said that the right way to do this would be to naco_normalize()
the value to match the normalized afr.value, and so this is what
I have done. Rather than torturously using O:A:Storage:FTS to get
at the naco_normalize() definition, I moved the function into its
own Utils package and adjusted its usage accordingly through the
affected code. One step closer to single-sourcing the function
in the database, as well?
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19335
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Sat, 29 Jan 2011 05:16:37 +0000 (05:16 +0000)]
Address typos in Rollover and Propagation dialogue
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19330
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Fri, 28 Jan 2011 21:19:40 +0000 (21:19 +0000)]
Backport r19327 from trunk
Stay in sync with entity name changes
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19328
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Fri, 28 Jan 2011 20:53:01 +0000 (20:53 +0000)]
Backport r19325 from trunk
Serials: Add some missing permacrud permissions to IDL
7 classes (sdistn, siss, sunit, sin, sbsum, sssum, sisum) were missing IDL
perms. Appropriate permissions were added to all but sin (serial_item_note).
For the sin class, since it's several leaps away from anything that points at
an org unit, and since no existing code deals with it via PermaCrud, its
PermaCrud section was simply removed.
Some classes retain open <retrieve /> permissions, and others do not.
No new permissions were created for this. All permissions are reused from
"higher" serials objects.
Credit to Mike Rylander for spotting the omissions.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19326
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Thu, 27 Jan 2011 16:20:52 +0000 (16:20 +0000)]
enable the checkbox column so we can delete hard due dates
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19313
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Wed, 26 Jan 2011 15:09:53 +0000 (15:09 +0000)]
Open-ILS/xul/staff_client/server/locale/en-US/serial.properties
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19304
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Wed, 26 Jan 2011 14:54:33 +0000 (14:54 +0000)]
Clear out some unused code, which in some cases was causing "command bleed"
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19302
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Tue, 25 Jan 2011 23:29:50 +0000 (23:29 +0000)]
Backport r19288 : twice tested, thrice approved
This change was confirmed to work at two test sites, and also passed a berick eyeball test. Would always be nice to have more...
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19300
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Tue, 25 Jan 2011 23:21:34 +0000 (23:21 +0000)]
Fix broken stream functions, re-enable commented-out menu with correct options
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19299
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Tue, 25 Jan 2011 21:47:15 +0000 (21:47 +0000)]
This menu was for a different tab (subscriptions), comment out for now
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19297
dcc99617-32d9-48b4-a31d-
7c20da2025e4