]> git.koha-community.org Git - koha.git/log
koha.git
23 months agoBug 32030: ERM Licenses - Make field 'type' not nullable, it isn't nullable in the...
Pedro Amorim [Tue, 25 Oct 2022 10:19:02 +0000 (10:19 +0000)]
Bug 32030: ERM Licenses - Make field 'type' not nullable, it isn't nullable in the DB schema or the vuejs frontend form.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: I18N rewrite - Fix html comment for xgettext
Jonathan Druart [Wed, 26 Oct 2022 11:56:44 +0000 (13:56 +0200)]
Bug 32030: I18N rewrite - Fix html comment for xgettext

Aborted (core dumped)

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: I18N rewrite - replace $t with $__
Jonathan Druart [Wed, 26 Oct 2022 10:28:52 +0000 (12:28 +0200)]
Bug 32030: I18N rewrite - replace $t with $__

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: I18N rewrite
Jonathan Druart [Wed, 26 Oct 2022 09:58:01 +0000 (11:58 +0200)]
Bug 32030: I18N rewrite

The previous implementation was using vue-i18n inject localized strings
into the Vue app. However it was using json files, and we needed
additional overhead to convert from/to PO files.

I've also tried vue3-gettext that use PO, but the overhead to work with
our workflow was existent as well (see branch joubu/vue3-gettext).

vue-i18n-extract was using for extracting, and a specific misc script
(misc/translate_json.pl) was also used to generate the json file. They
can be removed.

Here we are simply reusing our existing workflow, and we will improve it
(ie. make it more vue-ish) later if we need it.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix EBSCO link for packages
Jonathan Druart [Wed, 26 Oct 2022 11:56:25 +0000 (13:56 +0200)]
Bug 32030: Fix EBSCO link for packages

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix Cypress tests - Mock GET agreements route
Jonathan Druart [Wed, 26 Oct 2022 06:39:48 +0000 (08:39 +0200)]
Bug 32030: Fix Cypress tests - Mock GET agreements route

Or the test will fail if agreements exist

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix Cypress tests - documents is an attribute of license
Jonathan Druart [Wed, 26 Oct 2022 06:31:27 +0000 (08:31 +0200)]
Bug 32030: Fix Cypress tests - documents is an attribute of license

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix Cypress tests - follow-up Add document to license
Jonathan Druart [Wed, 26 Oct 2022 06:16:21 +0000 (08:16 +0200)]
Bug 32030: Fix Cypress tests - follow-up Add document to license

The id has been modified

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix Cypress tests - flatpickr date format
Jonathan Druart [Wed, 26 Oct 2022 06:17:48 +0000 (08:17 +0200)]
Bug 32030: Fix Cypress tests - flatpickr date format

...but then we don't have access to the formatted date values, and need
to compare the ISO dates.
FIXME - Find a way to compare the displayed/formatted dates

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix Cypress tests - flatpickr selector
Jonathan Druart [Wed, 26 Oct 2022 06:41:21 +0000 (08:41 +0200)]
Bug 32030: Fix Cypress tests - flatpickr selector

Since bug 30718 the input does no longer the displayed value. Let select
the input that has the iso date values but...

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix Cypress tests - Fix '.'
Jonathan Druart [Wed, 26 Oct 2022 06:41:15 +0000 (08:41 +0200)]
Bug 32030: Fix Cypress tests - Fix '.'

In a previous revision of "Update I18N" we removed the '.' at the end of
the error/warning/info messages

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add table settings to the yml file
Jonathan Druart [Mon, 24 Oct 2022 12:50:43 +0000 (14:50 +0200)]
Bug 32030: Add table settings to the yml file

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Remove inexistent 'agreements' embed from licenses - API spec
Pedro Amorim [Sun, 23 Oct 2022 20:09:18 +0000 (20:09 +0000)]
Bug 32030: Remove inexistent 'agreements' embed from licenses - API spec

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Rebase UI fix - Align documents listing with the rest of the data for...
Pedro Amorim [Sat, 22 Oct 2022 13:21:09 +0000 (13:21 +0000)]
Bug 32030: Rebase UI fix - Align documents listing with the rest of the data for ERM licenses and agreements

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Use vue-select beta.3, beta.5 is buggy
Jonathan Druart [Fri, 21 Oct 2022 15:12:46 +0000 (17:12 +0200)]
Bug 32030: Use vue-select beta.3, beta.5 is buggy

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Rebase UI fix - Fix toolbar
Jonathan Druart [Fri, 21 Oct 2022 12:25:39 +0000 (14:25 +0200)]
Bug 32030: Rebase UI fix - Fix toolbar

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Rebase UI fix - Fix sidebar
Jonathan Druart [Fri, 21 Oct 2022 12:21:59 +0000 (14:21 +0200)]
Bug 32030: Rebase UI fix - Fix sidebar

