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

[FINNA-3169] Quria: Add proper check whether item is reservable #3138

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

rajaro
Copy link

@rajaro rajaro commented Jan 31, 2025

Quriasta saadaan tänään tulleen päivityksen myötä tarkempi tieto varattavuudesta

@rajaro rajaro requested a review from EreMaijala January 31, 2025 13:27
@@ -336,10 +341,11 @@ public function getHolding($id, array $patron = null, array $options = [])
* @param array $organisationHoldings Organisation holdings
* @param string $id The record id to retrieve the holdings
* @param array $journalInfo Jornal information
* @param string $reservable Is the record reservable

Choose a reason for hiding this comment

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

Pitäisi olla ?string (ja $journalInfon pitäisi olla ?array). Voisiko parametreilla olla muutenkin tyypit funktion määrittelyssä?

$holdings,
$id,
null,
$response->$functionResult->catalogueRecordDetail->reservable ?? ''

Choose a reason for hiding this comment

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

Toimiiko tämä varmasti oikein ilman string-castausta?

Copy link
Author

Choose a reason for hiding this comment

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

En ainakaan huomannut tilannetta missä ei toimisi, mutta laitoin castauksen varmuuden vuoksi nyt

@rajaro rajaro requested a review from EreMaijala January 31, 2025 14:29
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.

2 participants