[Koha-bugs] [Bug 17371] REST API: add CRUD for biblios
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Dec 12 00:03:22 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17371
--- Comment #7 from Jiri Kozlovsky <mail at jkozlovsky.cz> ---
Comment on attachment 55898
--> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=55898
Bug 17371 - REST API: add CRUD for biblios
Review of attachment 55898:
--> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=17371&attachment=55898)
-----------------------------------------------------------------
Nice work by the way!
::: Koha/REST/V1/Biblio.pm
@@ +45,5 @@
> + my $biblio = Koha::Biblios->find($args->{biblionumber});
> + unless ($biblio) {
> + return $c->$cb({error => "Biblio not found"}, 404);
> + }
> + return $c->$cb({ biblio => $biblio->unblessed, items => $biblio->items->unblessed }, 200);
Does this respect OpacHiddenItems preference?
@@ +79,5 @@
> +
> + # mark as onhold if item marked as hold
> + if (scalar(@{$holds}) > 0) {
> + $item->{status} = "onhold";
> + }
I'm missing the next statement after one of the conditions succeeds. I can see
no reason to check for another condition, which can result in not necessary DB
querying.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list