From: Jeff Godin Date: Mon, 16 Apr 2012 20:18:21 +0000 (-0400) Subject: Fix link display even when no physical copies X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=04d48add6be2428e85668a8cd4c4c1a6f2b0e748;p=evergreen%2Ftadl.git Fix link display even when no physical copies This is a bugfix: We were failing to create any copy / uri summary if there were zero physical copies. Now, instead of "return", we "return output.innerHTML" to display the links which have been generated previously (but not output). At this time, we don't want to do that in the record detail page, so we continue to bail there regardless. 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 d8044353fb..dd24d90ef5 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 @@ -252,7 +252,7 @@ for (var lib in copySummaryObj) { numLibs++; } - if (numLibs == 0) { return; } + if (numLibs == 0) { return output.innerHTML; } if (numLibs == 1) { var lines_output = 0; var sumdiv = dojo.create('div', { "style": "font-weight: bold;" });