]> git.evergreen-ils.org Git - Evergreen.git/log
Evergreen.git
13 years agoversion bumpification tags/rel_2_0_rc2
miker [Wed, 5 Jan 2011 02:17:55 +0000 (02:17 +0000)]
version bumpification

git-svn-id: svn://svn.open-ils.org/ILS/tags/rel_2_0_rc2@19116 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agotagging 2.0-rc2
miker [Wed, 5 Jan 2011 02:12:34 +0000 (02:12 +0000)]
tagging 2.0-rc2

git-svn-id: svn://svn.open-ils.org/ILS/tags/rel_2_0_rc2@19115 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoClean up marc_export and teach it how to export (all) authority records
dbs [Tue, 4 Jan 2011 19:23:20 +0000 (19:23 +0000)]
Clean up marc_export and teach it how to export (all) authority records

The new "--type" parameter enables users to specify "authority"
and have the expected result.

Add an "--all" option to marc_export and silence some warnings

Rather than forcing users to generate a set of record IDs using a
separate process, the --all option enables to to export all records
of the specified type. Note that the approach is basic: grab the
record with the highest ID, then start at ID 0 and count up by 1
while trying to retrieve each record along the way. While this will
undoubtedly generate plenty of warnings for deleted records or gaps
in the ID sequences, the alternative of retrieving an ID list for
potentially millions of records in large Evergreen instances wasn't
appealing.

Some other refactoring and fixes:

Three large chunks of code were factored out into subroutines to
make it a little easier to read the main flow of the code.

As we explicitly call uc() on the $format input parameter
to begin with, we don't have to call it subsequently.

If a requested ID did not exist in the database, then
the script would die; now we trap and flag that error but
continue to fulfill subsequent requests.

The --money parameter is now documented in the help, and
the help has a brief overview that describes (poorly) the
expected format for the list of IDs.

An uninitialized variable error when exporting BRE format
records was squashed.

Also, $count{did} and $count{bib} resulted in uninitialized variable
warnings if no records were actually exported, so initialize them to 0.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19114 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoInternationalize the JavaScript portion of the "Manage Authorities" interface
dbs [Tue, 4 Jan 2011 19:08:27 +0000 (19:08 +0000)]
Internationalize the JavaScript portion of the "Manage Authorities" interface

We can use the dojo i18n infrastructure to support translations of the
"Manage Authorities" interface, but unfortunately we still don't have
a TT2 solution for i18n. Still, better to do what we can.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19113 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoImprove see from / see also handling in MARC editor authority menu
dbs [Tue, 4 Jan 2011 19:07:43 +0000 (19:07 +0000)]
Improve see from / see also handling in MARC editor authority menu

(Backporting r19091 and r19092 from trunk)

The 2.0-style authorities use a browse menu that currently consists
of matches against the 1XX entries, which makes working with see from /
see also entries rather difficult. To prepare for an authority browse
method that does surface matches against 4xx and 5xx entries, we will
now display the 4xx and 5xx entries for a given authority record
immediately below the 1xx entry in the browse menu, with the entry
text italicized, aligned to the right, and prefixed with "See also" or
"See from" appropriately. This won't provide a perfect alphabetized
solution - we won't know which field provided the alphabetical browse
match, so the best we can do is present the 1xx in the main browse
menu and the 4xx / 5xx below - but it will provide access to the other
references.

We now display the 4xx fields in the authority summary / selector menu
along with the 5xx fields. As part of making the 4xx and 5xx fields
first-class entries in the context menu, 5xx subfields are no longer
appended to their 1xx field menu entry with a "/" in the context menu.

$0 subfields are no longer added to the 4xx and 5xx fields from the
authority summary / selector menu; if a user had selected a 5xx and the
$0 that had been added by the menu, the field would have incorrectly been
linked to the 1xx authority record. To link to a 5xx entry, for now the
workaround is for the user to select the 5xx subfield(s), "Apply Selected",
then right-click on the new subfield to generate a new authority context menu.
To improve the 5xx handling, we need to make the "See also" entry fire a new
authority context menu based on the 5xx contents so that the actual 1xx
authority record can be inserted and linked against.

Consider an authority record containing the following fields:

150 $a Infants
450 $a Babies
550 $a Children

The ASCII-ized authority context menu will now display:

Infants              ->
    See from: Babies ->
  See also: Children ->

The submenu in each case will currently lead to the authority record
for "Infants". If we teach the underlying authority browse and startswith
methods to return matches based on 4xx and 5xx fields instead of just 1xx
fields, then the menu triggered by a right-click on "Childs" might look
like:

Chickens             ->
Infants              ->
    See from: Babies ->
  See also: Children ->
Choking              ->

The main entry will be out of alphabetical order, which is not ideal,
but the linkage from the 5xx should at least be evident. (Also, this
suggests that when clicking on a 5xx entry in the authority menu is
changed to launch a new authority menu, it should use the 1xx-only
browse variant to avoid showing the record from which the user was
referred...)

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19112 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agomixing use of '/' and '/eg' for the auth cookie path is creating complications; ...
erickson [Tue, 4 Jan 2011 16:35:28 +0000 (16:35 +0000)]
mixing use of '/' and '/eg' for the auth cookie path is creating complications;  fall back to '/', which is the assumption from most EG code

