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

FOLIO driver - only show open loans for my transactions #1579

Merged
merged 2 commits into from
Apr 27, 2020
Merged

FOLIO driver - only show open loans for my transactions #1579

merged 2 commits into from
Apr 27, 2020

Conversation

mis306lu
Copy link

@mis306lu mis306lu commented Mar 6, 2020

No description provided.

@demiankatz
Copy link
Member

Thanks, @mis306lu. A couple of questions:

1.) Are status names hard-coded in FOLIO, or might we need to add a configuration setting to account for different FOLIO setups? Is it possible there might be more than one status that would count as active?

2.) While we're working in this area, should we consider implementing getMyTransactionHistory, which is the mirror image of getMyTransactions? The return value is formatted a little bit differently, but the actual data retrieval would be identical to this one, just with a different filter parameter, so it might make sense to do a little refactoring to support that.

As always, let me know if I can help. I'm also interested in hearing from @ihardy and/or @nkuitse if they have anything to add.

@kellyflo
Copy link

In response to @demiankatz question #1 above (if it's not too late).
Item Statuses are hard coded - if the goal is to only show open loans in my transactions - that status would be "Checked out".

@demiankatz
Copy link
Member

Thanks, @kellyflo, it is definitely not too late. So are you saying the CQL in this PR needs to be revised to use "checked out" instead of "open"?

@mis306lu
Copy link
Author

@kellyflo, @demiankatz
In regards to #1) Loans have a status (like Open) and items have a status too (like Available, Checked Out). The VuFind code calls the loan (circulation) API.

In regards to #2) I hesitate on this one because of the "Anonymize all loans" functionality built into FOLIO?

@demiankatz
Copy link
Member

demiankatz commented Apr 27, 2020

Thanks, @mis306lu!

Regarding point 1, that makes sense -- @kellyflo, any objections to merging?

Regarding point 2, the "transaction history" feature in VuFind is disabled by default, so if retaining history is an option in FOLIO, it would be possible to turn it on in both places and have things work... and if FOLIO anonymizes by default, that would work just fine with VuFind's default behavior of hiding historical transactions. In any case, there's no urgency to adding this unless somebody actually needs it... but if it might be useful in the future and if FOLIO could support it under some circumstances, it looks like it would be pretty easy to implement and might be worth doing just to scratch another method off the list.

@ihardy
Copy link
Contributor

ihardy commented Apr 27, 2020

concur with Kelly and Michelle on point number 1, fwiw the rtac modules are using the same query (status.name==Open).

@demiankatz
Copy link
Member

Thanks, everyone -- I'll go ahead and merge this as-is for now; we can easily revisit the historic transactions question in the future as needed.

@demiankatz demiankatz merged commit 1071df7 into vufind-org:master Apr 27, 2020
EreMaijala pushed a commit to EreMaijala/vufind that referenced this pull request Jun 2, 2020
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