From: Jeff Godin Date: Mon, 16 Apr 2012 16:52:31 +0000 (-0400) Subject: Fix bug in copy summary display X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0f530ccd39e6975ebf41915e147f240f8b61b2e8;p=evergreen%2Ftadl.git Fix bug in copy summary display Copy summaries with multiple libraries were having their list of libraries overwritten by the last library in the list. Thanks to wjr for noting the issue. This fixes it by moving a mis-placed curly brace. Signed-off-by: Jeff Godin --- diff --git a/Open-ILS/web/opac/skin/tadlv3/xml/result/result_table.xml b/Open-ILS/web/opac/skin/tadlv3/xml/result/result_table.xml index a4caa8d038..d8044353fb 100644 --- a/Open-ILS/web/opac/skin/tadlv3/xml/result/result_table.xml +++ b/Open-ILS/web/opac/skin/tadlv3/xml/result/result_table.xml @@ -287,13 +287,13 @@ copycount = copycount + copySummaryObj[libname][loc][cn]['count']; } } + var libdiv = dojo.create('div'); + var libcontent = dojo.create('span', { "style": "font-weight: bold;" }); + var libtext = dojo.doc.createTextNode(copycount + ' available at ' + libname); + libcontent.appendChild(libtext); + libdiv.appendChild(libcontent); + output.appendChild(libdiv); } - var libdiv = dojo.create('div'); - var libcontent = dojo.create('span', { "style": "font-weight: bold;" }); - var libtext = dojo.doc.createTextNode(copycount + ' available at ' + libname); - libcontent.appendChild(libtext); - libdiv.appendChild(libcontent); - output.appendChild(libdiv); } // display the count of unavailable items, if any if (count_copies_unavail > 0) {