Signed-off-by: Bill Erickson <berick@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19109 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAddressing https://bugs.launchpad.net/evergreen/+bug/696078 where deleted/inactive...
miker [Tue, 4 Jan 2011 16:34:50 +0000 (16:34 +0000)]
Addressing https://bugs.launchpad.net/evergreen/+bug/696078 where deleted/inactive records are included in the freshmeat feed.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19107 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agocleaned up vestigal item import API call; repaired some faulty assumptions in vandela...
erickson [Tue, 4 Jan 2011 16:30:05 +0000 (16:30 +0000)]
cleaned up vestigal item import API call; repaired some faulty assumptions in vandelay UI regarding which types of import to attempt based on user input

Signed-off-by: Bill Erickson <berick@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19104 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agooils_xpath_table was too strict about field nullness -- we need /some/ data, not...
miker [Tue, 4 Jan 2011 16:10:23 +0000 (16:10 +0000)]
oils_xpath_table was too strict about field nullness -- we need /some/ data, not /all/ data, to be present

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19102 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoPatch from Jason Stephenson to silence spurious warnings: https://bugs.launchpad...
miker [Tue, 4 Jan 2011 15:11:59 +0000 (15:11 +0000)]
Patch from Jason Stephenson to silence spurious warnings: https://bugs.launchpad.net/evergreen/+bug/695510

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19097 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAcq: backport r19040 and r19094 from trunk
senator [Tue, 4 Jan 2011 14:51:21 +0000 (14:51 +0000)]
Acq: backport r19040 and r19094 from trunk

[19040] Acq: support manual claiming as always intended, which to some users
means claiming with no predefined policy

[19094] Acq: Make manual lineitem claiming work better. When a claiming policy
has not been applied, users can now choose claim actions manually (this is what
a claiming policy would have specified).

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19095 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoNever do money math as anything but pennies I tell you. :-) Three $0.60 transactions...
phasefx [Thu, 30 Dec 2010 18:43:18 +0000 (18:43 +0000)]
Never do money math as anything but pennies I tell you. :-)  Three $0.60 transactions run through check-in were showing a running tally of $1.79 instead of $1.80.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19087 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agofix a bug with standing penalties and the stop sign page. We still have a race condi...
phasefx [Thu, 30 Dec 2010 16:31:45 +0000 (16:31 +0000)]
fix a bug with standing penalties and the stop sign page.  We still have a race condition where the stop sign page may not show, and this seems to happen when multiple patrons are retrieved at once from a patron search.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19085 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoat po activation time, apply the provider's default claim policy to each lineitem...
erickson [Wed, 29 Dec 2010 16:44:22 +0000 (16:44 +0000)]
at po activation time, apply the provider's default claim policy to each lineitem when no policy is already applied

Signed-off-by: Bill Erickson <berick@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19082 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoVandelay import repairs
erickson [Wed, 29 Dec 2010 15:35:00 +0000 (15:35 +0000)]
Vandelay import repairs

Disable OpenSRF response chunking on calls that respond with small,
sparse status updates.

Repaired some bugs with status reporting and changed the reporting style
for queue imports to report more early in the import, then plateau.

Added some fault-tolerance to record importing

Signed-off-by: Bill Erickson <erickson@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19080 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoCreate authority records with meaningful cataloging agency values
dbs [Wed, 29 Dec 2010 04:28:29 +0000 (04:28 +0000)]
Create authority records with meaningful cataloging agency values

Hardcoded values in the 040 are problematic for sites that want
to be a source of authority records; with the addition of another
parameter to the open-ils.cat.authority.record.create_from_bib(.readonly)
API, we can solve that problem. The callers of this API (the MARC editor)
have access to the cat.marc_control_number_identifier OU setting, so as
long as that is set correctly, problem solved.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19078 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoInvoke MARC editor with the appropriate control number identifier
dbs [Wed, 29 Dec 2010 04:24:40 +0000 (04:24 +0000)]
Invoke MARC editor with the appropriate control number identifier

The control number identifier is most critical for the creation
of authority records; given that the callers have the required
context, have them pass in the control number identifier to the
MARC editor. Edit MARC record, new MARC record, import MARC record;
those have to be the big ones, right?

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19076 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoEnhance usability of authority record deletion dialogue
dbs [Wed, 29 Dec 2010 04:16:24 +0000 (04:16 +0000)]
Enhance usability of authority record deletion dialogue

Don't show the number of linked bib records unless it is
a non-zero sum.

Make "Cancel" the button with focus in the dialog, so that
an errant press of the "Enter" key doesn't do the wrong thing.

Trim space from the authority text in the display. Move the
authority text from the dialog title to the contents of the
dialog.

Do not display the MARC for the authority record by default;
add a "View MARC" button and toggle it to show/hide MARC.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19075 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoTowards a more useful authority delete confirmation pane
dbs [Wed, 29 Dec 2010 04:15:33 +0000 (04:15 +0000)]
Towards a more useful authority delete confirmation pane

