]> git.evergreen-ils.org Git - working/Evergreen.git/log
working/Evergreen.git
15 years agosome display cleanup
erickson [Wed, 18 Mar 2009 19:46:52 +0000 (19:46 +0000)]
some display cleanup

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

15 years agoIn oils_cstore.c:
scottmk [Wed, 18 Mar 2009 18:04:56 +0000 (18:04 +0000)]
In oils_cstore.c:

1. Verify that the BETWEEN operator receives
exactly two operands.

2. Validate the operator used in a simple predicate;
i.e. make sure it contains no semicolons or white space
(with the exception that "similar to" is allowed).
Purpose: prevent certain kinds of SQL injection.

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

15 years agodon't set ischanged if value is not changing, otherwise all copies are always updated
erickson [Wed, 18 Mar 2009 16:42:44 +0000 (16:42 +0000)]
don't set ischanged if value is not changing, otherwise all copies are always updated

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

15 years agolet the _impl caller handle transaction commits
erickson [Wed, 18 Mar 2009 16:42:16 +0000 (16:42 +0000)]
let the _impl caller handle transaction commits

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

15 years agoIn searchPredicate(): make sure that there is only one
scottmk [Wed, 18 Mar 2009 15:03:31 +0000 (15:03 +0000)]
In searchPredicate(): make sure that there is only one
predicate at a time for a field (currently we silently
ignore anything but the first one).

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

15 years agono need to flesh fund, since we're grabbing those anyway. set ischanged when item...
erickson [Wed, 18 Mar 2009 14:55:16 +0000 (14:55 +0000)]
no need to flesh fund, since we're grabbing those anyway.  set ischanged when item changes

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

15 years agoadded a copy (li_details) pane for creating a managing copies
erickson [Wed, 18 Mar 2009 14:44:14 +0000 (14:44 +0000)]
added a copy (li_details) pane for creating a managing copies

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

15 years agoadded batch lineitem detail CUD method
erickson [Wed, 18 Mar 2009 14:43:30 +0000 (14:43 +0000)]
added batch lineitem detail CUD method

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

15 years agothis.user might be an event, check for that
erickson [Wed, 18 Mar 2009 12:51:48 +0000 (12:51 +0000)]
this.user might be an event, check for that

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

15 years agoIn oils_cstore.c:
scottmk [Wed, 18 Mar 2009 05:51:38 +0000 (05:51 +0000)]
In oils_cstore.c:

1. Applied the const qualifier to several parameters.

2. Added some return checking to ensure that errors bubble
up to the top.

3. Complain if an IN list is empty.

4. Complain if a predicate is empty.

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

15 years agoadded some user sesssion and object-list caching
erickson [Wed, 18 Mar 2009 02:31:15 +0000 (02:31 +0000)]
added some user sesssion and object-list caching

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

15 years agoadded basic copy list grid (lineitem_details) linked from li table. other small...
erickson [Tue, 17 Mar 2009 22:10:28 +0000 (22:10 +0000)]
added basic copy list grid (lineitem_details) linked from li table.  other small tweaks

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

15 years agopcrud entries for fund. added some selector attrs and fixed an org_unit link
erickson [Tue, 17 Mar 2009 22:09:22 +0000 (22:09 +0000)]
pcrud entries for fund.  added some selector attrs and fixed an org_unit link

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

15 years agoprogress bar to show lineitem update progress. some small style cleanup
erickson [Tue, 17 Mar 2009 18:50:27 +0000 (18:50 +0000)]
progress bar to show lineitem update progress.  some small style cleanup

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

15 years agoadded simple show/hide funcs
erickson [Tue, 17 Mar 2009 18:49:24 +0000 (18:49 +0000)]
added simple show/hide funcs

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

15 years agoadding paging plugins to li table. showing entry count in picklist view.
erickson [Tue, 17 Mar 2009 16:54:17 +0000 (16:54 +0000)]
adding paging plugins to li table.  showing entry count in picklist view.

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

