evergreen/equinox.git
14 years agoYou can now have multiple rows in your MARC Expert Search template-toolkit-opac-rel_2_1
Lebbeous Fogle-Weekley [Thu, 28 Jul 2011 15:10:47 +0000 (11:10 -0400)]
You can now have multiple rows in your MARC Expert Search

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoMARC expert search working
Lebbeous Fogle-Weekley [Wed, 27 Jul 2011 22:21:31 +0000 (18:21 -0400)]
MARC expert search working

This just needs the JS row cloning so you can search on multiple terms
at a time.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoIt's ugly and hacky, but numeric search fully works (item barcode included)
Lebbeous Fogle-Weekley [Wed, 27 Jul 2011 21:31:30 +0000 (17:31 -0400)]
It's ugly and hacky, but numeric search fully works (item barcode included)

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoNumeric search mostly works (except for item barcode)
Lebbeous Fogle-Weekley [Wed, 27 Jul 2011 17:05:02 +0000 (13:05 -0400)]
Numeric search mostly works (except for item barcode)

Expert search is next

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoDon't show users who are already logged in a login form; that's confusing
Lebbeous Fogle-Weekley [Wed, 27 Jul 2011 13:59:19 +0000 (09:59 -0400)]
Don't show users who are already logged in a login form; that's confusing

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoConfirm CC payments with another page load, not confirm() popup
Lebbeous Fogle-Weekley [Tue, 26 Jul 2011 22:01:52 +0000 (18:01 -0400)]
Confirm CC payments with another page load, not confirm() popup

This does something gross. Your CC card number is rendered in a hidden
field on the last confirmation page.  At least it's all SSL only.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoShow most up-to-date email address in update-email interface
Lebbeous Fogle-Weekley [Tue, 26 Jul 2011 21:31:32 +0000 (17:31 -0400)]
Show most up-to-date email address in update-email interface

plus cosmetic change to payment mini table

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoCC payment improvements:
Lebbeous Fogle-Weekley [Tue, 26 Jul 2011 21:05:48 +0000 (17:05 -0400)]
CC payment improvements:

Link from receipt after payment back to account summary.

Error reporting

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoBetter to tell the user something rather than nothing
Lebbeous Fogle-Weekley [Tue, 26 Jul 2011 19:52:59 +0000 (15:52 -0400)]
Better to tell the user something rather than nothing

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoRemove ? icon by "Security Code" in payment form
Lebbeous Fogle-Weekley [Tue, 26 Jul 2011 19:01:53 +0000 (15:01 -0400)]
Remove ? icon by "Security Code" in payment form

It can go back in later if we want to make it actually do something.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoGive the patrons the opportunity to see and change their e-mail address...
Lebbeous Fogle-Weekley [Tue, 26 Jul 2011 18:46:18 +0000 (14:46 -0400)]
Give the patrons the opportunity to see and change their e-mail address...

... before they submit fine payments.  This way they have a better
chance of getting a receipt e-mailed to them.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoPersistent logins are more of a "stay logged in" feature than a "remember me"
Lebbeous Fogle-Weekley [Tue, 26 Jul 2011 15:04:24 +0000 (11:04 -0400)]
Persistent logins are more of a "stay logged in" feature than a "remember me"

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoLinks to return to payment history from receipt print/email pages
Lebbeous Fogle-Weekley [Tue, 26 Jul 2011 14:49:34 +0000 (10:49 -0400)]
Links to return to payment history from receipt print/email pages

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoSelect-all checkboxes for fine payment
Lebbeous Fogle-Weekley [Mon, 25 Jul 2011 21:55:58 +0000 (17:55 -0400)]
Select-all checkboxes for fine payment

