Bugzilla – Attachment 169218 Details for
Bug 36627
Display importer for manually harvested SUSHI data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36627: Embed patron record for display
Bug-36627-Embed-patron-record-for-display.patch (text/plain), 2.36 KB, created by
Matt Blenkinsop
on 2024-07-19 13:01:36 UTC
(
hide
)
Description:
Bug 36627: Embed patron record for display
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-07-19 13:01:36 UTC
Size:
2.36 KB
patch
obsolete
>From 5536093662747898b9568bfa6d426c5083b06335 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Wed, 17 Apr 2024 16:28:06 +0000 >Subject: [PATCH] Bug 36627: Embed patron record for display > >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> >--- > Koha/ERM/EUsage/CounterLog.pm | 15 +++++++++++++++ > api/v1/swagger/definitions/erm_counter_log.yaml | 5 +++-- > api/v1/swagger/paths/erm_counter_logs.yaml | 9 +++++++++ > 3 files changed, 27 insertions(+), 2 deletions(-) > >diff --git a/Koha/ERM/EUsage/CounterLog.pm b/Koha/ERM/EUsage/CounterLog.pm >index f9e2e4f1e6d..c494fda0e06 100644 >--- a/Koha/ERM/EUsage/CounterLog.pm >+++ b/Koha/ERM/EUsage/CounterLog.pm >@@ -31,6 +31,21 @@ Koha::ERM::EUsage::CounterLog - Koha ErmCounterLog Object class > > =cut > >+ >+=head3 borrowernumber >+ >+Return the borrower for this counter_file >+ >+=cut >+ >+sub borrowernumber { >+ my ($self) = @_; >+ my $borrowers_rs = $self->_result->borrowernumber; >+ return unless $borrowers_rs; >+ return Koha::Patron->_new_from_dbic($borrowers_rs); >+} >+ >+ > =head2 Internal methods > > =head3 _type >diff --git a/api/v1/swagger/definitions/erm_counter_log.yaml b/api/v1/swagger/definitions/erm_counter_log.yaml >index 2eb130181c3..097b08d934c 100644 >--- a/api/v1/swagger/definitions/erm_counter_log.yaml >+++ b/api/v1/swagger/definitions/erm_counter_log.yaml >@@ -11,9 +11,10 @@ properties: > - integer > - "null" > borrowernumber: >- description: borrowernumber of the counter_log >+ type: object >+ description: patron object > type: >- - integer >+ - object > - "null" > importdate: > type: string >diff --git a/api/v1/swagger/paths/erm_counter_logs.yaml b/api/v1/swagger/paths/erm_counter_logs.yaml >index 01c18ace3fe..cb9a9f3b8db 100644 >--- a/api/v1/swagger/paths/erm_counter_logs.yaml >+++ b/api/v1/swagger/paths/erm_counter_logs.yaml >@@ -13,6 +13,15 @@ > name: usage_data_provider_id > required: false > type: integer >+ - name: x-koha-embed >+ in: header >+ required: false >+ description: Embed list sent as a request header >+ type: array >+ items: >+ type: string >+ enum: >+ - borrowernumber > - $ref: "../swagger.yaml#/parameters/match" > - $ref: "../swagger.yaml#/parameters/order_by" > - $ref: "../swagger.yaml#/parameters/page" >-- >2.39.3 (Apple Git-146)
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 36627
:
165029
|
165030
|
165031
|
165054
|
165055
|
165056
|
165057
|
165064
|
165065
|
165066
|
165067
|
165068
|
165070
|
165071
|
165072
|
165073
|
165074
|
165127
|
165128
|
165129
|
165130
|
165131
|
169217
|
169218
|
169219
|
169220
|
169221
|
174066
|
174067
|
174068
|
174069
|
174070
|
174402
|
174706
|
174707
|
174708
|
174709
|
174710
|
174711
|
174712