15 years agowhen searching bibs, don't start the cstore xact until after the results have returne...
erickson [Tue, 17 Mar 2009 16:52:43 +0000 (16:52 +0000)]
when searching bibs, don't start the cstore xact until after the results have returned to prevent connection timeout (and useless pinning of backend)

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

15 years agoset state explicitly so caller will have the state in the retrieved LIs
erickson [Tue, 17 Mar 2009 15:45:06 +0000 (15:45 +0000)]
set state explicitly so caller will have the state in the retrieved LIs

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

15 years agoImplement a NOT operator, expressed as "-not".
scottmk [Tue, 17 Mar 2009 15:36:42 +0000 (15:36 +0000)]
Implement a NOT operator, expressed as "-not".

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

15 years agoplug in li table to picklist display
erickson [Tue, 17 Mar 2009 15:32:12 +0000 (15:32 +0000)]
plug in li table to picklist display

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

15 years agoreset table before next round of search results
erickson [Tue, 17 Mar 2009 15:31:57 +0000 (15:31 +0000)]
reset table before next round of search results

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

15 years agodisplay localized labels for li attrs. added button to return to li list
erickson [Tue, 17 Mar 2009 14:53:33 +0000 (14:53 +0000)]
display localized labels for li attrs. added button to return to li list

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

15 years agoadded attr def fetching function
erickson [Tue, 17 Mar 2009 14:53:21 +0000 (14:53 +0000)]
added attr def fetching function

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

15 years agostarted lineitem info pane, which shows marc record and (eventually) all lineitem...
erickson [Tue, 17 Mar 2009 14:17:55 +0000 (14:17 +0000)]
started lineitem info pane, which shows marc record and (eventually) all lineitem attrs.  will also link to li_details

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

15 years agosome lineitem table style
erickson [Tue, 17 Mar 2009 03:13:11 +0000 (03:13 +0000)]
some lineitem table style

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

15 years agodisplay:none implies invisible. remove the visibilty part so un-hiding is simpler
erickson [Tue, 17 Mar 2009 03:12:48 +0000 (03:12 +0000)]
display:none implies invisible.  remove the visibilty part so un-hiding is simpler

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

15 years agomoved lineitem table out to generic template for import. this will eventually take...
erickson [Tue, 17 Mar 2009 03:12:01 +0000 (03:12 +0000)]
moved lineitem table out to generic template for import.  this will eventually take the place of jubgrid in most cases.  still need to plug some final holes for basica functionality

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

15 years agoadded creator/editor to general picklist create
erickson [Tue, 17 Mar 2009 03:09:04 +0000 (03:09 +0000)]
added creator/editor to general picklist create

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

15 years agoSupport multiple volumes in a single year
djfiander [Tue, 17 Mar 2009 02:03:13 +0000 (02:03 +0000)]
Support multiple volumes in a single year

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

15 years agoupdated IDL to match acq creator/editor columns
erickson [Mon, 16 Mar 2009 21:36:19 +0000 (21:36 +0000)]
updated IDL to match acq creator/editor columns

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

15 years agofleshing new creator/editor tracking fiels in PO, picklist, and lineitem
erickson [Mon, 16 Mar 2009 21:19:57 +0000 (21:19 +0000)]
fleshing new creator/editor tracking fiels in PO, picklist, and lineitem

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

15 years agoplugged in Bill Ott's lost item checkin functionality. This includes the ability...
erickson [Mon, 16 Mar 2009 20:04:16 +0000 (20:04 +0000)]
plugged in Bill Ott's lost item checkin functionality.  This includes the ability to void lost item fines, processing fines, and un-voiding existing overdue fines on the transaction when an item previously marked lost is checked in.  lib can also define a post-due-date interval during which these settings take effect.  Each are controlled by org-unit settings.  I still need to add Const.pm entries for billing types.  Thanks Billsvn diff Open-ILS/src/perlmods/OpenILS/Const.pm Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm

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