Might be improved a bit more

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Rebase UI fix - Use page-section for better separation in forms
Jonathan Druart [Fri, 21 Oct 2022 12:11:16 +0000 (14:11 +0200)]
Bug 32030: Rebase UI fix - Use page-section for better separation in forms

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Rebase UI fix - Remove width for tables in 'show' views
Jonathan Druart [Fri, 21 Oct 2022 10:52:24 +0000 (12:52 +0200)]
Bug 32030: Rebase UI fix - Remove width for tables in 'show' views

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Rebase UI fix - Remove padding-left
Jonathan Druart [Fri, 21 Oct 2022 09:59:26 +0000 (11:59 +0200)]
Bug 32030: Rebase UI fix - Remove padding-left

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Rebase UI fix - Header search
Jonathan Druart [Fri, 21 Oct 2022 10:44:17 +0000 (12:44 +0200)]
Bug 32030: Rebase UI fix - Header search

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix date handling - conflicts with bug 30718
Jonathan Druart [Fri, 21 Oct 2022 10:00:22 +0000 (12:00 +0200)]
Bug 32030: Fix date handling - conflicts with bug 30718

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add documents to license
Pedro Amorim [Wed, 19 Oct 2022 11:32:09 +0000 (11:32 +0000)]
Bug 32030: Add documents to license

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add document to license - REST API spec
Pedro Amorim [Wed, 19 Oct 2022 11:31:05 +0000 (11:31 +0000)]
Bug 32030: Add document to license - REST API spec

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add document to license - DB
Pedro Amorim [Wed, 19 Oct 2022 11:29:43 +0000 (11:29 +0000)]
Bug 32030: Add document to license - DB

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add document to license - Preparation step
Pedro Amorim [Wed, 19 Oct 2022 11:29:19 +0000 (11:29 +0000)]
Bug 32030: Add document to license - Preparation step

Typo in fieldset id

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix useRouter() is undefined
Jonathan Druart [Fri, 21 Oct 2022 08:54:11 +0000 (10:54 +0200)]
Bug 32030: Fix useRouter() is undefined

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix injectedRoute is undefined
Jonathan Druart [Fri, 21 Oct 2022 08:09:15 +0000 (10:09 +0200)]
Bug 32030: Fix injectedRoute is undefined

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix pinia init
Jonathan Druart [Thu, 20 Oct 2022 15:29:07 +0000 (17:29 +0200)]
Bug 32030: Fix pinia init

Uncaught Error: [🍍]: getActivePinia was called with no active Pinia. Did you forget to install pinia? const pinia = createPinia() app.use(pinia) This will fail in production.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Handle error 401 Unauthorized from EBSCO api - Display all messages
Jonathan Druart [Thu, 20 Oct 2022 07:39:59 +0000 (09:39 +0200)]
Bug 32030: Handle error 401 Unauthorized from EBSCO api - Display all messages

In case there are more than one message.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Handle error 401 Unauthorized from EBSCO api
Pedro Amorim [Tue, 18 Oct 2022 21:11:36 +0000 (21:11 +0000)]
Bug 32030: Handle error 401 Unauthorized from EBSCO api

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix for app undefined error
Pedro Amorim [Wed, 19 Oct 2022 18:08:09 +0000 (18:08 +0000)]
Bug 32030: Fix for app undefined error

Solution found at: https://stackoverflow.com/a/65346965/3594153

