Bugzilla – Attachment 170477 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.62 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-08-19 17:58:09 UTC
(
hide
)
Description:
Bug 37513: Allow embedding usage_count in record sources
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-08-19 17:58:09 UTC
Size:
1.62 KB
patch
obsolete
>From c31ad03231c2428ba82442109b5435c960117218 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 > >--- > 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.46.0
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