Commit Graph

59226 Commits

Author SHA1 Message Date
Matt Blenkinsop 21a6746f6f
Bug 38201: Rename resourceToAddOrEdit to resourceToSave for consistency
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:10 -06:00
Matt Blenkinsop 0ec137c094
Bug 38201: Rename instancedResource to resourceConfig in base-resource.js
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:10 -06:00
Matt Blenkinsop 1d84734c7e
Bug 38201: Add further context to embed docs
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:09 -06:00
Matt Blenkinsop 8ae5c6d8b9
Bug 38201: Add an example SkeletonResource.vue
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:09 -06:00
Matt Blenkinsop 7ae8fe46b1
Bug 38201: Fix refresh regression in agreements list filters
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:08 -06:00
Matt Blenkinsop c9c3426fd1
Bug 38201: Breadcrumb tidy up
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:08 -06:00
Matt Blenkinsop b4428f303b
Bug 38201: Allow edit form breadcrumb to be dynamic
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:07 -06:00
Matt Blenkinsop 78c264408f
Bug 38201: Rename onSubmit to onFormSave
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:07 -06:00
Matt Blenkinsop 0d1c3af9b5
Bug 38201: Tidy up missed variable in base-resource
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:06 -06:00
Matt Blenkinsop f9fbe6968d
Bug 38201: Add JSDoc for the instancedResource passed to base-resource
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:06 -06:00
Matt Blenkinsop 08ca469992
Bug 38201: Group methods in base-resource.js
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:05 -06:00
Jonathan Druart 7e4199c113
Bug 38201: Fix display of packages on 'show title' - EBSCO
[Vue warn]: Property "table_id" was accessed during render but is not defined on instance.

(cherry picked from commit 99fffe9820cf752ef584450b2a58fcedec0d7359)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:05 -06:00
Jonathan Druart 83f991cf8c
Bug 38201: Restore access to the preservation module when not configured
(cherry picked from commit b076ae88fe502a51f30b078ede6cb7e952dea670)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:04 -06:00
Jonathan Druart 01cdc32694
Bug 38201: Do not freeze the app if ERMModule is turned off
(cherry picked from commit 75ed8ac404797514dc5ed615c3b1e21b6abf58ae)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:04 -06:00
Matt Blenkinsop da4dc4a66d
Bug 38201: Restore dropdown buttons to vendor show
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:03 -06:00
Matt Blenkinsop 5677734c09
Bug 38201: Fix cypress tests
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:02 -06:00
Matt Blenkinsop 6e1baf4276
Bug 38201: Fix broken action buttons on vendor list
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:02 -06:00
Matt Blenkinsop 0d9996b581
Bug 38201: Fix duplicate IDs on vendor form
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:01 -06:00
Matt Blenkinsop 31efb146d7
Bug 38201: Fix EBSCO pages
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:01 -06:00
Matt Blenkinsop ba1cbd3158
Bug 38201: Fix UI issue in titles show
Scoped styling cannot flow to child components in Vue 3 if the components have more than one root node. The added div in this patch is intended to convert BaseResource into a single root node component to allow this.

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:00 -06:00
Matt Blenkinsop bccc934c16
Bug 38201: Fix console warnings for user roles
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:40:00 -06:00
Matt Blenkinsop c24c5a8be9
Bug 38201: Prevent 'no resources' message showing in relationshipWidget if resources do exist
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:59 -06:00
Matt Blenkinsop 7d5bd4b9ae
Bug 38201: Rename the '@k' alias to koha-vue
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:59 -06:00
Jonathan Druart d80916696f
Bug 38201: Do not export $__ from the base resource
We had this following warning in the console:
[Vue warn]: setup() return property "$__" should not start with "$" or "_" which are reserved prefixes for Vue internals.

Trying to fix this and realized we could do better in our handling of
the i18n functions.

This patch suggests to:
1. Have "@k" available as the Koha Vue root path so that we can easily
   import without relative paths
   TODO - Should be applied to all other imports
2. Import the i18n functions from the components when we need it
3. Do not have them available in the i18n object exported by the
   base resource
4. Remove direct use of __() from scripts and always use $__()

