]> git.koha-community.org Git - koha.git/log
koha.git
23 months agoBug 32088: Consistent classes for primary buttons: Patron card creator
Owen Leonard [Thu, 3 Nov 2022 13:01:45 +0000 (13:01 +0000)]
Bug 32088: Consistent classes for primary buttons: Patron card creator

This patch makes changes the button markup in patron card creator
templates so that all submit buttons and any buttons that should should
be styled as primary buttons have the Bootstrap class "btn btn-primary."

To test, apply the patch and view patron card creator pages to confirm
that everything looks correct. In most cases there are no visible
changes.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32087: Consistent classes for primary buttons: Course reserves
Owen Leonard [Thu, 3 Nov 2022 12:09:56 +0000 (12:09 +0000)]
Bug 32087: Consistent classes for primary buttons: Course reserves

This patch makes changes the button markup in course reserves templates
so that all submit buttons and any buttons that should should be styled
as primary buttons have the Bootstrap class "btn btn-primary."

To test, apply the patch and view course reserves pages to confirm
that everything looks correct. In most cases there are no visible
changes.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32138: Fix OIDC default mapping
David Cook [Wed, 9 Nov 2022 00:43:53 +0000 (00:43 +0000)]
Bug 32138: Fix OIDC default mapping

This patch fixes the OIDC default mapping to have the Koha fields on
the left (ie key) and the OIDC standard claim fields on the right (ie value).

1. Apply the patch
2. Go to http://localhost:8081/cgi-bin/koha/admin/identity_providers.pl?op=add_form
3. Choose "OIDC" for "Protocol"
4. Click "Add default OIDC mapping"
5. Note the following is displayed:
{
  "email": "email",
  "firstname": "given_name",
  "surname": "family_name"
}

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32141: Add missing fieldset legends and titlecase "matchpoint"
David Cook [Wed, 9 Nov 2022 02:10:55 +0000 (02:10 +0000)]
Bug 32141: Add missing fieldset legends and titlecase "matchpoint"

This patch adds missing fieldset legends and titlecases "matchpoint",
so that the "Edit" UI is consistent with the "New" UI for adding
and modifying Identity Providers.

Test plan:
1) Apply patches
2) Go to http://localhost:8081/cgi-bin/koha/admin/identity_providers.pl?op=add_form
3) Fill out the fields to add an identity provider
4) Click "Edit" next to the Identity Provider in the list
5) In a new tab, go to
http://localhost:8081/cgi-bin/koha/admin/identity_providers.pl?op=add_form
6) Compare the two screens and note that all the labels, inputs, and help text
are the same on both screens.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32141: Fix textbox formatting on edit IdP screen
David Cook [Wed, 9 Nov 2022 02:07:03 +0000 (02:07 +0000)]
Bug 32141: Fix textbox formatting on edit IdP screen

This patch makes the textbox have the same number of rows and columns
on the "Edit" page as it does on the "New" page for Identity Providers.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32139: Set "update on login" correctly when creating new IdP
David Cook [Wed, 9 Nov 2022 01:59:28 +0000 (01:59 +0000)]
Bug 32139: Set "update on login" correctly when creating new IdP

This patches allows "Update on Login" to be set to "Yes" when
creating a domain as part of a new Identity Provider.

Test plan:
1) Apply patch
2) koha-plack --reload kohadev
3) Go to http://localhost:8081/cgi-bin/koha/admin/identity_providers.pl
4) Click "New identity provider"
5) Fill in "Code" and "Description" with "test"
6) Click "Add default OAuth configuration"
7) Click "Add default OAUth mapping"
8) Fill in "Domain" with "*"
9) Change "Allow OPAC", "Allow staff", "Auto register", and "Update on login"
to "Yes"
10) Click "Submit"
11) Click "Manage Domains" for your new Identity Provider
12) Note that "Allow opac", "Allow staff", "Auto register", and "Update on login"
are all set to "Yes"

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32028: (follow-up) Fix headings levels
Martin Renvoize [Wed, 9 Nov 2022 13:23:39 +0000 (13:23 +0000)]
Bug 32028: (follow-up) Fix headings levels

This patch corrects the headings levels on cash_registers,
patron-attr-types and restrictions admin pages.

We also move the h2 headings inside the page-section div as appropriate.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add missing sponsors
Tomas Cohen Arazi [Wed, 9 Nov 2022 15:25:32 +0000 (12:25 -0300)]
Bug 32030: Add missing sponsors

