From b2f81c90c70e0bca610bdee236523a1712859254 Mon Sep 17 00:00:00 2001 From: Art Rhyno Date: Tue, 2 Oct 2012 16:31:24 -0400 Subject: [PATCH] Increase range of holds blocking and remove material type selector This blocks the "place hold" option in lists and also zaps my tinkering with the "Material Type" selector. --- .../src/templates_windsor/opac/myopac/lists.tt2 | 336 +++++++++++++++++++++ .../src/templates_windsor/opac/parts/anon_list.tt2 | 72 +++++ .../src/templates_windsor/opac/parts/config.tt2 | 38 ++- 3 files changed, 426 insertions(+), 20 deletions(-) create mode 100644 Open-ILS/src/templates_windsor/opac/myopac/lists.tt2 create mode 100644 Open-ILS/src/templates_windsor/opac/parts/anon_list.tt2 diff --git a/Open-ILS/src/templates_windsor/opac/myopac/lists.tt2 b/Open-ILS/src/templates_windsor/opac/myopac/lists.tt2 new file mode 100644 index 0000000000..49cd52ad9c --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/myopac/lists.tt2 @@ -0,0 +1,336 @@ +[% PROCESS "opac/parts/header.tt2"; + PROCESS "opac/parts/misc_util.tt2"; + WRAPPER "opac/parts/myopac/base.tt2"; + myopac_page = "lists" + limit = ctx.bookbags_limit; + offset = ctx.bookbags_offset; +%] +
+ + +
+

[% l('Create new list') %]

+ + + + + + + + + + +
+ + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + + + [% IF ctx.add_rec %] + + [% END %] + [% IF ctx.where_from %] + + [% END %] + + + + [% l('Sharing Help') %] + + +       + +
+ + + +
+
+ +

[% l("Your existing lists") %]

+ [% INCLUDE "opac/parts/anon_list.tt2" %] + [% IF ctx.bookbags.size %] +
+ [% l('Saved Lists') %] + [% IF limit < ctx.bookbag_count; %] + + [%- IF offset > 0 -%] + limit, offset => (offset - limit) + }) %]'>[% l('Previous') %] + [%- END; -%] + [%- IF (ctx.bookbag_count - offset) > limit; -%] + limit, offset => (offset + limit) + }) %]'>[% l('Next') %] + + [%- END; -%] + [% END %] +
+
+ +
+ [% FOR bbag IN ctx.bookbags %] +
+
+ [% baseurl = ctx.opac_root _ '/myopac/lists'; + IF bbag.id != CGI.param("bbid"); + url = mkurl(baseurl,{bbid => bbag.id},['edit_notes','sort']); + ltitle = l("Show items in list"); + ELSE; + url = mkurl(baseurl, {}, ['bbid', 'edit_notes', 'sort']); + ltitle = l("Hide items in list"); + END %] +

[% bbag.name | html %]

