From: Jeff Godin Date: Tue, 21 May 2013 16:21:33 +0000 (-0400) Subject: Add Video Games as an item type X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cc4fc79f79c7984dcd46367a677cce664cb9d9b7;p=evergreen%2Ftadl.git 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 --- 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 -%]