Sponsored-by: ByWater Solutions
Sponsored-by: BibLibre
Sponsored-by: PTFS-Europe
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31894: (QA follow-up) Move rollbacks to the end
Marcel de Rooy [Tue, 25 Oct 2022 14:29:35 +0000 (14:29 +0000)]
Bug 31894: (QA follow-up) Move rollbacks to the end

Obvious fix. This test removed my method records.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31894: Extend after_hold_action hook
Stefan Berndtsson [Mon, 17 Oct 2022 14:47:06 +0000 (16:47 +0200)]
Bug 31894: Extend after_hold_action hook

Hook actions added:
after_hold_action adds new actions transfer, waiting and processing

How to test:
Run tests in t/db_dependent/Koha/Plugins/Holds_hooks.t

Sponsored by: Gothenburg University Library

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31271: Preselect previous search index
Nick Clemens [Thu, 3 Nov 2022 12:29:59 +0000 (12:29 +0000)]
Bug 31271: Preselect previous search index

This patch passes the constructed value of the preselect to search_indexes.inc

To test:
1 - Perform an advanced search, making sure to select different indexes
2 - Click 'Edit search' on results page
3 - Confirm index selections are preselected
4 - Enable  IntranetCatalogSearchPulldown
5 - Do a search form the top bar using an index
6 - Confirm 'Edit search' correctly popluates the chosen index

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32114: Add missing html_helpers.inc
Owen Leonard [Sat, 5 Nov 2022 16:02:55 +0000 (16:02 +0000)]
Bug 32114: Add missing html_helpers.inc

This patch makes a minor modification to the OPAC
search results RSS template so that an error isn't
triggered. The html_helpers include was missing.

To test, apply the patch and perform a catalog
search in the OPAC which will return results.

At the end of the "Your search results" heading
you should see an orange RSS icon. Clicking on it
should take you to an RSS feed instead of an
error page.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31818: Enable table elements in keyboard shortcuts popover
Nick Clemens [Thu, 3 Nov 2022 15:20:34 +0000 (15:20 +0000)]
Bug 31818: Enable table elements in keyboard shortcuts popover

This patch updates the whitelist for the popover to ensrue our shortcuts table displays

To test:
1 - Open the advanced cataloging editor
2 - Click 'Keyboard shortcuts'
3 - Is empty, be sad
4 - Apply patch
5 - Reload
6 - Click it again
7 - Shortcuts!

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32111: Remove disabled from date input for curbside pickup
Jonathan Druart [Fri, 4 Nov 2022 12:30:24 +0000 (13:30 +0100)]
Bug 32111: Remove disabled from date input for curbside pickup

The date input is always disabled and it's not possible to select or enter a date.

git bisect blames "Bug 30718: Apply flatpickr changes to OPAC" and "altInput: true"

I don't really know what's happening here, but it's impossible to
interact with the date widget if the input is disabled when it's
initialized.

The solution I have here is to play with hide/show instead of disabled.

Other suggestions welcome.

Test plan:
Schedule a curbside pickup from the OPAC and confirm that the date input
is working as expected.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32028: (follow-up) Improve smart rules formatting
Martin Renvoize [Wed, 9 Nov 2022 12:47:34 +0000 (12:47 +0000)]
Bug 32028: (follow-up) Improve smart rules formatting

I correct the indenting here, so remember to diff ignoring whitespace ;)

I remove some of the page-section divs introduced by the previous patch
and instead replace the 'container' classes with the new 'page-section
class on existing divs.

This brings the page-sections more in line with elsewhere in the
codebase.

I also update the 'h3' headings to 'h2' as we were somehow skipping that
heading level page wide and update the final 'h4' heading to 'h2' to
match the other section headings appropriately.

Finally, I break up the top section more, using bg-info for the top
block of instructions.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32028: Add page-section to smart-rules.tt and fix markup errors
Lucas Gass [Fri, 4 Nov 2022 14:52:23 +0000 (14:52 +0000)]
Bug 32028: Add page-section to smart-rules.tt and fix markup errors

To test:
1. Apply patch
2. Go to Adminstration > Circulation and fine rules
3. Look at the page-section added and make sure each looks good.
4. Use an HTML validator to check and make sure the HTML looks good.

