Initial dev repository
[kcls-web.git] / opac / skin / lfw / xml / rdetail / rdetail_summary.xml
1 \r
2 <![CDATA[<!-- ****************** rdetail_summary.xml ***************************** -->]]>\r
3 <abbr class="unapi-id" title='tag:<!--#echo var="HTTP_HOST"-->,<!--#echo var="OILS_TIME_YEAR"-->:biblio-record_entry/<!--#echo var="OILS_OPAC_RID"-->'></abbr>\r
4 <!-- This holds the record summary information -->\r
5 <div>\r
6         <table id='rdetail_details_table' border="0" width="100%">\r
7                 <tbody id='rdetail_details_tbody'>\r
8 \r
9                         <tr>\r
10                                 <td id='rdetail_image_cell' rowspan='2' valign="top" align="center" style="padding-right:10px;">\r
11                                         <span type='opac/slot-data' query='datafield[tag=020] subfield[code=a],datafield[tag=024] subfield[code=a]' templated='true'>\r
12                                                 <span class='hide_me' type='opac/template-value' name='ident'>\r
13                                                         var content;\r
14                                                         for (var i = 0; item_list[i]; i++) {\r
15                                                                 if (content = BT.textContent(item_list[i])) break; /* assignment */\r
16                                                         }\r
17                                                         return {\r
18                                                                 "small": buildISBNSrc(plausible_ident(content)),\r
19                                                                 "large": buildISBNSrc(plausible_ident(content), "large")\r
20                                                         };\r
21                                                 </span>\r
22                                                 <a id='rdetail_img_link' href='${ident.large}'><img style='border: none;' id='rdetail_image' src='${ident.small}' onload='unHideMe($("rdetail.jacket_attrib_div"));unHideMe($("rdetail.jacket_attrib_div"));unHideMe($("rdetail_img_link"))' onerror='hideMe($("rdetail.jacket_attrib_div"));hideMe($("rdetail_img_link"));'/></a><br />\r
23                                         </span>\r
24                     <!-- vendor attribution link -->\r
25                     <div class='jacket_attrib hide_me' id='rdetail.jacket_attrib_div'>\r
26                         <div>&opac.image_provided;</div>\r
27                         <div><a target='_blank' href='&vendor.base_link;' \r
28                             class='classic_link' id='rdetail.jacket_attrib_link'>&vendor.name;</a></div>\r
29                     </div>\r
30                                 </td>\r
31                                 <td class='rdetail_desc' valign="top" colspan="3">\r
32                                   <table border="0" width="100%"><tr><td valign="top">\r
33                                         <div style="padding-bottom:7px;"><strong>&common.title;:</strong> <span class="rdetail_item" id='rdetail_title'></span></div>\r
34                                         <strong>&common.author;:</strong> <a title='&rdetail.author.search;' id='rdetail_author'> </a>\r
35                                   </td><td width="1" valign="top" align="right" style="white-space:nowrap;">\r
36                                     <a href="javascript:;" id='rdetail_place_hold'><img src="/opac/skin/kcls/graphics/place_hold.gif" /></a>\r
37                                         <a href="javascript:;" id="rd_reviews_and_more" target="_blank"><img src="/opac/skin/kcls/graphics/reviews.gif" /></a>\r
38                                         <a href="javascript:addMyList();" id="add_mylist"><img src="/opac/skin/kcls/graphics/add_mylist.gif" /></a>\r
39                                   </td></tr></table>\r
40                                 </td>           \r
41                 <!-- *** Example of how to use the openils.BibTemplate infrastructure to augment the stock\r
42                      *** summary screen with more and/or different information.  In this case, the raw MARC 245. -->\r
43                         </tr>\r
44 \r
45                         <tr>\r
46                                 <td nowrap='nowrap' colspan="3" valign="bottom" style="padding-bottom:16px;">\r
47                         <div id='rdetail_chilifresh_reviews' class='hide_me'>\r
48                 <div id='chilifreshReviewLink' name='chilifreshReviewLink' class='chili_review'></div>\r
49                 <div id='chilifreshReviewResult' name='chilifreshReviewResult' style='display:none'></div>\r
50             </div>\r
51                                 </td>\r
52                         </tr>\r
53                         <tr><td><div style="height:20px;"></div></td></tr>\r
54                         <tr>\r
55                                 <td nowrap='nowrap' valign="top"><strong id="rdetail_isbn_lbl" class="hide_me">&common.isbn;</strong></td>\r
56                                 <td valign="top" id='rdetail_isbn'></td>\r
57                                 <td nowrap='nowrap' valign="top"><strong id="rdetail_phys_lbl" class="hide_me">&common.physical;</strong></td>\r
58                                 <td valign="top" id='rdetail_physical_desc'></td>\r
59                         </tr><tr>\r
60                                 <td nowrap='nowrap' valign="top"><strong id="rdetail_ed_lbl" class="hide_me">&common.edition;</strong></td>\r
61                                 <td valign="top" id='rdetail_edition'></td>\r
62                                 <td nowrap='nowrap' valign="top"><strong id="rdetail_form_lbl" class="hide_me">&common.format;</strong></td>\r
63                                 <td valign="top"><img id='rdetail_tor_pic' class='tor_pic hide_me' /> <span id='rdetail_tor'></span></td>\r
64                         </tr><tr>\r
65                                 <td nowrap='nowrap' valign="top"><strong id="rdetail_pubdate_lbl" class="hide_me">&common.pubdate;</strong></td>\r
66                                 <td valign="top" id='rdetail_pubdate'></td>\r
67                                 <td nowrap='nowrap' valign="top"><strong id="rdetail_sum_lbl" class="hide_me">Summary</strong></td>\r
68                                 <td valign="top" id='rdetail_abstract'></td>\r
69                         </tr><tr>\r
70                                 <td nowrap='nowrap' valign="top"><strong id="rdetail_pub_lbl" class="hide_me">&common.publisher;</strong></td>\r
71                                 <td valign="top" id='rdetail_publisher'></td>\r
72                                 <td nowrap='nowrap' valign="top"><strong id="rdetail_sub_lbl" class="hide_me">&rdetail.summary.subjects;</strong></td>\r
73                                 <td valign="top">\r
74                   <span type='opac/slot-data' query='datafield[tag="650"]' class='rdetail_item'>\r
75                     <script type='opac/slot-format'><![CDATA[\r
76                         var cgi = new CGI();\r
77                         var other_params = [ 'd', 'l', 'r', 'av', 's', 'sd' ];\r
78                         var total = '';\r
79                         var output = [];\r
80                         var list = dojo.query( 'subfield', item );\r
81                                                 if(list.length) unHideMe($('rdetail_sub_lbl'));\r
82                         for (var i =0; i < list.length; i++) {\r
83                             total += BT.textContent(list[i]) + ' ';\r
84                             var current = '<a href="rresult.xml?rt=subject&tp=subject&t=' + total;\r
85                             for (var p in other_params) {\r
86                                 if (cgi.param(other_params[p]))\r
87                                     current += '&' + other_params[p] + '=' + cgi.param(other_params[p]);\r
88                             }\r
89                             current += '">' + BT.textContent(list[i]) + '</a>'\r
90                             output.push(current);\r
91                         }\r
92                         return '<span>' + output.join(' &#x2d;&#x2d; ') + '</span><br/>';\r
93                     ]]></script>\r
94                                   </span>\r
95                                 </td>\r
96                         </tr>\r
97 \r
98 \r
99 \r
100                         <tr class='hide_me' id='rdetail_online_row'>\r
101                                 <!-- *** Example of how to use the openils.BibTemplate infrastructure to augment the stock\r
102                                      *** summary screen with complex information, such as location-specific URIs (856$9). -->\r
103                                 <td nowrap='nowrap' class='rdetail_desc'>&rdetail.summary.online;\r
104                                         <span class='hide_me' type='opac/slot-data' query='datafield[tag=856] subfield[code=9]'>\r
105                                                 <script type='opac/slot-format'><![CDATA[\r
106                                                         // There exists at least one localized URI. Clear all links.\r
107                                                         dojo.query('*:not([type^=opac])', 'rdetail_online').orphan();\r
108                                                         return '';\r
109                                                 ]]></script>\r
110                                         </span>\r
111                                 </td>\r
112                                 <td class='rdetail_item' id='rdetail_online' type='opac/slot-data' query='volumes volume uris uri' join=", ">\r
113                                         <script type='opac/slot-format'><![CDATA[\r
114                                                 var link = '<a href="' + item.getAttribute('href') + '">' + item.getAttribute('label') + '</a>';\r
115                                                 if (item.getAttribute('use_restriction'))\r
116                                                         link += ' (Use restriction: ' + item.getAttribute('use_restriction') + ')';\r
117                                                 return link;\r
118                                         ]]></script>\r
119                                 </td>\r
120                         </tr>\r
121                 </tbody>\r
122         </table>\r
123 \r
124         <!-- Empty span used for creating unAPI links -->\r
125         <abbr name="unapi" class="unapi-id">\r
126                 <!-- unAPI URI goes here -->\r
127         </abbr>\r
128 \r
129         <script language='javascript' type='text/javascript'><![CDATA[\r
130 \r
131                 config.ids.rdetail.details_body         = 'rdetail_details_body'; \r
132                 config.ids.rdetail.title                                = 'rdetail_title';\r
133                 config.ids.rdetail.author                               = 'rdetail_author';\r
134                 config.ids.rdetail.isbn                                 = 'rdetail_isbn';\r
135                 config.ids.rdetail.edition                              = 'rdetail_edition';\r
136                 config.ids.rdetail.pubdate                              = 'rdetail_pubdate';\r
137                 config.ids.rdetail.publisher                    = 'rdetail_publisher';\r
138                 config.ids.rdetail.tor                                  = 'rdetail_tor';\r
139                 config.ids.rdetail.abstr                                = 'rdetail_abstract';\r
140                 config.ids.rdetail.image                                = 'rdetail_image';\r
141                 config.ids.rdetail.tor_pic                              = 'rdetail_tor_pic';\r
142 \r
143       dojo.addOnLoad(function() {  \r
144         setTimeout( function () {\r
145             var here = findOrgUnit(getLocation());\r
146             if (getDepth() > 0 || getDepth === 0 ) {\r
147                 while (getDepth() < findOrgDepth(here))\r
148                     here = findOrgUnit( here.parent_ou() );\r
149             }\r
150 \r
151             dojo.require('openils.BibTemplate');\r
152             new openils.BibTemplate({ record : new CGI().param('r'), org_unit : here.shortname() }).render();\r
153         },0);\r
154       });\r
155         ]]></script>\r
156 \r
157 </div> <!-- details_body -->\r
158 \r
159     <!-- ChiliFresh setup -->\r
160     <script language='javascript' type='text/javascript'>\r
161         var chilifresh = '<!--#echo var="OILS_CHILIFRESH_ACCOUNT"-->';\r
162         if (chilifresh == '(none)') { chilifresh = false; }\r
163     </script>\r
164     <!--if expr="${OILS_CHILIFRESH_ACCOUNT} && ${OILS_CHILIFRESH_ACCOUNT}!='(none)'"-->\r
165         <input type="hidden" id="chilifresh_account" name="chilifresh_account"\r
166             value="<!--#echo var='OILS_CHILIFRESH_ACCOUNT'-->" />\r
167         <input type="hidden" id="chilifresh_profile" name="chilifresh_profile"\r
168             value="<!--#echo var='OILS_CHILIFRESH_PROFILE'-->" />\r
169         <input type="hidden" id="chilifresh_version" name="chilifresh_version" value="onsite_v1" />\r
170         <input type="hidden" id="chilifresh_type" name="chilifresh_type" value="search" />\r
171 <![CDATA[\r
172 <script type="text/javascript">\r
173 var sslSwitch = (("https:" == document.location.protocol) ? "https://secure." : "http://");\r
174 document.write(unescape("%3Cscript src='" + sslSwitch + "chilifresh.com/on-site/js/evergreen.js' type='text/javascript'%3E%3C/script%3E"));\r
175 </script>\r
176 ]]>\r
177     <!--endif-->\r
178 <![CDATA[<!-- ****************** end: rdetail_summary.xml ***************************** -->]]>\r