contrib/Conifer.git
13 years agoMerge branch 'master' of git.evergreen-ils.org:Evergreen into rel_2_3_mergery
Dan Scott [Wed, 1 Aug 2012 21:04:16 +0000 (17:04 -0400)]
Merge branch 'master' of git.evergreen-ils.org:Evergreen into rel_2_3_mergery

Conflicts:
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoFix place hold hiding logic
Thomas Berezansky [Wed, 1 Aug 2012 20:40:51 +0000 (16:40 -0400)]
Fix place hold hiding logic

Always show the place hold link for staff with permission to place holds
that won't fill currently.

Otherwise, only show the link if:
There are holdable copies
AND
We aren't blocking OR there are no available copies

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTPAC: Wrap "holdable copies" upgrade script
Dan Scott [Wed, 1 Aug 2012 20:54:32 +0000 (16:54 -0400)]
TPAC: Wrap "holdable copies" upgrade script

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoBlock "Place Hold" link in TPAC if item is available
Art Rhyno [Fri, 27 Jul 2012 15:39:14 +0000 (11:39 -0400)]
Block "Place Hold" link in TPAC if item is available

Suppress the display of the "Place Hold" link based on whether an item
is available. This is set as a preference in config.tt2. Some sites
may want the ability to place holds regardless of availability.

Signed-off-by: Art Rhyno <art632000@yahoo.ca>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTPac: Hide place hold links when not holdable
Thomas Berezansky [Wed, 18 Apr 2012 21:03:05 +0000 (17:03 -0400)]
TPac: Hide place hold links when not holdable

The only check done is on the holdable flags:
Copy
Status
Location

Hold rules themselves are not checked.

Note that place hold links are shown either way when you can have the
PLACE_UNFILLABLE_HOLD permission and are logged into the staff client.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoOperator Change Fun
Thomas Berezansky [Thu, 12 Apr 2012 14:23:12 +0000 (10:23 -0400)]
Operator Change Fun

Allow for temporary, staff, and permanent operator changes.

Temporary uses a temp authtoken for a few minute timeout.

Staff uses a normal staff login authtoken for a multi-hour timeout.

Permanent is a staff change that disregards the previous login instead of
allowing it to be recovered by using the menu item again.

I also fixed things up so later timeouts can re-use the previous duration
and fixed up some title bar issues:

1 - Login screen shows version again (needed a document in the title set)
2 - Menu windows don't forget the server name
3 - Menu windows keep the same number for their lifetime

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoRip modal_xulG_stack out, replace with openDialog
Thomas Berezansky [Wed, 11 Apr 2012 23:53:48 +0000 (19:53 -0400)]
Rip modal_xulG_stack out, replace with openDialog

This converts the util/window.js open function to a wrapper around the
openDialog function and passes xulG in that way, as well as teaches
global_util.js to look for it having been passed in via the arguments
parameter on window.

The non-modal "push it into place" is still done as well, in case some
window isn't using global_util.js and needs xulG.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoStamping upgrade script for JEDI with Copies
Mike Rylander [Wed, 1 Aug 2012 19:17:59 +0000 (15:17 -0400)]
Stamping upgrade script for JEDI with Copies

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoEDI ORDER template, now with copies
Bill Erickson [Fri, 27 Jul 2012 16:11:23 +0000 (12:11 -0400)]
EDI ORDER template, now with copies

Adds a new "copies" structure to the stock JEDI ORDER template.  Copies
are ultimately mapped into one or more GIR segments in the outbound EDI.
This commit only adds the change to the stock template (seed data).  It
also adds entries to the environment for the stock template and existing
template 23 via upgrade script (to expedite local template editing).

With the current template, GIR segments look like so:

GIR+001+8:LCO+TESTFUND2:LFN+SYS1-BR1:LLO+FIC ROW 456:LSM+Stacks:LSQ'
GIR+002+9:LCO+TESTFUND2:LFN+SYS1-BR1:LLO+FIC ROW 456:LSM+Stacks:LSQ'
GIR+003+10:LCO+TESTFUND2:LFN+SYS1-BR1:LLO+FIC ROW 456:LSM+Stacks:LSQ'
GIR+004+11:LCO+TESTFUND2:LFN+SYS1-BR1:LLO+FIC ROW 456:LSM+Stacks:LSQ'
GIR+005+12:LCO+TESTFUND2:LFN+SYS1-BR1:LLO+FIC ROW 456:LSM+Stacks:LSQ'
GIR+006+13:LCO+TESTFUND2:LFN+SYS1-BR2:LLO+FIC ROW 456:LSM+Young Adult:LSQ'
GIR+007+14:LCO+TESTFUND2:LFN+SYS1-BR2:LLO+FIC ROW 456:LSM+Young Adult:LSQ'
GIR+008+15:LCO+TESTFUND2:LFN+SYS1-BR2:LLO+FIC ROW 456:LSM+Young Adult:LSQ'