Note: There are indentation changes and some fixes to bad markup ( stray tags, etc ).

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
https://bugs.koha-community.org/show_bug.cgi?id=32082
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32028: Add page-section to various admin pages
Lucas Gass [Thu, 3 Nov 2022 17:46:15 +0000 (17:46 +0000)]
Bug 32028: Add page-section to various admin pages

This patch adds the page section to div to the following administration pages:

admin/cash_registers.tt
admin/cities.tt
admin/credit_types.tt
admin/debit_types.tt
admin/patron-attr-types.tt
admin/restrictions.tt
plugins/plugins-home.tt

To test go the following pages and make sure everything looks good:

Administration > Cash registers. You must enable the sys pref 'UseCashRegisters'
Administration > Cities and towns.
Administration > Credit types
Administration > Debit types
Administration > Patron restrictions
Adminstration > Patron attribute types
Administration > Manage plugins

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
https://bugs.koha-community.org/show_bug.cgi?id=32082
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 12758: (QA follow-up) Enhance POD
Tomas Cohen Arazi [Wed, 9 Nov 2022 12:58:56 +0000 (09:58 -0300)]
Bug 12758: (QA follow-up) Enhance POD

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 12758: Add new module call in Koha::XSLT::Base
Marcel de Rooy [Wed, 24 Sep 2014 15:01:00 +0000 (17:01 +0200)]
Bug 12758: Add new module call in Koha::XSLT::Base

Reviving a report back from 2014. The workaround is now moved to a
separate helper module from another patch.

Test plan:
Test OPACXSLTDetailsDisplay with an https reference.
You may try:
https://library.rijksmuseum.nl/opac-tmpl/bootstrap/en/xslt/zztest.xsl

If you flush and restart, the opac detail pages will contain the
text 'This is my MARC record.'.

NOTE: If you point to an xslt file over https that contains includes or
imports, you will still get the error: Failed to load external entity.
To address that, we need to extend the _resolve_includes sub.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 12758: Introduce Koha::XSLT::HTTPS
Marcel de Rooy [Wed, 29 Jun 2022 12:16:46 +0000 (12:16 +0000)]
Bug 12758: Introduce Koha::XSLT::HTTPS

This module now fetches a https stylesheet and returns it as a
string to Base. (As a workaround waiting for a real solution
in the underlying libraries.)

The module can be extended to resolve includes but this requires
parsing the xslt code.

Test plan:
[1] Run t/Koha_XSLT_HTTPS.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 12758: Make LWP::Protocol::https required module
Marcel de Rooy [Wed, 29 Jun 2022 11:23:34 +0000 (11:23 +0000)]
Bug 12758: Make LWP::Protocol::https required module

Moving from recommends to required in cpanfile.

Reference info: Debian package liblwp-protocol-https-perl is
available for Buster (6.07-2) and Bullseye (6.10-1).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add missing additionalProperties to /erm/eholdings/local/titles/import
Jonathan Druart [Wed, 9 Nov 2022 08:12:47 +0000 (09:12 +0100)]
Bug 32030: Add missing additionalProperties to /erm/eholdings/local/titles/import

This fixes xt/api.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix Makefile.t
Jonathan Druart [Wed, 9 Nov 2022 08:04:33 +0000 (09:04 +0100)]
Bug 32030: Fix Makefile.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Fix perlcritic errors
Jonathan Druart [Wed, 9 Nov 2022 08:00:47 +0000 (09:00 +0100)]
Bug 32030: Fix perlcritic errors

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Remove maintenance file
Jonathan Druart [Wed, 9 Nov 2022 07:58:19 +0000 (08:58 +0100)]
Bug 32030: Remove maintenance file