Rather than simply creating a raw confirm dialogue that only
provides the cataloguer with the ID of the authority record that
is about to be deleted (not an especially useful handle), supply
a confirmation dialogue that recaps how many bibliographic records
are linked to this authority record and also displays the MARC of
the record about to be deleted.

Most authority records appear to be short enough that the MARC
display is not a concern, but if it becomes a problem we can opt
not to show the MARC by default and give the cataloguer the ability
to click a "View MARC" button on the confirmation dialog instead.

Along the way, make some more variables local and remove some
unnecessary workarounds for object IDs.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19074 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoUpdate auth-cached user after payment
erickson [Tue, 28 Dec 2010 16:50:12 +0000 (16:50 +0000)]
Update auth-cached user after payment

After payment toward one's own account, reset the cached user object so
that it will contain the latest last_xact_id value.  This is necessary
for supporting patron credit card payments in the catalog.

Signed-off-by: Bill Erickson <erickson@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19070 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agorefresh cached user during auth session reset
erickson [Tue, 28 Dec 2010 16:50:11 +0000 (16:50 +0000)]
refresh cached user during auth session reset

Add a boolean (1/0) param to open-ils.auth.session.reset_timeout
that forces open-ils.auth to refresh the cached user object.  Useful if
a column on actor.usr was updated and the client may be pulling the
object from the cache w/ a page reload, etc.

Signed-off-by: Bill Erickson <erickson@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19069 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agocommit 620f5d756619b84200add4c534a7cf22e1c0d037
gmc [Thu, 23 Dec 2010 13:43:38 +0000 (13:43 +0000)]
commit 620f5d756619b84200add4c534a7cf22e1c0d037
further fixes to null indicator handling in flat-text MARC editor

[1] ensure that null indicators are converted to blanks
[2] fix glitch when supplying default indicator values

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19062 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoWhen the subfield delimiter is configured as "$" (the default), use {dollar} to repre...
gmc [Thu, 23 Dec 2010 13:43:36 +0000 (13:43 +0000)]
When the subfield delimiter is configured as "$" (the default), use {dollar} to represent a literal dollar sign.  This is apparently in line with other Breaker-format tools.  Fix suggested by Galen Charlton, thanks gmc!

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19061 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoaddressing two Breaker-format issues: 1) supply an "empty" (space) value for indicato...
gmc [Thu, 23 Dec 2010 13:43:34 +0000 (13:43 +0000)]
addressing two Breaker-format issues: 1) supply an "empty" (space) value for indicators in the internal format if they are left out and 2) add indicator placeholders to incoming Breaker datafield lines if they seem to be missing.  Addresses https://bugs.launchpad.net/evergreen/+bug/693468

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19060 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoPatch from Nathanael Schilling protecting cstore/pcrud from no-search-param segfaults...
miker [Thu, 23 Dec 2010 01:44:25 +0000 (01:44 +0000)]
Patch from Nathanael Schilling protecting cstore/pcrud from no-search-param segfaults (with minor editorializing)

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19048 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoallow vandelay.replace_field() to handle a complex field spec by splitting and loopin...
miker [Thu, 23 Dec 2010 01:28:33 +0000 (01:28 +0000)]
allow vandelay.replace_field() to handle a complex field spec by splitting and looping; bringing 1.6.1-2.0 upgrade script up to date

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19044 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoOPAC/Serials: small aesthetic change to render held issues more neatly
senator [Wed, 22 Dec 2010 17:05:11 +0000 (17:05 +0000)]
OPAC/Serials: small aesthetic change to render held issues more neatly

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19042 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoFor making predictions, remove some debug/dead code, refresh the list.
dbwells [Tue, 21 Dec 2010 23:10:18 +0000 (23:10 +0000)]
For making predictions, remove some debug/dead code, refresh the list.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19039 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years ago'Bindery' item status rethink - this status should eventually be tracked at the unit...
dbwells [Tue, 21 Dec 2010 23:03:41 +0000 (23:03 +0000)]
'Bindery' item status rethink - this status should eventually be tracked at the unit level, not the item level.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19037 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAdd line feeds to the output of org_tree_proximity.pl
dbs [Tue, 21 Dec 2010 20:52:35 +0000 (20:52 +0000)]
Add line feeds to the output of org_tree_proximity.pl

When another routine was appended to autogen.sh, the output
was appended to the result string returned from org_tree_proximity.pl;
adding a linefeed cleans that up.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19035 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoPropagate merged authority record change to bibliographic record
dbs [Tue, 21 Dec 2010 20:23:39 +0000 (20:23 +0000)]
Propagate merged authority record change to bibliographic record

Launchpad bug 688015 reported that the merge of authority records
resulted in the control number identifier in a controlled field
in a bibliographic record changing to the right value, but the
value of the field itself wasn't being changed.