LQT / quantity is also supported.

The current implementation is meant to cover all possible fields so that
users can remove/alter items on a vendor by vendor basis as needed.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoAdded debug-only option to edi_pusher.pl
Bill Erickson [Fri, 27 Jul 2012 15:11:25 +0000 (11:11 -0400)]
Added debug-only option to edi_pusher.pl

Option causes the final EDI to be printed to STDOUT, but does not
populate any data in the DB nor does it FTP the file to the vendor.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoFeed JEDI to the EDI translator to get EDI, and vice versa.
Lebbeous Fogle-Weekley [Thu, 26 Jul 2012 14:17:06 +0000 (10:17 -0400)]
Feed JEDI to the EDI translator to get EDI, and vice versa.

Run this script as the opensrf user.

INPUT_IS_EDI=1 perl test_edi_translator.pl < blob.edi

-or-

perl test_edi_translator.pl < blob.jedi

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoWhitespace fixes in Collections.pm
Lebbeous Fogle-Weekley [Wed, 1 Aug 2012 18:51:39 +0000 (14:51 -0400)]
Whitespace fixes in Collections.pm

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoCollections user balance API / batch file output
Bill Erickson [Thu, 12 Apr 2012 15:44:44 +0000 (11:44 -0400)]
Collections user balance API / batch file output

New API open-ils.collections.user_balance_summary.generate,
which generates summary information on patron balance owed for all open
transactions that occurred at the requested location.  Optional flag
supports including per-xact summary information as well.  The summary
information is written to an XML file and placed in a protected, shared
web directory for download after the file has been generated.

During creation, the output file will have a .tmp suffix, allowing
clients to poll for file completion.

Includes a new opensrf.xml app_setting for open-ils.collections to
specifiy the batch file directory as well as a sample Apache config in
eg_vhost.conf

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoFieldmapper toXML repairs and additions
Bill Erickson [Thu, 12 Apr 2012 15:07:10 +0000 (11:07 -0400)]
Fieldmapper toXML repairs and additions

1. Be sure the append the current element to the document in progress

2. Use the class hint instead of the fully qualified class_name (e.g.
Fielmapper::actor::user) to avoid XML errors:

namespace error : Failed to parse QName 'Fieldmapper:'

3. Added support for additional options including "no_virt" which tells
the routine to skip all virtual fields and "skip_fields" to support
leaving specific fields out of the output.  The main use case for skip
fields is au => ['passwd'], but other examples might include large
fields like bre => ['marc'].

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoTeach Fieldmapper how to turn FM objects into simple XML
Mike Rylander [Tue, 10 Apr 2012 20:28:40 +0000 (16:28 -0400)]
Teach Fieldmapper how to turn FM objects into simple XML

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoStamping upgrade script 0732
Lebbeous Fogle-Weekley [Wed, 1 Aug 2012 18:30:07 +0000 (14:30 -0400)]
Stamping upgrade script 0732

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoACQ unified search submit on enter (for real)
Bill Erickson [Wed, 1 Aug 2012 17:54:00 +0000 (13:54 -0400)]
ACQ unified search submit on enter (for real)

This replaces the old-style submit on enter handler which was based
attaching key handlers to the dijit domNode, which does not work for
filtering selects (i.e. more complicated dijits) w/ the dijit-sanctioned
dojo.connect(..., 'onkeyup', ...), which works regardless.  This also
covers more form input elements which were overlooked with the original
submit-on-enter code.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoACQ invoice formatting improvements
Bill Erickson [Thu, 12 Jul 2012 19:26:50 +0000 (15:26 -0400)]
ACQ invoice formatting improvements

Prevent # invoiced and # paid inputs from wrapping.  Also, make the text
boxes a little smaller to reduce horizontal space requirements.  It's
still possible to enter any value, but only the 4 least significant
digits are visible.  Since it's not common to invoice 10k+ copies of the
same item, this seems like a fair trade off.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoACQ invoice inline lineitem search and add
Bill Erickson [Tue, 10 Jul 2012 15:07:53 +0000 (11:07 -0400)]
ACQ invoice inline lineitem search and add

The Invoice UI is how composed of two tabs, the main invoice tab and a new
Search tab.  The search tab consists of a subset of the Acquisitions unified
search interface.  The goal is to allow users to search for lineitems to
invoice.  Search results may be added directly to the growing invoice.  A
number of small usability features are included.