In the process, had to change the checkbox/cgi param name of the misc
fees to xact_misc and tell the middle layer to lump xact together with
xact_misc.  Should test carefully.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoEmpty case for payment history
Lebbeous Fogle-Weekley [Mon, 25 Jul 2011 21:06:47 +0000 (17:06 -0400)]
Empty case for payment history

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoYAOUS to limit OPAC payment history display to configured interval
Lebbeous Fogle-Weekley [Mon, 25 Jul 2011 20:21:48 +0000 (16:21 -0400)]
YAOUS to limit OPAC payment history display to configured interval

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoMerge branch 'rel_2_1' of git.evergreen-ils.org:Evergreen into template-toolkit-opac...
Bill Erickson [Wed, 27 Jul 2011 20:44:49 +0000 (16:44 -0400)]
Merge branch 'rel_2_1' of git.evergreen-ils.org:Evergreen into template-toolkit-opac-rel_2_1

14 years agomove query params into the constants to better support current opac and TT-opac
Jason Etheridge [Tue, 26 Jul 2011 21:37:57 +0000 (17:37 -0400)]
move query params into the constants to better support current opac and TT-opac

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoLoad embedded OPAC via SSL by default, w/ override option
Jason Etheridge [Tue, 26 Jul 2011 14:33:13 +0000 (10:33 -0400)]
Load embedded OPAC via SSL by default, w/ override option

* url_prefix option for using/forcing SSL.
* oils.secure_opac preference for doing such with the embedded OPAC

--------

To use the preference, you may want to include something like this in server/skin/custom.js:

// Force non-SSL for the OPAC
try {
    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
    var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces['nsIPrefBranch']);
    if (!prefs.prefHasUserValue('oils.secure_opac')) {
        prefs.setBoolPref('oils.secure_opac',false);
    }
} catch(E) {
    alert('Error in custom.js trying to set oils.secure_opac preference to false: ' + E + '\n');
}

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoMetarecord list on results page
Bill Erickson [Wed, 27 Jul 2011 18:40:46 +0000 (14:40 -0400)]
Metarecord list on results page

Added a new ?metarecord=<mrid> param to opac/results page to list
records associated with a given metarecord ID.  This is used as page 2
of the (pending) metarecord search process as well 'show in catalog'
for embedded staff client metarecord holds.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agominor I18N text wrapping
Bill Erickson [Wed, 27 Jul 2011 15:05:41 +0000 (11:05 -0400)]
minor I18N text wrapping

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoUbuntu Lucid needs MARC::Record from CPAN
Dan Scott [Tue, 26 Jul 2011 00:09:18 +0000 (20:09 -0400)]
Ubuntu Lucid needs MARC::Record from CPAN

As Ubuntu Lucid ships with MARC::Record 2.0.0, and Serials requires
2.0.1 or greater, we must install MARC::Record from CPAN or face failing
open-ils.search requests.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
14 years agoLP#813151 Copy Location sort order in Advanced Search
Michael Peters [Thu, 21 Jul 2011 15:21:34 +0000 (11:21 -0400)]
LP#813151 Copy Location sort order in Advanced Search

This patch addresses the unintuitive copy location sort order in
Advanced Search when searching at a specific branch. Thanks to
Dan Wells for the code suggestion which changes the order in the listbox
to alphabetical sort by asset.copy_location.name.
Tested, and confirmed working in 2.0.4 test and production environments.

Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
14 years agoNOVELIST/CHILIFRESH include statements missing a hash which was causing (none) errors.
James Fournie [Fri, 10 Jun 2011 18:27:47 +0000 (11:27 -0700)]
NOVELIST/CHILIFRESH include statements missing a hash which was causing (none) errors.