15 years agobetter handling of sets of work_ou's. will probably shove some of this logic into...
erickson [Mon, 16 Mar 2009 19:58:55 +0000 (19:58 +0000)]
better handling of sets of work_ou's.  will probably shove some of this logic into User.js at some point.  Added support for UPDATE_ORG_UNIT_SETTING_ALL perm checking

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

15 years agoadded new on-lost-return event org unit settings
erickson [Mon, 16 Mar 2009 19:58:04 +0000 (19:58 +0000)]
added new on-lost-return event org unit settings

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

15 years agoincorrect table name in stored proc for updating materialized transaction summary
miker [Mon, 16 Mar 2009 19:40:11 +0000 (19:40 +0000)]
incorrect table name in stored proc for updating materialized transaction summary

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

15 years agooops, wrong api name. fixed
erickson [Mon, 16 Mar 2009 19:00:43 +0000 (19:00 +0000)]
oops, wrong api name.  fixed

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

15 years agoCorrect a blunder (trying to free the same memory twice)
scottmk [Mon, 16 Mar 2009 17:25:47 +0000 (17:25 +0000)]
Correct a blunder (trying to free the same memory twice)

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

15 years agoadded method to return trigger events by user and type
erickson [Mon, 16 Mar 2009 16:46:48 +0000 (16:46 +0000)]
added method to return trigger events by user and type

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

15 years agopass hint instead of class as core_type
erickson [Mon, 16 Mar 2009 16:44:58 +0000 (16:44 +0000)]
pass hint instead of class as core_type

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

15 years agohide magical ##URI## call numbers from the copy browser in the staff client
miker [Mon, 16 Mar 2009 16:13:11 +0000 (16:13 +0000)]
hide magical ##URI## call numbers from the copy browser in the staff client

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

15 years agoprovide for a editing audit trail on picklists, POs and lineitems (JUBs)
miker [Mon, 16 Mar 2009 15:27:46 +0000 (15:27 +0000)]
provide for a editing audit trail on picklists, POs and lineitems (JUBs)

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

15 years agoremoved the old, convoluted work_perm_org code. Now using the stored procedure for...
erickson [Mon, 16 Mar 2009 15:23:43 +0000 (15:23 +0000)]
removed the old, convoluted work_perm_org code.  Now using the stored procedure for calculating range of influence.  updated api name to hopefully be more clear

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

