gmc [Mon, 12 Jul 2010 16:08:14 +0000 (16:08 +0000)]
cache OPAC-visibility of copies and bibs
Create a new "materialized view" table, asset.opac_visible_copies,
for use during the copy visibility check during OPAC searches. This
is used by search.query_parser_fts(), replacing a check of a five-table
join for each bib in the search results that proved to be far
too slow on some large databases.
This table is maintained by triggers on inserts and updates to the
following tables:
actor.org_unit
biblio.record_entry
config.copy_status
asset.call_number
asset.copy
asset.copy_location
serial.unit
During a migration or large global change operation, it is recommended
that those triggers be disabled. To (re)populate the materialized
view, do
SELECT asset.refresh_opac_visible_copies_mat_view();
Thanks to Mike Ryladner for his help with this.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16909
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Mon, 12 Jul 2010 15:11:45 +0000 (15:11 +0000)]
Several fixes for authority-controlled field and control number syncing
The fix for maintain_control_numbers() was committed earlier, but wasn't
part of a new upgrade script; this will ensure that everyone following
trunk picks up the correction.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16908
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Mon, 12 Jul 2010 10:03:24 +0000 (10:03 +0000)]
NFC() needs Unicode::Normalize - strange that this didn't come up in previous testing
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16907
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 12 Jul 2010 00:02:49 +0000 (00:02 +0000)]
facet query correction
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16906
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Sun, 11 Jul 2010 23:41:36 +0000 (23:41 +0000)]
thinko in upgrade script
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16905
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Sun, 11 Jul 2010 23:35:00 +0000 (23:35 +0000)]
break facets out to a separate table for speed
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16904
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 9 Jul 2010 21:58:33 +0000 (21:58 +0000)]
dojo == elegant; refactor cursor up/down and hide fixed fields in MARC editor
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16903
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 9 Jul 2010 15:42:54 +0000 (15:42 +0000)]
New feature: maintain control numbers (001, 003, 035) for MARC records
If a site wishes to maintain their control numbers and control number
identifiers in authority, bibliographic, and MFHD MARC records according
to the MARC21 specification, they will now be able to:
1. Enable the global flag 'cat.maintain_control_numbers' to turn on
control number maintenance. This is disabled by default, so no changes
will be made by the system until the flag is enabled.
2. (Optionally) Set the cat.marc_control_number_identifier OU setting
to override the control number identifier for records owned by that OU;
if this is not set, then the control number identifier defaults to the
OU shortname.
3. Set the owner field for the records that are to be controlled; otherwise
they will fall back to the global default which is currently hardcoded as
'EVRGRN'.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16899
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 9 Jul 2010 15:00:16 +0000 (15:00 +0000)]
Restore whitespace consistency (spaces not tabs)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16898
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 9 Jul 2010 14:59:20 +0000 (14:59 +0000)]
Initial support for wrapping long subfields in the MARC editor
Limitations of the current approach are that the line width is arbitrarily set
to break at 100 characters, and is only calculated on a per-subfield basis. So
if a given field contains 50 subfields, each with 90 characters, this commit
isn't going to help you. (But really... in that scenario, you're beyond help
anyway!)
Also, the double-dagger aligns itself at the top of the box rather than the
middle once the box goes into multiline mode, which is annoying; but long 505
fields that scroll ten screens to the right are more annoying, so I'll commit
this for now rather than waste more time trying to CSS it into shape.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16897
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 9 Jul 2010 14:34:47 +0000 (14:34 +0000)]
add support for switching between xul and textarea marc editors
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16896
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 9 Jul 2010 12:06:13 +0000 (12:06 +0000)]
vandelay.dtd already includes the arrows in the entity definition for next/previous page
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16895
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 9 Jul 2010 10:01:44 +0000 (10:01 +0000)]
SuperCat requests for plain marcxml were returning holdings / links
This could cause "great fun" in the MARC editor as a bib record suddenly
grew volume and xhtml:link elements; everything would spiral downward
from there.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16894
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 8 Jul 2010 19:31:50 +0000 (19:31 +0000)]
fix initial subfield detection bug
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16891
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Thu, 8 Jul 2010 18:35:15 +0000 (18:35 +0000)]
add sig handler back in for alarm. log error when read times out from alarm
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16888
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 8 Jul 2010 18:29:05 +0000 (18:29 +0000)]
Give the "About" button a legitimate accesskey
r15562 contained a fix for this to rel_1_6_0, but apparently I never
forward-ported that "fix". Unfortunately, this leads to broken interfaces in
the i18n build (bug re-found by Robert Souilliere in the 1.6.1.1 release).
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16887
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Thu, 8 Jul 2010 17:09:36 +0000 (17:09 +0000)]
Fixes Mark Claimed Returned. It seems that dojo isn't the only library picky about ISO8601; DateTime::Format::ISO8601->parse_datetime was choking in this case
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16886
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Thu, 8 Jul 2010 15:58:49 +0000 (15:58 +0000)]
Acq: try looking up jacket image by UPC if ISBN is not available
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16885
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 8 Jul 2010 15:32:59 +0000 (15:32 +0000)]
Reclaim cataloguing real estate by hiding unnecessary rows in fixed field grid editor
The fixed field grid editor currently shows blank rows for fixed field
attributes that don't apply to the currently displayed MARC record type. We
can hide these rows and offer more screen real estate for the MARC record
proper.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16884
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Thu, 8 Jul 2010 15:25:15 +0000 (15:25 +0000)]
record the billing_last and billing_first fields from bill_cc_info.xul into cc_first_name and cc_last_name on money.credit_card_payment, even for out-of-band (externally processed) payments. Also protect the bill_cc_info dialog from patrons with no billing address (such as admin)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16883
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Thu, 8 Jul 2010 15:11:24 +0000 (15:11 +0000)]
Acq: If you go from a catalog record to "View/Place orders", there are now
easy shortcuts for adding a new lineitem to a selection list or a PO if there
aren't already any existing lineitems to work with.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16881
dcc99617-32d9-48b4-a31d-
7c20da2025e4
scottmk [Thu, 8 Jul 2010 14:56:37 +0000 (14:56 +0000)]
Streamline pcrud a bit.
If there is a permacrud entry for the relevant action, but the list of
permissions is empty, we grant access.
The change: grant access as soon as the permission list can be known
to be empty, instead of doing a lot of irrelevant stuff first
(including extra database fetches in some cases).
M Open-ILS/src/c-apps/oils_sql.c
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16880
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Thu, 8 Jul 2010 14:31:46 +0000 (14:31 +0000)]
instead of reading the MARC data directly from the socket, set the end-of-line character appropriately and read the data directly from STDIN. The 'wait' time is now only used as a security measure to prevent accidental hogging of worker processes
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16879
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 8 Jul 2010 14:15:04 +0000 (14:15 +0000)]
Enable plain up-arrow and down-arrow to jump to next row in MARC editor
As TAB/shift-TAB move between each editable element of the MARC record,
we already have fine-grained keyboard navigation. However, moving down
10 data fields requires around 50 TAB presses or more, depending on how
many subfields are in the intervening data fields, or a looonng hold of
the tab key; not good for RSI.
The up-arrow and down-arrow keys, then, move directly to the next or
previous row, placing the focus in the first editable subfield element
rather than in the tag name (under the assumption that cataloguers are
most likely to want to edit the contents of a given subfield, and not
the tag name or indicators).
Now, in the worst-case scenario, a cataloguer who wants to edit the tag
name of a field 10 rows below their current position will have to
make 14 key presses (10 down arrows, 4 shift-TABs). Not too shabby.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16878
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Thu, 8 Jul 2010 14:11:06 +0000 (14:11 +0000)]
column tweaks. If you already ran 0328, see comments at top
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16877
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Thu, 8 Jul 2010 13:40:01 +0000 (13:40 +0000)]
adding a cc_name field to money.credit_card_payment to hold the human name on the credit card
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16876
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Thu, 8 Jul 2010 13:24:17 +0000 (13:24 +0000)]
hold/transit data in Item Status->Alternate View->Holds/Transit
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16875
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Thu, 8 Jul 2010 13:24:13 +0000 (13:24 +0000)]
populate some fields in Item Status->Alternate View->Circulation History->Most Recent Circ Group when we're not bothering to retrieve the circ chain
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16874
dcc99617-32d9-48b4-a31d-
7c20da2025e4
scottmk [Thu, 8 Jul 2010 03:32:13 +0000 (03:32 +0000)]
Fix a bug in pcrud.
When checking a row for permissions, we often read a fresh copy of the
row in order to ensure that we have all the foreign keys that we need.
However in some cases (mainly when the class is a view), there is no
primary key, so we can't re-read the row.
Solution: if there is no primary key, don't try to do a fresh read.
Use the row image that we already have.
For these cases, this solution re-creates the possibility that we may
not have all the necessary columns. There's no good way around that
problem.
M Open-ILS/src/c-apps/oils_sql.c
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16873
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Wed, 7 Jul 2010 18:48:38 +0000 (18:48 +0000)]
Lost my commit msg the first time around, so...
This CGI script might be useful for providing an easy way for EZproxy to authenticate users against an Evergreen instance.
For example, if you modify your eg_vhost.conf by adding this:
<Directory "/openils/var/cgi-bin/ezproxy">
AddHandler cgi-script .pl
AllowOverride None
Options +ExecCGI
allow from all
</Directory>
and make that directory and copy remoteauth.cgi to it:
mkdir /openils/var/cgi-bin/ezproxy/
cp remoteauth.cgi /openils/var/cgi-bin/ezproxy/
Then you could add a line like this to the users.txt of your EZproxy instance:
::external=https://hostname/cgi-bin/ezproxy/remoteauth.cgi,post=user=^u&passwd=^p
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16872
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Wed, 7 Jul 2010 18:44:13 +0000 (18:44 +0000)]
Merge branch 'browser'
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16871
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 7 Jul 2010 17:13:41 +0000 (17:13 +0000)]
Forward port of r16867: add missing event definition required by vandelay authority import
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16870
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Wed, 7 Jul 2010 14:25:05 +0000 (14:25 +0000)]
define these variables as parameters
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16866
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Wed, 7 Jul 2010 13:46:37 +0000 (13:46 +0000)]
added OPAC support for 1) selecting SSL manually and having it stick and 2) forcing SSL when the user is logged in to protect auth tokens and other private data. The latter option is enabled via new apache env variable
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16865
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Wed, 7 Jul 2010 02:13:19 +0000 (02:13 +0000)]
updated call number browse pass-thru to accommodate new copy location and status filters
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16864
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Wed, 7 Jul 2010 00:29:37 +0000 (00:29 +0000)]
adding status/copy_location filter support to call number browse
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16863
dcc99617-32d9-48b4-a31d-
7c20da2025e4
scottmk [Tue, 6 Jul 2010 21:08:08 +0000 (21:08 +0000)]
Add new program test_qstore, a command-line utility for testing
and exercising most of the code for the qstore server.
A Open-ILS/src/c-apps/test_qstore.c
M Open-ILS/src/c-apps/Makefile.am
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16862
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Tue, 6 Jul 2010 20:52:39 +0000 (20:52 +0000)]
added opac user setting for default sort order for search results
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16861
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Tue, 6 Jul 2010 20:28:59 +0000 (20:28 +0000)]
adjust code for an API change. Assume success if no ils_event
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16860
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Tue, 6 Jul 2010 19:30:04 +0000 (19:30 +0000)]
showing the more descriptive cc payment errors in self-check. printing CC payment receipts from self-check. added a commented-out cc type picker for possible future use
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16859
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Tue, 6 Jul 2010 19:30:03 +0000 (19:30 +0000)]
return IDs of newly created payments on success
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16858
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 6 Jul 2010 19:06:56 +0000 (19:06 +0000)]
CC payments: address situations where Business::CreditCard::validate() returns
true yet Business::CreditCard::cardtype() returns the string "Unknown"
Curse you inconsistent APIs! :-)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16857
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Tue, 6 Jul 2010 18:58:54 +0000 (18:58 +0000)]
add metarecord support to "already circulated" tagging
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16856
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Tue, 6 Jul 2010 17:12:25 +0000 (17:12 +0000)]
remove all the 901 mangling -- handled by the db now
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16855
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Tue, 6 Jul 2010 16:14:32 +0000 (16:14 +0000)]
added ability to tag bib record results from staged multiclass search as previously checked out by the user. the code compares search results to the set of circs in the user's visible circulations history. the ultimate goal is to provide the ability to style rows in search results so the patron can see if he/she already circulated the item (assuming some widget to turn this feature on/off for a search)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16854
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Tue, 6 Jul 2010 16:14:18 +0000 (16:14 +0000)]
use SQL function for speed, instead of PLPGSQL
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16853
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Tue, 6 Jul 2010 16:00:08 +0000 (16:00 +0000)]
augment these payment receipt templates with more info
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16852
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Tue, 6 Jul 2010 15:56:17 +0000 (15:56 +0000)]
integrate serial.unit by relaxing fkeys against asset.copy and adding hold support
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16851
dcc99617-32d9-48b4-a31d-
7c20da2025e4
scottmk [Tue, 6 Jul 2010 15:51:31 +0000 (15:51 +0000)]
Add a configuration entry for the qstore server. This entry will look just
like the entry for open-ils.cstore, except:
1. The <implementation> is oils_qstore.so instead of oils_cstore.so, obviously.
2. There is no need (or use) for the max_query_recursion element.
M Open-ILS/examples/opensrf.xml.example
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16850
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Tue, 6 Jul 2010 15:42:26 +0000 (15:42 +0000)]
added stored proc to return the distinct set of target copies from a users visible circ history
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16849
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 6 Jul 2010 15:12:04 +0000 (15:12 +0000)]
Selfcheck: Show friendly error messages based on circ event fail_part field
Messages lifted from opac.dtd
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16848
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 6 Jul 2010 13:44:59 +0000 (13:44 +0000)]
Booking: fixed the last db upgrade script. It was trying to insert a row
in config.org_unit_setting_type that had already been covered by 0109, but
which had not been in the seed data until recently, so I think one would have
only noticed this if hadn't installed a new schema from scratch in some time.
If you already ran 0323 and it worked for you, you don't have to do anything.
Also, this now avoids clobbering already-set default_elbow_room values.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16847
dcc99617-32d9-48b4-a31d-
7c20da2025e4
erickson [Fri, 2 Jul 2010 19:41:43 +0000 (19:41 +0000)]
repaired bug where parsing intervals with months failed becuase dojo.date.add() wants the full word 'months' whereas postgres stores them abbreviated as 'mons'
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16846
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 1 Jul 2010 19:46:45 +0000 (19:46 +0000)]
remove as many namespace prefixes as I can from the MODS record output
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16845
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Thu, 1 Jul 2010 17:05:53 +0000 (17:05 +0000)]
Fix missing dojo.require() in a couple of interfaces.
This bug doesn't manifest itself in releases, as the openils_dojo.js layer
seems to take care of overlooked calls to dojo.require() anyway.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16844
dcc99617-32d9-48b4-a31d-
7c20da2025e4
scottmk [Thu, 1 Jul 2010 14:14:42 +0000 (14:14 +0000)]
Support the following built-in functions with peculiar syntax.
They take no parameters and don't even accept empty parentheses:
current_date
current_time
current_timestamp
localtime
localtimestamp
M Open-ILS/src/c-apps/buildSQL.c
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16843
dcc99617-32d9-48b4-a31d-
7c20da2025e4
scottmk [Thu, 1 Jul 2010 02:29:38 +0000 (02:29 +0000)]
1. Support the peculiar syntax of EXTRACT().
2. Repair a regression to make SELECT * work again.
M Open-ILS/src/c-apps/oils_storedq.c
M Open-ILS/src/c-apps/buildSQL.c
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16842
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Thu, 1 Jul 2010 02:06:27 +0000 (02:06 +0000)]
bug #600021: fix lookup of FIFO holds OU setting
Patch from Anoop Atre that fixes enabling FIFO
holds via the circ.holds_fifo org unit setting.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16838
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Wed, 30 Jun 2010 23:06:15 +0000 (23:06 +0000)]
bug #600432: fix MARC expert search
Fix gitch introduced via overzealous tidying that broke MARC
expert search; in the expression @array || $scalar, @array
is evaluated in scalar context and thus returns the number
of elements in it.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16837
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 30 Jun 2010 19:08:54 +0000 (19:08 +0000)]
Lenny needs DBD::Pg; the unnecessary Class::DBI::Pg had pulled that in as a dependency
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16836
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 30 Jun 2010 18:14:23 +0000 (18:14 +0000)]
explode_array() is needed by 030.schema.metabib.sql now; create it early so that database schema creation doesn't fail
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16835
dcc99617-32d9-48b4-a31d-
7c20da2025e4
scottmk [Wed, 30 Jun 2010 13:32:28 +0000 (13:32 +0000)]
1. Degrade gracefully when the database connection dies.
2. Validate the user-specified operator in a series expression.
M Open-ILS/include/openils/oils_buildq.h
M Open-ILS/src/c-apps/oils_qstore.c
M Open-ILS/src/c-apps/oils_buildq.c
M Open-ILS/src/c-apps/oils_storedq.c
M Open-ILS/src/c-apps/oils_execsql.c
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16834
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 29 Jun 2010 21:55:51 +0000 (21:55 +0000)]
Booking: thinko: default value for an org_unit_setting has to come after
the org_unit_setting_type is defined
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16833
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 29 Jun 2010 21:51:34 +0000 (21:51 +0000)]
Booking: bit-by-bit forward-port; see commit msg for r16827
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16832
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 29 Jun 2010 20:29:26 +0000 (20:29 +0000)]
Booking: forward-porting bit-by-bit; see commit msg for r16827
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16831
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Tue, 29 Jun 2010 18:20:02 +0000 (18:20 +0000)]
File->Join Tabs experiment. Can disable through prefs.js, and I may make disabled the default before we branch trunk depending how things play out. One current limitation is that the interfaces thus joined get reloaded as a consequence of their respective DOM nodes being relocated, so tab joining is most useful to setup prior to retrieving information you'd like to view side by side. I haven't found an easy way around this, though we could roll our own tab browser (bleh) or come up with a generic way for interfaces to save their state. Tab labels are also imperfect, given that interfaces are able to dynamically modify the tab label and can clobber each other if sharing a tab
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16830
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Tue, 29 Jun 2010 18:10:55 +0000 (18:10 +0000)]
improve browse support; correct thinkos in new holdings fleshing code; improve generated MODS XML (remove some namespace prefixes)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16829
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 29 Jun 2010 18:08:14 +0000 (18:08 +0000)]
Fix copy-and-paste-o.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16828
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Tue, 29 Jun 2010 17:53:39 +0000 (17:53 +0000)]
Booking: begin forward-porting code from rel_1_6.
Booking (regrettably) was largely written directly against a 1.6 environment
instead of written for trunk and backported. So now we have booking code in
rel_1_6 and rel_1_6_1 that works, but that needs to be cleanly merged with
trunk. There has been a lot of drift, and this won't be easy.
Here is the first step (some of the easy stuff). These files have been updated
wholesale with their contents from rel_1_6, since they don't affect anything
other than booking itself.
Just to be clear: this commit does not complete the booking foward-port. The
booking module did not work in trunk before this commit, and it does not work
after this commit. For the moment, booking only works in the rel_1_6 branch,
in the rel_1_6_1 branch, and in 1.6.1.* releases. It still does not work in
trunk, and it will take a few more hairy commits to get things in sync.
Once that's finally done, any future Booking code can be written the Right Way
(in trunk) and *back*ported thence to whatever other branches as needed.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16827
dcc99617-32d9-48b4-a31d-
7c20da2025e4
scottmk [Mon, 28 Jun 2010 19:45:43 +0000 (19:45 +0000)]
Represent a subfield expression as a variant of a function call
expression, rather than a function call in its own right.
1. Eliminate 'xfld' as a valid value for query.expression.type.
2. Eliminate the query.expr_xfld view.
3. Expand the query.expr_xfunc view to include the column_name column.
M Open-ILS/src/sql/Pg/002.schema.config.sql
M Open-ILS/src/sql/Pg/008.schema.query.sql
A Open-ILS/src/sql/Pg/upgrade/0322.schema.query.no-xfld-expr.sql
M Open-ILS/examples/fm_IDL.xml
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16824
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 28 Jun 2010 17:52:49 +0000 (17:52 +0000)]
add missed stored proc to base schema; adjust said stored proc to use 901 (or provided id) instead of 035 for bib-authority linking
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16823
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 28 Jun 2010 16:59:39 +0000 (16:59 +0000)]
forcibly maintain an appropriate 901 field in all MARC data via triggers
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16822
dcc99617-32d9-48b4-a31d-
7c20da2025e4
scottmk [Mon, 28 Jun 2010 15:43:28 +0000 (15:43 +0000)]
Support function calls with subfields, e.g. (func(args))."id".
Note that this support treats the subfield as an optional
component of the functional call, not as a type of expression
in its own right. A subsequent commit will eliminate the "xfld"
expression type.
M Open-ILS/include/openils/oils_buildq.h
M Open-ILS/src/c-apps/oils_storedq.c
M Open-ILS/src/c-apps/buildSQL.c
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16821
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Mon, 28 Jun 2010 15:25:07 +0000 (15:25 +0000)]
thinko when trying to preserve any user change to the internal_flag version of the ingest.disable_authority_linking enabled setting
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16820
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Sun, 27 Jun 2010 17:37:37 +0000 (17:37 +0000)]
Correct syntax for dojo.string.substitute() and remove offending unpaired parens
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16819
dcc99617-32d9-48b4-a31d-
7c20da2025e4
phasefx [Fri, 25 Jun 2010 22:11:36 +0000 (22:11 +0000)]
proxied added content support for ContentCafe
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16818
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 25 Jun 2010 20:32:58 +0000 (20:32 +0000)]
add stored procs to implement authority propagation if links exist; add trigger to optionally fire this propagation (default ON)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16817
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 25 Jun 2010 17:31:21 +0000 (17:31 +0000)]
add bib-authority linking table; add stored proc to extract linking; add hook to ingest (controlled by internal_flag) to implement authority link extraction
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16816
dcc99617-32d9-48b4-a31d-
7c20da2025e4
senator [Fri, 25 Jun 2010 16:00:36 +0000 (16:00 +0000)]
Acq: fixing misc UI glitches
Creating allocations and credits in the Funding Source Details interface
didn't populate the appropriate grid immediately, but now it does.
New tags didn't seem to persist in the Fund Details interface if you switched
tabs and then came back to the Tags tab. Fixed.
Changed some tab names of misc Acq interfaces to match their current names in
the staff client menu.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16815
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 25 Jun 2010 15:16:41 +0000 (15:16 +0000)]
Make CentOS/RHEL use Class::DBI::Frozen::301 and remove Class::DBI::Pg (not necessary)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16814
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 25 Jun 2010 15:16:16 +0000 (15:16 +0000)]
we will use a real mapping table instead
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16813
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Fri, 25 Jun 2010 14:47:56 +0000 (14:47 +0000)]
vandelay.add_field bug fix; add stored procs to 1) create an authority-based overlay template and 2) allow simple application of said template directly with marcxml
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16812
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Fri, 25 Jun 2010 03:54:46 +0000 (03:54 +0000)]
Provide support for Class::DBI::Frozen::301 via UNIVERSAL::require
Class::DBI changed its API interfaces after the 3.0.1 release, causing much
pain (and incompatibility for existing applications like Evergreen). Some
distributions package Class::DBI 0.96 or 3.0.1, but newer distributions
package an incompatible 3.0.17. An alternative is to install the
Class::DBI::Frozen::301 module from source; UNIVERSAL::require enables us
to try loading both and use whichever one we find.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16811
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 24 Jun 2010 23:52:29 +0000 (23:52 +0000)]
Return NULL if we don't have anything else to return (keeps the compiler happy)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16810
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 24 Jun 2010 18:51:57 +0000 (18:51 +0000)]
doh, another thinko. spotted by Scott McKellar
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16809
dcc99617-32d9-48b4-a31d-
7c20da2025e4
scottmk [Thu, 24 Jun 2010 17:15:16 +0000 (17:15 +0000)]
1. Degrade (relatively) gracefully when the database connection dies.
Problem to be solved: a server drone that loses its database connection
immediately becomes unusable. It might manage to reconnect, but that
wouldn't help if a transaction was in progress at the time of the failure.
If the drone merely reports an error and then makes itself available
for more requests, every request that it services thereafter will fail.
It will continue to fail repeatedly until it reaches the max_requests
limit, or until someone kills it manually.
Solution: terminate immediately, without waiting for max_requests or a
DISCONNECT request. The listener can replace it with a new drone,
which will try to establish its own database connection.
2. Correct an oversigt in doUpdate() and doDelete().
If the database operation fails, report an error to the client.
The old code would log an error message but otherwise behave as if
the operation had succeeded.
It is conceivable that this change will appear to break something,
because an operation will fail that would otherwise have appeared
to succeed. However if that happens, whatever breaks was already
broken; the appearance of success was a snare and a delusion.
M Open-ILS/include/openils/oils_sql.h
M Open-ILS/src/c-apps/oils_sql.c
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16808
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 24 Jun 2010 17:02:03 +0000 (17:02 +0000)]
arg ... thinkos. 0315 will work now
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16807
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 24 Jun 2010 16:57:30 +0000 (16:57 +0000)]
add agency-stripping and btrim normalizers; add identifier|arcn index def as facet
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16806
dcc99617-32d9-48b4-a31d-
7c20da2025e4
miker [Thu, 24 Jun 2010 15:12:58 +0000 (15:12 +0000)]
and imagine that, the ou passed to actor.org_unit_descendants(INT) might also be null. super.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16805
dcc99617-32d9-48b4-a31d-
7c20da2025e4
atz [Thu, 24 Jun 2010 14:05:04 +0000 (14:05 +0000)]
0314 Baseline data
Signed-off-by: Joe Atzberger <atz@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16804
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 24 Jun 2010 13:17:26 +0000 (13:17 +0000)]
Use a valid validator for 3 Day Pre-Overdue notice event
Curse traitorous middle-click and my tired eyes.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16803
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 24 Jun 2010 05:18:05 +0000 (05:18 +0000)]
Make '3 Day Pre-Overdue Notice' work in seed data; we were missing a validator
This was inserted properly in upgrade 0054, so we're just playing catch-up here
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16802
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 24 Jun 2010 04:41:29 +0000 (04:41 +0000)]
Fix compile error due to undefined LONG_MAX constant, which is defined in limits.h
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16801
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 24 Jun 2010 04:36:20 +0000 (04:36 +0000)]
Fix Fedora 13 compiling for libdbi/libdbd
* Add libdbi-devel as a prereq
* Add Fedora's 64-bit location for the dbd driver libraries
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16800
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 24 Jun 2010 03:38:40 +0000 (03:38 +0000)]
We don't need to install plpython for PostgreSQL;
also, add a target for the Fedora PostgreSQL server prereqs.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16799
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Thu, 24 Jun 2010 03:29:02 +0000 (03:29 +0000)]
First stab at Fedora 13 support in prerequisite installer
Of possible concern: the use of -JS_THREADSAFE in JavaScript::SpiderMonkey.
Need to test this change on other distros - but it enabled me to avoid
the libperl.so linking hacks used on RHEL and CentOS.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16798
dcc99617-32d9-48b4-a31d-
7c20da2025e4
gmc [Thu, 24 Jun 2010 03:18:30 +0000 (03:18 +0000)]
remove duplicate entries for tag 760 from MARC21 tag list
Signed-of-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16797
dcc99617-32d9-48b4-a31d-
7c20da2025e4
scottmk [Thu, 24 Jun 2010 02:57:58 +0000 (02:57 +0000)]
Whenever a database call fails -- i.e. whenever dbi_conn_query() or
dbi_conn_queryf() returns NULL -- call dbi_conn_error() to get a
description of the error, and include that description in the log
message.
M Open-ILS/src/c-apps/oils_sql.c
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16796
dcc99617-32d9-48b4-a31d-
7c20da2025e4
atz [Wed, 23 Jun 2010 21:27:32 +0000 (21:27 +0000)]
Cancel reasons from EDI spec
Technically, these aren't all cancellation reasons, they are just
"Action request/notification description codes". A "5" (or 1005, here)
actually means success, for example.
Examine the EDI list here: http://www.stylusstudio.com/edifact/D04B/1229.htm
Include keep_debits field although it does not necessarily apply to each row.
Signed-off-by: Joe Atzberger <atz@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16795
dcc99617-32d9-48b4-a31d-
7c20da2025e4
dbs [Wed, 23 Jun 2010 20:36:23 +0000 (20:36 +0000)]
Add an explicit link to the favicon.ico per w3.org/2005/10/howto-favicon
Yeah, we're not using the profile attribute on the HEAD element. Do we really need that?
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16794
dcc99617-32d9-48b4-a31d-
7c20da2025e4