-
Notifications
You must be signed in to change notification settings - Fork 25
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
Conversation
8522965
to
e70f55b
Compare
@alexanderkurash Can I ask you or someone else from Vega to review this PR? This feature has been cleared Steph and Thomas. Thanks! |
src/main/java/org/folio/circulation/services/ItemForTlrService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/folio/circulation/services/ItemForTlrService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/folio/circulation/services/ItemForTlrService.java
Outdated
Show resolved
Hide resolved
f27bfaa
to
6ca8d92
Compare
|
||
public boolean isAtLocation(String locationCode) { | ||
if (locationCode == null || locationCode.isEmpty()) { | ||
return true; |
There was a problem hiding this comment.
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.
6ca8d92
to
07d0d4d
Compare
Quality Gate passedIssues Measures |
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).