Bug 30617

Summary: [OMNIBUS] We should consistently use includes for patron name display
Product: Koha Reporter: Martin Renvoize <martin.renvoize>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, katrin.fischer, marjorie.barry-vila, maude.boudreau, oleonard, pasi.kallinen, sally.healey, tomascohen
Version: MainKeywords: Academy
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 30651, 21978, 30806, 30807    
Bug Blocks: 30568    

Description Martin Renvoize 2022-04-26 07:18:55 UTC
Our templates are littered with various invocations of `[% patron.surname %], [% patron.firstname %]` and similar in varying orders and varying levels of detail (with or without cardnumber, with or without title, surname first or firstname first, linked and unlinked).

We have two ways of constructing a patron display block, patron-title.inc tt include and js-patron-format.inc for use in JS based displays.

We should congregate our templates around these two includes so that we can make our display consistent throughout with perhaps just a couple of display variations.. short and long forms perhaps?
Comment 1 Katrin Fischer 2022-04-26 11:41:45 UTC
I guess this calls for a lot of smaller bugs in a way trying to clean up various templates.
Comment 2 Martin Renvoize 2022-04-27 06:50:24 UTC
*** Bug 22279 has been marked as a duplicate of this bug. ***