Bugzilla – Attachment 169242 Details for
Bug 36805
Separate OPACSearchForTitleIn content from markup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36805: (proof of concept) Markup-free OPACSearchForTitleIn implementation
Bug-36805-proof-of-concept-Markup-free-OPACSearchF.patch (text/plain), 1.77 KB, created by
Owen Leonard
on 2024-07-19 15:29:31 UTC
(
hide
)
Description:
Bug 36805: (proof of concept) Markup-free OPACSearchForTitleIn implementation
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-07-19 15:29:31 UTC
Size:
1.77 KB
patch
obsolete
>From 27af78bfc0165287ae7a04d33c8f5c1c71472158 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 15 Apr 2024 10:45:17 +0000 >Subject: [PATCH] Bug 36805: (proof of concept) Markup-free > OPACSearchForTitleIn implementation > >The updated default contents of OPACSearchForTitleIn would look like >this: > >https://worldcat.org/search?q={TITLE}|Other Libraries (WorldCat) >https://scholar.google.com/scholar?q={TITLE}|Other Databases (Google Scholar) >https://www.bookfinder.com/search/?author={AUTHOR}&title={TITLE}&st=xl&ac=qr|Online Stores (Bookfinder.com) >http://openlibrary.org/search/?author=({AUTHOR})&title=({TITLE})|Open Library (openlibrary.org) >--- > .../opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >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 1407f5af5b..1e39418d73 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 >@@ -100,7 +100,10 @@ > </a> > <div class="dropdown-menu dropdown-menu-right" aria-labelledby="furthersearches"> > <div class="dropdown-header">Search for this title in:</div> >- [% OPACSearchForTitleIn | $raw %] >+ [% FOREACH line IN OPACSearchForTitleIn.split('\n') %] >+ [% part = line.split('\|') %] >+ <a class="dropdown-item" href="[% part.first | html %]" target="_blank">[% part.last | html %]</a> >+ [% END %] > </div> > </div> > </div> >-- >2.39.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 36805
: 169242