https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22279

            Bug ID: 22279
           Summary: Unify patron name display
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Templates
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

The way patron's name is displayed should be unified into a single place.
There's template code in patron-title.inc for it, but it's not used in enough
places. Using that would make the patron name display consistent, and if change
is needed (eg. for GDPR), it would be easy to change.

For example:

koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc:                   
<li><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber |
uri %]&amp;findborrower=[% holdfor_cardnumber | uri %]">Place hold for [%
holdfor_firstname | html %] [% holdfor_surname | html %] ([% holdfor_cardnumber
| html %])</a></li>


koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc:                      
 .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber
+ ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " +
item.zipcode + " " + item.country + "</small></a>" )


koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc:       
            <td><a href="[% data_url | url %]">[% borrower.surname | html %],
[% borrower.firstname | html %]</a></td>


koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt:   
<title>Summary for [% patron.firstname | html %] [% patron.surname | html %]
([% patron.cardnumber | html %])</title>


koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt:    <a
href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber |
uri %]">Pay fines for [% patron.firstname | html %] [% patron.surname | html
%]</a> &rsaquo;


and many, many more.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to