Lines 1-11
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
2 |
[% USE Asset %] |
|
|
3 |
[% USE Koha %] |
4 |
[% PROCESS 'display-library-address.inc' %] |
2 |
[% PROCESS 'display-library-address.inc' %] |
5 |
[% USE AdditionalContents %] |
3 |
<!-- |
6 |
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] |
|
|
7 |
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
9 |
<title> |
4 |
<title> |
10 |
[% IF ( library ) %] |
5 |
[% IF ( library ) %] |
11 |
[% library.branchname | html %] › |
6 |
[% library.branchname | html %] › |
Lines 18-61
Link Here
|
18 |
Koha online |
13 |
Koha online |
19 |
[% END %] catalog |
14 |
[% END %] catalog |
20 |
</title> |
15 |
</title> |
21 |
[% INCLUDE 'doc-head-close.inc' %] |
16 |
--> |
22 |
[% BLOCK cssinclude %] |
17 |
<!-- |
23 |
<style> |
|
|
24 |
.section_library { |
25 |
margin-top: 1rem; |
26 |
margin-bottom: 1rem; |
27 |
border: 0; |
28 |
border-bottom: 1px solid rgba(0,0,0,.1); |
29 |
} |
30 |
</style> |
31 |
[% END %] |
32 |
</head> |
33 |
|
34 |
[% INCLUDE 'bodytag.inc' bodyid='opac-library' bodyclass='scrollto' %] |
35 |
[% INCLUDE 'masthead.inc' %] |
36 |
|
37 |
[% BLOCK library_description %] |
38 |
<div property="description"> |
39 |
[% library.opac_info | $raw %] |
40 |
</div> |
41 |
[% END %] |
42 |
|
43 |
[% BLOCK library_info %] |
44 |
<div class="branchaddress" property="address" typeof="PostalAddress"> |
45 |
[% PROCESS 'display-library-address' %] |
46 |
</div> <!-- /div property=address --> |
47 |
[% IF ( library.branchphone ) %] |
48 |
<p class="branchphone">Phone: <a href="tel:[% library.branchphone | url %]" property="telephone">[% library.branchphone | html %]</a></p> |
49 |
[% END %] |
50 |
[% IF ( library.branchfax ) %] |
51 |
<p class="branchfax">Fax: <span property="faxNumber">[% library.branchfax | html %]</span></p> |
52 |
[% END %] |
53 |
[% IF ( library.branchurl ) %] |
54 |
<p class="branchurl"><a href="[% library.branchurl | url %]" property="url">[% library.branchurl | html %]</a></p> |
55 |
[% END %] |
56 |
[% END %] |
57 |
|
58 |
<div class="main"> |
59 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs"> |
18 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs"> |
60 |
<ol class="breadcrumb"> |
19 |
<ol class="breadcrumb"> |
61 |
<li class="breadcrumb-item"> |
20 |
<li class="breadcrumb-item"> |
Lines 74-162
Link Here
|
74 |
</li> |
33 |
</li> |
75 |
[% END %] |
34 |
[% END %] |
76 |
</ol> |
35 |
</ol> |
77 |
</nav> <!-- /#breadcrumbs --> |
36 |
</nav> |
78 |
|
37 |
--> |
79 |
<div class="container-fluid"> |
38 |
[%# FIX <title> population %] |
80 |
<div class="row"> |
39 |
[%# FIX breadcrumbs %] |
81 |
[% IF ( OpacNav || OpacNavBottom ) %] |
40 |
[% WRAPPER wrapper_page.inc |
82 |
<div class="col-lg-2"> |
41 |
bodyid='opac-library' |
83 |
<div id="navigation"> |
42 |
breadcrumb_label="Libraries" |
84 |
[% INCLUDE 'navigation.inc' %] |
43 |
columns="two_leftside" |
85 |
</div> |
44 |
include_navigation=1 |
86 |
</div> |
45 |
%] |
87 |
<div class="col-10 order-first order-md-first order-lg-2"> |
46 |
[% IF ( library ) %] |
88 |
[% ELSE %] |
|
|
89 |
<div class="col order-first order-md-first order-lg-2"> |
90 |
[% END %] |
91 |
|
92 |
[% IF ( library ) %] |
93 |
|
47 |
|
94 |
<div id="library_info" class="maincontent" vocab="http://schema.org/" typeof="Library"> |
48 |
<div id="library_info" class="maincontent" vocab="http://schema.org/" typeof="Library"> |
95 |
<h1 property="name">[% library.branchname | html %]</h1> |
49 |
<h1 property="name">[% library.branchname | html %]</h1> |
96 |
|
50 |
|
97 |
<div class="row"> |
51 |
<div class="row"> |
98 |
<div class="col-lg-8"> |
52 |
<div class="col-lg-8"> |
99 |
[% PROCESS library_info %] |
53 |
[% PROCESS library_info %] |
100 |
[% IF ( library.opac_info ) %] |
54 |
[% IF ( library.opac_info ) %] |
101 |
<div class="library_description"> |
55 |
<div class="library_description"> |
102 |
<hr /> |
56 |
<hr /> |
103 |
[% PROCESS library_description %] |
57 |
[% PROCESS library_description %] |
104 |
</div> |
58 |
</div> |
|
|
59 |
[% END %] |
60 |
</div> |
61 |
<div class="col-lg-4"> |
62 |
[% IF ( libraries.count > 1 ) %] |
63 |
<nav class="libraries"> |
64 |
<ul class="fa-ul"> |
65 |
[% FOREACH library IN libraries %] |
66 |
[% IF ( branchcode == library.branchcode ) %] |
67 |
<li id="menu_[% library.branchcode| html %]" class="current"> |
68 |
<a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]"> |
69 |
<i class="fa fa-li fa-map-pin" aria-hidden="true"></i> [% library.branchname | html %] |
70 |
</a> |
71 |
</li> |
72 |
[% ELSE %] |
73 |
<li id="menu_[% library.branchcode| html %]"> |
74 |
<a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]"> |
75 |
<i class="fa fa-li" aria-hidden="true"></i> [% library.branchname | html %] |
76 |
</a> |
77 |
</li> |
78 |
[% END %] |
105 |
[% END %] |
79 |
[% END %] |
106 |
</div> |
80 |
</ul> |
107 |
<div class="col-lg-4"> |
81 |
</nav> |
108 |
[% IF ( libraries.count > 1 ) %] |
82 |
[% END # /IF libraries.count > 1 %] |
109 |
<nav class="libraries"> |
83 |
</div> <!-- /.col-lg-4 --> |
110 |
<ul class="fa-ul"> |
84 |
</div> <!-- /.row --> |
111 |
[% FOREACH library IN libraries %] |
85 |
</div> <!-- /#library_info --> |
112 |
[% IF ( branchcode == library.branchcode ) %] |
|
|
113 |
<li id="menu_[% library.branchcode| html %]" class="current"> |
114 |
<a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]"> |
115 |
<i class="fa fa-li fa-map-pin" aria-hidden="true"></i> [% library.branchname | html %] |
116 |
</a> |
117 |
</li> |
118 |
[% ELSE %] |
119 |
<li id="menu_[% library.branchcode| html %]"> |
120 |
<a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]"> |
121 |
<i class="fa fa-li" aria-hidden="true"></i> [% library.branchname | html %] |
122 |
</a> |
123 |
</li> |
124 |
[% END %] |
125 |
[% END %] |
126 |
</ul> |
127 |
</nav> |
128 |
[% END # /IF libraries.count > 1 %] |
129 |
</div> <!-- /.col-lg-4 --> |
130 |
</div> <!-- /.row --> |
131 |
</div> <!-- /#library_info --> |
132 |
|
86 |
|
133 |
[% ELSE %] |
87 |
[% ELSE %] |
134 |
<div id="library_info" class="maincontent"> |
88 |
<div id="library_info" class="maincontent"> |
135 |
<h1>[% IF ( singleBranchMode ) %]Library[% ELSE %]Libraries[% END %]</h1> |
89 |
<h1>[% IF ( singleBranchMode ) %]Library[% ELSE %]Libraries[% END %]</h1> |
136 |
|
90 |
|
137 |
[% FOREACH library IN libraries %] |
91 |
[% FOREACH library IN libraries %] |
138 |
<div class="section_library" id="section_[% library.branchcode | html %]"> |
92 |
<div class="section_library" id="section_[% library.branchcode | html %]"> |
139 |
<h2 property="name"> |
93 |
<h2 property="name"> |
140 |
[% IF ( libraries.count > 1 ) %] |
94 |
[% IF ( libraries.count > 1 ) %] |
141 |
<a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">[% library.branchname | html %]</a> |
95 |
<a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">[% library.branchname | html %]</a> |
142 |
[% ELSE %] |
96 |
[% ELSE %] |
143 |
[% library.branchname | html %] |
97 |
[% library.branchname | html %] |
144 |
[% END %] |
|
|
145 |
</h2> |
146 |
[% PROCESS library_info %] |
147 |
</div> |
148 |
[% IF ( libraries.count == 1 ) %] |
149 |
<div class="library_description"> |
150 |
[% PROCESS library_description %] |
151 |
</div> |
152 |
[% END %] |
153 |
[% END %] |
98 |
[% END %] |
154 |
</div> <!-- /#library_info --> |
99 |
</h2> |
155 |
[% END # /IF library %] |
100 |
[% PROCESS library_info %] |
156 |
</div> <!-- /.col --> |
101 |
</div> |
157 |
</div> <!-- /.row --> |
102 |
[% IF ( libraries.count == 1 ) %] |
158 |
</div> <!-- /.container-fluid --> |
103 |
<div class="library_description"> |
159 |
</div> <!-- / .main --> |
104 |
[% PROCESS library_description %] |
|
|
105 |
</div> |
106 |
[% END %] |
107 |
[% END %] |
108 |
</div> <!-- /#library_info --> |
109 |
[% END # /IF library %] |
110 |
[% END #/WRAPPER %] |
160 |
|
111 |
|
161 |
[% INCLUDE 'opac-bottom.inc' %] |
|
|
162 |
[% BLOCK jsinclude %][% END %] |
112 |
[% BLOCK jsinclude %][% END %] |
163 |
- |
113 |
[% BLOCK cssinclude %] |
|
|
114 |
<style> |
115 |
.section_library { |
116 |
margin-top: 1rem; |
117 |
margin-bottom: 1rem; |
118 |
border: 0; |
119 |
border-bottom: 1px solid rgba(0,0,0,.1); |
120 |
} |
121 |
</style> |
122 |
[% END %] |
123 |
[% BLOCK library_info %] |
124 |
<div class="branchaddress" property="address" typeof="PostalAddress"> |
125 |
[% PROCESS 'display-library-address' %] |
126 |
</div> <!-- /div property=address --> |
127 |
[% IF ( library.branchphone ) %] |
128 |
<p class="branchphone">Phone: <a href="tel:[% library.branchphone | url %]" property="telephone">[% library.branchphone | html %]</a></p> |
129 |
[% END %] |
130 |
[% IF ( library.branchfax ) %] |
131 |
<p class="branchfax">Fax: <span property="faxNumber">[% library.branchfax | html %]</span></p> |
132 |
[% END %] |
133 |
[% IF ( library.branchurl ) %] |
134 |
<p class="branchurl"><a href="[% library.branchurl | url %]" property="url">[% library.branchurl | html %]</a></p> |
135 |
[% END %] |
136 |
[% END %] |
137 |
[% BLOCK library_description %] |
138 |
<div property="description"> |
139 |
[% library.opac_info | $raw %] |
140 |
</div> |
141 |
[% END %] |