Bugzilla – Attachment 152149 Details for
Bug 33953
Add Koha::Biblio->ratings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33953: Koha::Biblio->ratings
Bug-33953-KohaBiblio-ratings.patch (text/plain), 1.01 KB, created by
Jonathan Druart
on 2023-06-08 10:55:55 UTC
(
hide
)
Description:
Bug 33953: Koha::Biblio->ratings
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-06-08 10:55:55 UTC
Size:
1.01 KB
patch
obsolete
>From 77410debfed8d0a14f120e508a8a8b94b828e4dc Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jun 2023 11:58:51 +0200 >Subject: [PATCH] Bug 33953: Koha::Biblio->ratings > >--- > Koha/Biblio.pm | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index d8c1c76a711..1627d235c37 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -44,6 +44,7 @@ use Koha::Item::Transfer::Limits; > use Koha::Items; > use Koha::Libraries; > use Koha::Old::Checkouts; >+use Koha::Ratings; > use Koha::Recalls; > use Koha::RecordProcessor; > use Koha::Suggestions; >@@ -1530,6 +1531,20 @@ sub can_be_recalled { > return @items; > } > >+=head3 ratings >+ >+ my $ratings = $biblio->ratings >+ >+Return a Koha::Ratings object representing the ratings of this bibliographic record >+ >+=cut >+ >+sub ratings { >+ my ( $self ) = @_; >+ my $rs = $self->_result->ratings; >+ return Koha::Ratings->_new_from_dbic($rs); >+} >+ > =head2 Internal methods > > =head3 type >-- >2.25.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 33953
:
152148
|
152149
|
152720
|
152721
|
153411
|
153412