The problem turned out to be a confusion of the "source" and
"target" values in the authority.merge_record() function. Once
that was straightened out, the merge updated the controlled
field as expected.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19033 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAcq: Fix a bug where upon PO activation, lineitems in the order-ready state
senator [Tue, 21 Dec 2010 19:37:57 +0000 (19:37 +0000)]
Acq: Fix a bug where upon PO activation, lineitems in the order-ready state
would stay there, rather than progressing to the on-order state

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19031 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoprotect against null orig-location resulting in depth=-1 searches after logout
erickson [Mon, 20 Dec 2010 18:14:10 +0000 (18:14 +0000)]
protect against null orig-location resulting in depth=-1 searches after logout

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19029 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAcq: In fund propagation and rollover, add amounts as numbers, not strings
senator [Mon, 20 Dec 2010 17:38:41 +0000 (17:38 +0000)]
Acq: In fund propagation and rollover, add amounts as numbers, not strings

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19027 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAdd an "Apply full authority" option to the MARC editor
dbs [Mon, 20 Dec 2010 04:42:57 +0000 (04:42 +0000)]
Add an "Apply full authority" option to the MARC editor

By definition, the only subfields that should be applied from an
authority record to a bibliographic record are the complete set
from the 1XX field of the authority record. So, rather than forcing
the user to select the correct subfields from the chosen authority
record, give them this handy shortcut to do the right thing.

Also, add copyright / licensing header - hopefully accurate.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19024 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoDisplay the tag and indicators for authority records in the merge box
dbs [Mon, 20 Dec 2010 02:25:16 +0000 (02:25 +0000)]
Display the tag and indicators for authority records in the merge box

Also, avoid the risk of creating or stomping on global variables by
using 'var' to declare our variables.

Also, apply copyright statement for the International Institute of
Social History. Thanks for sponsoring this contribution to Evergreen!

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19020 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoDisplay the tag of the displayed authority record in MARC Editor context
dbs [Mon, 20 Dec 2010 02:21:32 +0000 (02:21 +0000)]
Display the tag of the displayed authority record in MARC Editor context

We currently display both 1xx and 5xx fields in the authority record,
but do not display the tag. This can lead to some confusion when a 5xx
field is actually present. Ergo, show the tag to disambiguate the fields
in the authority browse selection interface.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19019 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoProvide starting context for authority browse in MARC Editor context menu
dbs [Mon, 20 Dec 2010 02:21:04 +0000 (02:21 +0000)]
Provide starting context for authority browse in MARC Editor context menu

Using the browse interface instead of startwith provides a first page
of results that shows some of the authority entries that precede the
first alphabetical match for the chosen term. Context is good.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19018 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoBackport r19013 from trunk
senator [Fri, 17 Dec 2010 19:27:31 +0000 (19:27 +0000)]
Backport r19013 from trunk

Thanks to Sally Fortin for drawing attention to this bug, wherein new
Holding Subfields can't be created in this interface via the staff client.

Acq: Tracked down a small but subtle bug with the Holding Subfield tab of
the Provider editor interface.

We apparently have a global variable "name" defined somewhere which, when
assigned in place of an overrideWidget for an AutoGrid thanks to some vestigial
code, ultimately causes an error from within AutoFieldWidget, if you're using
the staff client.  That's because name is the string "browser_browser" in the
staff client, but if you access this interface from Firefox, name is apparently
set to some value that evaluates to false in a boolean context, because
AutoFieldWidget doesn't choke on it (the comparison at line 182 of that file
will return false).

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19014 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoDo an equality test, instead of assigning a value
dbs [Fri, 17 Dec 2010 15:19:12 +0000 (15:19 +0000)]
Do an equality test, instead of assigning a value

Thanks to Bill Erickson for catching this; this fixes a bug where
SuperCat requests would end up returning authority records instead of
bibliographic records.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19010 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agodump() is a mozilla thing; use console.log instead
erickson [Fri, 17 Dec 2010 15:12:48 +0000 (15:12 +0000)]
dump() is a mozilla thing;  use console.log instead

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19008 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoBackport r18852, r19005 from trunk
senator [Thu, 16 Dec 2010 18:40:42 +0000 (18:40 +0000)]
Backport r18852, r19005 from trunk

[18852] Serials: make some IDL changes and some changes to field order in an
AutoGrid to support easier creation of working copy templates with serials.

[19005] Serials: the circ_lib field on a copy template has no meaning in the
only context where these copy templates are used, which is serials.  Any
copy-like objects that are created in serials have their circ_lib determined
by distribution.holding_lib

So remove the circ_lib from the interface.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19006 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAddress the call number browsing performance problem raised in LP 690242
dbs [Wed, 15 Dec 2010 20:24:36 +0000 (20:24 +0000)]
Address the call number browsing performance problem raised in LP 690242

The ORDER BY clause currently generated by call number browsing does not
have a sufficient index to use to assist the sorting of the returned rows,
and consequently does a sequential scan of the asset.call_number table.
Which, as you can imagine, is not fast for a system with more than a few
thousand call numbers.

