Bug 15699 - Course reserves instructors should be in form "Surname, Firstname" for sorting purposes

This patch changes the order of the name fields and adds a span class around
each in case of library wanting to customize further

To test:
1 - Enable course reserves
2 - Add some courses with instrcutors
3 - Note they are of form "Firstname Surname"
4 - Apply patch
5 - Note the change
6 - Note span tags
7 - Note you can hide firstname by adding to intranet user js: $(".instr_firstname, instr_separator").hide();

Sing-off note: This patch displays the names as advertised on cgi-bin/koha/opac-course-reserves.pl Sorting
the names would need some more actions but seems not to be intended by this patch.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
This commit is contained in:
Nick Clemens 2016-01-28 21:58:37 +00:00 committed by Brendan Gallagher
parent a84264c92f
commit 4dba088549
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@
<td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) %]</td>
<td>
[% FOREACH i IN c.instructors %]
<div class="instructor">[% i.firstname %] [% i.surname %]</div>
<div class="instructor"><span class"inst_surname">[% i.surname %]</span><span class="instr_separator">, </span><span class="instr_firstname">[% i.firstname %]</span></div>
[% END %]
</td>
<td>[% c.public_note %]</td>