Enh 6902: Novelist Select enhanced content

Adds support for EBSCO's NoveList Select service.  The library provides their user profile
and password, as well as where they'd like the content to appear on the OPAC page (options are:
in a tab (default), above holdings table, below holdings table, and under Save Record on the right)

Sponsored by Los Gatos Public Library and EBSCO

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Ian Walls 2011-09-21 16:44:41 -04:00 committed by Chris Cormack
parent fd052de5e1
commit e5ff85d556
3 changed files with 72 additions and 1 deletions

View file

@ -123,6 +123,29 @@ Enhanced Content:
- pref: BakerTaylorPassword
class: password
- .
Novelist Select:
-
- pref: NovelistSelectEnabled
choices:
yes: Add
no: "Don't add"
- Novelist Select content to the OPAC (requires that you have entered in a user profile and password, which can be seen in image links).
-
- Display Novelist Select content
- pref: NovelistSelectView
choices:
tab: in an OPAC tab
above: above the holdings table
below: below the holdings table
right: under the Save Record dropdown, on the right
- .
-
- Access Novelist Select using user profile
- pref: NovelistSelectProfile
- and password
- pref: NovelistSelectPassword
class: password
- .
Google:
-
- pref: GoogleJackets

View file

@ -28,6 +28,9 @@
[% IF OpenLibraryCovers %]
KOHA.OpenLibrary.GetCoverFromIsbn();
[% END %]
[% IF ( NovelistSelectProfile ) %]
novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
[% END %]
[% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
$(".tagbutton").click(KOHA.Tags.add_tag_button);[% END %][% END %][% END %]
@ -314,9 +317,18 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
[% IF ( BakerTaylorContentURL ) %]
<span class="results_summary">
<span class="label">Enhanced Content: </span>
[% IF ( OPACurlOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
[% IF ( OPACurlOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
</span>
[% END %]
[% IF ( NovelistSelectProfile ) %]
[% IF ( NovelistSelectView == 'above') %]
<span class="results_summary">
<span class="label">Novelist Select: </span>
<div data-novelist-novelistselect=[% normalized_isbn %]></div>
</span>
[% END %]
[% END %]
</div>
<div id="bibliodescriptions" class="toptabs">
@ -360,6 +372,12 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
( [% IF reviews.defined %][% reviews.size %][% ELSE %]0[% END %] )</a></li>
[% END %]
[% IF ( NovelistSelectProfile ) %]
[% IF ( NovelistSelectView == 'tab') %]
<li> <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#NovelistSelect">Novelist Select</a></li>
[% END %]
[% END %]
[% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonSimilarItems ) %][% IF ( AMAZON_SIMILAR_PRODUCTS ) %]<li><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#similars">Related</a></li>[% END %][% END %][% END %]
[% IF ( OPACFRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#editions">Editions</a></li>[% END %][% END %]
@ -591,6 +609,12 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
[% END %][% END %]
[% END %] <!-- /SyndeticsEnabled -->
[% IF ( NovelistSelectProfile ) %] [% IF ( NovelistSelectView == 'tab') %]
<div id="NovelistSelect">
<div data-novelist-novelistselect=[% normalized_isbn %]></div>
</div>
[% END %] [% END %]
[% IF ( subscriptionsnumber ) %]
<div id="subscriptions">
<h2>This is a serial</h2>
@ -802,6 +826,12 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
[% END %]
</div>
[% IF ( NovelistSelectProfile ) %][% IF ( NovelistSelectView == 'below' ) %]
<div id="NovelistSelect">
<h3>Novelist Select</h3>
<div data-novelist-novelistselect="[% normalized_isbn %]"></div>
</div>
[% END %][% END %]
</div>
</div>
@ -863,6 +893,13 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
<input type="submit" name="save" value="Go" /></form>
</div>
[% IF ( NovelistSelectProfile ) %] [% IF ( NovelistSelectView == 'right') %]
<div id="NovelistSelect">
<h4>Novelist Select</h4>
<div data-novelist-novelistselect=[% normalized_isbn %]></div>
</div>
[% END %] [% END %]
</div>
</div>
</div>
@ -883,4 +920,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
[% LibraryThingForLibrariesID %]&amp;accessibility=1">here</a>.</noscript>
[% END %]
[% END %]
[% IF ( NovelistSelectProfile ) %]
<script type="text/javascript" src="http://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
[% END %]
[% INCLUDE 'opac-bottom.inc' %]

View file

@ -494,6 +494,14 @@ $template->param(LibraryThingForLibrariesTabbedView =>
C4::Context->preference('LibraryThingForLibrariesTabbedView') );
}
# Novelist Select
if( C4::Context->preference('NovelistSelectEnabled') )
{
$template->param(NovelistSelectProfile => C4::Context->preference('NovelistSelectProfile') );
$template->param(NovelistSelectPassword => C4::Context->preference('NovelistSelectPassword') );
$template->param(NovelistSelectView => C4::Context->preference('NovelistSelectView') );
}
# Babelthèque
if ( C4::Context->preference("Babeltheque") ) {