Bugzilla – Attachment 161604 Details for
Bug 14670
Add 'cite' option to detail page in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14670: Move modal code to an include file
Bug-14670-Move-modal-code-to-an-include-file.patch (text/plain), 3.32 KB, created by
Jonathan Druart
on 2024-01-29 16:21:07 UTC
(
hide
)
Description:
Bug 14670: Move modal code to an include file
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-01-29 16:21:07 UTC
Size:
3.32 KB
patch
obsolete
>From 150a2d76a2a0d21d25ee685798ad5922e89fd82f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 29 Jan 2024 11:21:35 +0100 >Subject: [PATCH] Bug 14670: Move modal code to an include file > >Also add an icon for the "Cite" entry. > >Sponsored-by: Orex Digital >--- > .../en/includes/modals/catalog_cite.inc | 22 +++++++++++++++++++ > .../en/includes/opac-detail-sidebar.inc | 18 ++------------- > 2 files changed, 24 insertions(+), 16 deletions(-) > create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/modals/catalog_cite.inc > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/modals/catalog_cite.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/modals/catalog_cite.inc >new file mode 100644 >index 00000000000..7fcb1642888 >--- /dev/null >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/modals/catalog_cite.inc >@@ -0,0 +1,22 @@ >+[% USE raw %] >+<!-- Add cite modal --> >+<div class="modal" id="citeModal" tabindex="-1" role="dialog" aria-labelledby="citeLabel" aria-hidden="true"> >+ <div class="modal-dialog modal-lg"> >+ <div class="modal-content"> >+ <div class="modal-header"> >+ <h3 class="modal-title" id="citeModalLabel">[% biblio.title | html %]</h3> >+ <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"> >+ <span aria-hidden="true">×</span> >+ </div> >+ <div class="modal-body"> >+ [% FOREACH system IN cites.keys.sort %] >+ <h3>[% system %]</h3> >+ <p>[% cites.$system | html %]</p> >+ [% END %] >+ </div> >+ <div class="modal-footer"> >+ <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> >+ </div> >+ </div> >+ </div> >+</div> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc >index 511488dc066..4cb700bcb52 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc >@@ -1,20 +1,6 @@ > [% USE raw %] > [% USE Biblio %] >- >-<div id="citemodal" class="modal hide" role="dialog" aria-labelledby="citeLabel" aria-hidden="true"> >- <div class="modal-header"> >- <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">Ãâ</button> >- <h2 id="citeLabel">[% title OR 'Citation' | html %]</h2> >- </div> >- <div class="modal-body"> >- [% FOREACH system IN cites.keys.sort %] >- <h3>[% system %]</h3> >- <p>[% cites.$system | html %]</p> >- [% END %] >- </div> >- <div class="modal-footer"> >- </div> >-</div> >+[% INCLUDE 'modals/catalog_cite.inc' %] > > <ul id="action"> > [% UNLESS ( norequests ) %] >@@ -33,7 +19,7 @@ > [% END %] > > <li><a class="print-large btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-print" aria-hidden="true"></i> Print</a></li> >- <li><a href="#citemodal" id="cite" data-toggle="modal">Cite</a></li> >+ <li><a class="cite btn btn-link btn-lg" href="#" id="cite" data-toggle="modal" data-target="#citeModal"><i class="fa fa-fw fa-quote-left" aria-hidden="true"></i> Cite</a></li> > > [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] > [% IF artreqpossible %] >-- >2.34.1
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 14670
:
41441
|
42971
|
43508
|
43770
|
43771
|
43828
|
43829
|
43919
|
43920
|
43921
|
43922
|
43923
|
43924
|
75679
|
75680
|
75681
|
75682
|
75683
|
161600
|
161601
|
161602
|
161603
|
161604
|
161605
|
161606
|
161607
|
166474
|
167528
|
167529
|
167530
|
167531
|
167532
|
167533
|
167534
|
167535
|
173515
|
173516
|
173517
|
173518
|
173519
|
173520
|
173521
|
173522
|
173523
|
173524
|
174453