Koha-clms/api/v1/swagger/paths
Michał Kula ba49b71340 Bug 37393: fix "In bundle:" link not showing for items in staff interface
The cause was erroneous check `[% IF bundlesEnabled %]` before the parent bundle information is requested+shown. The `bundlesEnabled` variable checks if the current biblio ITSELF is of collection type, so should only be used for whether to show the button to add new items to the bundle items, NOT for querying whether current item is part of a bundle, as the items that make up the bundle aren't of collection type themselves.

The second fixed problem was that `bundle_host` didn't contain `.biblio` subitem (which'd contain the actual host biblio title) as the JavaScript code assumed, and it wasn't possible to request it with the API either.

Test plan: please follow the reproduction instructions from bug and ensure that the described issue is gone.

If you run into an error 400 on the detail page, you need to refresh API definitions, in kts shell you'drun:

redocly bundle --ext json api/v1/swagger/swagger.yaml --output api/v1/swagger/swagger_bundle.json
koha-plack --restart kohadev

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 7df4eda9ec)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
2024-12-17 01:08:18 +00:00
..
acquisitions_baskets.yaml Bug 37368: Add 'library' to patron search embed 2024-11-18 18:20:53 +00:00
acquisitions_edifiles.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
acquisitions_funds.yaml Bug 37368: Add 'library' to patron search embed 2024-11-18 18:20:53 +00:00
acquisitions_orders.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
acquisitions_vendor_issues.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
acquisitions_vendors.yaml Bug 38390: Add subscriptions+count to vendors embed 2024-12-05 22:19:28 +00:00
advancededitormacros.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
article_requests.yaml Bug 30194: (follow-up) Simply OpenAPI Specification 2022-03-29 16:44:31 +02:00
auth.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
authorised_value_categories.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
authorised_values.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
authorities.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
biblios.yaml Bug 37393: fix "In bundle:" link not showing for items in staff interface 2024-12-17 01:08:18 +00:00
biblios_item_groups.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
biblios_merge.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
bookings.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
cash_registers.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
checkouts.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
circulation-rules.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
cities.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
clubs.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
config_smtp_servers.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
deleted_biblios.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_agreements.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_config.yaml Bug 34387: Improve API docs naming consistency 2023-08-15 11:25:35 +03:00
erm_counter_files.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_counter_logs.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_counter_registries.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_custom_reports.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_default_usage_reports.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_documents.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_eholdings_packages.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_eholdings_packages_resources.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_eholdings_resources.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_eholdings_titles.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_eholdings_titles_resources.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_licenses.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_sushi_services.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_usage_data_providers.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_usage_databases.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_usage_items.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_usage_platforms.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_usage_titles.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
erm_users.yaml Bug 37368: Add 'library' to patron search embed 2024-11-18 18:20:53 +00:00
extended_attribute_types.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
holds.yaml Bug 37032: Fix typo in holds.yaml 2024-11-18 18:50:59 +00:00
ill_backends.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
ill_batches.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
ill_batchstatuses.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
ill_requests.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
import_batch_profiles.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
import_batches.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
item_types.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
items.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
jobs.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
libraries.yaml Bug 36481: (follow-up) Add missing library_id parameter 2024-07-25 15:10:22 +00:00
oauth.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
patron_categories.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
patrons.yaml Bug 29509: Update swagger specification and add permissions to users 2024-08-28 19:58:39 +00:00
patrons_account.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
patrons_checkouts.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
patrons_extended_attributes.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
patrons_holds.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
patrons_password.yaml Bug 29926: (QA follow-up) Date format missing in spec 2022-05-06 10:33:10 -10:00
patrons_recalls.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
preservation_config.yaml Bug 36565: Preservation module API docs fixes (bug 30708 follow-up) 2024-04-29 09:35:36 +02:00
preservation_processings.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
preservation_trains.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
preservation_waiting_list.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
public_oauth.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
public_patrons.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
quotes.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
record_sources.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
return_claims.yaml Bug 30194: (follow-up) Simply OpenAPI Specification 2022-03-29 16:44:31 +02:00
rotas.yaml Bug 30194: (follow-up) Simply OpenAPI Specification 2022-03-29 16:44:31 +02:00
search_filters.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
suggestions.yaml Bug 37368: Add 'library' to patron search embed 2024-11-18 18:20:53 +00:00
tickets.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00
transfer_limits.yaml Bug 37018: Add 400 response definition to all routes 2024-07-25 15:10:22 +00:00