If we install new version of the packages, we got the following error in
the console:
  Firefox - Uncaught TypeError: app is undefined
  Chrome - Cannot read properties of undefined (reading 'config')

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add Notes field to erm_eholdings_packages table
Pedro Amorim [Tue, 18 Oct 2022 19:18:19 +0000 (19:18 +0000)]
Bug 32030: Add Notes field to erm_eholdings_packages table

- Added API specs for new field 'notes' for erm_holdings_package;
- Added new field 'notes' in DB schema for erm;
- Added new field 'notes' in Vue.js frontend

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix vue-select CSS import
Jonathan Druart [Wed, 19 Oct 2022 09:54:43 +0000 (11:54 +0200)]
Bug 32030: Fix vue-select CSS import

Fix the following error:

Module not found: Error: Package path ./dist/vue-select.css?vue&type=style&index=0&lang=css is not exported from package /kohadevbox/koha/node_modules/vue-select (see exports field in /kohadevbox/koha/node_modules/vue-select/package.json)
 @ ./koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts 11:20-59

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add some cypress tests
Jonathan Druart [Thu, 11 Aug 2022 09:45:45 +0000 (11:45 +0200)]
Bug 32030: Add some cypress tests

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Remove 'this' from template
Jonathan Druart [Thu, 11 Aug 2022 07:35:59 +0000 (09:35 +0200)]
Bug 32030: Remove 'this' from template

For consistency, it's not needed.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Improve label for 'Add to/remove from holdings' buttons
Jonathan Druart [Thu, 4 Aug 2022 13:30:39 +0000 (15:30 +0200)]
Bug 32030: Improve label for 'Add to/remove from holdings' buttons

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Replace vendor with publisher name on the EBSCO title list view
Jonathan Druart [Thu, 4 Aug 2022 13:03:23 +0000 (15:03 +0200)]
Bug 32030: Replace vendor with publisher name on the EBSCO title list view

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Do not embed resources.package for EBSCO's titles
Jonathan Druart [Thu, 4 Aug 2022 13:00:43 +0000 (15:00 +0200)]
Bug 32030: Do not embed resources.package for EBSCO's titles

Why has this been added? At first glance we don't need it!

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Show on the title list view if titles are selected in KB
Jonathan Druart [Thu, 4 Aug 2022 12:46:33 +0000 (14:46 +0200)]
Bug 32030: Show on the title list view if titles are selected in KB

Same as packages, but for titles here.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add/remove packages to/from EBSCO's holdings
Jonathan Druart [Wed, 3 Aug 2022 14:25:16 +0000 (16:25 +0200)]
Bug 32030: Add/remove packages to/from EBSCO's holdings

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add/remove resources to/from EBSCO's holdings
Jonathan Druart [Wed, 3 Aug 2022 12:19:03 +0000 (14:19 +0200)]
Bug 32030: Add/remove resources to/from EBSCO's holdings

Add an "Add to holdings" and "Remove from holdings" buttons on the
resource page.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Modal - Make warnings sticky at the top
Jonathan Druart [Wed, 3 Aug 2022 10:27:52 +0000 (12:27 +0200)]
Bug 32030: Modal - Make warnings sticky at the top

Warning messages are displayed when a form is not submited because
something is wrong on the form.
We should notify the user on the visible screen, not at the top of the
form that could be hidden.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Update I18N
Jonathan Druart [Thu, 23 Jun 2022 15:49:19 +0000 (17:49 +0200)]
Bug 32030: Update I18N

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Filter by expired agreements
Jonathan Druart [Wed, 3 Aug 2022 09:28:12 +0000 (11:28 +0200)]
Bug 32030: Filter by expired agreements

This patch adds a checkbox and flatpickr input to filter agreements by
expiration date.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: DT - Prevent wrong row to be used
Jonathan Druart [Wed, 3 Aug 2022 05:18:10 +0000 (07:18 +0200)]
Bug 32030: DT - Prevent wrong row to be used

We noticed on "Create eHolding titles from a list" that the wrong row
could be used: api.row(index) does not return the rows ordered how they
are on the screen.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: I18N - de-DE, es-ES fr-FR translation
Jonathan Druart [Mon, 25 Jul 2022 10:00:26 +0000 (12:00 +0200)]
Bug 32030: I18N - de-DE, es-ES fr-FR translation

