]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/parts/library/core_info.tt2
Begin enabling KPAC-branded library info page
[Evergreen.git] / Open-ILS / src / templates / opac / parts / library / core_info.tt2
1 <div id="content-wrapper">
2     <div id="main-content" class="content-wrapper-library-page" vocab="http://schema.org/" typeof="Library">
3     <h1 property="name">[% ctx.library.name | html %]</h1>
4
5     [%-
6         lib_url = ctx.get_org_setting(ctx.library.id, 'lib.info_url');
7         IF lib_url;
8             '<div id="library-url"><a href="'; lib_url | url; '" property="url">'; l('Library web site'); '</a></div>';
9         END;
10     -%]
11
12     [%- IF ctx.hours; %]
13         [%- INCLUDE "opac/parts/library/hours.tt2"; %]
14     [% END; -%]
15
16     [%- IF (ctx.library.email OR ctx.library.phone); %]
17     <h2 id="contact-info">[% l('Contact information') %]</h2>
18     [%- IF ctx.library.email; %]
19         <div>[% l('Email address: ') %]<a href="mailto:[% ctx.library.email | html %]" property="email">[% ctx.library.email | html %]</a></div>
20     [%- END; %]
21     [%- IF ctx.library.phone; %]
22         <div>[% l('Telephone: ') %]<a href="tel:[% ctx.library.phone | html %]" property="telephone">[% ctx.library.phone | html %]</a></div>
23     [% END; %]
24     [% END; %]
25
26     [%- IF ctx.library.mailing_address; %]
27     <div id="addresses">
28         <div id="mailing" property="location address" typeof="PostalAddress">
29             <h3 property="contactType">[% l('Mailing address') %]</h3>
30             <span property="streetAddress">[% ctx.mailing_address.street1 | html %]
31             [%- IF ctx.mailing_address.street2; "<br />"; ctx.mailing_address.street2 | html; END; %]
32             </span><br />
33             <span property="addressLocality">[% ctx.mailing_address.city | html %]</span><br />
34             <span property="addressRegion">[% ctx.mailing_address.state | html %]</span><br />
35             <span property="addressCountry">[% ctx.mailing_address.country | html %]</span><br />
36             <span property="postalCode">[% ctx.mailing_address.post_code | html %]</span><br />
37         </div>
38     </div>
39     [%- END; %]
40
41     [%- IF ctx.library.parent_ou; %]
42     <h2>Branch relationship</h2>
43     <div id="branch-info">[% l('Parent library: ') %]
44         <a property="branchOf" href="[% mkurl(ctx.opac_root _ '/library/' _ ctx.parent.shortname, {}, 1) %]">[% ctx.parent.name | html %]</a>
45     </div>
46     [%  END; -%]
47
48     <div class="common-full-pad"></div>
49     </div>
50 </div>