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