[Koha-bugs] [Bug 7680] Create a PatronDefaultView preference to control whether patron links go to circ or patron details

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 14 14:41:33 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7680

--- Comment #11 from Fridolyn SOMERS <fridolyn.somers at biblibre.com> ---
(In reply to Owen Leonard from comment #2)
> The new include, patron-default-view.inc, outputs the *opening* half of
> the <a> so that individual templates can control whether to show
> full name, barcode, both, etc.
In my opinion, it would be better if include contained the full anchor tag.
Because templates are hard to read when they are not correct HTML.
You could pass to include the content of the tag : 

[% IF ( PatronDefaultView == 'circ' ) %]
<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber
%]">[% text %]</a>
[% ELSE %]
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber
%]">[% text %]</a>
[% END %]

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list