Bugzilla – Attachment 94631 Details for
Bug 11426
Make HighlightOwnItemsOnOPAC work with XSLT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11426: Restore HighlightOwnItemsOnOPAC for XSLT view
Bug-11426-Restore-HighlightOwnItemsOnOPAC-for-XSLT.patch (text/plain), 1.84 KB, created by
Jonathan Druart
on 2019-10-23 14:48:32 UTC
(
hide
)
Description:
Bug 11426: Restore HighlightOwnItemsOnOPAC for XSLT view
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-10-23 14:48:32 UTC
Size:
1.84 KB
patch
obsolete
>From 9e4062b90e41d5d111a9dee92801e326d2785ed1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 23 Oct 2019 16:48:12 +0200 >Subject: [PATCH] Bug 11426: Restore HighlightOwnItemsOnOPAC for XSLT view > >--- > koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 8 ++++++++ > opac/opac-search.pl | 3 ++- > 2 files changed, 10 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >index 02ad5d701f..ee04a89cdc 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >+++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >@@ -3231,6 +3231,14 @@ button.closebtn { > max-height: 200px; > } > >+.highlight-row-results { >+ font-size: 120%; >+} >+ >+.highlight-row-detail { >+ font-weight: bold; >+} >+ > /* jQuery Bar Rating plugin for star ratings */ > > $star-default: #D2D2D2; >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index ea78ca0b23..eb13356cb0 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -842,12 +842,13 @@ for (my $i=0;$i<@servers;$i++) { > $branchcode = $ENV{'BRANCHCODE'}; > } > >+ my $branchname = Koha::Libraries->find($branchcode)->branchname; > foreach my $res ( @newresults ) { > my @new_loop; > my @top_loop; > my @old_loop = @{$res->{'available_items_loop'}}; > foreach my $item ( @old_loop ) { >- if ( $item->{'branchcode'} eq $branchcode ) { >+ if ( $item->{branchname} eq $branchname ) { > $item->{'this_branch'} = 1; > push( @top_loop, $item ); > } else { >-- >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 11426
: 94631 |
103379