(cherry picked from commit 247675939ef28a90d21be863c6a57382cf3de966)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:58 -06:00
Matt Blenkinsop 79a3bf56f5
Bug 38201: Fix missing select labels when adding items to a train
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:58 -06:00
Jonathan Druart a2f1a232be
Bug 38201: DT - Remove 'autoWidth: false'
The default is "true" and is what we use in datatables.js.

This patch also moves the CSS rules to BaseResource to avoid
duplication.

The style of DT was modified in the item list of a train, because it inherited from fieldset.rows ol table (staff-global).

(cherry picked from commit 713d2598a05e501a46d1d1b8557e7d6bf8863f0b)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:57 -06:00
Jonathan Druart adfde0959f
Bug 38201: Remove JS warning
[Vue warn]: Invalid prop: type check failed for prop "modelValue". Expected Boolean, got String with value "received".

(cherry picked from commit 24e90a6c4d3680ccf9eb24291ba747e5026dd303)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:57 -06:00
Jonathan Druart b807f95c5d
Bug 38201: Avoid redundant regex test when replacing breadcrumb placeholders
(cherry picked from commit c826ae5b36e1472b3122b6e0ff4cc49c65a9c817)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:56 -06:00
Matt Blenkinsop ee2a4f89e5
Bug 38201: Fix composition API migration omissions
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:56 -06:00
Matt Blenkinsop 0b80976cb3
Bug 38201: Allow the breadcrumb to be dynamic in the show component
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:55 -06:00
Matt Blenkinsop f34565f958
Bug 38201: Remove console warning for readonly computed value
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:55 -06:00
Matt Blenkinsop 07c9d989e2
Bug 38201: Move 'created' call into base-resource
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:54 -06:00
Matt Blenkinsop c954d0b590
Bug 38201: Add missing JSDocs to base-resource and base-element
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:54 -06:00
Matt Blenkinsop c41fc9ab1f
Bug 38201: Add missing 'created' calls to preservation resources
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:53 -06:00
Matt Blenkinsop 3903ad2f5d
Bug 38201: Restore ERM provider filtering to the left menu
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:53 -06:00
Matt Blenkinsop c062598d8f
Bug 38201: Restore physical address in vendor show view
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:52 -06:00
Matt Blenkinsop 22a76c4830
Bug 38201: Support sticky toolbars in the framework
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:52 -06:00
Matt Blenkinsop 8d176b1362
Bug 38201: Remove duplicate 'close' link from Trains show
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:51 -06:00
Matt Blenkinsop d0d000f98b
Bug 38201: Pre-select the 'all' option in the trains table filters
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:51 -06:00
Matt Blenkinsop 634d6ef637
Bug 38201: Allow the train items table to update when items are removed
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:50 -06:00
Matt Blenkinsop 303b1d3df3
Bug 38201: Clear items added to the waiting list state once items added to train
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:50 -06:00
Matt Blenkinsop a63ae2d19c
Bug 38201: Compute appendToShow into the fieldGroupings to avoid separate logic
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:49 -06:00
Matt Blenkinsop b688e7a6cb
Bug 38201: Allow modal confirmations to accept a size property
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:49 -06:00
Matt Blenkinsop a7e6a0ee13
Bug 38201: Add an accordion wrapper to allow usage in ResourceShow
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:48 -06:00
Matt Blenkinsop 5686cb8b95
Bug 38201: Add a tabs wrapper to allow usage in ResourceShow
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:48 -06:00
Matt Blenkinsop 0b196bf07f
Bug 38201: Delete redundant vendors components
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:47 -06:00
Matt Blenkinsop b599ffa8fc
Bug 38201: Restore show password option to vendor interfaces
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:47 -06:00
Matt Blenkinsop e8c584cf1c
Bug 38201: Allow field validation methods to be passed with the attribute
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:46 -06:00
Matt Blenkinsop b3558ee08f
Bug 38201: Allow a fallbackType for av selects that have no values
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:46 -06:00
Matt Blenkinsop bdc73ccc50
Bug 38201: Migrate permissions store to a composable
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-02 09:39:45 -06:00