Features
~~~~~~~~

    * Option (default) to limit searches to invoiceable items.
        ** These are lineitems that are not cancelled, have at least one
           invoiceable copy, linked to a PO whose provider matches that of the
           current invoice, and are not already linked to the current invoice.

    * Search defaults to last-run search (on workstation).
    * New Lineitem Detail filter options
    * Sort searches by lineitem number (default) and title.
    * There is a new Expected Cost field which includes both the total invoiced
      cost plus the anticipated cost of lineitems as they are added.
    * New Price per Copy field
    * Lineitem count field
    * Show / Hide Invoice details button.  Details are displayed by default, but
      hidden when the user enters the search tab.  From there it remains hidden
      until manually shown (or a new invoice is opened).
    * A new "Save & Clear" button which saves the current invoice then clears
      the invoice display to create a new invoice.
    * Provider, shipper, and receiver fields are auto-populated from the
      first-added invoice data (when not already set).
    * Totals are now read-only, since they are derived from existing data (and
      are informational only).

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoEditPane setFieldValue method
Bill Erickson [Fri, 20 Jul 2012 17:53:35 +0000 (13:53 -0400)]
EditPane setFieldValue method

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoEditPane.js API repairs
Bill Erickson [Fri, 20 Jul 2012 15:15:25 +0000 (11:15 -0400)]
EditPane.js API repairs

By default, don't throw an exception from EditPane.getFieldValue when a
field is required and the value is null.  Otherwise, external code is
unable to use this method for inspecting the pane.  Make checkRequired
an additional method flag.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoACQ lineitem summary moved to real DB view
Bill Erickson [Fri, 20 Jul 2012 14:25:39 +0000 (10:25 -0400)]
ACQ lineitem summary moved to real DB view

This is allows us to create new IDL views based on the lineitem summary.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoAdd make rules to install custom templates
Dan Scott [Wed, 1 Aug 2012 17:10:34 +0000 (13:10 -0400)]
Add make rules to install custom templates

As long as the custom template directories are named
Open-ILS/src/templates_* then they'll automatically get installed via
"make install".

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTPAC: Add config options to hide phone / user prefs
Dan Scott [Wed, 1 Aug 2012 15:12:36 +0000 (11:12 -0400)]
TPAC: Add config options to hide phone / user prefs

Libraries using centralized authentication (such as LDAP via
open-ils.auth_proxy) will not want to allow users to change their
passwords or email addresses.

In addition, many libraries do not want to deal with phone
notifications.

This commit adds preferences to config.tt2 that hide these options from
the user.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/templates/opac/myopac/prefs.tt2
Open-ILS/src/templates/opac/myopac/prefs_notify.tt2
Open-ILS/src/templates/opac/parts/place_hold.tt2

13 years agoTPAC: Add config options to hide phone / user prefs
Dan Scott [Wed, 1 Aug 2012 15:12:36 +0000 (11:12 -0400)]
TPAC: Add config options to hide phone / user prefs

Libraries using centralized authentication (such as LDAP via
open-ils.auth_proxy) will not want to allow users to change their
passwords or email addresses.

In addition, many libraries do not want to deal with phone
notifications.

This commit adds preferences to config.tt2 that hide these options from
the user.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoEDI Invoicing
Lebbeous Fogle-Weekley [Tue, 17 Jul 2012 21:59:23 +0000 (17:59 -0400)]
EDI Invoicing

Includes patch for edi4r to make invoice parsing possible.

Also adds OpenILS::Utils::LooseEDI module.  This doesn't try to do the
validation and other helpful things that Business::EDI aims to do, but it
does let us get up and running relatively quickly at getting data from EDI
invoices if we know what we're looking for.

[Amended to add bits about tax, plus release note blurb.]

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoBlock "Place Hold" link in TPAC if item is available
Art Rhyno [Fri, 27 Jul 2012 15:39:14 +0000 (11:39 -0400)]
Block "Place Hold" link in TPAC if item is available

Suppress the display of the "Place Hold" link based on whether an item
is available. This is set as a preference in config.tt2. Some sites
may want the ability to place holds regardless of availability.

Signed-off-by: Art Rhyno <art632000@yahoo.ca>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/templates/opac/parts/config.tt2

13 years agoCarry "Place Hold" blockage over into conifer templates
Dan Scott [Tue, 31 Jul 2012 21:49:48 +0000 (17:49 -0400)]
Carry "Place Hold" blockage over into conifer templates

As we had previously cloned the record/summary template to munge the
display, we needed to carry over the same "block hold on available"
logic as Art added to core.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoVandelay Copy Overlay support
Bill Erickson [Fri, 27 Jul 2012 20:11:54 +0000 (16:11 -0400)]
Vandelay Copy Overlay support

