$ctx->{parent} = $ctx->{get_aou}->($aou->parent_ou);
}
+ # PINES - Get library logo
+ $ctx->{library_logo} = '';
+ if ($aou->library_logo) {
+ $ctx->{library_logo} = $aou->library_logo;
+ } elsif ($aou->parent_ou && $ctx->{parent}->library_logo) {
+ $ctx->{library_logo} = $ctx->{parent}->library_logo;
+ }
+
$self->timelog("got basic lib info");
# Get mailing address from the cache
<tr>
<td class='color_4 light_border'>[% l("Home Library") %]</td>
<td class='light_border'>
+ [% IF ctx.user.home_ou.library_logo; %]
+ <img src="/images/logos/[% ctx.user.home_ou.library_logo %]" alt="Library Logo"
+ style="height:80px;"><br/>
+ [% ELSIF ctx.get_aou(ctx.user.home_ou.parent_ou).library_logo; %]
+ <img src="/images/logos/[% ctx.get_aou(ctx.user.home_ou.parent_ou).library_logo %]" alt="Library Logo"
+ style="height:80px;"><br/>
+ [% END; %]
[% ctx.get_aou(ctx.user.home_ou.parent_ou).name %]<br/>
[% ctx.user.home_ou.name | html %]<br/>
[% ctx.user.home_ou.billing_address.street1 %]<br/>
'<a href="'; lib_url | html; '" property="url">'; lib_url; '</a>';
END;
%]
+ <br><br/>
+ <a href="/eg/opac/library/[% ctx.user.home_ou.shortname %]">More Information</a>
</td> <td></td>
</tr>
<tr>
-%]
<div class="container">
<div>
-
+ [% IF ctx.library_logo; %]<img src="/images/logos/[% ctx.library_logo %]" alt="Library Logo"
+ style="height:100px;">[% END; %]
[%- IF ctx.library.parent_ou; %]
<div id="branch-info" style="font-weight:bold;font-size:1.3em;">
[% ctx.parent.name | html %]:</a>