Bugzilla – Attachment 47423 Details for
Bug 15699
Opac: Course reserves instructors should be in form "Surname, Firstname" for sorting purposes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15699 - Course reserves instructors should be in form "Surname, Firstname" for sorting purposes
Bug-15699---Course-reserves-instructors-should-be-.patch (text/plain), 2.13 KB, created by
Marc Véron
on 2016-01-29 07:03:49 UTC
(
hide
)
Description:
Bug 15699 - Course reserves instructors should be in form "Surname, Firstname" for sorting purposes
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2016-01-29 07:03:49 UTC
Size:
2.13 KB
patch
obsolete
>From 044f6a4ad8bd3bbea8ed967a7bd2774853ea3c0e Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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 >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> >--- > 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 @@ > <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> >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15699
:
47416
|
47423
|
47513
|
47545
|
47546