[open-ils-commits] r20272 - branches/rel_2_1/Open-ILS/web/opac/skin/default/js (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Apr 21 09:51:59 EDT 2011


Author: miker
Date: 2011-04-21 09:51:57 -0400 (Thu, 21 Apr 2011)
New Revision: 20272

Modified:
   branches/rel_2_1/Open-ILS/web/opac/skin/default/js/cn_browse.js
Log:
Display prefix and suffix in CN browse of main OPAC

Modified: branches/rel_2_1/Open-ILS/web/opac/skin/default/js/cn_browse.js
===================================================================
--- branches/rel_2_1/Open-ILS/web/opac/skin/default/js/cn_browse.js	2011-04-21 13:51:19 UTC (rev 20271)
+++ branches/rel_2_1/Open-ILS/web/opac/skin/default/js/cn_browse.js	2011-04-21 13:51:57 UTC (rev 20272)
@@ -105,7 +105,18 @@
 		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);
 



More information about the open-ils-commits mailing list