15 years agoFor usr_has_perm* functions: super_user has all permissions
scottmk [Mon, 16 Mar 2009 14:49:12 +0000 (14:49 +0000)]
For usr_has_perm* functions: super_user has all permissions
everywhere (even permissions that don't exist).

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

15 years agomore cleanup, plugged in get-selected operation, so back to original functionality
erickson [Mon, 16 Mar 2009 13:51:30 +0000 (13:51 +0000)]
more cleanup, plugged in get-selected operation, so back to original functionality

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

15 years agoAdd several functions for identifying the org units for which
scottmk [Mon, 16 Mar 2009 13:21:59 +0000 (13:21 +0000)]
Add several functions for identifying the org units for which
a given user has a given permission.

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

15 years agoIn oils_cstore.c:
scottmk [Mon, 16 Mar 2009 04:13:10 +0000 (04:13 +0000)]
In oils_cstore.c:

1. Restore the quoting of numeric literals where the associated
column is known to be textual.

2. Wherever possible: replace calls to jsonObjectToSimpleString()
with calls to jsonObjectGetString().  Each replacement saves a malloc
and a free.

3. At one spot in searchWHERE: detect and complain about input where
the class name is empty.

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

15 years agochanged cookie base to the more generic oilsBasePath
erickson [Mon, 16 Mar 2009 02:43:58 +0000 (02:43 +0000)]
changed cookie base to the more generic oilsBasePath

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

15 years agomove away from jubgrid in bib search for greater flexibility of display. stream...
erickson [Mon, 16 Mar 2009 02:43:21 +0000 (02:43 +0000)]
move away from jubgrid in bib search for greater flexibility of display.  stream LI's from search call for faster grid population.  swap form and results display for better screen use

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

15 years agoprovide option to return new lineitems and associated attrs from search call
erickson [Mon, 16 Mar 2009 02:41:09 +0000 (02:41 +0000)]
provide option to return new lineitems and associated attrs from search call

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

15 years agoMark tests as implemented, now that volume changes based on date work.
djfiander [Sun, 15 Mar 2009 03:17:17 +0000 (03:17 +0000)]
Mark tests as implemented, now that volume changes based on date work.

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

15 years agoAdd code to support setting volume number based on date rather
djfiander [Sun, 15 Mar 2009 03:16:17 +0000 (03:16 +0000)]
Add code to support setting volume number based on date rather
than number of issues per volume.

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

15 years agodue to some odd interactions with IE and dojo and the fact that opensrf.js is not...
erickson [Sat, 14 Mar 2009 21:28:04 +0000 (21:28 +0000)]
due to some odd interactions with IE and dojo and the fact that opensrf.js is not dojo-ized, load opensrf.js in the usual fashion first.  may want to do this for all non-dojo-ized js files, but so far, loading this file alone seems to fix ie6

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

15 years agofirst pass at MFHD test suite
djfiander [Sat, 14 Mar 2009 18:28:17 +0000 (18:28 +0000)]
first pass at MFHD test suite

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

15 years agominor cleanups to calculating volume numbers
djfiander [Sat, 14 Mar 2009 18:26:44 +0000 (18:26 +0000)]
minor cleanups to calculating volume numbers

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

15 years agoApply r12520 to version of MODS3.3 XSL stored in database - thanks miker
dbs [Sat, 14 Mar 2009 16:15:18 +0000 (16:15 +0000)]
Apply r12520 to version of MODS3.3 XSL stored in database - thanks miker

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

15 years agoMinor stylistic cleanups
djfiander [Sat, 14 Mar 2009 15:03:03 +0000 (15:03 +0000)]
Minor stylistic cleanups

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

15 years agoCheck in revision 1.27 of MARC21slim2MODS33.xsl (for 648 -> <subject> mapping)
dbs [Sat, 14 Mar 2009 14:54:42 +0000 (14:54 +0000)]
Check in revision 1.27 of MARC21slim2MODS33.xsl (for 648 -> <subject> mapping)
Note: 242$i change was not mentioned in MODS mapping revision notes; was this
    a local Evergreen customization?

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

15 years agoThese now validate with XML schema:
dbs [Sat, 14 Mar 2009 04:45:41 +0000 (04:45 +0000)]
These now validate with XML schema:
   xmllint --schema docbook-5.0/xsd/docbook.xsd --xinclude --noout index.xml
A slash at the end of the XLink namespace declaration is no good; whoops.
And the placeholder chapters wanted more content. Fine, throw in some index terms.

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

15 years agobump template version to reflect new join choice functionality
miker [Sat, 14 Mar 2009 04:41:28 +0000 (04:41 +0000)]
bump template version to reflect new join choice functionality

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

15 years agoFix two bugs that I introduced into the Google Preview support code
dbs [Sat, 14 Mar 2009 04:05:43 +0000 (04:05 +0000)]
Fix two bugs that I introduced into the Google Preview support code

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

15 years agoapply proper I18N-ification to new template builder functionality
miker [Sat, 14 Mar 2009 02:56:11 +0000 (02:56 +0000)]
apply proper I18N-ification to new template builder functionality

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

15 years agoPure whitespace, nothing more
dbs [Sat, 14 Mar 2009 02:31:48 +0000 (02:31 +0000)]
Pure whitespace, nothing more

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

15 years agoTypo: Anscestor -> Ancestor
dbs [Sat, 14 Mar 2009 02:21:50 +0000 (02:21 +0000)]
Typo: Anscestor -> Ancestor

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

15 years agoRemove generated POT files to avoid confusion
dbs [Sat, 14 Mar 2009 02:09:15 +0000 (02:09 +0000)]
Remove generated POT files to avoid confusion

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

15 years agoadding "Enable nullability selection" switch to allow complete control over join...
miker [Fri, 13 Mar 2009 21:40:01 +0000 (21:40 +0000)]
adding "Enable nullability selection" switch to allow complete control over join types in templates

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

15 years agoFurther tightened input validation. In all cases where we call
scottmk [Fri, 13 Mar 2009 12:27:40 +0000 (12:27 +0000)]
Further tightened input validation.  In all cases where we call
searchWHERE(), we now respond to a NULL return by propagating
the error up the calling chain (instead of generating
defective SQL).

Also: replaced one call to jsonObjectToSimpleString() with a
call to jsonObjectGetString(), avoiding a malloc and free.

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

15 years agoTightened the input validation in searchWHERE(). It now complains
scottmk [Fri, 13 Mar 2009 04:00:33 +0000 (04:00 +0000)]
Tightened the input validation in searchWHERE().  It now complains
about an empty JSON object or empty JSON array, instead of
constructing a doomed WHERE clause.

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

15 years agoteach parallel_pg_loader.pl to set the sequence on non-auto tables after loading...
miker [Fri, 13 Mar 2009 02:19:45 +0000 (02:19 +0000)]
teach parallel_pg_loader.pl to set the sequence on non-auto tables after loading data into them

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

15 years agoRedo MFHD, MFHD::Holding, and MFHD::Caption so that they are enhanced MARC::Record...
djfiander [Thu, 12 Mar 2009 20:11:29 +0000 (20:11 +0000)]
Redo MFHD, MFHD::Holding, and MFHD::Caption so that they are enhanced MARC::Record (for MFHD) and MARC::Field (for the other two) objects.

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

15 years agoIn searchWHERE(): plugged a security hole that invited SQL injection.
scottmk [Thu, 12 Mar 2009 18:35:05 +0000 (18:35 +0000)]
In searchWHERE(): plugged a security hole that invited SQL injection.

The use of a leading plus sign was originally intended to allow
references to boolean columns in a WHERE clause, without requiring
an explicit comparison to true or false.  E.g. "WHERE col" instead
of the more prosaic "WHERE col = TRUE".

However the old code worked by simply concatenating unsanitized
strings, leaving the door open for SQL injection.

The new code attempts to verify that the last string to be appended
looks like an SQL identifier, with no extra SQL syntax.

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

15 years agofix PATRON_BARCODE macro in bills_main_view template by sending fleshed usr
phasefx [Thu, 12 Mar 2009 16:53:29 +0000 (16:53 +0000)]
fix PATRON_BARCODE macro in bills_main_view template by sending fleshed usr

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

15 years agofix for Cancel in patron editor for existing patron
phasefx [Thu, 12 Mar 2009 16:18:34 +0000 (16:18 +0000)]
fix for Cancel in patron editor for existing patron

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

15 years agoEnable slimpac and dynamic OPAC to have localized org trees
dbs [Thu, 12 Mar 2009 15:57:37 +0000 (15:57 +0000)]
Enable slimpac and dynamic OPAC to have localized org trees

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

15 years agoEnable get_org_tree to return an org tree with a locale based on a locale code,
dbs [Thu, 12 Mar 2009 15:55:45 +0000 (15:55 +0000)]
Enable get_org_tree to return an org tree with a locale based on a locale code,
rather than a reference to a variable :)

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

