From: Jeff Godin Date: Mon, 16 Apr 2012 17:40:39 +0000 (-0400) Subject: Fix bug in copy summary display on detail page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=19afb0e092747139c116bdc7488b29e7d3aaa2ec;p=evergreen%2Ftadl.git Fix bug in copy summary display on detail page 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. Previous commit fixed search results but not record detail. Signed-off-by: Jeff Godin --- diff --git a/Open-ILS/web/opac/skin/tadlv3/xml/rdetail/rdetail_summary.xml b/Open-ILS/web/opac/skin/tadlv3/xml/rdetail/rdetail_summary.xml index d88fd592be..fca753d0b4 100644 --- a/Open-ILS/web/opac/skin/tadlv3/xml/rdetail/rdetail_summary.xml +++ b/Open-ILS/web/opac/skin/tadlv3/xml/rdetail/rdetail_summary.xml @@ -276,13 +276,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) {