This script is actually not used.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: (follow-up) Fix t/Koha/Auth/Permissions.t
Tomas Cohen Arazi [Wed, 9 Nov 2022 02:40:30 +0000 (23:40 -0300)]
Bug 31378: (follow-up) Fix t/Koha/Auth/Permissions.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add erm/ dir to Makefile.PL
Tomas Cohen Arazi [Wed, 9 Nov 2022 00:18:21 +0000 (21:18 -0300)]
Bug 32030: Add erm/ dir to Makefile.PL

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Wrong permissions on maintenance script
Tomas Cohen Arazi [Wed, 9 Nov 2022 00:04:10 +0000 (21:04 -0300)]
Bug 32030: Wrong permissions on maintenance script

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: (follow-up) Wrong permissions on controller script file
Tomas Cohen Arazi [Wed, 9 Nov 2022 00:02:18 +0000 (21:02 -0300)]
Bug 31378: (follow-up) Wrong permissions on controller script file

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: (follow-up) MySQL 8 doens't allow default for longtext
Tomas Cohen Arazi [Tue, 8 Nov 2022 22:28:03 +0000 (19:28 -0300)]
Bug 31378: (follow-up) MySQL 8 doens't allow default for longtext

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: DBRev 22.06.00.081
Tomas Cohen Arazi [Tue, 8 Nov 2022 17:46:17 +0000 (14:46 -0300)]
Bug 31378: DBRev 22.06.00.081

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: DBIC schema
Tomas Cohen Arazi [Tue, 8 Nov 2022 17:41:43 +0000 (14:41 -0300)]
Bug 31378: DBIC schema

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add domain settings to IdP add page
Tomas Cohen Arazi [Tue, 8 Nov 2022 14:20:39 +0000 (11:20 -0300)]
Bug 31378: Add domain settings to IdP add page

This patch introduces a small form for an initial domain configuration
to the 'New identity provider' page, to avoid confusion on testers about
required settings for things to work.

To test:
1. Apply this patch
2. Verify you are now offered a configuration section for domain
   settings. Fields like 'Default category' and 'Default library' are
   mandatory.
3. Choosing some values makes them get stored on 'Submit'

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: (QA follow-up) Tidy tests
Tomas Cohen Arazi [Fri, 4 Nov 2022 14:20:50 +0000 (11:20 -0300)]
Bug 31378: (QA follow-up) Tidy tests

This patch perltidys the tests added lately. It also removes some
commented debugging lines.

Note: There's an attempt to write tests on the full auth workflow that
is commented out but left there on purpose for now.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: (follow-up) catch startup error when missing Oauth provider table
David Cook [Thu, 3 Nov 2022 12:32:03 +0000 (09:32 -0300)]
Bug 31378: (follow-up) catch startup error when missing Oauth provider table

In theory, this shouldn't come up with a package install, but
it could happen with other installations, so best to let it get to
the web installer.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Use base URLs for redirect uri
Nick Clemens [Thu, 3 Nov 2022 12:25:53 +0000 (09:25 -0300)]
Bug 31378: Use base URLs for redirect uri

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: (follow-up) Fix QA concerns
Agustin Moyano [Thu, 3 Nov 2022 00:44:32 +0000 (21:44 -0300)]
Bug 31378: (follow-up) Fix QA concerns

Several FIXME comments added on the report addressed here.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Rename Auth Provider to Identity Provider and add Client.t tests
Agustin Moyano [Wed, 26 Oct 2022 12:00:09 +0000 (09:00 -0300)]
Bug 31378: Rename Auth Provider to Identity Provider and add Client.t tests

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add an administration interface for authentication sources
Agustin Moyano [Fri, 23 Sep 2022 18:02:48 +0000 (15:02 -0300)]
Bug 31378: Add an administration interface for authentication sources

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add authentication provider endpoints
Tomas Cohen Arazi [Tue, 30 Aug 2022 13:33:14 +0000 (10:33 -0300)]
Bug 31378: Add authentication provider endpoints

