Bugzilla – Attachment 141825 Details for
Bug 31775
Show opac_info of single library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31775: Template cleanup
Bug-31775-Template-cleanup.patch (text/plain), 6.54 KB, created by
Marcel de Rooy
on 2022-10-13 14:21:50 UTC
(
hide
)
Description:
Bug 31775: Template cleanup
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-10-13 14:21:50 UTC
Size:
6.54 KB
patch
obsolete
>From d7f5236999d05fe0e7912b9ea82d97ad0c13ed29 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 13 Oct 2022 14:12:07 +0000 >Subject: [PATCH] Bug 31775: Template cleanup >Content-Type: text/plain; charset=utf-8 > >Removing unused parts. > >Test plan: >See first test plan. Confirm that it still works. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../bootstrap/en/modules/opac-library.tt | 90 +++++++------------ > 1 file changed, 31 insertions(+), 59 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt >index 480f09948f..4a5fef45c7 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt >@@ -90,70 +90,42 @@ > <div class="col order-first order-md-first order-lg-2"> > [% END %] > >- [% IF ( library ) %] >- >- <div id="library_info" class="maincontent" vocab="http://schema.org/" typeof="Library"> >- <h1 property="name">[% library.branchname | html %]</h1> >- >- <div class="row"> >- <div class="col-lg-8"> >- [% PROCESS library_info %] >- [% IF ( OpacLibraryInfo ) %] >- <div class="library_description"> >- <hr /> >- [% PROCESS library_description %] >- </div> >- [% END %] >- </div> >- <div class="col-lg-4"> >- [% IF ( libraries.count > 1 ) %] >- <nav class="libraries"> >- <ul class="fa-ul"> >- [% FOREACH library IN libraries %] >- [% IF ( branchcode == library.branchcode ) %] >- <li id="menu_[% library.branchcode| html %]" class="current"> >- <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]"> >- <i class="fa fa-li fa-map-pin" aria-hidden="true"></i> [% library.branchname | html %] >- </a> >- </li> >- [% ELSE %] >- <li id="menu_[% library.branchcode| html %]"> >- <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]"> >- <i class="fa fa-li" aria-hidden="true"></i> [% library.branchname | html %] >- </a> >- </li> >- [% END %] >- [% END %] >- </ul> >- </nav> >- [% END # /IF libraries.count > 1 %] >- </div> <!-- /.col-lg-4 --> >- </div> <!-- /.row --> >- </div> <!-- /#library_info --> >- >- [% ELSE %] >- <div id="library_info" class="maincontent"> >- <h1>[% IF ( singleBranchMode ) %]<span>Library</span>[% ELSE %]<span>Libraries</span>[% END %]</h1> >- >- [% FOREACH library IN libraries %] >- <div class="section_library" id="section_[% library.branchcode | html %]"> >- <h2 property="name"> >- [% IF ( libraries.count > 1 ) %] >- <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">[% library.branchname | html %]</a> >- [% ELSE %] >- [% library.branchname | html %] >- [% END %] >- </h2> >- [% PROCESS library_info %] >- </div> >- [% IF ( libraries.count == 1 ) %] >+ [% IF ( library ) %] >+ <div id="library_info" class="maincontent" vocab="http://schema.org/" typeof="Library"> >+ <h1 property="name">[% library.branchname | html %]</h1> >+ <div class="row"> >+ <div class="col-lg-8"> >+ [% PROCESS library_info %] >+ [% IF ( OpacLibraryInfo ) %] > <div class="library_description"> >+ <hr /> > [% PROCESS library_description %] > </div> > [% END %] >+ </div> >+ </div> >+ </div> <!-- /#library_info --> >+ >+ [% ELSE %] >+ <div id="library_info" class="maincontent"> >+ <h1>Libraries</h1> >+ [% FOREACH library IN libraries %] >+ [% IF ( branchcode == library.branchcode ) %] >+ <div class="section_library" id="section_[% library.branchcode | html %]" class="current"> >+ [% ELSE %] >+ <div class="section_library" id="section_[% library.branchcode | html %]" class=""> > [% END %] >- </div> <!-- /#library_info --> >- [% END # /IF library %] >+ <h2 property="name"> >+ <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]"> >+ [% library.branchname | html %] >+ </a> >+ </h2> >+ [% PROCESS library_info %] >+ </div> >+ [% END %] >+ </div> <!-- /#library_info --> >+ [% END # /IF library %] >+ > </div> <!-- /.col --> > </div> <!-- /.row --> > </div> <!-- /.container-fluid --> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31775
:
141824
|
141825
|
141871
|
141872
|
141933
|
141934