+ [% IF bbag.description %]
[% bbag.description | html %]
[% END %] +
+ [% IF ctx.add_rec %] +
+
+ + + + [% IF ctx.where_from %] + + [% END %] + +
+
+ [% END %] +
+
+ + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + [% IF bbag.pub != 't' %] + + + [% ELSE %] + + + [% END %] +
+
+
+
+ + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + +
+
+
+
+ + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + +
+
+ [% setting = 'opac.default_list'; %] +
+
+ + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + [% IF ctx.user_setting_map.$setting == bbag.id %] + + + [% ELSE %] + + + [% END %] +
+
+
+ [% IF bbag.pub == 't'; %] + [% l('RSS Feed') %] + [% END %] +
+ +
+
+ [% IF CGI.param("bbid") == bbag.id %] +
+
+
+ + [%- INCLUDE "opac/parts/preserve_params.tt2" params=['loc', 'query', 'qtype']; %] + [% INCLUDE "opac/parts/filtersort.tt2" + value=CGI.param('sort') mode='bookbag' %] + + +
+
+
+
+ + + + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + + + + + + + + + + +
+ + + + + [% l("Save changes to name or description?") %]
+ +
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + [% UNLESS bbag.items.size %] + + [% END %] + [% FOR item IN bbag.items; + rec_id = item.target_biblio_record_entry.id; + attrs = {marc_xml => ctx.bookbags_marc_xml.$rec_id}; + PROCESS get_marc_attrs args=attrs %] + + + + + + + [% IF CGI.param("edit_notes") == bbag.id %] + + [% ELSE %] + + [% END %] + + [% END %] + [% IF CGI.param("edit_notes") == bbag.id %] + + + + + [% END %] + +
+ + + + [% l('Title') %] + + [% l('Author(s)') %] + + [% l('Publication Date') %] + + [% l('Format') %] + + [% l('Notes') %] + [% IF CGI.param("edit_notes") != bbag.id %] + | [% l('Edit') %] + [% END %] + + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + +
+ [% l("This list contains no items.") %] +
+ + + [% attrs.title | html %] + + [% attrs.author | html %] + + [% attrs.pubdate | html %] + + [% attrs.format_label | html %] + + [% FOR note IN item.notes %] + + [% END %] + + + [% FOR note IN item.notes %] +
[% note.note | html %]
+ [% END %] +
+ [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + + +
+
+ [% END %] + [% END %] +
+ [% END %] + + +[% |l %]Sharing a Bookbag means that the contents +of the Bookbag will be visible to others. +To see the public view of a shared Bookbag, +click on the Bookbag's name in the Bookbag list.[% END %] + +
+[% END %] diff --git a/Open-ILS/src/templates_windsor/opac/parts/anon_list.tt2 b/Open-ILS/src/templates_windsor/opac/parts/anon_list.tt2 new file mode 100644 index 0000000000..9829e659d4 --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/parts/anon_list.tt2 @@ -0,0 +1,72 @@ + [% IF ctx.mylist.size %] +
+
+ + [% INCLUDE "opac/parts/filtersort.tt2" mode='bookbag' + id="anonsort" name="anonsort" value=CGI.param("anonsort") %] + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + +
+
+ +
+
+

[% l('Temporary List') %]

+ + + + + + + + + + [% FOR item IN ctx.mylist; + attrs = {marc_xml => ctx.mylist_marc_xml.$item}; + PROCESS get_marc_attrs args=attrs %] + + + + + + [% END %] + +
+ + [% l('Title') %][% l('Author(s)') %] + + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + +
+ + [% attrs.title | html %][% attrs.author | html %]
+

+
+
+ [% END %] diff --git a/Open-ILS/src/templates_windsor/opac/parts/config.tt2 b/Open-ILS/src/templates_windsor/opac/parts/config.tt2 index 799a175e11..737c9a81b1 100644 --- a/Open-ILS/src/templates_windsor/opac/parts/config.tt2 +++ b/Open-ILS/src/templates_windsor/opac/parts/config.tt2 @@ -6,25 +6,22 @@ ############################################################################## ############################################################################## -# Holds hiding -############################################################################## -# Hide the ability to place holds at all -ctx.holds_hide.enabled = 'true'; - -############################################################################## # Holds blocking ############################################################################## -# Block the ability to place holds if item is available -ctx.holds_block.enabled = 'true'; +# Prevent the "Place hold" link from being displayed if a copy is available. +# This is not perfect, given the umpteen different types of holds that are +# possible, but addresses the major use case for libraries that don't want +# to fetch copies from the shelves. +ctx.holds_block.enabled = 'false'; ############################################################################## # RefWorks configuration ############################################################################## # RefWorks is a Web-based citation manager -ctx.refworks.enabled = 'true'; +ctx.refworks.enabled = 'false'; # Base URL for RefWorks -ctx.refworks.url = 'http://ezproxy.uwindsor.ca/login?url=http://refworks.scholarsportal.info'; +ctx.refworks.url = 'http://www.refworks.com'; # Some sites have a hosted RefWorks instance at a different URL; # in addition, you might want to proxy access to RefWorks - for example: @@ -41,8 +38,8 @@ ctx.refworks.url = 'http://ezproxy.uwindsor.ca/login?url=http://refworks.scholar # this feature. ############################################################################## -openurl.enabled = 'true'; -openurl.baseurl = 'http://sfx.scholarsportal.info/windsor'; +openurl.enabled = 'false'; +openurl.baseurl = 'http://sfx.example.com/instance'; ############################################################################## # Google Analytics support @@ -50,13 +47,13 @@ openurl.baseurl = 'http://sfx.scholarsportal.info/windsor'; # You can enable Google Analytics support in Evergreen by entering a # valid Google Analytics code and changing 'false' to 'true' ############################################################################## -google_analytics.enabled = 'true'; -google_analytics.code = 'UA-2478632-6'; +google_analytics.enabled = 'false'; +google_analytics.code = 'UA-9999999-99'; ############################################################################## # Enable "Forgot your password?" prompt at login ############################################################################## -reset_password = 'false'; +reset_password = 'true'; ############################################################################## # Hide various options from user preferences that you might not want to expose @@ -64,15 +61,15 @@ reset_password = 'false'; # # Username changes can be disabled by the opac.lock_usernames OU setting. ############################################################################## -disable_password_change = 'true'; -disable_email_change = 'true'; +disable_password_change = 'false'; +disable_email_change = 'false'; ############################################################################## # Some libraries do not do notifications by phone; if not true, then this # hides the user preference for phone notifications as well as the phone # notification portion of the hold dialogue ############################################################################## -allow_phone_notifications = 'false'; +allow_phone_notifications = 'true'; ############################################################################## # Misc. UI Settings @@ -82,7 +79,7 @@ allow_phone_notifications = 'false'; # Setting this to 'true' shows full details by default but allows the link # to appear for 'Show Fewer Details'. The 'hide' option shows full details # and also suppresses the link from displaying at all. -show_more_details.default = 'hide'; +show_more_details.default = 'false'; ############################################################################## # Size of the jacket image to display on the record detail summary. @@ -108,6 +105,7 @@ facet.display = [ # adv_label is the (translated) label for the limiter # adv_attr is an array of possible limiters, the first one that has any # values will be used +# adv_filter is the same as adv_attr, but for search filter groups # adv_break will end the current row. If specified with a label/attr it # will do so *after* that limiter. # adv_special will drop in a special entry: @@ -147,7 +145,7 @@ search.default_qtypes = ['keyword','title','author']; search.basic_config = { type => 'attr', - group => ['item_form'], + group => ['mattype','item_type'], none_label => l("All Formats"), }; -- 2.11.0