Vandelay Item Attributes (Cataloging -> MARC Import /
Export -> Import Item Attribute Definitions) contains
a new field called "Overlay Match ID".  The presence of data
in this field extracted from an import-item copy indicates
to the Vandelay import process that a copy overlay is requested
instead of new copy creation.  The value for the field is the
copy id for bib record queues and the ACQ lineitem_detail ID for
Acquisitions Queues.  For either type of queue, however, overlay
occurs against a real copy (asset.copy).  In the ACQ queue case,
we use the lineitem_detail ID because this is the data ACQ
providers and sub-systems will have access to.

When a match point ID value is a set and a matching copy is found,
the values extracted from the inbound copy data are used to replace
values on the existing found copy, including the call-number label.
Any fields on the inbound copy that are empty are ignored.

One use case for this feature are shelf-ready items produced by a
3rd-party (e.g. ACQ provider) and delivered to the library via MARC
file for upload.  The file might contain improved MARC bibliographic
data as well as real barcodes (i.e. not temporary ACQ generated
barcodes) for the copies already purchased through the vendor.

Permission
~~~~~~~~~

This adds a new permission called IMPORT_OVERLAY_COPY which is
required to perform the copy overlay step.

Regardless of permission, it is not possible to overlay values on
a copy unless the imported bib record links (creates/overlays/merges)
to/with the owning bib record for the copy to be overlaid.  This is
both for security and removal of a potent foot-gun.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoVandelay Copy Overlay support
Bill Erickson [Fri, 27 Jul 2012 20:11:54 +0000 (16:11 -0400)]
Vandelay Copy Overlay support

Vandelay Item Attributes (Cataloging -> MARC Import /
Export -> Import Item Attribute Definitions) contains
a new field called "Overlay Match ID".  The presence of data
in this field extracted from an import-item copy indicates
to the Vandelay import process that a copy overlay is requested
instead of new copy creation.  The value for the field is the
copy id for bib record queues and the ACQ lineitem_detail ID for
Acquisitions Queues.  For either type of queue, however, overlay
occurs against a real copy (asset.copy).  In the ACQ queue case,
we use the lineitem_detail ID because this is the data ACQ
providers and sub-systems will have access to.

When a match point ID value is a set and a matching copy is found,
the values extracted from the inbound copy data are used to replace
values on the existing found copy, including the call-number label.
Any fields on the inbound copy that are empty are ignored.

One use case for this feature are shelf-ready items produced by a
3rd-party (e.g. ACQ provider) and delivered to the library via MARC
file for upload.  The file might contain improved MARC bibliographic
data as well as real barcodes (i.e. not temporary ACQ generated
barcodes) for the copies already purchased through the vendor.

Permission
~~~~~~~~~

This adds a new permission called IMPORT_OVERLAY_COPY which is
required to perform the copy overlay step.

Regardless of permission, it is not possible to overlay values on
a copy unless the imported bib record links (creates/overlays/merges)
to/with the owning bib record for the copy to be overlaid.  This is
both for security and removal of a potent foot-gun.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoBreak 2.2 upgrade script into 3 separate parts
Dan Scott [Fri, 27 Jul 2012 17:46:30 +0000 (13:46 -0400)]
Break 2.2 upgrade script into 3 separate parts

Shift some of the more time-intensive reingests to the end,
and avoid running a partial upgrade if the first big transaction fails.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql

13 years agoFix OU logic for determining hold availability
Dan Scott [Fri, 27 Jul 2012 16:34:33 +0000 (12:34 -0400)]
Fix OU logic for determining hold availability

We'll use search_ou directly - not necessarily the best option, but
better than using the search_ou value as a depth. Not sure if preferred
library or physical loc would be better here;
E_TOO_MANY_LOCATION_OPTIONS!

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoBlock "Place Hold" link in TPAC if item is available
Art Rhyno [Fri, 27 Jul 2012 15:39:14 +0000 (11:39 -0400)]
Block "Place Hold" link in TPAC if item is available

Suppress the display of the "Place Hold" link based on whether an item
is available. This is set as a preference in config.tt2. Some sites
may want the ability to place holds regardless of availability.

Signed-off-by: Art Rhyno <art632000@yahoo.ca>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTPAC record display: MFHD issues, hide awards
Dan Scott [Thu, 26 Jul 2012 15:20:10 +0000 (11:20 -0400)]
TPAC record display: MFHD issues, hide awards

We never find any awards or reviews in records, so hide it all the time.
Additionally, move MFHD issue display above copy display in record
details, if we have any MFHD issues; then hide MFHD from the "extras".

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoSuppress Bib Call Number index in TPAC
Dan Scott [Thu, 26 Jul 2012 19:16:11 +0000 (15:16 -0400)]
Suppress Bib Call Number index in TPAC

