Only invoke BibTemplate if we have a reasonable number of copies
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 19 Apr 2011 17:34:29 +0000 (17:34 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 19 Apr 2011 17:34:29 +0000 (17:34 +0000)
In the move from 1.6 -> 2.0, I missed this important tweak to conditionally use
BT on results page. Result was that slots were being rendered twice with
disastrous results. Now the result is much happier.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_2_0@1395 6d9bc8c9-1ec2-4278-b937-99fde70a366f

web/opac/skin/uwin/js/result_common.js

index e7df882..78606fb 100644 (file)
@@ -1,4 +1,3 @@
-dojo.require('openils.BibTemplate');
 dojo.requireLocalization("openils.opac", "opac");
 var opac_strings = dojo.i18n.getLocalization("openils.opac", "opac");
 
@@ -754,8 +753,6 @@ function resultDisplayRecord(rec, pos, is_mr) {
        if (findOrgType(findOrgUnit(getLocation()).ou_type()).can_have_vols())
                unHideMe($n(r,'local_callnumber_list'));
 
-       new openils.BibTemplate( bt_params ).render();
-
        unHideMe(r);
        
        runEvt("result", "recordDrawn", rec.doc_id(), title_link);