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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt (-60 / +31 lines)
Lines 90-159 Link Here
90
                <div class="col order-first order-md-first order-lg-2">
90
                <div class="col order-first order-md-first order-lg-2">
91
            [% END %]
91
            [% END %]
92
92
93
                [% IF ( library ) %]
93
            [% IF ( library ) %]
94
94
                <div id="library_info" class="maincontent" vocab="http://schema.org/" typeof="Library">
95
                    <div id="library_info" class="maincontent" vocab="http://schema.org/" typeof="Library">
95
                    <h1 property="name">[% library.branchname | html %]</h1>
96
                        <h1 property="name">[% library.branchname | html %]</h1>
96
                    <div class="row">
97
97
                        <div class="col-lg-8">
98
                        <div class="row">
98
                            [% PROCESS library_info %]
99
                            <div class="col-lg-8">
99
                            [% IF ( OpacLibraryInfo ) %]
100
                                [% PROCESS library_info %]
101
                                [% IF ( OpacLibraryInfo ) %]
102
                                    <div class="library_description">
103
                                        <hr />
104
                                        [% PROCESS library_description %]
105
                                    </div>
106
                                [% END %]
107
                            </div>
108
                            <div class="col-lg-4">
109
                                [% IF ( libraries.count > 1 ) %]
110
                                    <nav class="libraries">
111
                                        <ul class="fa-ul">
112
                                            [% FOREACH library IN libraries %]
113
                                                [% IF ( branchcode == library.branchcode ) %]
114
                                                    <li id="menu_[% library.branchcode| html %]" class="current">
115
                                                        <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">
116
                                                            <i class="fa fa-li fa-map-pin" aria-hidden="true"></i> [% library.branchname | html %]
117
                                                        </a>
118
                                                    </li>
119
                                                [% ELSE %]
120
                                                    <li id="menu_[% library.branchcode| html %]">
121
                                                        <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">
122
                                                            <i class="fa fa-li" aria-hidden="true"></i> [% library.branchname | html %]
123
                                                        </a>
124
                                                    </li>
125
                                                [% END %]
126
                                            [% END %]
127
                                        </ul>
128
                                    </nav>
129
                                [% END # /IF libraries.count > 1 %]
130
                            </div> <!-- /.col-lg-4 -->
131
                        </div> <!-- /.row -->
132
                    </div> <!-- /#library_info -->
133
134
                [% ELSE %]
135
                    <div id="library_info" class="maincontent">
136
                        <h1>[% IF ( singleBranchMode ) %]<span>Library</span>[% ELSE %]<span>Libraries</span>[% END %]</h1>
137
138
                        [% FOREACH library IN libraries %]
139
                            <div class="section_library" id="section_[% library.branchcode | html %]">
140
                                <h2 property="name">
141
                                    [% IF ( libraries.count > 1 ) %]
142
                                        <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">[% library.branchname | html %]</a>
143
                                    [% ELSE %]
144
                                        [% library.branchname | html %]
145
                                    [% END %]
146
                                </h2>
147
                                [% PROCESS library_info %]
148
                            </div>
149
                            [% IF ( libraries.count == 1 ) %]
150
                                <div class="library_description">
100
                                <div class="library_description">
101
                                    <hr />
151
                                    [% PROCESS library_description %]
102
                                    [% PROCESS library_description %]
152
                                </div>
103
                                </div>
153
                            [% END %]
104
                            [% END %]
105
                        </div>
106
                    </div>
107
                </div> <!-- /#library_info -->
108
109
            [% ELSE %]
110
                <div id="library_info" class="maincontent">
111
                    <h1>Libraries</h1>
112
                    [% FOREACH library IN libraries %]
113
                        [% IF ( branchcode == library.branchcode ) %]
114
                            <div class="section_library" id="section_[% library.branchcode | html %]" class="current">
115
                        [% ELSE %]
116
                            <div class="section_library" id="section_[% library.branchcode | html %]" class="">
154
                        [% END %]
117
                        [% END %]
155
                    </div> <!-- /#library_info -->
118
                        <h2 property="name">
156
                [% END # /IF library %]
119
                            <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">
120
                                [% library.branchname | html %]
121
                            </a>
122
                        </h2>
123
                        [% PROCESS library_info %]
124
                        </div>
125
                    [% END %]
126
                </div> <!-- /#library_info -->
127
            [% END # /IF library %]
128
157
            </div> <!-- /.col -->
129
            </div> <!-- /.col -->
158
        </div> <!-- /.row -->
130
        </div> <!-- /.row -->
159
    </div> <!-- /.container-fluid -->
131
    </div> <!-- /.container-fluid -->
160
- 

Return to bug 31775