Only show series if there is content
authorJeff Godin <jgodin@tadl.org>
Mon, 23 Apr 2012 06:49:40 +0000 (02:49 -0400)
committerJeff Godin <jgodin@tadl.org>
Mon, 23 Apr 2012 06:49:40 +0000 (02:49 -0400)
Only show series if there is content available for that field.

Also, show series by default without need to select "More Info".

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/web/opac/skin/tadlv4/js/rdetail.js
Open-ILS/web/opac/skin/tadlv4/xml/rdetail/rdetail_summary.xml

index 58b310c..20a2c49 100644 (file)
@@ -445,7 +445,7 @@ function _rdetailDraw(r) {
        G.ui.rdetail.publisher.appendChild(text(record.publisher()));
        $('rdetail_physical_desc').appendChild(text(record.physical_description()));
 
-       if (record.series()) {
+       if (record.series() && record.series() != '') {
                unHideMe($("series_row"));
                $('rdetail_series').appendChild(text(record.series()));
        }
index fca753d..19609d3 100644 (file)
@@ -66,7 +66,7 @@
                                <td class='rdetail_item' id='rdetail_publisher'> </td>
                        </tr>
 
-                       <tr id='series_row' class='hide_me less'>
+                       <tr id='series_row' class='hide_me'>
                                <td nowrap='nowrap' class='rdetail_desc'>Series</td>
                                <td class='rdetail_item' id='rdetail_series'> </td>
                        </tr>