Fix link display even when no physical copies skin_tadlv3
authorJeff Godin <jgodin@tadl.org>
Mon, 16 Apr 2012 20:18:21 +0000 (16:18 -0400)
committerJeff Godin <jgodin@tadl.org>
Mon, 16 Apr 2012 20:18:21 +0000 (16:18 -0400)
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 <jgodin@tadl.org>
Open-ILS/web/opac/skin/tadlv3/xml/result/result_table.xml

index d804435..dd24d90 100644 (file)
                                 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;" });