The Bib Call Number index is a non-standard and therefore non-functional
index for most libraries (unless they happen to have placed all of their
call numbers in a given MARC field in the corresponding bib records).
Suppress its visibility in the Conifer TPAC.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoAdd and use a patron search that overrides opt-in invisibility
Dan Scott [Wed, 14 Sep 2011 20:02:14 +0000 (16:02 -0400)]
Add and use a patron search that overrides opt-in invisibility

Something like this is required for API calls that need to operate
against a number of libraries in a given instance that are using opt-in;
otherwise, attempts to search for users will fail and you may end up
creating near-duplicates etc.

The implementation adds an
open-ils.actor.search.patron.advanced.opt_in_override method to
open-ils.actor, which, if invoked, checks to see if the caller has the
OPT_IN_OVERRIDE permission. If so, then the crazy_search ignores the
normal opt-in limits and searches all pertinent users in the database.

As a global permission, OPT_IN_OVERRIDE is a blunt instrument. Others
might want to put together a more refined version that uses OU depths to
define boundaries.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm

13 years agoAdd "search by journal title" quick search option
Dan Scott [Mon, 30 May 2011 18:18:22 +0000 (14:18 -0400)]
Add "search by journal title" quick search option

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTreat a Polish l as an ASCII l in full-text search
Dan Scott [Mon, 30 May 2011 03:36:44 +0000 (23:36 -0400)]
Treat a Polish l as an ASCII l in full-text search

Is this code path even hit these days? Would have expected
naco_normalize to be poking around here if that was the case...

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoPrevent renew if item already is targeted for a hold
Dan Scott [Tue, 14 Feb 2012 15:46:24 +0000 (10:46 -0500)]
Prevent renew if item already is targeted for a hold

From http://biblio.laurentian.ca/tickets/conifer/wiki/devHolds
apparently I missed this in moving our customizations from SVN (or it
was only ever local?)

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoOSBO: Accidental copying of the "DVD VIDEO" rule
Dan Scott [Fri, 23 Sep 2011 20:40:38 +0000 (16:40 -0400)]
OSBO: Accidental copying of the "DVD VIDEO" rule

Meant to remove the "DVD" from the "DVD VIDEO" part of the circ modifier
the second time around.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoOSBO really did want $0.25/hour for all reserve periods
Dan Scott [Tue, 20 Sep 2011 17:01:32 +0000 (13:01 -0400)]
OSBO really did want $0.25/hour for all reserve periods

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoAdd Reserve circ rules for Boreal
Dan Scott [Thu, 1 Sep 2011 19:01:39 +0000 (15:01 -0400)]
Add Reserve circ rules for Boreal

Still need some clarification on how these rules are to be applied, but
better to get the durations working right now and fix up the fines
later.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoAdd LEDL MISC to the list of allowed circ modifiers for Leddy
Dan Scott [Mon, 15 Aug 2011 17:10:17 +0000 (13:10 -0400)]
Add LEDL MISC to the list of allowed circ modifiers for Leddy

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoAdd ILL-BOOK to the list of allowed circ modifiers for Leddy
Dan Scott [Mon, 15 Aug 2011 17:08:55 +0000 (13:08 -0400)]
Add ILL-BOOK to the list of allowed circ modifiers for Leddy

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoAdd LEDL MISC 1 year 0 renew rule
Dan Scott [Thu, 11 Aug 2011 13:42:30 +0000 (09:42 -0400)]
Add LEDL MISC 1 year 0 renew rule

This had been working in production, but apparently never got
checked into git?

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoAdd Boreal circulation rules
Dan Scott [Thu, 21 Jul 2011 19:08:53 +0000 (15:08 -0400)]
Add Boreal circulation rules

Still need to add their limits based on user profile & item type

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoAdd ILL-BOOK circ rule for OWA
Dan Scott [Mon, 20 Jun 2011 17:54:23 +0000 (13:54 -0400)]
Add ILL-BOOK circ rule for OWA

Per ticket #683:

Loan period of 3 weeks
NO RENEWALS

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTrack Conifer JavaScript circulation rules
Dan Scott [Mon, 30 May 2011 02:18:04 +0000 (22:18 -0400)]
Track Conifer JavaScript circulation rules

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoRobin's interface for managing library hours
Dan Scott [Tue, 1 May 2012 14:50:17 +0000 (10:50 -0400)]
Robin's interface for managing library hours

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoRemove display of patron birthdate, internet access level, etc
Dan Scott [Mon, 30 May 2011 17:14:29 +0000 (13:14 -0400)]
Remove display of patron birthdate, internet access level, etc