Signed-off-by: James Fournie <jfournie@sitka.bclibraries.ca>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
14 years agoadjust legacy xul column definitions for dates/timestamps to ensure correct sorting
Jason Etheridge [Wed, 20 Jul 2011 05:29:43 +0000 (01:29 -0400)]
adjust legacy xul column definitions for dates/timestamps to ensure correct  sorting

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoremove circ.util.std_map_row_to_columns; default to the one provided by list.js
Jason Etheridge [Mon, 18 Jul 2011 21:17:30 +0000 (17:17 -0400)]
remove circ.util.std_map_row_to_columns; default to the one provided by list.js

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
14 years agoBetter sort support for xul lists (see launchpad bug ://bugs.launchpad.net/evergreen...
Jason Etheridge [Mon, 18 Jul 2011 19:27:22 +0000 (15:27 -0400)]
Better sort support for xul lists (see launchpad bug ://bugs.launchpad.net/evergreen/+bug/751745)
Example of supplying a sort_value function for item Create Date, and automatic sort_value for fm_columns-generated timestamp and money column definitions.
Need to provide more such functions, and eventually move everything over to fm_columns

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
14 years agoManage parts holds warning (and removal) w/ CSS
Bill Erickson [Mon, 25 Jul 2011 15:38:17 +0000 (11:38 -0400)]
Manage parts holds warning (and removal) w/ CSS

Use add/removeCSSClass to apply and remove holds parts selector
warning instead of inline style.border management, which (when using
'auto') causes problems in IE.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agosort hold Queue Position column correctly in xul lists
Jason Etheridge [Wed, 20 Jul 2011 05:49:07 +0000 (01:49 -0400)]
sort hold Queue Position column correctly in xul lists

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoComment out line that breaks holds placement in IE
Thomas Berezansky [Mon, 25 Jul 2011 14:14:55 +0000 (10:14 -0400)]
Comment out line that breaks holds placement in IE

auto is not a valid option for a border, and IE faults on it.
Other browsers seem to ignore it, as far as I can tell.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoMore better call number browser, uses supercat directly, doesn't use mvr
Lebbeous Fogle-Weekley [Fri, 22 Jul 2011 17:04:37 +0000 (13:04 -0400)]
More better call number browser, uses supercat directly, doesn't use mvr
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoAlso was missing the author search link
Lebbeous Fogle-Weekley [Fri, 22 Jul 2011 14:28:04 +0000 (10:28 -0400)]
Also was missing the author search link

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoCall number shelf browser: fix prev/next links, wrong argument order in...
Lebbeous Fogle-Weekley [Fri, 22 Jul 2011 14:22:08 +0000 (10:22 -0400)]
Call number shelf browser: fix prev/next links, wrong argument order in...

... call to open-ils.search.callnumber.browse (count and offset mixed
up)

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoShelf browser!
Lebbeous Fogle-Weekley [Fri, 22 Jul 2011 13:59:57 +0000 (09:59 -0400)]
Shelf browser!

Needs improvements: can't find jacket images by UPC yet

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoCleaned up some file merge funkiness
Bill Erickson [Fri, 22 Jul 2011 16:50:53 +0000 (12:50 -0400)]
Cleaned up some file merge funkiness

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoMore power to present friendly messages when hold placement fails
Lebbeous Fogle-Weekley [Wed, 20 Jul 2011 22:02:47 +0000 (18:02 -0400)]
More power to present friendly messages when hold placement fails

This area could use a little cleanup, elegance, but it can give end
users better messages for a diverse set of reasons why hold placement
failed.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoCleaned up some back-port merge mixups
Bill Erickson [Wed, 20 Jul 2011 18:50:03 +0000 (14:50 -0400)]
Cleaned up some back-port merge mixups

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoFix the wrongish way we were doing staff-assisted holds
Lebbeous Fogle-Weekley [Mon, 18 Jul 2011 22:49:01 +0000 (18:49 -0400)]
Fix the wrongish way we were doing staff-assisted holds

Now the patron that a staff user wants to place a hold for is passed
around as a cookie

It's a little unclear when is best from a workflow perspective to kill
said cookie... hrmmm....

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoAlert or block holds on available copy at same pickup lib
Lebbeous Fogle-Weekley [Mon, 18 Jul 2011 17:40:17 +0000 (13:40 -0400)]
Alert or block holds on available copy at same pickup lib

This improves upon the earlier commit that attempted to deal with what
to do when either of these org_unit settings are true:

     circ.holds.hold_has_copy_at.alert
     circ.holds.hold_has_copy_at.block

The correct use of these settings are that when /any/ type of hold is
attempted at a given pickup lib, if either of those settings are true in
the context of said pickup lib, and there are copies in an available
status at the pickup lib already, inform the user before placing the
hold.  In the alert case, the user can place the hold anyway with
another click.  In the block case, there's an end on't.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoAllow overriding some hold events when permissions apply
Lebbeous Fogle-Weekley [Fri, 15 Jul 2011 22:27:30 +0000 (18:27 -0400)]
Allow overriding some hold events when permissions apply

Works fine now for HOLD_EXISTS and HOLD_ITEM_CHECKOUT_OUT, at least

But this was also supposed to work with these org settings:
 circ.holds.hold_has_copy_at.alert
 circ.holds.hold_has_copy_at.block
which are supposed to define behavior when the user wants to place a
(copy- or volume-level only?) hold on an item at a branch that's not his
home_ou but his home_ou has an available copy.

Anyway, the open-ils.circ.title_hold.is_possible method is supposed to
return information about whether local copies are available to support
such a function, but it doesn't seem to do so.  I think.  Will revisit.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoPreset correct default pickup lib for staff placing holds for patrons
Lebbeous Fogle-Weekley [Wed, 13 Jul 2011 16:24:38 +0000 (12:24 -0400)]
Preset correct default pickup lib for staff placing holds for patrons

Also, for hold placement, only enable org unit selection where
can_have_vols is true.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agocopy and volume level holds for staff
Lebbeous Fogle-Weekley [Tue, 12 Jul 2011 21:24:16 +0000 (17:24 -0400)]
copy and volume level holds for staff

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoWhen coming from staff client patron interface,
Lebbeous Fogle-Weekley [Mon, 11 Jul 2011 22:17:13 +0000 (18:17 -0400)]
When coming from staff client patron interface,

pre-populate the patron barcode text box by which staff places a hold
for a patron.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoStaff can now place title-type holds for patrons
Lebbeous Fogle-Weekley [Mon, 11 Jul 2011 21:43:51 +0000 (17:43 -0400)]
Staff can now place title-type holds for patrons

Still need to put in copy, volume and issuance (and parts? maybe later) -type
holds.  Still need to deal with overridable events.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
14 years agoWrapped up Novelist integration support
Bill Erickson [Fri, 8 Jul 2011 19:13:25 +0000 (15:13 -0400)]
Wrapped up Novelist integration support

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoLoad Chilifresh content after page load
Bill Erickson [Fri, 8 Jul 2011 18:17:38 +0000 (14:17 -0400)]
Load Chilifresh content after page load

Execute the CF JS after other inline JS has run.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoRemoved duplicate 'extras' tab
Bill Erickson [Fri, 8 Jul 2011 18:17:16 +0000 (14:17 -0400)]
Removed duplicate 'extras' tab

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoAvoid mixed content warnings on embedded content cafe
Bill Erickson [Fri, 8 Jul 2011 16:32:14 +0000 (12:32 -0400)]
Avoid mixed content warnings on embedded content cafe

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoSupport for embedded Content Cafe on details page
Bill Erickson [Fri, 8 Jul 2011 16:22:24 +0000 (12:22 -0400)]
Support for embedded Content Cafe on details page

Added support for two new Apache environment variables
OILS_CONTENT_CAFE_USER and OILS_CONTENT_CAFE_PASS.  If set, a Content
Cafe pane will be loaded (via iframe) directly into a new "Summaries &
More" section on the record details page of the TT-pac, when the
section is expanded.  In addition to the C. Cafe content, we also show
the 520 bib summary in the same pane.

"Summaries & More" is only visible if either there is 520 data or there
is a suitable identifier (isbn or upc) and the content cafe
configuration is in place.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoMeaningful title elements for record details and search results
Dan Scott [Mon, 27 Jun 2011 18:18:39 +0000 (14:18 -0400)]
Meaningful title elements for record details and search results

Rather than the generic "Record Details" and "Search Results", populate
the <title> element with the actual title of the record or the search
query, respectively.

We punt on advanced search results for now, until we can parse the array
into something usable.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoShowing hold/copy summary in details page
Bill Erickson [Fri, 10 Jun 2011 20:16:21 +0000 (16:16 -0400)]
Showing hold/copy summary in details page

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoChilifresh reviews for results and record pages
Bill Erickson [Fri, 10 Jun 2011 18:21:50 +0000 (14:21 -0400)]
Chilifresh reviews for results and record pages

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoPass ENV down to template environment
Bill Erickson [Fri, 10 Jun 2011 18:21:13 +0000 (14:21 -0400)]
Pass ENV down to template environment

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoAdded Chilifresh secure url to sample apache config
Bill Erickson [Fri, 10 Jun 2011 18:20:50 +0000 (14:20 -0400)]
Added Chilifresh secure url to sample apache config

14 years agoadded notification of successful settings update to patron prefs page
Bill Erickson [Thu, 9 Jun 2011 20:51:20 +0000 (16:51 -0400)]
added notification of successful settings update to patron prefs page

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agohonor hit count user pref on results page
Bill Erickson [Thu, 9 Jun 2011 20:39:03 +0000 (16:39 -0400)]
honor hit count user pref on results page

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoInitial support for updating user prefs
Bill Erickson [Thu, 9 Jun 2011 20:04:43 +0000 (16:04 -0400)]
Initial support for updating user prefs

Starting with hits-per-page and enable/disable circ/hold history

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoadded read support for holds history setting
Bill Erickson [Thu, 9 Jun 2011 13:17:04 +0000 (09:17 -0400)]
added read support for holds history setting

14 years agoRead support for some user settings in setting page
Bill Erickson [Wed, 8 Jun 2011 21:25:31 +0000 (17:25 -0400)]
Read support for some user settings in setting page

Search hits per page and circ history opt-in displaying

TODO: add more settings
TODO: implement POST/write for updating values

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agoSelect all fines for CC payment by default
Bill Erickson [Wed, 8 Jun 2011 16:46:51 +0000 (12:46 -0400)]
Select all fines for CC payment by default

14 years agoFormat selector improvements
Bill Erickson [Sat, 28 May 2011 14:01:43 +0000 (10:01 -0400)]
Format selector improvements

Consistent with format icon fall-thru, try mattype first to locate the
list of formats for search selection.  If no mattype configuration is
found, fall through to item_type.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 years agocleanup:
senator [Tue, 17 May 2011 15:59:36 +0000 (11:59 -0400)]
cleanup:

1) fix broken INCLUDE statements in circ and hold histories

2) move an opac "part" to the parts directory

