From: dbs Date: Tue, 19 Apr 2011 17:34:29 +0000 (+0000) Subject: Only invoke BibTemplate if we have a reasonable number of copies X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f34525ba7c629c3497217d1e59b7b4d7186a0f0b;p=contrib%2FConifer.git Only invoke BibTemplate if we have a reasonable number of copies 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 --- diff --git a/web/opac/skin/uwin/js/result_common.js b/web/opac/skin/uwin/js/result_common.js index e7df882ae1..78606fb393 100644 --- a/web/opac/skin/uwin/js/result_common.js +++ b/web/opac/skin/uwin/js/result_common.js @@ -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);