senator [Wed, 17 Nov 2010 22:41:33 +0000 (22:41 +0000)]
Backport r18762 from trunk:
Wonder of wonders, a Dojo data store supporting lazy loading objects via pcrud!
So openils.PermaCrud.Store was dreamt up and directed by Mike Rylander, and
implemented by me. Right now it gives us a new way to provide widgets for
selecting objects in Dojo-based interfaces.
Where previously we had some dropdowns here and there that really shouldn't
be dropdowns (such as one for selection lists in Acq, and several for resources
and resource types in Booking -- these examples I've replaced, but there are
surely more) because loading a dropdown with potentially zillions of items
to choose from can take forever and break the interface, now we can have
autocompleting textboxes that only load items matching what you type (and
even then with a low-ish default limit so that if you're vague in your input
you still don't get huge unwieldy result sets).
Easiest way to see an example is if you already have any acq selection lists.
Just go to any catalog record, choose Actions for this Record, choose View/Place
orders, then click "Add to Selection List." In the resulting dialog, that
second field used to be a dropdown, but now it's an autocompleting textbox.
Alternatively, you can see these in the affected booking interfaces (see files
modified in this commit) under Admin -> Server Administration -> Booking.
The future promises even better things for this store. When it implements the
Dojo Write API, interfaces using grids can potentially be vastly simplified
by relying on the store to save its own dirty objects. The Notification API
would facilitate easy use of single stores with multiple widgets. All good
things for faster-to-write interfaces.
------------------------------------------------------------------------
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18774
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Wed, 17 Nov 2010 22:01:07 +0000 (22:01 +0000)]
Hold targeting didn't work right on type I (issuance) holds, but now it does
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18773
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 17 Nov 2010 19:01:42 +0000 (19:01 +0000)]
Add authority control support for 630 and 648 fields
Thanks to Ole Kerpel <oke@iisg.nl> for providing the additional
definitions for this support to bring us closer to MARC
authority control norms.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18771
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 17 Nov 2010 16:58:23 +0000 (16:58 +0000)]
0 (zero) is a valid depth, so allow it via defined()
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18769
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 17 Nov 2010 16:43:16 +0000 (16:43 +0000)]
pass the supplied depth parameter to the query parser for use
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18767
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Wed, 17 Nov 2010 04:11:17 +0000 (04:11 +0000)]
add libnet-ssh2-perl to Debian package deps
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18765
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbwells [Tue, 16 Nov 2010 21:26:17 +0000 (21:26 +0000)]
Backport r18760: small serial fixes
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18761
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Tue, 16 Nov 2010 16:52:22 +0000 (16:52 +0000)]
push the asset.uri pkey serial into reality -- before 2.0 we did not use the serial
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18756
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Mon, 15 Nov 2010 20:26:44 +0000 (20:26 +0000)]
return AutoIDL to its original state of loading the while IDL if no classes are selected. This will ease the process of moving to /IDL2js; other minor cleanup
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18748
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Mon, 15 Nov 2010 18:30:16 +0000 (18:30 +0000)]
Backport r18745 from trunk: serials ease-of-use issues
It's comical how near a miss this commit is to making it into beta2, but it's
fairly minor stuff.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18746
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Mon, 15 Nov 2010 17:01:47 +0000 (17:01 +0000)]
make sure dojo.cookie is loaded before use; removed unnecessary import of dojoData
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18741
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 15 Nov 2010 15:16:13 +0000 (15:16 +0000)]
Reverting and extending r18472 to correct implementation thinko
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18735
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Mon, 15 Nov 2010 05:24:38 +0000 (05:24 +0000)]
Prevent creation of authority records that are truncated by one letter
The summarizeField() function grabbed the values of the XUL elements,
which were set by the keypress event listeners on the XUL elements.
However, the keypress event listener seems to capture the value of
the XUL element before the value of the new key is appended to the
existing value in a textbox - so, when you typed a new subfield, then
right-clicked to create an authority, the value that was captured was
missing the final character.
Adding the "input" event to the registered listeners captures the
actual value for creating an authority and solves the problem. It
might be possible to remove the keypress event listeners, but for
now we'll take the cautious route.
Address Launchpad bug 669445
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18732
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Mon, 15 Nov 2010 04:52:59 +0000 (04:52 +0000)]
Fix negative paging issue in open-ils.supercat.authority.author.startwith
When paging backwards through authority lists, we were skipping the
first page of results. By reducing the offset by the value of one
page, we restore the expected order.
The same problem might affect other paging interfaces: to be determined.
Closes Launchpad bug 669247
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18730
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Mon, 15 Nov 2010 04:52:42 +0000 (04:52 +0000)]
Do not cache the authority context menu
Caching would be great, except when you add an authority in the
flow and you expect to see it the next time you right-click
on the authority that you just added.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18729
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Sat, 13 Nov 2010 23:39:00 +0000 (23:39 +0000)]
Merge translations from Launchpad
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18725
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Fri, 12 Nov 2010 20:52:39 +0000 (20:52 +0000)]
in some scenarios, the 'mous' class may not have loaded yet. pre-load the class in myopac init
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18724
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 12 Nov 2010 20:52:07 +0000 (20:52 +0000)]
Backporting r18686 for great justice (and PCRUD speed)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18722
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 12 Nov 2010 20:40:17 +0000 (20:40 +0000)]
Cache the language set (per locale) in a cookie
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18721
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 12 Nov 2010 20:40:12 +0000 (20:40 +0000)]
Trim the set of classes and fields pulled in by Searcher; Cache the cmc data (cmf is too big)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18720
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Fri, 12 Nov 2010 19:51:26 +0000 (19:51 +0000)]
Back-port of 18712 and related changes: Server-generated IDL JS
The goal is to reduce use of pre-onload XHR, which is known to cause
problems (dreaded white-screen-of-death) in firefox/xulrunner. Change
allows opac, staff client, and embedded browser interfaces to load
a pre-formatted JS object instead of IDL XML via XHR. In addition to
dropping the XHR, clients no longer parse the XML, which should reduce
page render time. Finally, in the staff interfaces, the full IDL is
once again loaded, so there is no need to specifiy per-page classes.
Per-page classes are still supported and used in the OPAC to reduce the
up-front load time.
Change requires an update to the Evergreen Apache config.
Part of this change included condensing fieldmapper.hash and
fielmapper.dojoData content into fieldmapper.Fieldmapper to avoid
circular dependencies, which was causing problems with IE. Will
eventually want to deprecate .hash and .dojoData, but for now they still
function as before.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18717
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Fri, 12 Nov 2010 19:49:34 +0000 (19:49 +0000)]
ensure that we only fetch this setting once per page
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18716
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Fri, 12 Nov 2010 18:00:08 +0000 (18:00 +0000)]
merge r18687 from trunk for cookie library changes
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18713
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 11 Nov 2010 17:02:03 +0000 (17:02 +0000)]
Avoid munging 035 when a new record is created
If there is no 003 in the record when it is created, then we will not attempt
to generate a 035. If the incoming record contains a 001 and 003, then we will
create a 035.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18709
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 11 Nov 2010 17:01:32 +0000 (17:01 +0000)]
Do not supply a default value for 003 in new authority records
With cat.maintain_control_numbers enabled by default, we can trust
the database trigger to create the appropriate 003 for us - and by
not supplying a 003 in the new record, we won't create a spurious
035 for a brand new record.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18708
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Thu, 11 Nov 2010 15:40:53 +0000 (15:40 +0000)]
wraps tips appendChild in try/catch to prevent occaisonal exeptions.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18703
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 11 Nov 2010 04:18:14 +0000 (04:18 +0000)]
Update the edit dates for authority and MFHD records when they are edited
Addresses the oversight in the original implementation that missed this;
important if we're going to differentiate between creating and editing
a record for triggers.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18696
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 10 Nov 2010 22:31:12 +0000 (22:31 +0000)]
Enable "maintain control numbers" and "record ID as TCN" behavior by default
Per http://ur1.ca/2bgc4, this behavior hews more closely to the MARC21
specification. Note, however, that duplicate bib detection in the
"Import via Z39.50" interface will be somewhat affected; a more
trustworthy workaround is to include the "Local catalog" in Z39.50 searches to
determine if a matching record already exists in the database.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18694
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Wed, 10 Nov 2010 21:57:27 +0000 (21:57 +0000)]
Backport r18685 and r18691 from trunk: serials-integration work + patch from
Dan Wells
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18692
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Wed, 10 Nov 2010 21:30:37 +0000 (21:30 +0000)]
Backport r18688 from trunk: booking bugfix
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18689
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 10 Nov 2010 14:51:44 +0000 (14:51 +0000)]
Move the magic-bib update to the top of the file, avoiding triggers that care about XML namespaces
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18682
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Wed, 10 Nov 2010 13:19:03 +0000 (13:19 +0000)]
do not use TRUNCATE when refreshing reporter.materialized_simple_record
Previous behavior would break Slony replication after doing a
bib load. Since a deletion is slower than a truncate, if you're
not using Slony replication, you may prefer to truncate rmsr
prior to calling reporter.enable_materialized_simple_record_trigger.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18678
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Tue, 9 Nov 2010 20:37:14 +0000 (20:37 +0000)]
merge r18675 from trunk for DP_DateExtension removal
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18676
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Mon, 8 Nov 2010 22:06:14 +0000 (22:06 +0000)]
dynamically loaded classes also need access to toHash
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18674
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 8 Nov 2010 21:41:48 +0000 (21:41 +0000)]
Backporting IDL bug fixes
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18671
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Mon, 8 Nov 2010 20:44:43 +0000 (20:44 +0000)]
Backport r18662 from trunk: don't try to render dropdown of all bib IDs
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18663
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 8 Nov 2010 19:05:10 +0000 (19:05 +0000)]
More fixing related to r18657
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18661
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 8 Nov 2010 19:00:57 +0000 (19:00 +0000)]
Bacport r18657: syntax problem spotted by Jason Etheridge
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18658
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 8 Nov 2010 16:32:45 +0000 (16:32 +0000)]
1.6-2.0 upgrade script syncing, re r18652
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18655
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 8 Nov 2010 16:24:47 +0000 (16:24 +0000)]
Backporting r18652: Teach vandelay.replace_field to be a little smarter by allowing simple cases of both replacing and regexp-testing the same subfield
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18653
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Mon, 8 Nov 2010 16:21:45 +0000 (16:21 +0000)]
holds retrieval API call sorting and cleanup; sort non-cancelled holds by ready-for pickup, then active, then suspended; use json_query to fetch IDs first, so id_list calls can avoid fetching the full hold objects in the ML. sort fleshed transit by send time to pick up the latest transit
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18651
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Mon, 8 Nov 2010 02:57:59 +0000 (02:57 +0000)]
Further Fedora prereq installer tweaks
* Install the Perl DBD::Pg module
* Force the CPAN modules, as Business::OnlinePayment::AuthorizeNet
still suffers from an install-crippling bug
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18649
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Mon, 8 Nov 2010 01:29:59 +0000 (01:29 +0000)]
Add UUID::Tiny to Fedora prerequisites
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18647
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Mon, 8 Nov 2010 00:39:19 +0000 (00:39 +0000)]
Improve Fedora prerequisite installer
* Explicitly install wget, which isn't installed in a minimal install
* Hack JavaScript-SpiderMonkey Makefile.PL for 32-bit Fedora
* Provide a fedora14 target
* Change "fedora-13" to "fedora13" to match OpenSRF prereq installer
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18645
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Fri, 5 Nov 2010 18:58:53 +0000 (18:58 +0000)]
#671213: remove extraneous insert from upgrade script
Somebody upgrading from 1.6.1 should already have this.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18640
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Fri, 5 Nov 2010 17:56:29 +0000 (17:56 +0000)]
switch to authoritative methods for various acq retrievals
Avoid race condition when using Slony replication
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18638
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Fri, 5 Nov 2010 17:54:13 +0000 (17:54 +0000)]
missed database update from password reset fix
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18636
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Fri, 5 Nov 2010 17:37:16 +0000 (17:37 +0000)]
backport r18548, 18564, and 18602 from trunk for opac login form tweaks
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18631
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Fri, 5 Nov 2010 17:06:33 +0000 (17:06 +0000)]
remove aupr.request_time fix from 1.6.1-2.0 upgrade
Fix also in 1.6.1.3
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18627
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Fri, 5 Nov 2010 17:03:24 +0000 (17:03 +0000)]
Backport r18622 from trunk: legacy serials OPAC fix
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18624
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Fri, 5 Nov 2010 16:46:40 +0000 (16:46 +0000)]
fix user password reset request time column def
Needs to be a timestamp with time zone; fixes a bug
where it was interpreted as a UTC time, throwing off
the calculation of the expiration of the password reset
request.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18621
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 5 Nov 2010 16:07:04 +0000 (16:07 +0000)]
remove some extra rollbacks, and catch the failure of others where they may or may not be needed
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18616
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Fri, 5 Nov 2010 13:24:38 +0000 (13:24 +0000)]
backporting r18609 patch from bshum for catalog search in button bar
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18610
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Thu, 4 Nov 2010 21:19:49 +0000 (21:19 +0000)]
Backport r18606 from trunk: no more Net::uFTP
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18607
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 4 Nov 2010 21:17:20 +0000 (21:17 +0000)]
cut down on reloading of IDL classes
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18604
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 4 Nov 2010 12:41:49 +0000 (12:41 +0000)]
General 2.0b1 cleanup
* Problem in vandelay.add_fields spotted by tsbere
* Syncing 1.6.1-2.0 upgrade script with reality
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18601
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 4 Nov 2010 12:29:03 +0000 (12:29 +0000)]
over-aggressive backporting -- only in trunk and 1.6
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18600
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Thu, 4 Nov 2010 01:04:15 +0000 (01:04 +0000)]
add TT helper to squeeze strings into the UNOB straitjacket
The force_jedi_unob helper strips non-ASCII characters from
template output but does so nicely by converting the string
to NFD first. This is meant to be used by EDI templates, although
could be useful for A/T output that goes to receipt
printers that cannot print diacritics.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18599
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Wed, 3 Nov 2010 20:31:01 +0000 (20:31 +0000)]
blimey
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18597
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 3 Nov 2010 20:30:12 +0000 (20:30 +0000)]
add the Batch Bib Update module to startup.pl
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18594
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Wed, 3 Nov 2010 19:58:18 +0000 (19:58 +0000)]
flip sense of spending limit check
Testing showed users expecting that the limit would
be based on amount spent, not the amount available
to send.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18592
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Wed, 3 Nov 2010 14:46:51 +0000 (14:46 +0000)]
Backport r18589 from trunk: acq invoice voucher fix
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18590
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 2 Nov 2010 16:46:16 +0000 (16:46 +0000)]
Backport r18535 from trunk: hard due date interfaces
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18587
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 2 Nov 2010 16:44:10 +0000 (16:44 +0000)]
Move upgrade to upgrade directory
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18586
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 2 Nov 2010 16:28:33 +0000 (16:28 +0000)]
Backport r18583 from trunk, fund totals on an invoice voucher
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18584
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Tue, 2 Nov 2010 16:23:35 +0000 (16:23 +0000)]
Patch from Steve Callender to address a booking-related collection agency reporting problem
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18581
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Tue, 2 Nov 2010 15:50:39 +0000 (15:50 +0000)]
DROP TRIGGER IF EXISTS push_due_date_tgr ON action.circulation;
add definition for UPC line item attribute
Useful for providers of audiovisual material that
don't have ISBNs.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18579
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Tue, 2 Nov 2010 13:05:27 +0000 (13:05 +0000)]
enable authoritative versions of various acq retrieval functions
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18577
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Tue, 2 Nov 2010 13:03:14 +0000 (13:03 +0000)]
don't break up title and author when ingesting acquisitions MARC
Note that this can be done more cleanly once oils_xpath groks
XPATH 2.0 functions, in particular string-join.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18575
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Tue, 2 Nov 2010 03:03:17 +0000 (03:03 +0000)]
back-porting 18571, 18572. provider fetching updates, autofieldwidget linked class loader
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18573
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Tue, 2 Nov 2010 02:56:02 +0000 (02:56 +0000)]
in SIP patron retrieval, only fetch non-archived penalties and penalties that that matter (fines, overdues, blocking penalties). pair down the penalty comparisons to avoid fleshing the penalty type, potentially numerous times for a given type, by using the constant identifiers
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18570
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Tue, 2 Nov 2010 02:47:47 +0000 (02:47 +0000)]
Enable merge of authority records to do the right thing
The target and source authority record was flipped, causing
the update to fail. In reconsidering this function, it is not
necessary to change the contents of the source authority record
just to propagate the content of the target authority record
to any linked bibliographic records.
Instead, take the approach of updating the ID of the controlled
field in the bib record, then temporarily set "reingest on same
MARC" to TRUE and update the target authority record by setting
deleted = FALSE (which propagates the "changes" to the linked
bib records), then set "reingest on same MARC" flag back to its
original value.
This has the bonus of actually working.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18568
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Mon, 1 Nov 2010 23:24:23 +0000 (23:24 +0000)]
yet another replication race condition fix
Fixes problems that can occur when creating a lineitem
from an existing bib in the catalog; adds an authoritative
version of open-ils.acq.lineitem.retrieve.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18566
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 1 Nov 2010 20:55:02 +0000 (20:55 +0000)]
Backporting r18561 from trunk: Make vandelay.add_field smarter about applying add rules when no target field exists before hand
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18562
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Mon, 1 Nov 2010 20:42:00 +0000 (20:42 +0000)]
Replace hard-coded '(CONS)' for MARC control number identifier in authority records
We created an actor.org_unit_setting, 'cat.marc_control_number_identifier', for
specifying the preferred MARC control number identifier, but when we create a
new authority record from the MARC editor, the hardcoded value of 'CONS' is being
used.
This teaches the staff client how to pull the appropriate value from the AOUS
when invoking the MARC Editor.
Resolves https://bugs.launchpad.net/evergreen/+bug/669245
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18560
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Mon, 1 Nov 2010 19:46:15 +0000 (19:46 +0000)]
Ensure that changes to authority records propagate to linked bibliographic records
Per https://bugs.launchpad.net/evergreen/+bug/669596, updated authority records
weren't being reflected in bibliographic records with fields that link to those
authority records. We were missing the call to authority.propaagate_changes()
withing the ingest trigger on authority.record_entry.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18558
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 1 Nov 2010 18:38:34 +0000 (18:38 +0000)]
we should not restrict to the top org only, get all counts
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18556
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 1 Nov 2010 18:27:14 +0000 (18:27 +0000)]
Backport thinko fix for count reporting
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18554
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 1 Nov 2010 17:31:22 +0000 (17:31 +0000)]
Backport of in-db hold permit improvements from trunk
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18551
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Mon, 1 Nov 2010 16:23:22 +0000 (16:23 +0000)]
syntax
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18547
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 1 Nov 2010 16:18:23 +0000 (16:18 +0000)]
Include copy counts in holdings XML -- I will destroy MVRs yet!
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18546
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Mon, 1 Nov 2010 15:40:57 +0000 (15:40 +0000)]
let libraries allow funds to be overcommitted
The check constraints on the balance warning and
stop limits were too strict - a library can validly
choose to permit a fund to have a commitment greater
than 100% of its allocation
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18544
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Fri, 29 Oct 2010 01:25:41 +0000 (01:25 +0000)]
adjust quoting of phrase searches
This has three main effects:
* This formalizes the current behavior where a
phrase search like
title:"^Harry Potter"
acts as a left-anchored search and
title:"Harry Potter$"
acts as a right-anchored search.
In particular, this can be useful for constructing
searches of bibliographic call numbers.
* Other regex metacharacters in phrase searches are
now escaped.
* Phrase searches like "C++" will no longer crash; in fact,
this makes a phrase search currently the only way to
accurately retrieve all C++ titles with the usual
normalization rules
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18541
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Fri, 29 Oct 2010 00:06:26 +0000 (00:06 +0000)]
loosen cross-check of line item ID when processing incoming EDI messages
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18539
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Thu, 28 Oct 2010 23:56:06 +0000 (23:56 +0000)]
wrap some EDI message retrievals in transactions
Avoid errors when operating under Slony.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18537
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Thu, 28 Oct 2010 20:06:14 +0000 (20:06 +0000)]
calling noop with no arguments (and not capturing the output) is, well, a no-op. set the value to true as originally intended
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18533
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Thu, 28 Oct 2010 18:20:29 +0000 (18:20 +0000)]
Backport r18530 from trunk: misc alt serials UI minor improvements, tweaks
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18531
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Thu, 28 Oct 2010 17:26:38 +0000 (17:26 +0000)]
backport r18498-18499 from trunk for staff-initiated age overdue circ/item to Lost functionality, with upgrade script
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18527
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Thu, 28 Oct 2010 15:14:00 +0000 (15:14 +0000)]
condensed SIP patron lookup by barcode into 1 cstore call; provided option for slimmed-down user object fetching in the case of checkin, where all we really need is the barcode of the user on the circulation
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18520
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 28 Oct 2010 15:10:53 +0000 (15:10 +0000)]
Backport r18516: Ensure call numbers are returned to the holdings editor in ascending sorted order
James Fournie in https://bugs.launchpad.net/evergreen/+bug/635121 reported
that call numbers were being displayed in the order that they had been
added to the database, rather than in sorted call number label order.
Although I have been unable to reproduce this problem on two different
test systems, the patch he provided for 1.6.1 (which fixes the problem on their
test system) shouldn't hurt other systems.
For sortkey-aware branches, I modified James' patch to take advantage of the
asset.call_number.label_sortkey column and the oils_text_as_bytea() function.
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18518
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Wed, 27 Oct 2010 21:21:30 +0000 (21:21 +0000)]
Backport r18514 from trunk, more circ speedups when booking not in play
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18515
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Wed, 27 Oct 2010 20:21:16 +0000 (20:21 +0000)]
more micro-optimization of checkin code; protect against undef var warning in info message; removed unused sub
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18512
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 27 Oct 2010 20:08:52 +0000 (20:08 +0000)]
Move towards unnest (faster than explode_array); bring upgrade script up to speed
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18509
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Wed, 27 Oct 2010 19:19:26 +0000 (19:19 +0000)]
since they typically repeat, cache the org and requestor objects in the permit loop of the find-best-hold calculation
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18506
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 27 Oct 2010 19:13:54 +0000 (19:13 +0000)]
Backport of r18494, r18500 and r18501 from trunk: split fine generation
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18504
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Wed, 27 Oct 2010 19:09:14 +0000 (19:09 +0000)]
Backport r18502 from trunk: make booking avoidable in circ service (speedup!)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18503
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Wed, 27 Oct 2010 16:57:05 +0000 (16:57 +0000)]
remove unused settings and permission
circ.holds.alert_if_local_avail and circ.holds.deny_if_local_avail
are redundant; circ.holds.hold_has_copy_at.{alert|block} are the
settings that will actually be used. Also remove a related,
redundant permission.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18496
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Wed, 27 Oct 2010 15:26:50 +0000 (15:26 +0000)]
added grid autoHeight to distrib formula page to prevent the grid from consuming the whole page
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18492
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Wed, 27 Oct 2010 14:53:29 +0000 (14:53 +0000)]
Backport r18489 from trunk: distribution formula UI paging
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18490
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Wed, 27 Oct 2010 13:51:55 +0000 (13:51 +0000)]
fix glitch in escaping call number labels
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18488
dcc99617-32d9-48b4-a31d-
7c20da2025e4