-<!-- TMPL_IF NAME="borrowernumber" -->
-<div class="patroninfo"><h5><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --></h5>
+[% IF ( borrowernumber ) %]
+<div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</h5>
+<!--[if IE 6]>
+<style type="tex/css">img { width: expression(this.width > 140 ? 140: true);
+}</style>
+<![endif]-->
<ul>
- <li><!-- TMPL_IF NAME="streetaddress"-->
- <!-- TMPL_VAR NAME="streetaddress" -->,
- <!-- TMPL_ELSE -->
- <span class="problem">No address stored for patron.</span>
- <!-- /TMPL_IF --></li>
- <li> <!-- TMPL_IF NAME="city" -->
- <!-- TMPL_VAR NAME="city" -->
- <!-- TMPL_ELSE -->
- No city stored.
- <!-- /TMPL_IF --></li>
- <li> <!--TMPL_IF NAME="phone" -->
- <!-- TMPL_VAR NAME="phone" -->
- <!-- TMPL_ELSE -->
- <span class="problem">No phone stored.</span>
- <!-- /TMPL_IF --></li>
- <!-- TMPL_IF NAME="email" -->
- <li> <a href="mailto:<!-- TMPL_VAR NAME="email" -->"><!-- TMPL_VAR NAME="email" --></a></li>
- <!-- /TMPL_IF -->
- <!-- TMPL_IF NAME="emailpro" -->
- <li> <a href="mailto:<!-- TMPL_VAR NAME="emailpro" -->"><!-- TMPL_VAR NAME="emailpro" --></a></li>
- <!-- /TMPL_IF -->
- <li>Category: <!-- TMPL_VAR name="categorycode" --></li>
+[% IF ( patronimages ) %]
+[% IF ( picture ) %]
+<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 %]
+[% END %]
+ [% IF ( address or address2 ) %]
+ [% IF ( address ) %]
+ <li>[% address %]</li>
+ [% END %]
+ [% IF ( address2 ) %]
+ <li>[% address2 %]</li>
+ [% END %]
+ [% ELSE %]
+ <li><span class="empty" id="noadressstored">No address stored.</span></li>
+ [% END %]
+ <li>[% IF ( city ) %]
+ [% city %][% IF ( state ) %], [% state %][% END %]
+ [% zipcode %][% IF ( country ) %], [% country %][% END %]
+ [% ELSE %]
+ <span class="empty" id="nocitystored">No city stored.</span>
+ [% END %]</li>
+ <li>[% IF ( phone ) %]
+ [% phone %]
+ [% ELSE %]
+ [% IF ( mobile ) %]
+ [% mobile %]
+ [% ELSE %]
+ [% IF ( phonepro ) %]
+ [% phonepro %]
+ [% ELSE %]
+ <span class="empty" id="nophonestored">No phone stored.</span>
+ [% END %]
+ [% END %]
+ [% END %]</li>
+ [% IF ( email ) %]
+ <li class="email"> <a href="mailto:[% email %]" title="[% email %]">[% email %]</a></li>
+ [% ELSE %]
+ [% IF ( emailpro ) %]
+ <li class="email"> <a href="mailto:[% emailpro %]" title="[% emailpro %]">[% emailpro %]</a></li>
+ [% ELSE %]
+ <li> <span class="empty">No email stored.</span> </li>
+ [% END %]
+ [% END %]
+ [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN extendedattributes %]
+ [% IF ( extendedattribute.display_checkout ) %]
+ [% IF ( extendedattribute.value ) %]
+ <li>[% extendedattribute.description %] : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li>
+ [% END %]
+ [% END %]
+ [% END %][% END %]
+ <li>Category: [% categoryname %] ([% categorycode %])</li>
+ <li>Home library: [% IF ( branchname ) %][% branchname %][% ELSE %][% branch %][% END %]</li>
</ul></div>
-<div class="patronviews">
-<ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Details</a></li>
- <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Fines</a></li>
- <!-- TMPL_IF NAME="intranetreadinghistory" --><li><a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Reading Record</a></li><!-- /TMPL_IF -->
- <!-- TMPL_IF NAME="CAN_user_parameters"--><li><a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&module=MEMBERS&action=MODIFY&object=<!-- TMPL_VAR NAME="borrowernumber" -->">Modification Log</a></li><!-- /TMPL_IF --></ul>
-<!-- /TMPL_IF -->
-</div>
-
+<div id="menu">
<ul>
- <li><a href="/cgi-bin/koha/circ/returns.pl">Check In</a></li>
- <li><a href="/cgi-bin/koha/circ/branchtransfers.pl">Transfer</a></li>
- <li> <a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a></li>
-</ul>
-
-
-
-<h5>Circulation Reports</h5>
-<ul class="left-nav">
- <li> <a href="/cgi-bin/koha/circ/pendingreserves.pl" title="holds to retrieve off the shelf">Holds to pull</a></li>
- <li> <a href="/cgi-bin/koha/circ/waitingreserves.pl" title="holds waiting for patron pickup">Holds awaiting pickup</a></li>
- <li> <a href="/cgi-bin/koha/circ/transferstodo.pl" title="transfers to do from your library">Transfers to do</a></li>
+ [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]">Check out</a></li>
+ [% IF ( CAN_user_borrowers ) %]
+ [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
+ [% END %]
+ [% IF ( CAN_user_updatecharges ) %]
+ [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
+ [% END %]
+ [% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrowernumber %]">Routing Lists</a></li>
+ [% IF ( intranetreadinghistory ) %]
+ [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation history</a></li>
+ [% END %]
+ [% IF ( CAN_user_parameters ) %]
+ [% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&modules=circulation&object=[% borrowernumber %]&src=circ">Modification log</a></li>
+ [% END %]
+ [% IF ( EnhancedMessagingPreferences ) %]
+ [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]">Notices</a></li>
+ [% END %]
+ [% IF ( statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrowernumber %]">Statistics</a></li>
+ [% IF EnableBorrowerFiles %]
+ [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrowernumber %]">Files</a></li>
+ [% END %]
+</ul></div>
+[% END %]
- <li> <a href="/cgi-bin/koha/circ/transferstoreceive.pl" title="transfers to receive at your library">Transfers to receive</a></li>
- <li> <a href="/cgi-bin/koha/circ/overdue.pl">Overdues</a></li>
- <li> <a href="/cgi-bin/koha/circ/branchoverdues.pl">Fines</a></li>
- <li> <a href="/cgi-bin/koha/circ/stats.pl?time=yesterday">Daily reconciliation</a></li>
-</ul>