14 years agoempty cases for fines
senator [Tue, 17 May 2011 15:51:04 +0000 (11:51 -0400)]
empty cases for fines

14 years agoEmailing receipts working, some tweaks to payment history page
senator [Tue, 17 May 2011 15:31:08 +0000 (11:31 -0400)]
Emailing receipts working, some tweaks to payment history page

14 years agoReceipt printing also from payment history
senator [Mon, 16 May 2011 22:39:32 +0000 (18:39 -0400)]
Receipt printing also from payment history

14 years agoCredit card payments working with printable receipts
senator [Mon, 16 May 2011 18:14:57 +0000 (14:14 -0400)]
Credit card payments working with printable receipts

Could still use e-mailed receipts

14 years agobegin a sub to process payment
senator [Thu, 12 May 2011 20:53:54 +0000 (16:53 -0400)]
begin a sub to process payment

14 years agodoh, it's history not location.history
senator [Thu, 12 May 2011 14:19:35 +0000 (10:19 -0400)]
doh, it's history not location.history

14 years agoremove in-template fine-totaling: mod_perl code was already doing the same
senator [Thu, 12 May 2011 14:15:41 +0000 (10:15 -0400)]
remove in-template fine-totaling: mod_perl code was already doing the same

also:
    make that fine-totaling not use floating point math.
    don't provide payment form for <= 0 totals (we're not issuing refunds)
    last copyright date in footer always current year, not hardcoded

