Art Rhyno [Tue, 5 Mar 2013 20:15:10 +0000 (15:15 -0500)]
Use custom login form for including CAS option
Windsor has an option for CAS that needs to be included
for "holds" and other links where authentication has
not happened yet. This adds the custom form to the TPAC
layout.
Art Rhyno [Tue, 4 Dec 2012 02:15:33 +0000 (21:15 -0500)]
Add search filters for formats and clean up front page
This uses evergreen's filter group functionality to add
"Videos", "Maps", and "Music" for limiting searches from the
basic search screen. The link to the jspac is also finally
retired and a "Start Over" link is added.
INSERT INTO actor.search_query (label, query_text)
VALUES ('Maps', 'item_type(e,f)');
INSERT INTO actor.search_query (label, query_text)
VALUES ('Music', 'item_type(c,d,j)');
INSERT INTO actor.search_query (label, query_text)
VALUES ('Videos', 'item_type(g)');
INSERT INTO actor.search_filter_group_entry (grp, query, pos)
VALUES (
(SELECT id FROM actor.search_filter_group WHERE code = 'tpac_windsor'),
(SELECT id FROM actor.search_query WHERE label = 'Maps'),
1
);
INSERT INTO actor.search_filter_group_entry (grp, query, pos)
VALUES (
(SELECT id FROM actor.search_filter_group WHERE code = 'tpac_windsor'),
(SELECT id FROM actor.search_query WHERE label = 'Music'),
2
);
INSERT INTO actor.search_filter_group_entry (grp, query, pos)
VALUES (
(SELECT id FROM actor.search_filter_group WHERE code = 'tpac_windsor'),
(SELECT id FROM actor.search_query WHERE label = 'Videos'),
3
);
Dan Scott [Tue, 23 Oct 2012 17:07:27 +0000 (13:07 -0400)]
Enable contents fields to be displayed in Windsor TPAC
Windsor customized summary.tt2, which is what we changed to pull in the
contents fields in the main body of the record summary. So we need to
make the same change to the customized version.
Rick Scott [Wed, 6 Feb 2013 18:44:03 +0000 (13:44 -0500)]
Use relative URLs for 'old catalogue' link.
Change the 'old catalogue' links to use relative instead of absolute URLs.
This way, clicking them on a test site (eg algoma-test.concat.ca) keeps you
on that site instead of sending you to prod.
Signed-off-by: Rick Scott <rick@shadowspar.dyndns.org>
Rick Scott [Thu, 30 Aug 2012 20:13:25 +0000 (16:13 -0400)]
Clean up and re-style AlgomaU's OPAC templates.
In addition to adding the same graphical header so that the OPAC
more closely resembles the new Wishart website, this change
incorporates several smaller fixes:
* replace the AlgomaU "small university/big education" logo
with the small AlgomaU wordmark
* center the logo via CSS, not <center>
* fix vertical centering of the "your account log in" text --
needs margins only left & right, not on all 4 sides
* replace border on the user/pass input boxen so that they
are visible once again.
Signed-off-by: Rick Scott <rick@shadowspar.dyndns.org>
Robin Isard [Sun, 5 Aug 2012 01:16:45 +0000 (21:16 -0400)]
Fixed account login form.
Made a mistake with the login form (thought it was the home page for some reason. Restored it to it's glory, but removed help texts cause that's the fastest way to get the fix pushed.
Signed-off-by: Robin Isard <robin.isard@algomau.ca> Signed-off-by: Dan Scott <dscott@laurentian.ca>
Robin Isard [Sat, 4 Aug 2012 19:49:04 +0000 (15:49 -0400)]
Touch-up of Algoma tpac skin.
*changed the main logo on the homepate
*changed the header links to reflect new library website
*added footer links
*added config file based on lul's to enable OpenURL
Signed-off-by: Robin Isard <robin.isard@algomau.ca>
Art Rhyno [Mon, 13 Aug 2012 21:22:17 +0000 (17:22 -0400)]
TPAC: Make "Show more details" in results optional
Academic sites typically handle a lot of electronic content and want to
bring most details about entries, such as availability, status, and
URLs, on a results screen to the front.
This adds a 'show_more_details.default' option in 'config.tt2' that can
have the values 'true', 'false' and 'hide'. The 'true' and 'false'
values set the default for the button to more and less respectively, and
'hide' suppresses the button from showing at all.
Signed-off-by: Art Rhyno <art632000@yahoo.ca> Signed-off-by: Dan Scott <dscott@laurentian.ca>
Dan Scott [Thu, 30 Aug 2012 14:48:32 +0000 (10:48 -0400)]
Add an ou_host_name parameter for TPAC login forms
If set, and the incoming username does not already include an '@' symbol
(a very simple attempt to detect if we're already dealing with an email
address), then append '@' + the ou_host_name value to the username for
authentication purposes.
The rationale is that in a large consortium, you might want to enable
users to log in with short usernames (like 'fred'), but you also want to
avoid conflicts between short usernames at different organizational
units. Thus, create the users with the email equivalent of their
usernames, like 'fred@br1.example.com' and 'fred@br4.example.com', and
let the templates for the TPAC in br1 and br4 contain a hidden input
field to append the appropriate email hostname.
Truth be told, this is probably most appropriate for a large consortium
containing two or more academic institutions that hope to use LDAP
authentication rather than native authentication, and therefore have
LDAP CNs that map to email addresses of CN@hostname that can then be
mapped to actor.usr.usrname (and actor.usr.email, of course).
Dan Scott [Mon, 27 Aug 2012 22:38:51 +0000 (18:38 -0400)]
Very rough LDAP authentication enablement for OSUL
Currently requires that the user enters their email address at the
username prompt; we then just use the local-part of the email address to
authenticate against the LDAP server.
In the VirtualHost sections of Apache, we can use SetEnv to force the
physical_loc to match the org unit ID(s) specified in opensrf.xml; for
example:
Dan Scott [Mon, 30 May 2011 19:23:09 +0000 (15:23 -0400)]
Add "Move to storage" quick UI for bulk location moves
This simplistic interface accepts a barcode and immediately returns
some bibliographic information if the barcode was found - and the
item is moved immediately to the specified location. Goal was to
minimize clicking, this pretty much requires just scan scan scan.
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?)
Dan Scott [Thu, 10 Jan 2013 19:17:33 +0000 (14:17 -0500)]
Generic patron barcode generation (OpenSRF and DB)
Laurentian University needed the ability to generate barcodes as part of
its LDAP integration work, and the first generation (so to speak) of the
was specific to LU - including hard-coded prefixes and database
functions that include the "lu" name.
This commit makes the functionality much more generic and thus more
likely to be able to be adopted by other institutions. The principle
components are:
Database functions:
evergreen.actor_generate_barcode([prefix TEXT]) - returns a 14-digit
barcode from the evergreen.actor_barcode_seq sequence with a prefix of
'AUTOBC' or the specific prefix of up to 6 characters. If the
resulting barcode is all digits, then the 14th character will be a
mod10 check digit; otherwise the 14th digit will be '0'.
evergreen.actor_update_barcode(usr_id INTEGER[, prefix TEXT]) -
generates a new barcode for the specified user, with the optional
barcode prefix.
evergreen.mod10(barcode TEXT) - given a barcode, generates a mod10
check digit and returns the barcode with the appended check digit
OpenSRF method:
open-ils.actor.generate_patron_barcode([usr_id INT[, prefix TEXT]]) -
generates a new barcode for the patron
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
Dan Scott [Tue, 9 Oct 2012 16:21:10 +0000 (12:21 -0400)]
Remove extraneous spaces from bib email template
Various email servers refuse to send email that begins with blank lines,
so use TT's [%- and -%] to eat up whitespace. Also, remove the extra
linefeeds (_ "\n") as the linefeed is already generated by virtue of
being on its own line.