Bugzilla – Attachment 172691 Details for
Bug 30648
Title is lost in holds history when bibliographic record is deleted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30648: Add new field to REST API
Bug-30648-Add-new-field-to-REST-API.patch (text/plain), 2.85 KB, created by
Nick Clemens (kidclamp)
on 2024-10-11 13:13:38 UTC
(
hide
)
Description:
Bug 30648: Add new field to REST API
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-10-11 13:13:38 UTC
Size:
2.85 KB
patch
obsolete
>From 24be638bd84a4a1852042b780fb05441baadd53d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 11 Oct 2024 12:51:52 +0000 >Subject: [PATCH] Bug 30648: Add new field to REST API > >Maybe we just undef it since ti will always be null except for old_hold obecjts >and we don't have that route yet >--- > Koha/Hold.pm | 37 ++++++++++++++-------------- > api/v1/swagger/definitions/hold.yaml | 3 +++ > 2 files changed, 22 insertions(+), 18 deletions(-) > >diff --git a/Koha/Hold.pm b/Koha/Hold.pm >index 1faec873ec2..27e2447eae1 100644 >--- a/Koha/Hold.pm >+++ b/Koha/Hold.pm >@@ -1026,25 +1026,26 @@ on the API. > > sub to_api_mapping { > return { >- reserve_id => 'hold_id', >- borrowernumber => 'patron_id', >- reservedate => 'hold_date', >- biblionumber => 'biblio_id', >- branchcode => 'pickup_library_id', >- notificationdate => undef, >- reminderdate => undef, >- cancellationdate => 'cancellation_date', >- reservenotes => 'notes', >- found => 'status', >- itemnumber => 'item_id', >- waitingdate => 'waiting_date', >- expirationdate => 'expiration_date', >+ reserve_id => 'hold_id', >+ borrowernumber => 'patron_id', >+ reservedate => 'hold_date', >+ biblionumber => 'biblio_id', >+ deleted_biblionumber => 'deleted_biblio_id', >+ branchcode => 'pickup_library_id', >+ notificationdate => undef, >+ reminderdate => undef, >+ cancellationdate => 'cancellation_date', >+ reservenotes => 'notes', >+ found => 'status', >+ itemnumber => 'item_id', >+ waitingdate => 'waiting_date', >+ expirationdate => 'expiration_date', > patron_expiration_date => undef, >- lowestPriority => 'lowest_priority', >- suspend => 'suspended', >- suspend_until => 'suspended_until', >- itemtype => 'item_type', >- item_level_hold => 'item_level', >+ lowestPriority => 'lowest_priority', >+ suspend => 'suspended', >+ suspend_until => 'suspended_until', >+ itemtype => 'item_type', >+ item_level_hold => 'item_level', > }; > } > >diff --git a/api/v1/swagger/definitions/hold.yaml b/api/v1/swagger/definitions/hold.yaml >index 85bcd669000..98d4309cca8 100644 >--- a/api/v1/swagger/definitions/hold.yaml >+++ b/api/v1/swagger/definitions/hold.yaml >@@ -16,6 +16,9 @@ properties: > biblio_id: > type: integer > description: Internal biblio identifier >+ deleted_biblio_id: >+ type: integer >+ description: Internal deleted biblio identifier > item_group_id: > type: > - string >-- >2.39.5
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 30648
:
172687
|
172688
|
172689
|
172690
|
172691
|
172692
|
173340
|
173341
|
173342
|
173343
|
173344
|
173345
|
173491
|
173492
|
173493
|
173494
|
173495
|
173496
|
173611