15 years agoteach clark how to use a separate state_store db connection for recording report...
miker [Thu, 12 Mar 2009 01:13:42 +0000 (01:13 +0000)]
teach clark how to use a separate state_store db connection for recording report metadata

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

15 years agoWhen inserting a literal value into a SELECT statement:
scottmk [Wed, 11 Mar 2009 18:57:16 +0000 (18:57 +0000)]
When inserting a literal value into a SELECT statement:
whenever possible, leave the value unquoted if it is known to be
numeric, i.e. it is carried as a JSON_NUMBER, regardless of the
datatype as inferred from the associated column.  Reason: so that
the test_json_query utility (which currently doesn't look up the
datatypes of the columns) can generate the correct SQL most of
the time.  This approach should also be slightly faster, since it
bypasses some hashed lookups.

2. As part of the implementation of the change described above:
combine searchSimplePredicate() and searchWriteSimplePredicate()
into a single function, so that the JSON type is known when it's
time do decide whether to add quotes.  This change is benign because
the latter function was called only by the former anyway.

3. Several minor rearrangements and optimizations.

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

15 years agoforgot to decrement a counter for the chunk size.. since performance was pretty spiff...
phasefx [Wed, 11 Mar 2009 05:06:32 +0000 (05:06 +0000)]
forgot to decrement a counter for the chunk size.. since performance was pretty spiffy with the bug, this probably argues for using larger chunk sizes

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

