Lines 905-911
Link Here
|
905 |
<div id="newcomment"></div> |
905 |
<div id="newcomment"></div> |
906 |
[% IF ( reviews ) %] |
906 |
[% IF ( reviews ) %] |
907 |
[% FOREACH review IN reviews %] |
907 |
[% FOREACH review IN reviews %] |
908 |
[% IF review.borrowernumber == borrowernumber %] |
908 |
[% IF borrowernumber && review.borrowernumber == borrowernumber %] |
909 |
<div class="commentline yours" id="c[% review.reviewid %]"> |
909 |
<div class="commentline yours" id="c[% review.reviewid %]"> |
910 |
[% IF ( review.avatarurl ) %] |
910 |
[% IF ( review.avatarurl ) %] |
911 |
<img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" /> |
911 |
<img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" /> |
Lines 925-950
Link Here
|
925 |
</div> |
925 |
</div> |
926 |
[% ELSE %] |
926 |
[% ELSE %] |
927 |
<div class="commentline"> |
927 |
<div class="commentline"> |
928 |
[% IF ( ShowReviewer != "none" ) %] |
928 |
[% IF ( ShowReviewer != "none" && review.patron) %] |
|
|
929 |
|
929 |
[% IF ( review.avatarurl ) %] |
930 |
[% IF ( review.avatarurl ) %] |
930 |
<img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" /> |
931 |
<img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" /> |
931 |
[% END %] |
932 |
[% END %] |
932 |
[% SWITCH ShowReviewer %] |
933 |
[% SWITCH ShowReviewer %] |
933 |
[% CASE 'full' %] |
934 |
[% CASE 'full' %] |
934 |
<h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5> |
935 |
<h5>Comment by [% review.patron.title %] [% review.patron.firstname %] [% review.patron.surname %]</h5> |
935 |
[% CASE 'first' %] |
936 |
[% CASE 'first' %] |
936 |
<h5>Comment by [% review.firstname %]</h5> |
937 |
<h5>Comment by [% review.patron.firstname %]</h5> |
937 |
[% CASE 'surname' %] |
938 |
[% CASE 'surname' %] |
938 |
<h5>Comment by [% review.surname %]</h5> |
939 |
<h5>Comment by [% review.patron.surname %]</h5> |
939 |
[% CASE 'firstandinitial' %] |
940 |
[% CASE 'firstandinitial' %] |
940 |
<h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5> |
941 |
<h5>Comment by [% review.patron.firstname %] [% review.patron.surname|truncate(2,'.') %]</h5> |
941 |
[% CASE 'username' %] |
942 |
[% CASE 'username' %] |
942 |
<h5>Comment by [% review.userid %]</h5> |
943 |
<h5>Comment by [% review.patron.userid %]</h5> |
943 |
[% END %] |
944 |
[% END %] |
|
|
945 |
|
944 |
<small>[% review.datereviewed | $KohaDates %]</small> |
946 |
<small>[% review.datereviewed | $KohaDates %]</small> |
945 |
[% ELSIF ( ShowReviewer == "none") %] |
947 |
[% ELSE %] |
946 |
<h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5> |
948 |
<h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5> |
947 |
[% END # / IF ShowReviewer != "none"%] |
949 |
[% END # / IF ShowReviewer != "none" && review.patron %] |
948 |
<p> |
950 |
<p> |
949 |
[% FILTER html_break %] |
951 |
[% FILTER html_break %] |
950 |
[% review.review |html %] |
952 |
[% review.review |html %] |