Comment 9 for bug 1656036

Revision history for this message
Bill Erickson (berick) wrote :

Updated code pushed:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1656036-webstaff-tab-titles

Supports the dynamic and static components. Dynamic components are interpolate'able and will truncate when paired with a static component and exceed a configurable length (currently 12).

For example:

egCore.strings.setPageTitle(
   egCore.strings.PAGE_TITLE_PATRON_NAME,
   egCore.strings['PAGE_TITLE_PATRON_' + tab.toUpperCase()],
   { lname : patronSvc.current.family_name(),
       fname : patronSvc.current.first_given_name(),
       mname : patronSvc.current.second_given_name()
   }
);