15 years agoFast single item add from within marc editor. Good for home users, but all cataloger...
phasefx [Tue, 10 Mar 2009 16:46:11 +0000 (16:46 +0000)]
Fast single item add from within marc editor.  Good for home users, but all catalogers might like this too.  Only working in z39.50 and New MARC interfaces, though I want to enable it when editing
existing bib records (code placement issues with JSAN and remote vs chrome, bleh :)

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

15 years agootherwise this bad boy keeps growing and growing
phasefx [Tue, 10 Mar 2009 16:05:20 +0000 (16:05 +0000)]
otherwise this bad boy keeps growing and growing

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

15 years agouse oncommand rather onclick here for keyboard access. But interestingly, the timing...
phasefx [Tue, 10 Mar 2009 13:39:32 +0000 (13:39 +0000)]
use oncommand rather onclick here for keyboard access.  But interestingly, the timing for DOM updates appears to happen differently between oncommand and onclick, so the element's .checked (and @checked) get updated after the oncommand but before the onclick.  So I threw a negation in front of the .checked test

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

15 years agoFix Holdings Maintenance for >3-tier hierarchies. We force every parent org to be...
phasefx [Tue, 10 Mar 2009 04:52:52 +0000 (04:52 +0000)]
Fix Holdings Maintenance for >3-tier hierarchies.  We force every parent org to be rendered as open, but the most drastic change is the global function array that gets consumed by a setInterval.  This was to fix some timing issues that came from multiple setTimeout function chains; notably, the SL1 stock library was rendering twice if Show Volumes was selected.

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

15 years agoCorrect a typo noticed by Betty Ing - thanks!
dbs [Tue, 10 Mar 2009 02:31:06 +0000 (02:31 +0000)]
Correct a typo noticed by Betty Ing - thanks!

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

15 years agodefault to BKS if no valid record type can be gleaned from the fixed fields
miker [Tue, 10 Mar 2009 01:14:51 +0000 (01:14 +0000)]
default to BKS if no valid record type can be gleaned from the fixed fields

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

15 years agoAfter introducing 2-space indents for Google Book Preview stuff, standardize on tabs...
dbs [Mon, 9 Mar 2009 21:29:04 +0000 (21:29 +0000)]
After introducing 2-space indents for Google Book Preview stuff, standardize on tabs for rdetail.js. Sorry about that.

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

15 years agoMake the variable names for Google Book Preview code nice and unique. Part of #50
dbs [Mon, 9 Mar 2009 21:17:41 +0000 (21:17 +0000)]
Make the variable names for Google Book Preview code nice and unique. Part of #50

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

15 years agoevents-by-target method
miker [Mon, 9 Mar 2009 20:37:28 +0000 (20:37 +0000)]
events-by-target method

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

15 years agowe need to test in the other direction, descendency
miker [Sun, 8 Mar 2009 18:18:16 +0000 (18:18 +0000)]
we need to test in the other direction, descendency

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

