[open-ils-commits] r10696 - in
trunk/Open-ILS/web/opac/skin/default: js xml/myopac
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 24 16:13:36 EDT 2008
Author: miker
Date: 2008-09-24 16:13:32 -0400 (Wed, 24 Sep 2008)
New Revision: 10696
Modified:
trunk/Open-ILS/web/opac/skin/default/js/myopac.js
trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_summary.xml
Log:
adding prefix and suffix to name display in myopac
Modified: trunk/Open-ILS/web/opac/skin/default/js/myopac.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/myopac.js 2008-09-24 04:29:20 UTC (rev 10695)
+++ trunk/Open-ILS/web/opac/skin/default/js/myopac.js 2008-09-24 20:13:32 UTC (rev 10696)
@@ -782,12 +782,14 @@
var iv1 = user.ident_value()+'';
if (iv1.length > 4) iv1 = iv1.replace(new RegExp(iv1.substring(0,iv1.length - 4)), '***********');
+ appendClear($('myopac_summary_prefix'),text(user.first_given_name()));
appendClear($('myopac_summary_first'),text(user.first_given_name()));
appendClear($('myopac_summary_middle'),text(user.second_given_name()));
appendClear($('myopac_summary_dayphone'),text(user.day_phone()));
appendClear($('myopac_summary_eveningphone'),text(user.evening_phone()));
appendClear($('myopac_summary_otherphone'),text(user.other_phone()));
appendClear($('myopac_summary_last'),text(user.family_name()));
+ if (user.suffix()) appendClear($('myopac_summary_suffix'),text(', ' + user.suffix()));
appendClear($('myopac_summary_username'),text(user.usrname()));
appendClear($('myopac_summary_email'),text(user.email()));
appendClear($('myopac_summary_barcode'),text(user.card().barcode()));
Modified: trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_summary.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_summary.xml 2008-09-24 04:29:20 UTC (rev 10695)
+++ trunk/Open-ILS/web/opac/skin/default/xml/myopac/myopac_summary.xml 2008-09-24 20:13:32 UTC (rev 10696)
@@ -37,9 +37,11 @@
<tr>
<td width='30%' class='color_4 light_border'>&common.name;</td>
<td class='light_border'>
+ <span id='myopac_summary_prefix' style='padding-right: 5px;'> </span>
<span id='myopac_summary_first' style='padding-right: 5px;'> </span>
<span id='myopac_summary_middle' style='padding-right: 5px;'> </span>
- <span id='myopac_summary_last'> </span>
+ <span id='myopac_summary_last' style='padding-right: 5px;'> </span>
+ <span id='myopac_summary_suffix'> </span>
</td>
</tr>
More information about the open-ils-commits
mailing list