This adds an index specifically to enable the query to go back to an
index scan instead of a sequential scan. We can investigate whether other
indexes should be removed to enable efficient data loading once we've
squashed the sequential scan problem.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19004 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoaugment the useragent for the xulrunner staff client
phasefx [Wed, 15 Dec 2010 20:12:44 +0000 (20:12 +0000)]
augment the useragent for the xulrunner staff client

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19002 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoTwo bug fixes: 1) only allow one fine generator call per circulation during a given...
miker [Wed, 15 Dec 2010 17:12:13 +0000 (17:12 +0000)]
Two bug fixes: 1) only allow one fine generator call per circulation during a given transaction; 2) require that a circulation be open, based on the xact_finish field, in order to be the parent of a renewal (I suspect this used to depend on the open-circ view)

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19000 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoSerials: simple bug in batch receive. Certain field values got treated
senator [Mon, 13 Dec 2010 21:42:33 +0000 (21:42 +0000)]
Serials: simple bug in batch receive. Certain field values got treated
like strings sometimes when they weren't. No more.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18998 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoregularize spelling of "fulfill"
gmc [Mon, 13 Dec 2010 18:21:37 +0000 (18:21 +0000)]
regularize spelling of "fulfill"

Based on patch by Steve Callender

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18996 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoBackport of r18989: boolean test for hard due force flag
miker [Mon, 13 Dec 2010 17:44:51 +0000 (17:44 +0000)]
Backport of r18989: boolean test for hard due force flag

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18990 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agorepaired order-by in update_hard_due_dates function to prevent sql errors
erickson [Mon, 13 Dec 2010 16:22:19 +0000 (16:22 +0000)]
repaired order-by in update_hard_due_dates function to prevent sql errors

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18987 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agorepaired order-by in update_hard_due_dates function to prevent sql errors
erickson [Mon, 13 Dec 2010 16:16:45 +0000 (16:16 +0000)]
repaired order-by in update_hard_due_dates function to prevent sql errors

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18986 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoarg ... reverting version bump that got applied to the wrong branch
miker [Fri, 10 Dec 2010 20:56:33 +0000 (20:56 +0000)]
arg ... reverting version bump that got applied to the wrong branch

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18981 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agobumping version numbers
miker [Fri, 10 Dec 2010 20:52:48 +0000 (20:52 +0000)]
bumping version numbers

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18979 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoPatch from James Fournie to address https://bugs.launchpad.net/evergreen/+bug/622908...
miker [Fri, 10 Dec 2010 17:22:15 +0000 (17:22 +0000)]
Patch from James Fournie to address https://bugs.launchpad.net/evergreen/+bug/622908 wherein we learn that related item physical description might be used as the main PD of the main item, if the main item lacks such a field in the MARC

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18968 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoProvide a mechanism to load any random JS file via dojo.require()-ish syntax.
miker [Fri, 10 Dec 2010 16:03:49 +0000 (16:03 +0000)]
Provide a mechanism to load any random JS file via dojo.require()-ish syntax.

Why would we want to do such a thing, you might ask?

Well, the short answer is that Firefox hates pages that have more than one script block (inline is worse than tag) that contains pre-onLoad XHR. So, this allows us to pull the actual loading of JS from the same domain as the page into an inline block. This allows us to eliminate the WSOD on FF by pulling all (dangerous) JS into a single, final inline block, after which we don't care if the DOMContentLoaded event fires -- that's when it should fire, structurally -- but in FF it may fire for a different reason (bug) than it should (fell of the end of the page in the rendering engine).

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18965 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoBackporting r18957 from trunk:
miker [Fri, 10 Dec 2010 14:27:37 +0000 (14:27 +0000)]
Backporting r18957 from trunk:

Fix two bugs:
 * Wide Character warning in authority.generate_overlay_template due to the generated template not being UTF-8 encoded internally
 * Correctly test the same space-normalization form of the pre- and post-strip records during the application of a replace rule in vandelay.replace_field

This addresses https://bugs.launchpad.net/evergreen/+bug/687996 for 2.0beta5

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18960 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoReturn authority records for freshmeat when authority records are requested
dbs [Fri, 10 Dec 2010 14:20:58 +0000 (14:20 +0000)]
Return authority records for freshmeat when authority records are requested

Previously, freshmeat was hardcoded to return bibliographic records, even
when authority records were requested.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18959 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoGive the recent_changes list the ability to sort authority records correctly
dbs [Fri, 10 Dec 2010 14:20:24 +0000 (14:20 +0000)]
Give the recent_changes list the ability to sort authority records correctly

We were always sorting by bibliographic record entry, which does not
work all that well for authority records.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18958 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agobig thinko. Going by the stock receipt template, this should be the workstation...
phasefx [Thu, 9 Dec 2010 18:26:25 +0000 (18:26 +0000)]
big thinko.  Going by the stock receipt template, this should be the workstation lib.  Destination is handled by a different variable

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18951 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agotransit isn't in payload first time through with ROUTE_ITEM checkin, fallback on...
phasefx [Thu, 9 Dec 2010 18:13:25 +0000 (18:13 +0000)]
transit isn't in payload first time through with ROUTE_ITEM checkin, fallback on check.org

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18947 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoBackport r18800 from trunk (I thought I already had! r18932 depends on it)
senator [Wed, 8 Dec 2010 21:57:12 +0000 (21:57 +0000)]
Backport r18800 from trunk (I thought I already had! r18932 depends on it)