15 years agoCraftsman needs class="tundra" for Dojo and init() has been moved into dojo.addOnLoad().
dbs [Sun, 8 Mar 2009 17:32:15 +0000 (17:32 +0000)]
Craftsman needs class="tundra" for Dojo and init() has been moved into dojo.addOnLoad().

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

15 years agoApply the fixes required by craftsman for integrated Google Book Preview. Part of #50
dbs [Sun, 8 Mar 2009 17:04:34 +0000 (17:04 +0000)]
Apply the fixes required by craftsman for integrated Google Book Preview. Part of #50

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

15 years agoStop trampling on added content "Excerpt" tab and create a new "Preview" tab (which...
dbs [Sun, 8 Mar 2009 15:10:28 +0000 (15:10 +0000)]
Stop trampling on added content "Excerpt" tab and create a new "Preview" tab (which also follows GBS branding requirements). Part of #50

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

15 years agoMake existing Google Book Search link functions and IDs less generic; part of #50
dbs [Sun, 8 Mar 2009 14:34:47 +0000 (14:34 +0000)]
Make existing Google Book Search link functions and IDs less generic; part of #50

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

15 years agoCherry-pick the "integrate Google Book Preview into record detail" feature based...
dbs [Sun, 8 Mar 2009 05:48:08 +0000 (05:48 +0000)]
Cherry-pick the "integrate Google Book Preview into record detail" feature based on a patch by Alexander O'Neill <aoneill@upei.ca> from http://vre.upei.ca/dev/node/422

I integrated the code directly into rdetail.js and edited it to remove unnecessary helper functions.

Tested with Firefox 3 (Linux), Internet Explorer 7, Google Chrome, and Safari 3.2.1 (Windows).

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

15 years agoUpgrade to MODS 3.3 for ingest and ModsParser.pm; use an explicit format for config...
dbs [Sat, 7 Mar 2009 21:34:43 +0000 (21:34 +0000)]
Upgrade to MODS 3.3 for ingest and ModsParser.pm; use an explicit format for config.metabib_field in seed data

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

15 years agoAdd MODS 3.3 as a supported format to SuperCat. Baby steps.
dbs [Sat, 7 Mar 2009 19:47:23 +0000 (19:47 +0000)]
Add MODS 3.3 as a supported format to SuperCat. Baby steps.

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

15 years agoholding pen for dojo functions that we need to backport from dojo trunk
miker [Sat, 7 Mar 2009 03:25:20 +0000 (03:25 +0000)]
holding pen for dojo functions that we need to backport from dojo trunk

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

15 years agoAdd support for returning records in Federal Geographic Data Committee (FGDC) Content...
dbs [Sat, 7 Mar 2009 01:57:15 +0000 (01:57 +0000)]
Add support for returning records in Federal Geographic Data Committee (FGDC) Content Standard for Digital Geospatial Metadata (CSDGM) format.

MARC21slim2FGDC.xsl was retrieved from http://oregonstate.edu/~reeset/marcedit/xslt/MARC21slim2FGDC.xsl and (as the comments in the stylesheet indicate) is available under a CC0 license.

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

15 years agooption to checkin items before marking them damaged. Need to make these prettier :)
phasefx [Fri, 6 Mar 2009 23:42:07 +0000 (23:42 +0000)]
option to checkin items before marking them damaged.  Need to make these prettier :)

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

15 years agonoop checkin if during checkout.. no more having to fight transits and hold captures
phasefx [Fri, 6 Mar 2009 22:18:29 +0000 (22:18 +0000)]
noop checkin if during checkout.. no more having to fight transits and hold captures

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

15 years agoshow checkin time in charge patron for damaged item prompt
phasefx [Fri, 6 Mar 2009 22:10:14 +0000 (22:10 +0000)]
show checkin time in charge patron for damaged item prompt

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

15 years agoflesh card on the user
erickson [Fri, 6 Mar 2009 21:53:31 +0000 (21:53 +0000)]
flesh card on the user

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