Bug 8421 : Added a URI filter to encode a cardnumber for borrowers as to not break patronimage.pl
To Test: Add a + (or any char that would need to be encoded) to a card number of a patron with an image attached. Go to member/moremember.pl. If the patrons image is there, you are golden. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
ce015d0e47
commit
c6e83d1156
|
|
@ -7,7 +7,7 @@
|
|||
<ul>
|
||||
[% IF ( patronimages ) %]
|
||||
[% IF ( picture ) %]
|
||||
<li><img src="/cgi-bin/koha/members/patronimage.pl?crdnum=[% cardnumber %]" id="patronimage" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></li>
|
||||
<li><img src="/cgi-bin/koha/members/patronimage.pl?crdnum=[% cardnumber | uri %]" id="patronimage" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></li>
|
||||
[% ELSE %]
|
||||
<li><img src="/intranet-tmpl/prog/img/patron-blank.png" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue