]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates-bootstrap/opac/parts/library/core_info.tt2
LP#1778972: Tweaks and fixes to Bootstrap 4 template
[Evergreen.git] / Open-ILS / src / templates-bootstrap / opac / 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 class="container">
8     <div>
9     <h2>[% ctx.library.name | html %]</h2>
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     <div class="my-3">
24     <h3 id="contact-info">[% l('Contact information') %]</h3>
25     [%- IF ctx.library.email; %]
26         <div>[% l('Email address: ') %]<a href="mailto:[% ctx.library.email | html %]" property="email">[% ctx.library.email | html %]</a></div>
27     [%- END; %]
28     [%- IF ctx.library.phone; %]
29         <div>[% l('Telephone: ') %]<a href="tel:[% ctx.library.phone | html %]" property="telephone">[% ctx.library.phone | html %]</a></div>
30     [% END %]
31     </div>
32     [% END %]
33
34     [%- IF ctx.library.mailing_address; %]
35     <div class="my-3" id="addresses">
36         <div id="mailing" property="location address" typeof="PostalAddress">
37             <h3 property="contactType">[% l('Mailing address') %]</h3>
38             <span property="streetAddress">[% ctx.mailing_address.street1 | html %]
39             [%- IF ctx.mailing_address.street2; "<br />"; ctx.mailing_address.street2 | html; END; %]
40             </span><br />
41             <span property="addressLocality">[% ctx.mailing_address.city | html %]</span><br />
42             <span property="addressRegion">[% ctx.mailing_address.state | html %]</span><br />
43             <span property="addressCountry">[% ctx.mailing_address.country | html %]</span><br />
44             <span property="postalCode">[% ctx.mailing_address.post_code | html %]</span><br />
45         </div>
46     </div>
47     [%- END; %]
48
49     [%- IF ctx.library.parent_ou; %]
50     <div>
51     <h3>[% l('Branch relationship') %]</h3>
52     <div id="branch-info">[% l('Parent library: ') %]
53         <a property="branchOf" href="[% mkurl(opac_root _ '/library/' _ ctx.parent.shortname, {}, 1) %]">[% ctx.parent.name | html %]</a>
54     </div>
55     </div>
56     [%  END; -%]
57     </div>
58 </div>