From 2a529e2d81b890a8cd11925bd2473bfa1ede6ead Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 21 Apr 2011 13:51:19 +0000 Subject: [PATCH] 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 --- Open-ILS/web/opac/skin/default/js/cn_browse.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 232e37d4c..94b8c8b34 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); -- 2.11.0