View | Details | Raw Unified | Return to bug 30289
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/wrapper_page.inc (+79 lines)
Line 0 Link Here
1
[%# Modelled after opac-main.tt %]
2
[% IF ( ! bodyid ); bodyid='default'; END; %]
3
[% IF ( ! columns ); columns="one"; END; %]
4
[% IF ( ! include_navigation ); include_navigation=false; END; %]
5
[% USE raw %]
6
[% USE AdditionalContents %]
7
[% PROCESS 'i18n.inc' %]
8
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
9
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
10
[% SET OpacNavRight = AdditionalContents.get( location => "OpacNavRight", lang => lang, library => branchcode ) %]
11
[% SET OpacMainUserBlock = AdditionalContents.get( location => "OpacMainUserBlock", lang => lang, library => branchcode ) %]
12
[% SET OpacLoginInstructions = AdditionalContents.get( location => "OpacLoginInstructions", lang => lang, library => branchcode ) %]
13
[% INCLUDE 'doc-head-open.inc' %]
14
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalogue</title>
15
[% INCLUDE 'doc-head-close.inc' %]
16
[% BLOCK cssinclude %][% END %]
17
</head>
18
[% INCLUDE 'bodytag.inc' bodyid=bodyid bodyclass='scrollto'%]
19
[% INCLUDE 'masthead.inc' %]
20
21
<div class="main">
22
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
23
        <ol class="breadcrumb">
24
            <li class="breadcrumb-item">
25
                <a href="/cgi-bin/koha/opac-main.pl">Home</a>
26
            </li>
27
            [% IF breadcrumb_label %]
28
            <li class="breadcrumb-item active">
29
                <a href="#" aria-current="page">[% breadcrumb_label %]</a>
30
            </li>
31
            [% END %]
32
        </ol>
33
    </nav> <!-- /#breadcrumbs -->
34
35
    <div class="container-fluid">
36
        <div class="row">
37
        [% IF
38
            ( columns == "three_rightside_leftside" ) ||
39
            ( columns == "two_leftside" )
40
        %]
41
            <div class="col-12 col-lg-2 order-3 order-lg-1">
42
                [% IF ( include_navigation ) %]
43
                <div id="navigation">
44
                    [% INCLUDE 'navigation.inc' %]
45
                </div>
46
                [% END %]
47
            </div>
48
        [% END %]
49
50
        [% IF ( columns == "three_rightside_leftside" ) %]
51
            [% #  Three-column layout with right and left sidebars %]
52
            <div class="col-12 col-lg-7 order-md-1 maincontent">
53
        [% ELSIF ( columns == "two_rightside" ) %]
54
            [% #  Two-column layout with right sidebar %]
55
            <div class="col-12 col-lg-9 order-md-1 maincontent">
56
        [% ELSIF ( columns == "two_leftside" ) %]
57
            [% #  Two-column layout with left sidebar %]
58
            <div class="col-12 col-lg-10 order-md-1 maincontent">
59
        [% ELSE %]
60
            <div class="col order-md-1 maincontent">
61
        [% END %]
62
                [% content %]
63
            </div>
64
65
        [% IF 
66
            ( columns == "three_rightside_leftside" ) ||
67
            ( columns == "two_rightside" )
68
        %]
69
        <div class="col-12 col-lg-3 order-md-2">
70
            [%# FIXME: Add right sidebar content here %]
71
        </div>
72
        [% END %]
73
74
        </div> <!-- /.container-fluid -->
75
    </div> <!-- /.row -->
76
</div> <!-- /.main -->
77
78
[% INCLUDE 'opac-bottom.inc' %]
79
[% BLOCK jsinclude %][% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt (-123 / +101 lines)
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 %] &rsaquo;
6
        [% library.branchname | html %] &rsaquo;
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 %]

Return to bug 30289