14 years agosupport paying all fines at once
senator [Wed, 11 May 2011 21:45:58 +0000 (17:45 -0400)]
support paying all fines at once

14 years agoPayment for mostly done. Still needs:
senator [Wed, 11 May 2011 20:02:12 +0000 (16:02 -0400)]
Payment for mostly done. Still needs:

1) to be able to handle the upper "Pay Fines" button that will mean "all
my fines"

2) to use fixed point fine totaling math and bail on total <= 0

3) ... anything else?

14 years agostart on cc payments
senator [Tue, 10 May 2011 21:54:59 +0000 (17:54 -0400)]
start on cc payments

14 years agoFix an ugly grey bar in the record detail page
senator [Tue, 10 May 2011 16:38:56 +0000 (12:38 -0400)]
Fix an ugly grey bar in the record detail page

I have no idea what caused this or why this css adjustments fixes the
problem

14 years agoBetter redirect from place_hold
senator [Tue, 10 May 2011 14:28:55 +0000 (10:28 -0400)]
Better redirect from place_hold

Before this, if you click place hold on something while not logged in,
you are redirected to the login page, which is good, and redirected
thence to the place hold page, which is good. But after actually
placing the hold you got redirected to the login page again, which is
not good.  Now you get sent back to the home page.

This may not be the ideal choice.  myopac/main may make more sense.
Also, there is still not any clear visual feedback for the user that
their hold placement succeeded.  That'll need to be addressed too.

