Bugzilla – Attachment 116518 Details for
Bug 27632
Add a more easily Javascript accessible biblionumber to each record in OPAC results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27632: add class to results TR and data-biblionumber
Bug-27632-add-class-to-results-TR-and-data-biblion.patch (text/plain), 1.54 KB, created by
Lucas Gass
on 2021-02-08 18:17:28 UTC
(
hide
)
Description:
Bug 27632: add class to results TR and data-biblionumber
Filename:
MIME Type:
Creator:
Lucas Gass
Created:
2021-02-08 18:17:28 UTC
Size:
1.54 KB
patch
obsolete
>From 25657e08333fbb05d49ec9768f78dd6a9c3179a7 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Mon, 8 Feb 2021 18:14:03 +0000 >Subject: [PATCH] Bug 27632: add class to results TR and data-biblionumber > >This patch adds a data-biblionumber to each table row on the results page. To make it easier to target it also adds the class 'bibliorow'. > >To test: >-Apply patch and do an OPAC search that returns several results >-Inscept and look for the class bibiorow >-Make sure it contains a data-biblionumber attr with a value that matches the biblionumber >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index a60ac5f5e9..02dc79ef79 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -300,7 +300,7 @@ > > <!-- Actual Search Results --> > [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] >- <tr> >+ <tr class="bibliorow" data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]"> > [% # Cell 1: Checkbox %] > [% IF ( SEARCH_RESULT.title ) %] > [% check_title = SEARCH_RESULT.title %] >-- >2.11.0
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 27632
:
116343
|
116347
|
116448
|
116518
|
116521