This patch adds routes for handling authentication providers to the REST
API.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/auth_providers.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add 'parameter' parameter to Koha::Exceptions::MissingParameter
Tomas Cohen Arazi [Tue, 30 Aug 2022 13:19:24 +0000 (10:19 -0300)]
Bug 31378: Add 'parameter' parameter to Koha::Exceptions::MissingParameter

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add manage_authentication_providers permission
Tomas Cohen Arazi [Tue, 30 Aug 2022 13:16:44 +0000 (10:16 -0300)]
Bug 31378: Add manage_authentication_providers permission

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add accessor methods for JSON attributes
Tomas Cohen Arazi [Wed, 24 Aug 2022 15:21:08 +0000 (12:21 -0300)]
Bug 31378: Add accessor methods for JSON attributes

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add STAFF support for authentication providers
Agustin Moyano [Tue, 27 Sep 2022 12:20:49 +0000 (09:20 -0300)]
Bug 31378: Add STAFF support for authentication providers

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add OPAC support for authentication providers
Agustin Moyano [Tue, 23 Aug 2022 15:00:47 +0000 (12:00 -0300)]
Bug 31378: Add OPAC support for authentication providers

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add the API-based auth mechanism to C4::Auth::check_api_auth
Agustin Moyano [Tue, 23 Aug 2022 15:00:10 +0000 (12:00 -0300)]
Bug 31378: Add the API-based auth mechanism to C4::Auth::check_api_auth

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add auth providers template plugin
Agustin Moyano [Tue, 23 Aug 2022 14:58:58 +0000 (11:58 -0300)]
Bug 31378: Add auth providers template plugin

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add API routes
Agustin Moyano [Thu, 18 Aug 2022 19:42:10 +0000 (16:42 -0300)]
Bug 31378: Add API routes

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add Auth mojo plugin
Agustin Moyano [Thu, 18 Aug 2022 19:41:03 +0000 (16:41 -0300)]
Bug 31378: Add Auth mojo plugin

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add Koha::Auth::Client* modules
Agustin Moyano [Thu, 18 Aug 2022 19:29:19 +0000 (16:29 -0300)]
Bug 31378: Add Koha::Auth::Client* modules

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add Koha::Auth::Provider(s) class(es)
Agustin Moyano [Thu, 18 Aug 2022 19:27:06 +0000 (16:27 -0300)]
Bug 31378: Add Koha::Auth::Provider(s) class(es)

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add Koha::Auth::Provider::Domain(s) class(es)
Tomas Cohen Arazi [Wed, 24 Aug 2022 14:58:44 +0000 (11:58 -0300)]
Bug 31378: Add Koha::Auth::Provider::Domain(s) class(es)

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: Add dependencies
Agustin Moyano [Thu, 18 Aug 2022 19:09:54 +0000 (16:09 -0300)]
Bug 31378: Add dependencies

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 31378: DB changes
Agustin Moyano [Thu, 18 Aug 2022 19:08:20 +0000 (16:08 -0300)]
Bug 31378: DB changes

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: (QA follow-up) Enable BasicAuth for ERM tests
Tomas Cohen Arazi [Tue, 8 Nov 2022 14:55:23 +0000 (11:55 -0300)]
Bug 32030: (QA follow-up) Enable BasicAuth for ERM tests

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 30880: DBRev 22.06.00.080
Tomas Cohen Arazi [Tue, 8 Nov 2022 13:02:22 +0000 (10:02 -0300)]
Bug 30880: DBRev 22.06.00.080

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 30880: (QA follow-up) Add exec flag
Nick Clemens [Fri, 19 Aug 2022 11:43:19 +0000 (11:43 +0000)]
Bug 30880: (QA follow-up) Add exec flag

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 30880: Add 'branchonly' to OPACResultsUnavailableGroupingBy
Aleisha Amohia [Wed, 1 Jun 2022 22:35:06 +0000 (22:35 +0000)]
Bug 30880: Add 'branchonly' to OPACResultsUnavailableGroupingBy

This patch adds a third option 'branch only' to the
OPACResultsUnavailableGroupBy system preference. This option will group
unavailable items by branch in the OPAC search results and NOT show
individual callnumbers or substatuses.

Note: This assumes OPACXSLTResultsDisplay is set to default.

To test:
1. Create a biblio record with 3 items with the following home branches:
Item A: Branch A
Item B: Branch A
Item C: Branch B
2. Check out Item A to yourself
3. Edit Item B to have a lost status
4. Go to Administration -> global system preferences. Search for
OPACResultsUnavailableGroupingBy.
5. By default, this preference will be set to 'branch'.
6. Open the OPAC in another tab, and search for your record.
7. Confirm the search results shows an Availability line with "Not
available: Branch A: Checked out (1). Branch A: Lost (1)." i.e. showing
both branch and substatus.
8. In your staff client tab, set OPACResultsUnavailableGroupingBy to
'substatus'.
9. Go back to your OPAC tab and search for your record. Confirm the
search results shows an Availability line with "Not available: Checked
out (1). Lost (1)." i.e. showing substatus only.
10. Apply patch, update database, restart services.
11. In your staff client tab, refresh the page. Confirm the options for
OPACResultsUnavailableGroupingBy have now changed to:
- branch and substatus
- substatus only
- branch only
12. Set OPACResultsUnavailableGroupingBy to 'branch only'.
13. Go back to your OPAC tab and search for your record. Confirm the
search results shows an Availability line with "Not available: Branch A
(2)." i.e. showing branch only.
14. Confirm the other two options still work as expected.

