Improve label for library's external web site
[working/Evergreen.git] / Open-ILS / src / templates / opac / library.tt2
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);
5 -%]
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>
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 | url; '" 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>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>
51     </div>
52     [%  END; -%]
53
54     <div class="common-full-pad"></div>
55     </div>
56 [%- END %]
57 </div>