Place holds on issuances from the OPAC. Also a couple very minor API
documentation fixes.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18937 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoSupport for predicting serials with no chronology caption
dbwells [Wed, 8 Dec 2010 20:00:08 +0000 (20:00 +0000)]
Support for predicting serials with no chronology caption

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18936 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAdd a simple subfields_list() method to MFHD/Caption.pm to match that in Holding.pm
dbwells [Wed, 8 Dec 2010 19:49:26 +0000 (19:49 +0000)]
Add a simple subfields_list() method to MFHD/Caption.pm to match that in Holding.pm

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18934 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoBackport r18931 from trunk
senator [Tue, 7 Dec 2010 22:43:55 +0000 (22:43 +0000)]
Backport r18931 from trunk

Serials: When the fully compressed serial holdings are active in the OPAC,
you get this "issues held" display with an expand/compress toggle that will
either show you individual holdings (and allow you to place holds on them)
or compressed holdings statements.

The functionality existed in trunk before this commit, but this cleans it up
and makes it better. It's more consistent with the the result detail table,
it doesn't offer you the change to place holds on issues that don't have
units (copy-equivalent objects), etc etc.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18932 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoMoving bits around and protecting against a pre-existing subject|complete index defin...
miker [Fri, 3 Dec 2010 21:36:11 +0000 (21:36 +0000)]
Moving bits around and protecting against a pre-existing subject|complete index definition that some sites have

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18921 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoThe "All Subjects" index never made it into 1.6, so we need it in the upgrade script
miker [Fri, 3 Dec 2010 21:14:45 +0000 (21:14 +0000)]
The "All Subjects" index never made it into 1.6, so we need it in the upgrade script

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18918 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoprotect against empty control fields (bad MARC)
miker [Fri, 3 Dec 2010 20:55:01 +0000 (20:55 +0000)]
protect against empty control fields (bad MARC)

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18916 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoBackport part of r18912 from trunk
senator [Fri, 3 Dec 2010 19:51:22 +0000 (19:51 +0000)]
Backport part of r18912 from trunk

BibTemplate: make a couple of IE-friendly changes to BibTemplate.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18914 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoNormalize spaces in notcontains advance search query terms to address bug https:...
miker [Fri, 3 Dec 2010 15:09:18 +0000 (15:09 +0000)]
Normalize spaces in notcontains advance search query terms to address bug https://bugs.launchpad.net/evergreen/+bug/677122

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18907 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agocopy/paste-o. Retrieve Patron in the patron log section of the Admin->Local Admin...
phasefx [Thu, 2 Dec 2010 20:55:21 +0000 (20:55 +0000)]
copy/paste-o.  Retrieve Patron in the patron log section of the Admin->Local Admin->Work Log uses the right list now

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18903 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoReturn the copy status name when a copy is not available
dbs [Wed, 1 Dec 2010 19:12:16 +0000 (19:12 +0000)]
Return the copy status name when a copy is not available

It looks like the checkout operation used to return a fleshed
config.copy_status object, but that changed and we now get a
raw ccs ID back.

Retrieve the status name using the ccs ID and present that
to the users. Also, in case problems like this happen in
the future, provide a more specific error message and var
name so that it will be (hopefully!) a little clearer what
payload was expected in the first place :)

Resolves https://bugs.launchpad.net/evergreen/+bug/680575

Thanks to Jason Etheridge for a major assist with this bug.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18898 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAssorted small serials fixes
dbwells [Wed, 1 Dec 2010 13:52:28 +0000 (13:52 +0000)]
Assorted small serials fixes

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18896 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agotest case for minimum required version of Perl modules
gmc [Tue, 30 Nov 2010 22:32:32 +0000 (22:32 +0000)]
test case for minimum required version of Perl modules

Encode > 2.12 particularly matters, but there are likely
others of significance.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18894 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoMove Google Preview badge below the book cover image, if there is one
dbs [Tue, 30 Nov 2010 21:58:39 +0000 (21:58 +0000)]
Move Google Preview badge below the book cover image, if there is one

There might be a more correct way to do this in CSS, but works++

Also, give a little room between the images.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18892 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoClean up some of the Apache config mod_rewrite rules
dbs [Tue, 30 Nov 2010 21:11:35 +0000 (21:11 +0000)]
Clean up some of the Apache config mod_rewrite rules

Thomas Berezansky suggested some improvements to the mod_rewrite
rules in eg_vhost.conf on the -devel mailing list; this is a stab
at correcting the most egregious problems.

Tested with Zotero and unAPI still works; tested with the staff
client and language-switching still works, as do the Conify and
Vandelay interfaces. Seems reasonably good.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18890 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoprotect some of the supercat browse interfaces from unboundedness
gmc [Tue, 30 Nov 2010 20:44:31 +0000 (20:44 +0000)]
protect some of the supercat browse interfaces from unboundedness

E.g., browsing from a call number that contains forward slashes, e.g.,

"02/05/2004"

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18885 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoEnable GET params to be added properly in buildOPACLink()
dbs [Tue, 30 Nov 2010 20:35:09 +0000 (20:35 +0000)]
Enable GET params to be added properly in buildOPACLink()

