From 0f530ccd39e6975ebf41915e147f240f8b61b2e8 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Mon, 16 Apr 2012 12:52:31 -0400 Subject: [PATCH] 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 --- Open-ILS/web/opac/skin/tadlv3/xml/result/result_table.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) { -- 2.11.0