-
Notifications
You must be signed in to change notification settings - Fork 359
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
Display loan types from FOLIO #4183
base: dev
Are you sure you want to change the base?
Conversation
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.
Thanks, @bbusenius! This is off to a great start. See below for a couple of thoughts/comments. Regarding configurability, I'm interested in your opinion, but I don't mind helping with the actual implementation part if you're short on time.
@@ -30,6 +30,9 @@ | |||
</span> | |||
<?php if ($availabilityStatus->isAvailable()): ?> | |||
<?php /* Begin Available Items (Holds) */ ?> | |||
<?php if (isset($holding['loan_type_id']) && !empty($holding['loan_type_name'])): ?> |
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.
Is it necessary to check loan_type_id? If loan_type_name is the only thing you're displaying, it's probably fair to say it's the only thing that needs checking.
However, we should probably come up with a mechanism for enabling or disabling this display, since not everyone is going to want it. Any thoughts/preferences on whether it would make more sense to put something in Folio.ini or in a more general place like config.ini? (I see pros/cons to both -- if we put the setting in Folio.ini, then we can totally bypass the extra data lookup when it is not wanted and save some time/cycles... but if we put the setting in config.ini, then it's a more universal setting and will carry across all ILS drivers without having to implement things independently in all of them).
No problem @demiankatz! Ah yes, I should have caught that, regarding Regarding where to put the config, I normally look to the ILS config for something like that, however, I think you raise a good point about having it in a general place. My problem with that is that I sometimes can't find the setting. It might make it easier to decide if there was already a logical place for it in |
Thanks, @bbusenius -- I agree that it makes sense to return the loan type ID; we just don't need to use it for anything in the default template. The |
That sounds OK to me @demiankatz. I'll go with that. |
This is a simple prototype of how we're displaying loan types from Folio. There's a
getLoanTypeData
function that retrieves the data byloanTypeId
and returns it with items informatHoldingItem
. Then we just display it in the templates.TODO