Symptom was that the "?l=#" parameter wasn't being added to the
home screen "Advanced Search" link. Cause was that the
dojo.addOnLoad(init) call was being made after the
dojo.addOnLoad(home_init) call, which depended on globals being
set by init(). This started happening when the JavaScript was
shifted around in an attempt to kill the white screen of death.

There may be other similar issues in other interfaces; keep
your eyes open!

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18883 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agospecify default leader for acq brief bibs
gmc [Tue, 30 Nov 2010 19:09:21 +0000 (19:09 +0000)]
specify default leader for acq brief bibs

In particular, avoid fun that could ensue if the
Leader/09 is not set to 'a'.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18879 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agomenu entry for Admin->Server Administration->Acquisitions->Line Item MARC Attribute...
phasefx [Tue, 30 Nov 2010 17:11:34 +0000 (17:11 +0000)]
menu entry for Admin->Server Administration->Acquisitions->Line Item MARC Attribute Definitions

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18876 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agostraighten out triggers that maintain rmsr
gmc [Tue, 30 Nov 2010 13:52:05 +0000 (13:52 +0000)]
straighten out triggers that maintain rmsr

In particular, make sure that the old zzz_
trigger on metabib.real_full_rec is completely removed, as
it needlessly slows down bib ingest.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18870 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agofix failure when attempting to create invoice
gmc [Tue, 30 Nov 2010 00:12:07 +0000 (00:12 +0000)]
fix failure when attempting to create invoice

Occurred for line items that were not part of a selection list

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18867 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agologic error (inversion) in retargetting of previous copy when no other holds are...
miker [Mon, 29 Nov 2010 19:47:20 +0000 (19:47 +0000)]
logic error (inversion) in retargetting of previous copy when no other holds are looking at it

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18859 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoPatch from Jeff Godin, backported from trunkified version:
miker [Mon, 29 Nov 2010 17:44:23 +0000 (17:44 +0000)]
Patch from Jeff Godin, backported from trunkified version:

In the staff client, the holds context menu option "Edit PickupLibrary" displays and allows selection of org units that it shouldn't.

Org units whose type has can_have_users = FALSE are not valid pickup locations.

Using the default types as an example, CONS and SYS1 are invalid pickup locations.

The OPAC enforces this when allowing patrons to edit a hold.

The staff client does not enforce this when staff edit a hold.

The can_have_users() method of the au object returns a string 't' or 'f' which is then compared to 0.

The attached patch corrects this issue. ( foo == 0 becomes !isTrue(foo) ).

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18855 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agomerge r18841 from trunk for label interface bug https://bugs.launchpad.net/evergreen...
phasefx [Mon, 29 Nov 2010 17:12:26 +0000 (17:12 +0000)]
merge r18841 from trunk for label interface bug https://bugs.launchpad.net/evergreen/+bug/677628

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18853 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAddress 1.6.1-2.0 upgrade problems reported by Ben Shum
dbs [Sun, 28 Nov 2010 15:11:02 +0000 (15:11 +0000)]
Address 1.6.1-2.0 upgrade problems reported by Ben Shum

1. We were attempting to update the asset.uri ID sequence value
with the wrong syntax; also, adding just 1 would return an error
in the event that only the seed value for asset.uri had been
inserted.

2. Somehow the body of the maintain_control_numbers() function
was pasted twice, resulting in a syntax error.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18849 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAdd the asset.copy(create_date) index to the 1.6.1-2.0 update script
dbs [Wed, 24 Nov 2010 20:12:19 +0000 (20:12 +0000)]
Add the asset.copy(create_date) index to the 1.6.1-2.0 update script

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18848 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoBackport r18845 from trunk
senator [Wed, 24 Nov 2010 16:33:54 +0000 (16:33 +0000)]
Backport r18845 from trunk

Everything else in the menu is alphabetized (in English anyway), so Copy
Template Editor may as well be too.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18846 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAdd an index on asset.copy(create_date) for item-age browse
dbs [Wed, 24 Nov 2010 03:32:44 +0000 (03:32 +0000)]
Add an index on asset.copy(create_date) for item-age browse

Running an item-age browse against a database with a reasonable
number of entries in asset.copy is dog-slow without an index
like this.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18843 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoBackport r18838 from trunk
senator [Tue, 23 Nov 2010 21:39:09 +0000 (21:39 +0000)]
Backport r18838 from trunk

Serials: Fix error in batch receiving when trying to change the shelving
location of the previous item in the stream when there /is/ no previous
item in the stream

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18839 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agofix broken prefix and namespace URI for the mods32 transform
gmc [Tue, 23 Nov 2010 14:12:22 +0000 (14:12 +0000)]
fix broken prefix and namespace URI for the mods32 transform

