]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/parts/record/extras.tt2
Merge branch 'master' of git+ssh://yeti.esilibrary.com/home/evergreen/evergreen-equin...
[working/Evergreen.git] / Open-ILS / web / templates / default / opac / parts / record / extras.tt2
1 <div id="rdetail_main_div">
2     <div id='rdetail_extras_div' style='width: 100%;'> 
3         <!-- SAMPLE AWARDS LAYOUT / MOVE TO INCLUDE'D TEMPLATE
4         <div id='rdetail_awards_div' class='rdetail_extras_div hide_me'> 
5             <strong>[% l('Awards:') %]</strong>
6             <div id='rdetail_awards_cont' style="margin-bottom:20px;"></div>
7                 <strong>[% l('Patron Reviews:') %]</strong>
8                 <div id='rdetail_chilifresh_reviews' class='hide_me' style="margin-bottom:20px;">
9                     <div id='chilifreshReviewLink' name='chilifreshReviewLink' class='chili_review'></div>
10                     <div id='chilifreshReviewResult' name='chilifreshReviewResult' class='hidden'></div>
11                 </div>
12                 <strong>[% l('Reviews:') %]</strong>
13                 <div id='rdetail_review_container' style="margin-bottom:20px;"></div>
14                 <strong>[% l('Suggested Reads:') %]</strong>
15                 <div id='rdetail_novelist_div' class='rdetail_extras_div'>
16                 <div id="NoveListSelect" class="NoveListSelect">
17                     <div id="NoveListAnchor" class="NoveListSelect"></div>
18                     <div id="novsuggestions"></div>
19                     <div id="nextreads"></div>
20                     <div id="novrelatedauthors"></div>
21                     <div id="novrelateditems"></div>
22                 </div>
23             </div>
24         </div>
25         -->
26
27         [%  # Hidden extras are not yet implemented.  Some may require JS
28
29         extras = [
30             {name => 'summary',  label => l('Summary &amp; More'), hide => 1}, # Content Cafe
31             {name => 'content',  label => l('Contents'), hide => 1}, # ToC
32             {name => 'authors',  label => l('Authors')}, 
33             {name => 'series',   label => l('Series'), hide => 1}, 
34             {name => 'awards',   label => l('Series'), hide => 1}, 
35             {name => 'subjects', label => l('Subject')}, 
36             {name => 'annotation', label => l('Annotation'), hide => 1}, 
37             {name => 'reviews',  label => l('Reviews'), hide => 1}, 
38             {name => 'excerpt',  label => l('Excerpt'), hide => 1},
39             {name => 'issues',   label => l('Issues Held'), hide => !ctx.have_holdings_to_show},
40             {name => 'preview',  label => l('Preview'), hide => 1}, 
41             {name => 'novelist', label => l('Suggestions by NoveList'), hide => 1},
42             {name => 'cnbrowse', label => l('Shelf Browser'), hide => 1},
43             {name => 'copyinfo', label => l('Copy Summary'), hide => 1}, 
44             {name => 'marchtml', label => l('MARC Record')}
45         ];
46
47         FOREACH extra IN extras;
48             IF extra.hide; NEXT; END; 
49             name = extra.name;
50         %]
51         <div class="rdetail_extras">
52             <div class="rdetail_extras_hr"></div>
53             <div class="rdetail_extras_link">
54                 [% href = ctx.full_path _ '?expand=' _ name _ '#' _ name; %]
55                 <a name='[% name %]' href='[% href %]'><img
56                     alt='[% extra.label %]' src="[% ctx.media_prefix %]/images/rdetail_arrow.png" /></a>
57                 <a href='[% href %]' class="rdetail_extras_lbl">[% extra.label %]</a>
58             </div>
59         </div>
60         <div class='rdetail_extras_div'>
61             [%  exp_name = 'expand_' _ name;
62                 IF ctx.$exp_name;
63                     IF name == 'marchtml';
64                         ctx.marchtml;
65                     ELSE;
66                         # Load the template for the selected extra
67                         INCLUDE "default/opac/parts/record/${name}.tt2";
68                     END;
69                 END; 
70             %]
71         </div>
72         [% END %]
73     </div>
74     <!--
75     <div id='rdetail_preview_full_text' class='hide_me'>[% l("Full text") %]</div>
76     <div id='rdetail_preview_title' class='hide_me'>[% l("See the full text of this book.") %]</div>
77     <div id='rdetail_preview_badge' class='hide_me'>[% l("Show a preview of this book from Google Book Search") %]</div>
78     -->
79 </div>