Bugzilla – Attachment 170546 Details for
Bug 37513
Disable 'Delete' button if the record source cannot be deleted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37513: Allow embedding usage_count in record sources
Bug-37513-Allow-embedding-usagecount-in-record-sou.patch (text/plain), 1.75 KB, created by
Matt Blenkinsop
on 2024-08-21 10:08:43 UTC
(
hide
)
Description:
Bug 37513: Allow embedding usage_count in record sources
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-08-21 10:08:43 UTC
Size:
1.75 KB
patch
obsolete
>From 17b6bb2872d5d9b7e5a3d7d4b58ee8ffe597efcb Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 19 Aug 2024 11:42:21 -0300 >Subject: [PATCH] Bug 37513: Allow embedding usage_count in record sources > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >--- > api/v1/swagger/definitions/record_source.yaml | 3 +++ > api/v1/swagger/paths/record_sources.yaml | 10 ++++++++++ > 2 files changed, 13 insertions(+) > >diff --git a/api/v1/swagger/definitions/record_source.yaml b/api/v1/swagger/definitions/record_source.yaml >index dcf7865f73e..4bd3f052652 100644 >--- a/api/v1/swagger/definitions/record_source.yaml >+++ b/api/v1/swagger/definitions/record_source.yaml >@@ -11,6 +11,9 @@ properties: > can_be_edited: > description: If records from this source can be edited > type: boolean >+ usage_count: >+ description: Record source usage count (x-koha-embed) >+ type: integer > additionalProperties: false > required: > - name >diff --git a/api/v1/swagger/paths/record_sources.yaml b/api/v1/swagger/paths/record_sources.yaml >index 7dbbf589d8d..732368e2ae2 100644 >--- a/api/v1/swagger/paths/record_sources.yaml >+++ b/api/v1/swagger/paths/record_sources.yaml >@@ -13,6 +13,16 @@ > - $ref: "../swagger.yaml#/parameters/q_param" > - $ref: "../swagger.yaml#/parameters/q_body" > - $ref: "../swagger.yaml#/parameters/request_id_header" >+ - name: x-koha-embed >+ in: header >+ required: false >+ description: Embed list sent as a request header >+ type: array >+ items: >+ type: string >+ enum: >+ - usage_count >+ collectionFormat: csv > consumes: > - application/json > produces: >-- >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 37513
:
170475
|
170476
|
170477
|
170478
|
170479
|
170512
|
170513
|
170514
|
170515
|
170516
|
170544
|
170545
| 170546 |
170547
|
170548
|
171205
|
171236