14 years agoserial issue display and holds work
senator [Mon, 9 May 2011 19:01:41 +0000 (15:01 -0400)]
serial issue display and holds work

14 years agoremoved unnecessary kcls record summary template file override
berick [Wed, 4 May 2011 13:11:02 +0000 (09:11 -0400)]
removed unnecessary kcls record summary template file override

14 years agoClean up the rest of the non-entity ampersands in URLs
Dan Scott [Wed, 4 May 2011 02:32:34 +0000 (22:32 -0400)]
Clean up the rest of the non-entity ampersands in URLs

Continue the global change to entity ampersands in URLs
in the TT OPAC. This should be the last of it.

Signed-off-by: Dan Scott <dan@coffeecode.net>
14 years agoAvoid empty ID attribute in SELECT element
Dan Scott [Wed, 4 May 2011 00:51:44 +0000 (20:51 -0400)]
Avoid empty ID attribute in SELECT element

The current code appears to always generate an empty id="" attribute,
as the "id" variable never gets populated. For now, protect against
the empty ID attribute.

Signed-off-by: Dan Scott <dan@coffeecode.net>
14 years agoHTML compliance in result table
Dan Scott [Wed, 4 May 2011 00:42:16 +0000 (20:42 -0400)]
HTML compliance in result table

Convert & to &amp; in URLs, and change a SPAN element to a DIV
(because SPAN elements are not allowed to contain block-level
elements like DIV and TABLE).

Signed-off-by: Dan Scott <dan@coffeecode.net>
14 years agoLess aggressive URL encoding
Dan Scott [Tue, 3 May 2011 21:08:59 +0000 (17:08 -0400)]
Less aggressive URL encoding

We were double-encoding URIs, as the url and uri filters in
TT happily encode % - which is fine the first time around,
but after you've already escaped everything as %nn the propagator
was serving it back to url to be escaped again on the following
page request.

The right way to do this might be to unescape the incoming query
string, then pass it on to url for escaping again - but for now,
using the entity version of & is good enough to begin with.

Signed-off-by: Dan Scott <dan@coffeecode.net>
14 years agoEnsure ampersands in URLs are &amp; per HTML spec
Dan Scott [Tue, 3 May 2011 20:48:48 +0000 (16:48 -0400)]
Ensure ampersands in URLs are &amp; per HTML spec

The propagator variable defined in parts/header.tt2 holds the value
of the CGI query string - which, as it comes off the wire, is a simple
"&". The problem with this is perhaps best explained at
http://www.htmlhelp.com/tools/validator/problems.html#amp (and it
explains why "&copy_..." gets converted into a copyright symbol).

