Bug 24514: Add option to exclude title from patron-title.inc
Without this patch sorting by patron name on the 'holds awaiting pickup' report sorted by title, surname, firstname. With this patch the list will sort by surname, firstname, ignoring the title. To test: - generate and capture a hold for a patron named "Mr. A A" - generate and capture a hold for a patron named "A A" - generste and capture a hold for patron named "Mr. B B" - generste and capture a hold for patron named "B B" - go to holds awaiting pickup - sort by patron name ascending - holds sort Mr. A, Mr. B, A, B - sort by patron name descending - holds sort B, A, Mr. B, Mr. A - APPLY PATCH - Reload holds awaiting pickup - Confirm holds sort on Surname Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
d3f50b246d
commit
9363ff96b5
2 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@
|
|||
[%- SET data.title = title -%]
|
||||
[%- END -%]
|
||||
[%# Parameter no_html - if 1, the html tags are NOT generated %]
|
||||
[%- IF no_title %][% SET data.title = "" %][% END -%]
|
||||
[%- IF data.title %]
|
||||
[%- IF no_html %]
|
||||
[%- span_start = '' %]
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
[% END %]
|
||||
<br />Barcode: [% reserveloo.item.barcode | html %]
|
||||
</td>
|
||||
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrower.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' patron=reserveloo.borrower invert_name=1 %]</a>
|
||||
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrower.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' patron=reserveloo.borrower invert_name=1 no_title=1 %]</a>
|
||||
[% IF ( reserveloo.borrower.phone ) %]<br /><span class="patron_phone">[% reserveloo.borrower.phone | html %]</span>[% END %]
|
||||
[% IF ( reserveloo.borrower.first_valid_email_address ) %]
|
||||
<span class="patron_email"><br /><a href="mailto:[% reserveloo.borrower.first_valid_email_address | uri %]?subject=[% "Hold waiting: " | uri %][% reserveloo.biblio.title | uri %]">
|
||||
|
|
Loading…
Reference in a new issue