Bugzilla – Attachment 153412 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.13 KB, created by
Nick Clemens (kidclamp)
on 2023-07-13 16:08:06 UTC
(
hide
)
Description:
Bug 33953: Koha::Biblio->ratings
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-07-13 16:08:06 UTC
Size:
1.13 KB
patch
obsolete
>From f59d375f863b88afadf40f37989511858cdb43f7 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 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > Koha/Biblio.pm | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index 1e468c57e7..6d2116b39f 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; >@@ -1550,6 +1551,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.30.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 33953
:
152148
|
152149
|
152720
|
152721
|
153411
| 153412