By passing the incoming query string through the TT url filter and
then replacing "&" with "&amp;" we avoid this problem at the source.
From there, we have to address the other locations in the code in
which we are manually appending GET variables.

Signed-off-by: Dan Scott <dan@coffeecode.net>
14 years agoFix unclosed quoted attribute in TT OPAC footer
Dan Scott [Tue, 3 May 2011 20:17:56 +0000 (16:17 -0400)]
Fix unclosed quoted attribute in TT OPAC footer

Forgot to place the closing attribute quote on the footer image.

Signed-off-by: Dan Scott <dan@coffeecode.net>
14 years agoDebrand the KCLS-specific hint about Library Elf in prefs settings
Dan Scott [Mon, 2 May 2011 13:18:35 +0000 (09:18 -0400)]
Debrand the KCLS-specific hint about Library Elf in prefs settings

Even though prefs settings are not yet exposed, we can turn the
KCLS-specific comment into a brandable "hints" section in prefs
settings.

Signed-off-by: Dan Scott <dan@coffeecode.net>
14 years agoMake refund policy for lost items a branding option
Dan Scott [Mon, 2 May 2011 12:33:54 +0000 (08:33 -0400)]
Make refund policy for lost items a branding option

Different sites will have different policies for refunds
on lost items (and might not even provide refunds for lost
items, for that matter), so break out that policy description
into its own template and provide a KCLS-specific version of
it.

Signed-off-by: Dan Scott <dbs@coffeecode.net>
14 years agoDebrand lowhits purchase request reference to KCLS
Dan Scott [Mon, 2 May 2011 12:23:34 +0000 (08:23 -0400)]
Debrand lowhits purchase request reference to KCLS

While we break this out to a separate template, perhaps we
could pull the library name from context instead of having
it hardcoded. It will probably depend on each instance, ergo
hardcoding the generic "your library" for now should be fine.

Signed-off-by: Dan Scott <dbs@coffeecode.net>
14 years agoPull call number from XML holdings, not MARC record
Dan Scott [Mon, 2 May 2011 02:06:50 +0000 (22:06 -0400)]
Pull call number from XML holdings, not MARC record

KCLS uses call numbers in the MARC record, but most other sites
use the call numbers from asset.call_number. For now, just display
the first returned call number; eventually the display will probably
need to be adjusted to handle call number / shelving location / library
/ status like the current AjaxPAC does.

Also note that ##URI## call numbers should be filtered out but are
not yet.

Signed-off-by: Dan Scott <dan@coffeecode.net>
14 years agoDebrand the login form
Dan Scott [Mon, 2 May 2011 01:25:38 +0000 (21:25 -0400)]
Debrand the login form

Breaking the password hint and login help sections out into
separate templates enables sites to adjust the hint and
login help links without touching the rest of the interface.

Signed-off-by: Dan Scott <dbs@coffeecode.net>
14 years agoDebrand the OPAC footer, home page, and topnav links
Dan Scott [Sun, 1 May 2011 23:02:27 +0000 (19:02 -0400)]
Debrand the OPAC footer, home page, and topnav links

Restore the copyright message and Powered by Evergreen logo
in the footer, and provide obvious example links instead of
the KCLS-specific links.

Also, replace the KCLS home page with the main Evergreen logo.

Signed-off-by: Dan Scott <dan@coffeecode.net>
14 years agoCreate a templates_kcls to hold KCLS branding of TT OPAC
Dan Scott [Sun, 1 May 2011 20:57:01 +0000 (16:57 -0400)]
Create a templates_kcls to hold KCLS branding of TT OPAC

The debranding of the TT OPAC begins with the top navigation.
  * Replace the KCLS logo with the Evergreen logo (even though
    white background on black doesn't look great, it's something)
  * Replace the KCLS specific top links with example links.
  * Split the logo and the links sections out into separate
    templates so that we can maximize commonality of the
    topnav.tt2 template.

