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