Bug 39006 - Not all vendor are displayed when creating a contract
Summary: Not all vendor are displayed when creating a contract
Status: RESOLVED DUPLICATE of bug 36392
Alias: None
Product: Koha
Classification: Unclassified
Component: ERM (show other bugs)
Version: 22.11
Hardware: All All
: P5 - low enhancement
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-31 10:48 UTC by Marion Durand
Modified: 2025-01-31 11:21 UTC (History)
5 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marion Durand 2025-01-31 10:48:46 UTC
In the ERM module, when you create a contract, you can choose a vendor from a drop down list.

If you have a lot of vendors, some are not displayed in the list.

This list is built from a REST API query that limits the number of results per page, but you can't go to the next page as is a a dropdown menu. You can increase the number of results by increasing the value in the syspref RESTdefaultPageSize but this does not seem like a real fix to me.

Step to reproduce: 
1- Set the syspref ERMModule to enable to activate the module
2- Check the value of the syspref RESTdefaultPageSize
3- Check in the Acquisitions module that you have more active vendor that the value of RESTdefaultPageSize (if not Create some new vendor or lower the value of the syspref)
4- More > E-resource management > Agreements > new agreement
5- In the field vendor check that you miss some vendor (only the first ones are displayed, according to the value of RESTdefaultPageSize)
Comment 1 Pedro Amorim 2025-01-31 11:13:05 UTC
(In reply to Marion Durand from comment #0)
> In the ERM module, when you create a contract, you can choose a vendor from
> a drop down list.
> 
> If you have a lot of vendors, some are not displayed in the list.
> 
> This list is built from a REST API query that limits the number of results
> per page, but you can't go to the next page as is a a dropdown menu. You can
> increase the number of results by increasing the value in the syspref
> RESTdefaultPageSize but this does not seem like a real fix to me.
> 
> Step to reproduce: 
> 1- Set the syspref ERMModule to enable to activate the module
> 2- Check the value of the syspref RESTdefaultPageSize
> 3- Check in the Acquisitions module that you have more active vendor that
> the value of RESTdefaultPageSize (if not Create some new vendor or lower the
> value of the syspref)
> 4- More > E-resource management > Agreements > new agreement
> 5- In the field vendor check that you miss some vendor (only the first ones
> are displayed, according to the value of RESTdefaultPageSize)

Hi Marion, I've not tested this but are you able to take a quick look at bug 36392?

If the version of Koha you're experiencing this is behind any of the versions where that bug was pushed (24.05.00,23.11.06,23.05.12), can you try upgrading and test again?
Comment 2 Marion Durand 2025-01-31 11:21:30 UTC
(In reply to Pedro Amorim from comment #1)
> (In reply to Marion Durand from comment #0)
> > In the ERM module, when you create a contract, you can choose a vendor from
> > a drop down list.
> > 
> > If you have a lot of vendors, some are not displayed in the list.
> > 
> > This list is built from a REST API query that limits the number of results
> > per page, but you can't go to the next page as is a a dropdown menu. You can
> > increase the number of results by increasing the value in the syspref
> > RESTdefaultPageSize but this does not seem like a real fix to me.
> > 
> > Step to reproduce: 
> > 1- Set the syspref ERMModule to enable to activate the module
> > 2- Check the value of the syspref RESTdefaultPageSize
> > 3- Check in the Acquisitions module that you have more active vendor that
> > the value of RESTdefaultPageSize (if not Create some new vendor or lower the
> > value of the syspref)
> > 4- More > E-resource management > Agreements > new agreement
> > 5- In the field vendor check that you miss some vendor (only the first ones
> > are displayed, according to the value of RESTdefaultPageSize)
> 
> Hi Marion, I've not tested this but are you able to take a quick look at bug
> 36392?
> 
> If the version of Koha you're experiencing this is behind any of the
> versions where that bug was pushed (24.05.00,23.11.06,23.05.12), can you try
> upgrading and test again?

Hello Pedro,

This bug is indeed a duplicate for Bug 36392 (I tried searching for a duplicate before posting but failed to find this one). 

Thank you for pointing it to me.
I can't reproduce on 23.11 or main so it seams fixed.
Comment 3 Marion Durand 2025-01-31 11:21:53 UTC

*** This bug has been marked as a duplicate of bug 36392 ***