For now, all files containing the string 'kcls' have been
copied into the templates_kcls directory. As we move through
the templates, we may refactor them in similar to how we just
refactored topnav.tt2.

Signed-off-by: Dan Scott <dbs@coffeecode.net>
14 years agoInternationalize more of the TT OPAC (records and results)
Dan Scott [Sun, 1 May 2011 17:05:06 +0000 (13:05 -0400)]
Internationalize more of the TT OPAC (records and results)

There are a number of hardcoded strings remaining in the TT OPAC.
This is just some of the lowhanging fruit; more work needs to be
done on the more complex cases involving HTML and placeholders.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: berick <berick@esilibrary.com>
14 years agoEnable unAPI support in TT OPAC
Dan Scott [Sun, 1 May 2011 15:55:11 +0000 (11:55 -0400)]
Enable unAPI support in TT OPAC

We have enough information available from the context and date
plugin to construct valid unAPI IDs - so let's do it and take
one more XXX off the table. (This is good for Zotero support!)

Sadly, Zotero doesn't seem to recognize more than one unAPI
ID on the search results page; in theory it should give the
user the ability to add all of the search results at once,
but in practice it doesn't display anything.

At the same time, we can remove the duplicate unAPI placeholders
and remove unnecessary <span> elements.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: berick <berick@esilibrary.com>
14 years agoContentCafe summary of avaible item content
erickson [Sun, 1 May 2011 15:29:39 +0000 (15:29 +0000)]
ContentCafe summary of avaible item content

Added "available_json" support for Content Cafe.  Returns and array of
available content for a given item, where the content type is mapped to
one of the Evergreen standard added content types, e.g. "summary",
"anotes", "reviews", ...

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

14 years agouse medium-sized jacket image on record details page
berick [Sun, 1 May 2011 00:28:30 +0000 (20:28 -0400)]
use medium-sized jacket image on record details page

14 years agoAdd excerpt AC and avoid rate-limiting for OpenLibrary content
dbs [Sun, 1 May 2011 00:28:23 +0000 (00:28 +0000)]
Add excerpt AC and avoid rate-limiting for OpenLibrary content

OpenLibrary added rate-limiting (100 cover requests per 5 minutes)
for cover images requested by ISBN; using the OpenLibrary book
API to pull the list of direct cover URLs avoids the rate limit.

Also, add excerpt added content calls for OpenLibrary.

Signed-off-by: Dan Scott <dbs@coffeecode.net>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@20354 dcc99617-32d9-48b4-a31d-7c20da2025e4

14 years agoforce empty value for the default 'Any' option to avoid using the option text as...
berick [Sat, 30 Apr 2011 21:28:02 +0000 (17:28 -0400)]
force empty value for the default 'Any' option to avoid using the option text as a valid value

14 years agogeneric filters in advanced search using SVF
senator [Wed, 27 Apr 2011 19:53:52 +0000 (15:53 -0400)]
generic filters in advanced search using SVF

incidentally, this reveals that my database has some *weird* languages
represented in it

14 years agoone more minor thing when showing fines on reservations
senator [Mon, 25 Apr 2011 20:15:51 +0000 (16:15 -0400)]
one more minor thing when showing fines on reservations

if there's not a record associated with the xact (like in the case of
a reservation against a non-cataloged resource), don't try to show a
link

14 years agofines on reservations no longer break myopac/main (my account)
senator [Mon, 25 Apr 2011 19:32:50 +0000 (15:32 -0400)]
fines on reservations no longer break myopac/main (my account)

14 years agoif no query is sent in the search, return the user to the referring page
berick [Thu, 21 Apr 2011 14:03:55 +0000 (10:03 -0400)]
if no query is sent in the search, return the user to the referring page

14 years agoshow No Subjects when, well, there are no subjects; cleanup
berick [Wed, 20 Apr 2011 21:50:29 +0000 (17:50 -0400)]
show No Subjects when, well, there are no subjects; cleanup