From 84ea96a5f50e10270c22a05db115a15fc2051ddc Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Fri, 2 Sep 2022 14:12:36 -0400 Subject: [PATCH] Remove an unused template Remove Open-ILS/src/templates_cons/opac/parts/record/marcextras.tt2 becasue nothing references it. Signed-off-by: Jason Stephenson --- .../opac/parts/record/marcextras.tt2 | 104 --------------------- 1 file changed, 104 deletions(-) delete mode 100644 Open-ILS/src/templates_cons/opac/parts/record/marcextras.tt2 diff --git a/Open-ILS/src/templates_cons/opac/parts/record/marcextras.tt2 b/Open-ILS/src/templates_cons/opac/parts/record/marcextras.tt2 deleted file mode 100644 index f3af3a9c25..0000000000 --- a/Open-ILS/src/templates_cons/opac/parts/record/marcextras.tt2 +++ /dev/null @@ -1,104 +0,0 @@ -[% - arrow_right = '►'; - arrow_down = '▼'; -%] -
-
- [% - IF ctx.google_books_preview; - label = l('Google Preview'); - name = 'google_preview'; - href = 'javascript:GBDisplayPreview();'; - %] - -
- [% END %] - - [% # Hidden extras are not yet implemented. Some may require JS - - MACRO tab_is_active(tab) BLOCK; - exp_name = 'expand_' _ tab; - IF ctx.$exp_name OR ctx.expand_all; 1; END; - END; - - # Let's see if we should hide the content cafe / simple summary content - hide_summary = 1; - IF attrs.summaries.0; hide_summary = 0; ELSE; - # Expose content cafe if it's reasonable to do so. - # This approach only works when using embedded content cafe. - IF ENV.OILS_CONTENT_CAFE_USER; - ident = attrs.isbn_clean || attrs.upc; - IF ident; hide_summary = 0; END; - END; - END; - - # if no added content is available, hide the main tab. - # if any content is available, use the first tab as the default display tab. - default_ac = ''; - IF !tab_is_active('addedcontent'); - hide_ac = 1; - FOR type IN ctx.added_content.keys; - IF ctx.added_content.$type.status != '2'; # not available - hide_ac = 0; - END; - IF ctx.added_content.$type.status == '1'; - SET default_ac = type UNLESS default_ac; - END; - END; - END; - - extras = [ - # {name => 'summaryplus', label => l('Summaries & More'), hide => hide_summary}, - # {name => 'annotation', label => l('Annotation'), hide => 1}, - # {name => 'awards', label => l('Awards, Reviews, & Suggested Reads')}, - # {name => 'excerpt', label => l('Excerpt'), hide => 1}, - # {name => 'issues', label => l('Issues Held'), hide => !(ctx.have_holdings_to_show || ctx.have_mfhd_to_show)}, - # {name => 'preview', label => l('Preview'), hide => 1}, - # {name => 'addedcontent', label => l('Additional Content'), hide => hide_ac}, # hide if all content is known to not exist - # {name => 'cnbrowse', label => l('Shelf Browser')}, - {name => 'marchtml', label => l('Bibliographic Record')} - ]; - - FOREACH extra IN extras; - IF extra.hide; NEXT; END; - name = extra.name; - %] -
-
- -
-
- [% IF tab_is_active(name); - IF name == 'marchtml'; - ctx.marchtml; - ELSE; - # Load the template for the selected extra - INCLUDE "opac/parts/record/${name}.tt2"; - END; - END; - %] -
- [% END %] -
-
-- 2.11.0