}
function rdetailShowAllExtras(bool) {
- var nodes = jQuery('.rdetail_extras').filter(function(){ return jQuery(this).css('display')=='block';});
- nodes.each(function(){
- rdetailShowExtra(this.getAttribute("rel2"));
- var node = $(this.getAttribute("rel"));
- if(bool) unHideMe(node); else hideMe(node);
- });
+ dojo.query('.rdetail_extras').filter(
+ function(n) { return dojo.style(n, 'display') == 'block'; }
+ ).forEach(
+ function(n) {
+ rdetailShowExtra(n.getAttribute("rel2"));
+ var node = $(n.getAttribute("rel"));
+ if (bool) unHideMe(node); else hideMe(node);
+ }
+ );
}
var rdetailMarcFetched = false;
function rdetailShowExtra(type, args) {
- var obj = jQuery('[rel2='+type+']').get()[0];
+ var obj = dojo.query('[rel2='+type+']')[0];
var node = $(obj.getAttribute('rel'));
var arrow = $(obj.getAttribute('rel')+"_arrow");
- if(jQuery(node).css('display')=='block') {
+ if (dojo.style(node, "display") == "block")) {
hideMe(node);
arrow.src="/opac/skin/kcls/graphics/rdetail_arrow.png";
} else {
}
return;
}
-}
\ No newline at end of file
+}
+<!--#if expr="$OILS_PAGE='rdetail.xml'"-->
+<script src='https://www.google.com/jsapi' type='text/javascript' language='javascript'></script>
+<!--#endif-->
<script type="text/javascript"><![CDATA[
dojo.require('openils.Util');
}
}
+ openils.Util.requireLegacy('/opac/skin/kcls/js/marc.js');
openils.Util.requireLegacy('/opac/skin/kcls/js/misc.js');
openils.Util.requireLegacy('/opac/skin/kcls/js/depth_selector.js');
<!--#if expr="$OILS_PAGE!='advanced.xml'"-->
openils.Util.requireLegacy('<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/kcls/js/holds.js');
openils.Util.requireLegacy('<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/kcls/js/container.js');
openils.Util.requireLegacy('<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/kcls/js/copy_details.js');
- openils.Util.requireLegacy('<!--#echo var="OILS_OPAC_JS_HOST"-->/common/js/Date.W3CDTF.js');
config.ids.rdetail = {};
config.ids.rdetail.view_marc = "rdetail_view_marc";