echo "{}" > koha-tmpl/intranet-tmpl/prog/js/vue/locales/de-DE.json
echo "{}" > koha-tmpl/intranet-tmpl/prog/js/vue/locales/es-ES.json
echo "{}" > koha-tmpl/intranet-tmpl/prog/js/vue/locales/fr-FR.json
npx vue-i18n-extract --vueFiles 'koha-tmpl/intranet-tmpl/prog/js/vue/**/*.?(js|vue)' \
                     --exclude koha-tmpl/intranet-tmpl/prog/js/vue/dist/main.js \
                     --languageFiles 'koha-tmpl/intranet-tmpl/prog/js/vue/locales/*.json' \
                     --add --remove
perl misc/translate_json.pl de-DE | sponge koha-tmpl/intranet-tmpl/prog/js/vue/locales/de-DE.json
perl misc/translate_json.pl es-ES | sponge koha-tmpl/intranet-tmpl/prog/js/vue/locales/es-ES.json
perl misc/translate_json.pl fr-FR | sponge koha-tmpl/intranet-tmpl/prog/js/vue/locales/fr-FR.json

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Create eHolding titles from a list
Jonathan Druart [Tue, 2 Aug 2022 09:35:51 +0000 (11:35 +0200)]
Bug 32030: Create eHolding titles from a list

