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>
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;" });