Sponsored-by: Chartered Accountants Australia and New Zealand
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add dist dir to .gitignore
Tomas Cohen Arazi [Tue, 8 Nov 2022 12:49:57 +0000 (09:49 -0300)]
Bug 32030: Add dist dir to .gitignore

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: DBRev 22.06.00.079
Tomas Cohen Arazi [Tue, 8 Nov 2022 12:41:13 +0000 (09:41 -0300)]
Bug 32030: DBRev 22.06.00.079

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Create erm_user_roles after erm_licenses
Jonathan Druart [Tue, 8 Nov 2022 07:33:38 +0000 (08:33 +0100)]
Bug 32030: Create erm_user_roles after erm_licenses

Or the update will fail with the following error

ERROR - {UNKNOWN}: DBI Exception: DBD::mysql::db do failed: Can't create table `koha_kohadev`.`erm_user_roles` (errno: 150 "Foreign key constraint is incorrectly formed") at /kohadevbox/koha/C4/Installer.pm line 739

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 months agoBug 32030: Add lib for agreement's relationships values
Jonathan Druart [Mon, 7 Nov 2022 08:08:35 +0000 (09:08 +0100)]
Bug 32030: Add lib for agreement's relationships values

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 margin in agreement's filters block
Jonathan Druart [Fri, 4 Nov 2022 16:29:07 +0000 (17:29 +0100)]
Bug 32030: Add margin in agreement's filters block

Quick & dirty fix, this is not very nice and can be improved

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: Move cypress to t - fix build_js/watch_js
Pedro Amorim [Fri, 4 Nov 2022 11:19:44 +0000 (10:19 -0100)]
Bug 32030: Move cypress to t - fix build_js/watch_js

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: Move cypress to t/
Jonathan Druart [Fri, 4 Nov 2022 09:04:29 +0000 (10:04 +0100)]
Bug 32030: Move cypress to t/

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 vue warning
Pedro Amorim [Wed, 2 Nov 2022 10:51:47 +0000 (09:51 -0100)]
Bug 32030: Fix for vue warning

We were getting the following warning in the console:
runtime-core.esm-bundler.js:5122 Feature flags VUE_OPTIONS_API, VUE_PROD_DEVTOOLS are not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.

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 input length
Jonathan Druart [Fri, 4 Nov 2022 08:56:16 +0000 (09:56 +0100)]
Bug 32030: Fix date input length

Caused by 31943.

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 date handling - conflicts with bug 30718
Jonathan Druart [Thu, 3 Nov 2022 17:00:08 +0000 (18:00 +0100)]
Bug 32030: (follow-up) Fix date handling - conflicts with bug 30718

Fix "Filter by expired" returns 400 when no date provided

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 this.setError with setError
Jonathan Druart [Tue, 1 Nov 2022 15:59:59 +0000 (16:59 +0100)]
Bug 32030: Replace this.setError with setError

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: DBIC Specific
Jonathan Druart [Wed, 25 May 2022 11:59:00 +0000 (13:59 +0200)]
Bug 32030: DBIC Specific

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: DBIC
Jonathan Druart [Tue, 28 Jun 2022 08:10:23 +0000 (10:10 +0200)]
Bug 32030: DBIC

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 users to licenses - fix cypress tests
Jonathan Druart [Tue, 1 Nov 2022 07:57:00 +0000 (08:57 +0100)]
Bug 32030: Add users to licenses - fix cypress tests

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 users to licenses - REST API Spec
Pedro Amorim [Fri, 28 Oct 2022 22:16:34 +0000 (22:16 +0000)]
Bug 32030: Add users to licenses - REST API Spec

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 users to licenses - DB
Pedro Amorim [Fri, 28 Oct 2022 22:15:40 +0000 (22:15 +0000)]
Bug 32030: Add users to licenses - DB

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 users to licenses
Pedro Amorim [Fri, 28 Oct 2022 22:15:10 +0000 (22:15 +0000)]
Bug 32030: Add users to licenses

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 users to licenses - Preparation
Pedro Amorim [Fri, 28 Oct 2022 22:14:16 +0000 (22:14 +0000)]
Bug 32030: Add users to licenses - Preparation

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 'Loading' to EHoldingsLocalPackageAgreements
Jonathan Druart [Tue, 1 Nov 2022 07:29:23 +0000 (08:29 +0100)]
Bug 32030: Add 'Loading' to EHoldingsLocalPackageAgreements

