From cc4fc79f79c7984dcd46367a677cce664cb9d9b7 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Tue, 21 May 2013 12:21:33 -0400 Subject: [PATCH] Add Video Games as an item type This makes use of a genre facet / search index on "game". We're abusing the fi:format of mVG- to distinguish between video games and other m- selections. Our approach may change in the future. This is a little bit of a hack. Signed-off-by: Jeff Godin --- .../opac/parts/item_format_selector.tt2 | 1 + templates_tadlskin/opac/parts/js.tt2 | 32 ++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/templates_tadlskin/opac/parts/item_format_selector.tt2 b/templates_tadlskin/opac/parts/item_format_selector.tt2 index a1e67c3117..af7ff8a1ac 100644 --- a/templates_tadlskin/opac/parts/item_format_selector.tt2 +++ b/templates_tadlskin/opac/parts/item_format_selector.tt2 @@ -9,6 +9,7 @@ item_formats = [ { 'code' => 'g', 'value' => 'Video Recordings' }, { 'code' => 'j', 'value' => 'Music' }, { 'code' => 'm', 'value' => 'Streaming Video and Online Books' }, + { 'code' => 'mVG-', 'value' => 'Video Games' }, ]; %] diff --git a/templates_tadlskin/opac/parts/js.tt2 b/templates_tadlskin/opac/parts/js.tt2 index df50a03559..880a4c85a4 100644 --- a/templates_tadlskin/opac/parts/js.tt2 +++ b/templates_tadlskin/opac/parts/js.tt2 @@ -77,4 +77,36 @@ [% END; # use_autosuggest %] +[%- # Add an event handler to append a facet for subject|genre[game] if Video Games is chosen %] + + + [%- END; # want_dojo -%] -- 2.11.0