Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIRC-2141 Allow specifying item location when creating title-level re… #1491

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

JanisSaldabols
Copy link
Contributor

CIRC-2141 Allow specifying item location when creating title-level requests

Purpose

Currently, it’s possible to specify the service point ID when creating the request and select the item with the “nearest” location. However, when the “nearest” location search does not result in a match, the system will create the request for the first item available. The additional filter will allow it to succeed only if the requested item is in the specified location.

This is useful when the request is sent from an ILL system to a FOLIO system that serves multiple institutions and where those ILL requests should be considered independently for each institution.

Approach

Add an optional parameter that allows the client to specify the item’s location code when creating a title-level request. The requested location code should allow to match the item location on any level (institution, campus, library, location).

@jakub-id
Copy link

@alexanderkurash Can I ask you or someone else from Vega to review this PR? This feature has been cleared Steph and Thomas. Thanks!


public boolean isAtLocation(String locationCode) {
if (locationCode == null || locationCode.isEmpty()) {
return true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it true when location is empty? This does not make much sense.

Copy link

sonarqubecloud bot commented Oct 3, 2024

@JanisSaldabols JanisSaldabols merged commit cf733df into master Oct 3, 2024
8 checks passed
@JanisSaldabols JanisSaldabols deleted the CIRC-2141 branch October 3, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants