Version 1 (modified by Peter Zimmerman, 13 years ago) (diff)


The default metarecord display setting is set in /openils/var/web/opac/common/js/config.js on line 3:

var SHOW_MR_DEFAULT = true; /* true if we show metarecords by default */

To override this in a local skin, we just need to reset the value to false. The perfect place to do so is in /openils/var/web/opac/skin/{yourskin}/xml/common/js_common.xml. This is where config.js is loaded, on line 2. Immediately after line 2 we insert one line that resets the variable as desired:

<script language='javascript' type='text/javascript'> SHOW_MR_DEFAULT = false; </script>

Note that this example applies specifically to the Conifer installation. Evergreen ships with SHOW_MR_DEFAULT defaulting to false.