To prevent the cypress test to fail random, and it also remove a blink
code/value in the dropdown list, which is nicer for the end-user.

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: Cypress tests
Pedro Amorim [Fri, 28 Oct 2022 19:08:21 +0000 (19:08 +0000)]
Bug 32030: Cypress tests

Agreements: 'add' and 'edit' tests for related documents, agreements, licenses;
Licenses: 'add' and 'edit' tests for related documents;
Packages: 'add' and 'edit' tests for related agreements;
Titles: Regular tests + titles import + resource
Added file.json to fixtures - empty file to test file upload

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 missings IDs to a couple of fieldsets
Jonathan Druart [Tue, 1 Nov 2022 06:58:57 +0000 (07:58 +0100)]
Bug 32030: Add missings IDs to a couple of fieldsets

This is needed by the following cypress tests

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: Max document file size - server-side validation
Pedro Amorim [Mon, 31 Oct 2022 17:31:02 +0000 (16:31 -0100)]
Bug 32030: Max document file size - server-side validation

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: Max document file size - REST API spec
Pedro Amorim [Mon, 31 Oct 2022 17:30:10 +0000 (16:30 -0100)]
Bug 32030: Max document file size - REST API spec

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: Max document file size - client-side validation
Pedro Amorim [Mon, 31 Oct 2022 17:29:52 +0000 (16:29 -0100)]
Bug 32030: Max document file size - client-side validation

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: Pretty vue files
Jonathan Druart [Fri, 28 Oct 2022 15:43:26 +0000 (17:43 +0200)]
Bug 32030: Pretty vue files

The plan was to rewrite the whole history, but it failed
(see https://tree.taiga.io/project/joubu-koha-erm/us/129)

yarn run prettier --trailing-comma es5 --semi false --arrow-parens avoid --write **/*.vue

TODO - Add a QA check + git pre-commit hook

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 unnecessary landing pages
Jonathan Druart [Fri, 28 Oct 2022 06:26:40 +0000 (08:26 +0200)]
Bug 32030: Remove unnecessary landing pages

We had "home/main page" for eholdings, eholdings/local and
eholdings/ebsco. They only contains a list for links we can find in the
navigation menu on the left.

This patch suggests to remove them, and adjust the style of the links to
make them non-clickable.

In the breadcrumb, on E-Resource managemente / eHoldings / Local / Titles
=> Holdings and Local will be black, without cursor on hover

In the nav menu, eHoldings, EBSCO and Local are not clickable and black.

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 better icons
Jonathan Druart [Fri, 28 Oct 2022 05:25:28 +0000 (07:25 +0200)]
Bug 32030: Add better icons

Agreements - fa fa-check-circle-o
Licences - fa fa-gavel
eholdings - fa fa-crosshairs
EBSCO - fa fa-globe
Local - fa fa-map-marker
Packages - fa fa-archive
Titles - fa fa-sort-alpha-asc

E Resource Management - fa fa-fw fa-external-link-square

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: Move 'Selected' checkbox to the right
Jonathan Druart [Thu, 27 Oct 2022 10:13:47 +0000 (12:13 +0200)]
Bug 32030: Move 'Selected' checkbox to the right

See https://tree.taiga.io/project/joubu-koha-erm/us/108 for details

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 descriptions to authorised value categories
Jonathan Druart [Thu, 27 Oct 2022 10:02:11 +0000 (12:02 +0200)]
Bug 32030: Add descriptions to authorised value categories

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 warnings from tests
Jonathan Druart [Wed, 26 Oct 2022 13:04:40 +0000 (15:04 +0200)]
Bug 32030: Remove warnings from tests

Use of uninitialized value $provider in string eq

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 more API tests
Pedro Amorim [Tue, 25 Oct 2022 18:55:35 +0000 (18:55 +0000)]
Bug 32030: ERM - Add more API tests

- Agreements: Added tests for search and filter_expired as well as some missing comments; fix user flags
- Licenses: Updated tests to be on par with agreements; fix user flags
- EHoldings Packages: New tests on par with others
- EHoldings Titles: New tests on par with others plus import titles tests
- EHoldings Resources: New tests - get and list
- Documents: New tests; Only has GET endpoint; Tests to better mirror real documents lifecycle through a license;
- Users: New 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: ERM EHoldings Resources - Remove inexistent 'resources' embed from resources
Pedro Amorim [Tue, 25 Oct 2022 10:20:31 +0000 (10:20 +0000)]
Bug 32030: ERM EHoldings Resources - Remove inexistent 'resources' embed from resources

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 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>