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

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Feb 28 19:39:25 EST 2009


Author: miker
Date: 2009-02-28 19:39:25 -0500 (Sat, 28 Feb 2009)
New Revision: 12328

Modified:
   branches/rel_1_4_0/Open-ILS/web/opac/skin/default/js/myopac.js
Log:
Patch from Jeff Godin:

Noticed in 1.4.0.2, confirmed in trunk, the myopac.xml "My Account"
display doubles the patron's first given name:

Administrator Administrator System Account

myopac.js was the culprit, populating the "prefix" with the value of
first_given_name.



Modified: branches/rel_1_4_0/Open-ILS/web/opac/skin/default/js/myopac.js
===================================================================
--- branches/rel_1_4_0/Open-ILS/web/opac/skin/default/js/myopac.js	2009-03-01 00:38:54 UTC (rev 12327)
+++ branches/rel_1_4_0/Open-ILS/web/opac/skin/default/js/myopac.js	2009-03-01 00:39:25 UTC (rev 12328)
@@ -784,7 +784,7 @@
 	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_prefix'),text(user.prefix()));
 	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()));



More information about the open-ils-commits mailing list