]> git.evergreen-ils.org Git - 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...
[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>Awards:</strong>
6             <div id='rdetail_awards_cont' style="margin-bottom:20px;"></div>
7                 <strong>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>Reviews:</strong>
13                 <div id='rdetail_review_container' style="margin-bottom:20px;"></div>
14                 <strong>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 => 'preview',  label => l('Preview'), hide => 1}, 
40             {name => 'novelist', label => l('Suggestions by NoveList'), hide => 1},
41             {name => 'cnbrowse', label => l('Shelf Browser'), hide => 1},
42             {name => 'copyinfo', label => l('Copy Summary'), hide => 1}, 
43             {name => 'marchtml', label => l('MARC Record')}
44         ];
45
46         FOREACH extra IN extras;
47             IF extra.hide; NEXT; END; 
48             name = extra.name;
49         %]
50         <div class="rdetail_extras">
51             <div class="rdetail_extras_hr"></div>
52             <div class="rdetail_extras_link">
53                 [% href = ctx.full_path _ '?expand=' _ name _ '#' _ name; %]
54                 <a name='[% name %]' href='[% href %]'><img
55                     alt='[% extra.label %]' src="[% ctx.media_prefix %]/images/rdetail_arrow.png" /></a>
56                 <a href='[% href %]' class="rdetail_extras_lbl">[% extra.label %]</a>
57             </div>
58         </div>
59         <div class='rdetail_extras_div'>
60             [%  exp_name = 'expand_' _ name;
61                 IF ctx.$exp_name;
62                     IF name == 'marchtml';
63                         ctx.marchtml;
64                     ELSE;
65                         # Load the template for the selected extra
66                         INCLUDE "default/opac/parts/record/${name}.tt2";
67                     END;
68                 END; 
69             %]
70         </div>
71         [% END %]
72     </div>
73     <!--
74     <div id='rdetail_preview_full_text' class='hide_me'>[% l("Full text") %]</div>
75     <div id='rdetail_preview_title' class='hide_me'>[% l("See the full text of this book.") %]</div>
76     <div id='rdetail_preview_badge' class='hide_me'>[% l("Show a preview of this book from Google Book Search") %]</div>
77     -->
78 </div>