adding prefix and suffix to name display in myopac
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 24 Sep 2008 20:13:32 +0000 (20:13 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 24 Sep 2008 20:13:32 +0000 (20:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10696 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/myopac.js
Open-ILS/web/opac/skin/default/xml/myopac/myopac_summary.xml

index 4deca43..a7b0c1c 100644 (file)
@@ -782,12 +782,14 @@ function _myOPACSummaryShowUer(r) {
        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()));
index 91d77f0..a6e6742 100644 (file)
                        <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>