This breakage can be found in databases that started out at
version 1.2 or earlier; matters since in-DB ingest is stricter
with its XPATH processing.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18836 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agofix missing dep that prevented acq bib search form from working
gmc [Mon, 22 Nov 2010 22:47:36 +0000 (22:47 +0000)]
fix missing dep that prevented acq bib search form from working

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18832 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agominor FeedTemplate bug fixes
miker [Mon, 22 Nov 2010 21:10:18 +0000 (21:10 +0000)]
minor FeedTemplate bug fixes

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18830 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoappend to bottom of list for xul-based hold list interfaces. The result of this...
phasefx [Mon, 22 Nov 2010 20:38:55 +0000 (20:38 +0000)]
append to bottom of list for xul-based hold list interfaces.  The result of this is that rows appended off-screen (with just the hold id) will not make a network request for fleshing until they either become visible, or a column sort action is initiated

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18829 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agobug #680096 - upgrade script to partially reingest bibs after upgrade to 2.0
gmc [Mon, 22 Nov 2010 17:17:13 +0000 (17:17 +0000)]
bug #680096 - upgrade script to partially reingest bibs after upgrade to 2.0

This solves the problem of the new facets sidebar showing up empty in
OPAC search results.  Since the process of populating metabib.facet_entry
and updating metabib.*_field_entry can take a long time on large databases,
the update SQL is generated by a separate script, reingest-1.6-2.0.pl.  Usage
from an example run is:

./reingest-1.6-2.0.pl: generate SQL script to reingest bibs during an upgrade to Evergreen 2.0

By default, the script writes to the file reingest-1.6-2.0.sql.  To modify
this script's behavior, you can supply the following options:

--config /path/to/opensrf_core.xml  used to get connection information to
                                    the Evergreen database
--chunk_size n                      number of bibs to reingest in a chunk;
                                    specify if you don't want all of the
                                    bibs in the database to be reindexes
                                    in a single transaction
--output /path/to/output_file.sql   path of output SQL file

Writing output to file reingest-1.6-2.0.sql

SQL script complete.  To perform the reingest, please run the script using
the psql program, e.g.,

psql {connection parameters}  < reingest-1.6-2.0.sql

If you are running a large Evergreen installation, it is recommend that you
examine the script first; note that a reingest of a large Evergreen database
can take several hours.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18825 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agomore SuperCat XML fixup needed to support serials data -- important for opac customiz...
miker [Mon, 22 Nov 2010 17:05:49 +0000 (17:05 +0000)]
more SuperCat XML fixup needed to support serials data -- important for opac customization though BibTemplate (as in, "do not blow up")

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18824 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoadd field to IDL needed by, well, a bunch of stuff: sstr-[has_many]->items
miker [Mon, 22 Nov 2010 15:17:35 +0000 (15:17 +0000)]
add field to IDL needed by, well, a bunch of stuff: sstr-[has_many]->items

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18822 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoparallel fine generator
gmc [Mon, 22 Nov 2010 13:38:53 +0000 (13:38 +0000)]
parallel fine generator

The fine generator cronjob can now use multiple
parallel processes by setting fine_generator/parallel
in opensrf.xml to a value greater than 1.  This
can speed up periodic fine generation in a database
containing a large number of overdue loans.

Also added a service to return just the list of
IDs of overdue loans and reservations - fleshing
the entire set of overdue loans when generating fines
has been observed to cause significant swap-thrashing in
at least one large database.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18820 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agohold targeter: add option to run parallel targeter processes
gmc [Mon, 22 Nov 2010 13:38:51 +0000 (13:38 +0000)]
hold targeter: add option to run parallel targeter processes

Permit the hold targeter to divvy up the work and run more than one process
at a time by setting the opensrf.xml setting hold_targeter/parallel to a
value greater than one.  Doing so can significantly reduce the
time it takes to (re)target a large number of hold requests, although
only up to a point (in other words, if increasing the number of parallel
targeters beyond one, it is recommended to do so slowly.)

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18819 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoAddress maintain_control_numbers() database function bug #677160
dbs [Sat, 20 Nov 2010 19:56:10 +0000 (19:56 +0000)]
Address maintain_control_numbers() database function bug #677160

Jason Stephenson reported a bug handling records with multiple
001 or 003 fields, and supplied a set of test records to
reproduce the condition. The bug caused the ingest process
to throw a database error, rolling back the transaction and
preventing the actual ingest of those records.

The solution was to simplify the logic in maintain_control_numbers().
Now, in the case that there are either multiple 001s or 003s in the
incoming record, we simply delete all of the 003s and 001s and
create the desired 001 and 003. Also, if there are not exactly one
001 and one 003 in the incoming record, we do not try to preserve
one of those values in the 035 as it would be close to meaningless.

Many thanks to Jason for the clear bug report and test cases!

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18811 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agono one likes the persisting call number with fast add, not even me :)
phasefx [Fri, 19 Nov 2010 20:44:50 +0000 (20:44 +0000)]
no one likes the persisting call number with fast add, not even me :)

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18808 dcc99617-32d9-48b4-a31d-7c20da2025e4

13 years agoonly allow choice from active providers when creating POs and invoices
gmc [Thu, 18 Nov 2010 20:32:32 +0000 (20:32 +0000)]
only allow choice from active providers when creating POs and invoices

Also removed cusotm defaultLinkedDataLoader for the provider selection widget;
no longer necessary since pcrud handles filter by OUs

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18799 dcc99617-32d9-48b4-a31d-7c20da2025e4