These fields in the staff client are either not applicable or
potentially privacy-invasive or both. If the data somehow does
get into the system, we don't want it to show up on the staff
client anyway - and we don't want annoying warnings about unset
dates of birth, etc.

This is the hardcore way of doing things, we really should make
it yet another configuration setting. Oh well.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/xul/staff_client/server/patron/summary_overlay.xul

13 years agoStamping Encumbrance-only rollover DB upgrade
Bill Erickson [Tue, 31 Jul 2012 13:14:40 +0000 (09:14 -0400)]
Stamping Encumbrance-only rollover DB upgrade

Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoFinishing off rollover-without-money feature
Lebbeous Fogle-Weekley [Fri, 27 Jul 2012 17:32:12 +0000 (13:32 -0400)]
Finishing off rollover-without-money feature

- Minor correction to make stock schema match upgrade script match.
- OU setting determining whether to offer rollover-without-money in UI
   and allow it in DB.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoAllow propagation of encumbrances without funds
Mike Rylander [Thu, 26 Jul 2012 13:35:01 +0000 (09:35 -0400)]
Allow propagation of encumbrances without funds

Some libraries must return all unspent money to some funding agencies at the
end of the year.  To support this, we give the year-end close-out operation
the ability to dump the money from rollover-enabled funds into the void. Funds
are still created for the next year, and encumbrances are moved to theses
analogous funds.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
13 years agoSupport SIP payment type 02 - credit card
Jeff Godin [Tue, 19 Jun 2012 16:31:03 +0000 (12:31 -0400)]
Support SIP payment type 02 - credit card

Record SIP payments with payment type 02 as credit_card_payment in
Evergreen.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
13 years agoFix LP 829630, Show in Catalogue not working on Bills screen
Steven Chan [Sun, 8 Jul 2012 18:20:11 +0000 (11:20 -0700)]
Fix LP 829630, Show in Catalogue not working on Bills screen

The page is looking for a messagecatalog XUL element with id
'catStrings', but is not finding it, and so we add it to the relevant
XUL file.

It's odd why it is omitted, because a browse through the repository
doesn't show any changes that would explain the error.

Signed-off-by: James Fournie <jfournie@sitka.bclibraries.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
13 years agoUse bash and the postgres built-in array_agg
Mike Rylander [Thu, 14 Jun 2012 11:34:12 +0000 (07:34 -0400)]
Use bash and the postgres built-in array_agg

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoWrap upgrade script for TPAC advanced search VR formats
Dan Scott [Mon, 30 Jul 2012 20:24:45 +0000 (16:24 -0400)]
Wrap upgrade script for TPAC advanced search VR formats

Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTPac: Advanced Search Config
Thomas Berezansky [Fri, 13 Apr 2012 21:24:43 +0000 (17:24 -0400)]
TPac: Advanced Search Config

Move advanced search limiter config to config.tt2.

This should, in theory, make it much easier to customize the fields shown
for searching in TPac.

Also adds the VR Format Coded Value Maps so that we can populate that
limiter with them.

And removes dojo.css from being loaded - That includes reset stuff that
messes with our CSS but doesn't seem to give us any benefit.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoTPAC: Address remaining colors and background URL image
Dan Scott [Mon, 30 Jul 2012 03:19:21 +0000 (23:19 -0400)]
TPAC: Address remaining colors and background URL image

Thanks to Thomas Berezansky for finding these remaining hard-coded CSS
colors, and raising a question about one of the background images that
turns out to not currently being in use.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoTPAC CSS: catch new colours added to master recently
Dan Scott [Sun, 29 Jul 2012 04:31:14 +0000 (00:31 -0400)]
TPAC CSS: catch new colours added to master recently

A few new colours were added to the CSS with recent features; roll them
into the CSS templates for good measure.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoTPAC CSS: Whitespace consistency
Dan Scott [Sun, 29 Jul 2012 04:19:30 +0000 (00:19 -0400)]
TPAC CSS: Whitespace consistency

Resolve the spaces and tabs quandary.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoTPAC CSS: Remove unused classes and associated images
Dan Scott [Sun, 29 Jul 2012 04:15:07 +0000 (00:15 -0400)]
TPAC CSS: Remove unused classes and associated images

Combing through the remaining url() usages in the TPAC CSS, it seems
that most of the usages are unreferenced in the actual TPAC. Therefore,
delete the cruft.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoTemplatize TPAC styles
Dan Scott [Thu, 26 Jul 2012 21:39:06 +0000 (17:39 -0400)]
Templatize TPAC styles

