1 [%- PROCESS "opac/parts/header.tt2";
2 WRAPPER "opac/parts/base.tt2";
3 INCLUDE "opac/parts/topnav.tt2";
4 ctx.page_title = l("Library details: [_1]", ctx.library.name);
6 [%- INCLUDE "opac/parts/searchbar.tt2" %]
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>
12 lib_url = ctx.get_org_setting(ctx.library.id, 'lib.info_url');
14 '<div id="library-url"><a href="'; lib_url | url; '" property="url">'; l('Library web site'); '</a></div>';
19 [%- INCLUDE "opac/parts/library/hours.tt2"; %]
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>
27 [%- IF ctx.library.phone; %]
28 <div>[% l('Telephone: ') %]<a href="tel:[% ctx.library.phone | html %]" property="telephone">[% ctx.library.phone | html %]</a></div>
32 [%- IF ctx.library.mailing_address; %]
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; %]
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 />
47 [%- IF ctx.library.parent_ou; %]
48 <h2>Branch relationship</h2>
49 <div id="branch-info">[% l('Parent library: ') %]
50 <a property="branchOf" href="[% mkurl(ctx.opac_root _ '/library/' _ ctx.parent.shortname, {}, 1) %]">[% ctx.parent.name | html %]</a>
54 <div class="common-full-pad"></div>