From fd9493013528d9d7def987d64980a59efb20ee76 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 28 Jan 2016 21:58:37 +0000 Subject: [PATCH] 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(); --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt index 3aaa8b9..7c63dcc 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt @@ -47,7 +47,7 @@ [% AuthorisedValues.GetByCode( 'TERM' c.term ) %] [% FOREACH i IN c.instructors %] -
[% i.firstname %] [% i.surname %]
+
[% i.surname %], [% i.firstname %]
[% END %] [% c.public_note %] -- 2.1.4