Add the ability to create new titles and attach them to a package.
The MARC to KBART2 mapping is the following (based on
https://github.com/adambuttrick/marc_to_kbart/blob/master/convert.py):

publication_title = biblio.title
print_identifier  = 020$a||020$z||022$a||022$y
online_identifier = 020$a||020$z||022$a||022$y
date_first_issue_online = 866$a (before '-')
date_last_issue_online  = 866$a (after '-')
num_first_vol_online    = 863$a (before '-')
num_last_vol_online     = 863$a (after '-')
num_first_issue_online  = ?
num_last_issue_online   = ?
title_url = 856$u
first_author = biblio.first_author
embargo_info = ?
coverage_depth = title_url ? 'fulltext' : 'print'
notes = $852$z
publisher_name = 260$b
publication_type = ?
date_monograph_published_print = ?
date_monograph_published_online = ?
monograph_volume = ?
monograph_edition = ?
first_editor = ?
parent_publication_title_id = ?
preceeding_publication_title_id = ?
access_type = ?

Note that title is not created (and so the resource) if a title from
this package already has a link to this bibliographic record.
Is that correct, or should we create another resource?

Should the import screen also have "start date" and "end date" to set for the
resource?

QA note: Ideally we would like to fetch the list from the REST API but the routes
are not there yet.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Increase font-weight for nav menu only
Jonathan Druart [Tue, 2 Aug 2022 14:09:04 +0000 (16:09 +0200)]
Bug 32030: Increase font-weight for nav menu only

Not the breadcrumb

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Improve form UI
Jonathan Druart [Thu, 28 Jul 2022 15:26:46 +0000 (17:26 +0200)]
Bug 32030: Improve form UI

* Align inputs, textareas and selects
* Use vue-select for dropdown lists

Note that the only way I found to make the select required is to follow
what is on their doc https://vue-select.org/guide/validation.html#required

However we need our own vue-select-required component to avoid the
repetition (the #search slot). I've tried (but failed) on
https://gitlab.com/joubu/Koha/-/commits/erm-v-select-required

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: ERM - Add vendor to license
Jonathan Druart [Thu, 28 Jul 2022 08:30:55 +0000 (10:30 +0200)]
Bug 32030: ERM - Add vendor to license

ALTER TABLE erm_agreement_licenses DROP FOREIGN KEY erm_licenses_ibfk_1;
ALTER TABLE erm_agreement_licenses DROP FOREIGN KEY erm_licenses_ibfk_2;
ALTER TABLE erm_agreement_licenses ADD CONSTRAINT `erm_agreement_licenses_ibfk_1` FOREIGN KEY (`agreement_id`) REFERENCES `erm_agreements` (`agreement_id`) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE erm_agreement_licenses ADD CONSTRAINT `erm_agreement_licenses_ibfk_2` FOREIGN KEY (`license_id`) REFERENCES `erm_licenses` (`license_id`) ON DELETE CASCADE ON UPDATE CASCADE;

ALTER TABLE erm_licenses ADD COLUMN vendor_id INT(11) DEFAULT NULL AFTER license_id;
ALTER TABLE erm_licenses ADD CONSTRAINT `erm_licenses_ibfk_1` FOREIGN KEY (`vendor_id`) REFERENCES `aqbooksellers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix UTF8 issue
Jonathan Druart [Tue, 26 Jul 2022 07:14:45 +0000 (09:14 +0200)]
Bug 32030: Fix UTF8 issue

GET /api/v1/erm/eholdings/ebsco/titles: unhandled exception (Mojo::Exception)<<Wide character in subroutine entry at /kohadevbox/koha/Koha/ERM/Providers/EBSCO.pm line 123

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: I18N - Load de-DE, es-ES, fr-FR strings
Jonathan Druart [Mon, 25 Jul 2022 10:00:09 +0000 (12:00 +0200)]
Bug 32030: I18N - Load de-DE, es-ES, fr-FR strings

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Allow only one controlling license per agreement
Jonathan Druart [Thu, 21 Jul 2022 06:48:45 +0000 (08:48 +0200)]
Bug 32030: Allow only one controlling license per agreement

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: ERM - Agreement documents (FIXED)
Jonathan Druart [Wed, 20 Jul 2022 10:01:05 +0000 (12:01 +0200)]
Bug 32030: ERM - Agreement documents (FIXED)

Document - don't send file_content when fetching a document

apt install libmojolicious-plugin-renderfile-perl

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Unique - DB
Jonathan Druart [Wed, 20 Jul 2022 09:03:35 +0000 (11:03 +0200)]
Bug 32030: Unique - DB

alter table erm_agreement_licenses add unique key `erm_agreement_licenses_uniq` (`agreement_id`, `license_id`);
alter table erm_eholdings_packages_agreements add unique key `erm_eholdings_packages_agreements_uniq` (`package_id`, `agreement_id`);
alter table erm_eholdings_resources add UNIQUE KEY `erm_eholdings_resources_uniq` (`title_id`, `package_id`);

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Unique - Prevent same relationships for agreements
Jonathan Druart [Wed, 3 Aug 2022 05:41:06 +0000 (07:41 +0200)]
Bug 32030: Unique - Prevent same relationships for agreements

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Unique - Prevent same package for local titles
Jonathan Druart [Wed, 20 Jul 2022 08:50:47 +0000 (10:50 +0200)]
Bug 32030: Unique - Prevent same package for local titles

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Unique - Prevent same agreement for ebsco packages
Jonathan Druart [Wed, 20 Jul 2022 08:44:55 +0000 (10:44 +0200)]
Bug 32030: Unique - Prevent same agreement for ebsco packages

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Unique - Prevent same agreement for local packages
Jonathan Druart [Wed, 20 Jul 2022 08:31:53 +0000 (10:31 +0200)]
Bug 32030: Unique - Prevent same agreement for local packages

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Unique - Prevent agreement to have the same license several times
Jonathan Druart [Thu, 14 Jul 2022 14:09:40 +0000 (16:09 +0200)]
Bug 32030: Unique - Prevent agreement to have the same license several times

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add warning to Dialog
Jonathan Druart [Thu, 14 Jul 2022 13:16:51 +0000 (15:16 +0200)]
Bug 32030: Add warning to Dialog

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Simplify JS map for DT filters
Jonathan Druart [Thu, 14 Jul 2022 09:52:49 +0000 (11:52 +0200)]
Bug 32030: Simplify JS map for DT filters

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Use composable for DT destroy
Jonathan Druart [Thu, 14 Jul 2022 08:58:58 +0000 (10:58 +0200)]
Bug 32030: Use composable for DT destroy

Use the Composition API to have this destroy code in a single place.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: List local titles - replace 'vendor' with 'first contributors'
Jonathan Druart [Thu, 14 Jul 2022 07:27:04 +0000 (09:27 +0200)]
Bug 32030: List local titles - replace 'vendor' with 'first contributors'

First author + first editor

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix removal of agreement's vendor
Jonathan Druart [Thu, 14 Jul 2022 07:18:42 +0000 (09:18 +0200)]
Bug 32030: Fix removal of agreement's vendor

It was not possible to select the blank value and submit the form

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Make Vendor a hypertext field on Agreements page
Jonathan Druart [Thu, 14 Jul 2022 07:09:19 +0000 (09:09 +0200)]
Bug 32030: Make Vendor a hypertext field on Agreements page

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Display the list of packages on the 'show agreement' view
Jonathan Druart [Wed, 13 Jul 2022 15:29:10 +0000 (17:29 +0200)]
Bug 32030: Display the list of packages on the 'show agreement' view

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix condition for DT destruction
Jonathan Druart [Wed, 13 Jul 2022 15:11:05 +0000 (17:11 +0200)]
Bug 32030: Fix condition for DT destruction

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Redirect to the Koha home page when "Home" is clicked from the breadcrumb
Jonathan Druart [Wed, 13 Jul 2022 13:36:23 +0000 (15:36 +0200)]
Bug 32030: Redirect to the Koha home page when "Home" is clicked from the breadcrumb

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Restore destroy of datatables on beforeUnmount
Jonathan Druart [Thu, 7 Jul 2022 07:49:42 +0000 (09:49 +0200)]
Bug 32030: Restore destroy of datatables on beforeUnmount

Otherwise the DT's headers where duplicated. We must destroy DT when we
unmount the component.

Edit: Hum maybe not!
Looks like the bug still exists if `yarn build_js` is used instead of
`yarn watch_js`!

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Display the number of local packages and titles matching the search
Jonathan Druart [Tue, 5 Jul 2022 12:52:11 +0000 (14:52 +0200)]
Bug 32030: Display the number of local packages and titles matching the search

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: remove erm-menu.inc
Jonathan Druart [Tue, 5 Jul 2022 08:56:06 +0000 (10:56 +0200)]
Bug 32030: remove erm-menu.inc

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Disable the module if the pref is not enabled
Jonathan Druart [Tue, 5 Jul 2022 08:06:41 +0000 (10:06 +0200)]
Bug 32030: Disable the module if the pref is not enabled

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Link external packages with agreements
Jonathan Druart [Thu, 30 Jun 2022 15:14:40 +0000 (17:14 +0200)]
Bug 32030: Link external packages with agreements

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: WIP - Modal [Does not work, can be dropped]
Jonathan Druart [Thu, 30 Jun 2022 13:08:37 +0000 (15:08 +0200)]
Bug 32030: WIP - Modal [Does not work, can be dropped]

We need to adjust our DataTable first

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Display agreements on the package show view
Jonathan Druart [Thu, 30 Jun 2022 12:49:08 +0000 (14:49 +0200)]
Bug 32030: Display agreements on the package show view

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Make the ERMProviders syspref multivaluated
Jonathan Druart [Wed, 29 Jun 2022 15:42:28 +0000 (17:42 +0200)]
Bug 32030: Make the ERMProviders syspref multivaluated

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Allow syspref to be read from the config
Jonathan Druart [Tue, 28 Jun 2022 08:38:42 +0000 (10:38 +0200)]
Bug 32030: Allow syspref to be read from the config

Trick, because of bug 31042

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Some refactoring and improvements
Jonathan Druart [Fri, 24 Jun 2022 12:32:02 +0000 (14:32 +0200)]
Bug 32030: Some refactoring and improvements

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Proxy with HoldingsIQ
Jonathan Druart [Mon, 20 Jun 2022 12:57:01 +0000 (14:57 +0200)]
Bug 32030: Proxy with HoldingsIQ

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: ERM - Add ERMProvider syspref
Jonathan Druart [Mon, 20 Jun 2022 09:51:31 +0000 (11:51 +0200)]
Bug 32030: ERM - Add ERMProvider syspref

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Create a local bibliographic record for resources
Jonathan Druart [Mon, 20 Jun 2022 08:59:07 +0000 (10:59 +0200)]
Bug 32030: Create a local bibliographic record for resources

When a new resource is created we create a new bibliographic record in
Koha that is linked at the title level

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Improve breadcrumb (again)
Jonathan Druart [Mon, 30 May 2022 15:44:49 +0000 (17:44 +0200)]
Bug 32030: Improve breadcrumb (again)

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add links to vendors
Jonathan Druart [Mon, 30 May 2022 13:07:54 +0000 (15:07 +0200)]
Bug 32030: Add links to vendors

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Update I18N
Jonathan Druart [Mon, 30 May 2022 12:50:09 +0000 (14:50 +0200)]
Bug 32030: Update I18N

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: maintenance holdingsIQ
Jonathan Druart [Mon, 30 May 2022 12:46:25 +0000 (14:46 +0200)]
Bug 32030: maintenance holdingsIQ

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add title.external_id
Jonathan Druart [Mon, 30 May 2022 11:56:52 +0000 (13:56 +0200)]
Bug 32030: Add title.external_id

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix header searches
Jonathan Druart [Mon, 30 May 2022 10:04:34 +0000 (12:04 +0200)]
Bug 32030: Fix header searches

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: (follow-up) Fix datatable.js order_by
Jonathan Druart [Mon, 30 May 2022 09:35:53 +0000 (11:35 +0200)]
Bug 32030: (follow-up) Fix datatable.js order_by

The previous change was not working, we need to define a render function
to prevent a DT error.

"Requested unknown parameter 'me.agreement_id,me.name' for row 0, column 0"

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: yarn.lock - Update to Node14
Jonathan Druart [Thu, 19 May 2022 11:43:00 +0000 (13:43 +0200)]
Bug 32030: yarn.lock - Update to Node14

Vue 3.2.34 required Node14
npm install -g n
sudo n 14

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: add maintenance script for HoldingsIQ
Jonathan Druart [Mon, 30 May 2022 08:34:00 +0000 (10:34 +0200)]
Bug 32030: add maintenance script for HoldingsIQ

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add a route to display a resource
Jonathan Druart [Thu, 26 May 2022 09:08:11 +0000 (11:08 +0200)]
Bug 32030: Add a route to display a resource

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: ERM - Add eHoldings home page
Jonathan Druart [Thu, 26 May 2022 07:50:54 +0000 (09:50 +0200)]
Bug 32030: ERM - Add eHoldings home page

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Update I18N
Jonathan Druart [Thu, 26 May 2022 06:57:29 +0000 (08:57 +0200)]
Bug 32030: Update I18N

Note that we are adding an extra space for id and counter, otherwise
they got removed in favor of the "simple" string.
  { Agreement: Agreement }
replaced
  { Agreement: { id: ..., counter: ... } }

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Rename Package|Resource|Title
Jonathan Druart [Thu, 26 May 2022 06:27:26 +0000 (08:27 +0200)]
Bug 32030: Rename Package|Resource|Title

At this point we renamed eHoldings to Titles and eHoldings-package to
Resource.

Packages, resources and titles are now under the eholdings namespace.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: vue - display packages for title
Jonathan Druart [Wed, 25 May 2022 14:50:41 +0000 (16:50 +0200)]
Bug 32030: vue - display packages for title

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Improve I18N
Jonathan Druart [Wed, 25 May 2022 13:32:25 +0000 (15:32 +0200)]
Bug 32030: Improve I18N

* Remove ":" from the translation to prevent duplication string
* Add a script to auto-translate the strings in English

echo "{}" > koha-tmpl/intranet-tmpl/prog/js/vue/locales/en.json
npx vue-i18n-extract --vueFiles 'koha-tmpl/intranet-tmpl/prog/js/vue/**/*.?(js|vue)' \
                     --exclude koha-tmpl/intranet-tmpl/prog/js/vue/dist/main.js \
                     --languageFiles 'koha-tmpl/intranet-tmpl/prog/js/vue/locales/*.json' \
                     --add --remove
perl misc/translate_json.pl | sponge koha-tmpl/intranet-tmpl/prog/js/vue/locales/en.json

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add eholdings.vendor_id
Jonathan Druart [Wed, 25 May 2022 12:16:18 +0000 (14:16 +0200)]
Bug 32030: Add eholdings.vendor_id

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: link eholding and package
Jonathan Druart [Wed, 25 May 2022 12:15:32 +0000 (14:15 +0200)]
Bug 32030: link eholding and package

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>