Begin by gathering the colors together in one consistent file, such that
skinning for the purposes of color only needs to touch one small file.
Also, it should make things easier for designers to reduce drastically
the number of colors that are actually used in the design.

Also, enable TT to handle the CSS files in Apache configuration.

Also, convert the login background image into a simple gradient.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
13 years agoNew XUL user perm editor
Thomas Berezansky [Sun, 29 Jul 2012 16:49:20 +0000 (12:49 -0400)]
New XUL user perm editor

The xhtml one doesn't work in newer xulrunners.

Also, as the same issue breaks the pre-2.0 user editor I have removed it
outright, including taking a stab at removing old language strings.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
13 years agoMerge branch 'master' of git.evergreen-ils.org:Evergreen
Mike Rylander [Mon, 30 Jul 2012 19:08:47 +0000 (15:08 -0400)]
Merge branch 'master' of git.evergreen-ils.org:Evergreen

Appologies for the merge commit noise...

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoStamping KPAC upgrade script
Mike Rylander [Mon, 30 Jul 2012 19:06:22 +0000 (15:06 -0400)]
Stamping KPAC upgrade script

Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : repair skin2 logout link
Bill Erickson [Mon, 9 Jul 2012 14:22:51 +0000 (10:22 -0400)]
kpac : repair skin2 logout link

Replace non-existent logout image with logout text, including username,
similar to skin1.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : repair Top link
Bill Erickson [Tue, 26 Jun 2012 19:36:50 +0000 (15:36 -0400)]
kpac : repair Top link

