From: miker Date: Thu, 21 Apr 2011 13:51:19 +0000 (+0000) Subject: Display prefix and suffix in CN browse of main OPAC X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2a529e2d81b890a8cd11925bd2473bfa1ede6ead;p=evergreen%2Ftadl.git Display prefix and suffix in CN browse of main OPAC git-svn-id: svn://svn.open-ils.org/ILS/trunk@20271 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/js/cn_browse.js b/Open-ILS/web/opac/skin/default/js/cn_browse.js index 232e37d4c0..94b8c8b346 100644 --- a/Open-ILS/web/opac/skin/default/js/cn_browse.js +++ b/Open-ILS/web/opac/skin/default/js/cn_browse.js @@ -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);