From 04d48add6be2428e85668a8cd4c4c1a6f2b0e748 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Mon, 16 Apr 2012 16:18:21 -0400 Subject: [PATCH] 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 --- Open-ILS/web/opac/skin/tadlv3/xml/result/result_table.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;" }); -- 2.11.0