Display prefix and suffix in CN browse of main OPAC
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 Apr 2011 13:51:19 +0000 (13:51 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 Apr 2011 13:51:19 +0000 (13:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@20271 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/cn_browse.js

index 232e37d..94b8c8b 100644 (file)
@@ -105,7 +105,18 @@ function _cnBrowseDraw( list ) {
                var author_td           = $n(currentTd, 'cn_browse_author');
                var pic_td                      = $n(currentTd, 'cn_browse_pic');
 
+               if (parseInt(cn.prefix().id()) > -1) {
+            cn_td.appendChild(text(cn.prefix().label()));
+            cn_td.appendChild(text(' '));
+        }
+
                cn_td.appendChild(text(cn.label()));
+
+               if (parseInt(cn.suffix().id()) > -1) {
+            cn_td.appendChild(text(' '));
+            cn_td.appendChild(text(cn.suffix().label()));
+        }
+
                lib_td.appendChild(text(findOrgUnit(cn.owning_lib()).name()));
                cnBrowseDrawTitle(mods, title_td, author_td, pic_td);