Template Toolkit string.replace() does an inline replacement instead of
returning a value.  Use .replace() correctly when building the Top URL,
or the result will be an empty href, which direct to "here" in
Firefox/Chrome, but directs to "here, minus the page name in the URL"
(e.g. http://domain/eg/kpac/) in IE, which ultimately directs the user
to /eg/opac/login (since it doesn't match any configured paths).

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : better wording for the Save It dialog
Bill Erickson [Thu, 21 Jun 2012 13:07:18 +0000 (09:07 -0400)]
kpac : better wording for the Save It dialog

This removes any mention of selecting a location, which is not needed
for saving items to lists.  It also adds some language about saving
items to existing lists.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : typo Successfull => Successful
Bill Erickson [Fri, 15 Jun 2012 16:18:31 +0000 (12:18 -0400)]
kpac : typo Successfull => Successful

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : hrefs for back/top links in category page, avoid dupe cgi param
Bill Erickson [Wed, 6 Jun 2012 18:12:17 +0000 (14:12 -0400)]
kpac : hrefs for back/top links in category page, avoid dupe cgi param

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : hrefs for back/top links in category page
Bill Erickson [Wed, 6 Jun 2012 17:55:21 +0000 (13:55 -0400)]
kpac : hrefs for back/top links in category page

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : honor no-search propagation (nosprop) param on homesearch (alt skin)
Bill Erickson [Wed, 6 Jun 2012 17:28:01 +0000 (13:28 -0400)]
kpac : honor no-search propagation (nosprop) param on homesearch (alt skin)

When performing category-based searches, do not propagate the searches
into the search box on the home page, similar to the results page search
box.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agotpac/kpac : search_filter_group cache repairs
Bill Erickson [Tue, 29 May 2012 16:05:16 +0000 (12:05 -0400)]
tpac/kpac : search_filter_group cache repairs

Repaired bug in search_filter_group which lead to empty results
delivered when data was in the cache.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : hide font-size image/link pending design
Bill Erickson [Tue, 29 May 2012 14:01:25 +0000 (10:01 -0400)]
kpac : hide font-size image/link pending design

Will need to get some input on how this action should behave.  My
personal pref. is to use the browser's page zoom behavior, since it's
the only way to truly resize everything in the page.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : hide font-size image/link pending design
Bill Erickson [Tue, 29 May 2012 13:48:45 +0000 (09:48 -0400)]
kpac : hide font-size image/link pending design

Will need to get some input on how this action should behave.  My
personal pref. is to use the browser's page zoom behavior, since it's
the only way to truly resize everything in the page.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : honor no-search propagation (nosprop) param on homesearch
Bill Erickson [Tue, 29 May 2012 13:43:07 +0000 (09:43 -0400)]
kpac : honor no-search propagation (nosprop) param on homesearch

When performing category-based searches, do not propagate the searches
into the search box on the home page, similar to the results page search
box.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agotpac : sanity check record ID in detail page path
Bill Erickson [Tue, 29 May 2012 13:39:58 +0000 (09:39 -0400)]
tpac : sanity check record ID in detail page path

If the ID is malformed (or nonexistent), return a BAD_REQUEST status and
exit early to avoid any unnecessary DB lookups and error logging.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : added content
Bill Erickson [Fri, 25 May 2012 13:47:02 +0000 (09:47 -0400)]
kpac : added content

Integrate the added content support from tpac and clean up the old added
content stub code.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : show name of logged in user w/ logout link
Bill Erickson [Wed, 23 May 2012 17:35:55 +0000 (13:35 -0400)]
kpac : show name of logged in user w/ logout link

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : make hold-placement terminology more clear
Bill Erickson [Wed, 23 May 2012 17:08:10 +0000 (13:08 -0400)]
kpac : make hold-placement terminology more clear

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : repair logged-in temp list saving
Bill Erickson [Wed, 23 May 2012 17:03:44 +0000 (13:03 -0400)]
kpac : repair logged-in temp list saving

Allow users to save items to temp lists when logged in.  Also make the
language in the drop-down more clear regarding temporary list saving.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : clear more params from breadcrumb links
Bill Erickson [Wed, 23 May 2012 15:51:04 +0000 (11:51 -0400)]
kpac : clear more params from breadcrumb links

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : global filter config option
Bill Erickson [Wed, 23 May 2012 15:44:28 +0000 (11:44 -0400)]
kpac : global filter config option

Allows for configuration of an always-on global search filter.  All
searches, regardless of origin, in the kpac will be appended by this
filter when configured.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : integrate stock search filter group
Bill Erickson [Wed, 23 May 2012 15:21:37 +0000 (11:21 -0400)]
kpac : integrate stock search filter group

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoKPAC : sample search filter group main search selector
Bill Erickson [Wed, 23 May 2012 15:20:00 +0000 (11:20 -0400)]
KPAC : sample search filter group main search selector

Provide a default search filter group for the kid's opac main search
selector.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoTPAC filter group selector supports class / pos
Bill Erickson [Wed, 23 May 2012 15:10:41 +0000 (11:10 -0400)]
TPAC filter group selector supports class / pos

* Sort filter group entry options by position
* Allow caller to pass in a class attribute for the filter group selector

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : config file cleanup; vim modeline
Bill Erickson [Tue, 22 May 2012 14:51:34 +0000 (10:51 -0400)]
kpac : config file cleanup; vim modeline

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : wire up print page link w/ JS
Bill Erickson [Tue, 22 May 2012 13:43:26 +0000 (09:43 -0400)]
kpac : wire up print page link w/ JS

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac: clear some form params from breadcrumb links
Bill Erickson [Tue, 22 May 2012 13:43:07 +0000 (09:43 -0400)]
kpac: clear some form params from breadcrumb links

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : initial added content cleanup
Bill Erickson [Fri, 18 May 2012 12:31:05 +0000 (08:31 -0400)]
kpac : initial added content cleanup

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac; set record detail link in breadcrumbs
Bill Erickson [Thu, 17 May 2012 13:35:16 +0000 (09:35 -0400)]
kpac; set record detail link in breadcrumbs

On the getit page, the record title link in the breadcrumb now returns
to the main record page.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac2 : update print/textsize image links
Bill Erickson [Mon, 23 Apr 2012 20:17:35 +0000 (16:17 -0400)]
kpac2 : update print/textsize image links

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : remove action CGI after getit results
Bill Erickson [Mon, 23 Apr 2012 19:44:02 +0000 (15:44 -0400)]
kpac : remove action CGI after getit results

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac : repair hold retrieval code
Bill Erickson [Mon, 23 Apr 2012 19:43:46 +0000 (15:43 -0400)]
kpac : repair hold retrieval code

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac2 : rename some images to avoid collision w/ kpac
Bill Erickson [Tue, 17 Apr 2012 14:40:42 +0000 (10:40 -0400)]
kpac2 : rename some images to avoid collision w/ kpac

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac2 : results page
Bill Erickson [Mon, 16 Apr 2012 21:03:44 +0000 (17:03 -0400)]
kpac2 : results page

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac2 : home search; header; images
Bill Erickson [Mon, 16 Apr 2012 19:52:31 +0000 (15:52 -0400)]
kpac2 : home search; header; images

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agokpac2 : some initial files
Bill Erickson [Mon, 16 Apr 2012 15:54:31 +0000 (11:54 -0400)]
kpac2 : some initial files

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
13 years agoCreated examples web dir
Bill Erickson [Mon, 16 Apr 2012 15:51:36 +0000 (11:51 -0400)]
Created examples web dir

Created Open-ILS/examples/web for storing example templates and sample
template overrides and their associated resources (js, css, images).

Moved the sample flattener_test.tt2 into the new web/templates dir.

Added a simple README exaplaining the purpose of the directory.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>