In 17.05 of C4/SIP/ILS/Item.pm (sub new) $item is fetched via GetBiblioFromItemNumber(). I assume this means that "title" was available as a property on the $item object. In master however, $item is fetched using Koha::Item->find() which means it is a pure Item object, and does not contain biblio data. $item->{title} is therefor lost. The "title" property has to be reinserted from $biblio explicitly. Looking at the %fields hash in the same file, "author" is probably another field that needs fixing too.
Created attachment 69302 [details] [review] Add title and author from biblio to SIP/ILS/Item.pm Adding title and author manually lite this is a simple fix that solves the problem.
We Oslo Public Library can confirm this is an issue. Problem is that $item->unblessed overloads $self, and thus no $self->{author} or $self->{title} as was in GetBiblioFromItemnumber. This solution is a workaround, probably needs rework, and tests, later. But since release 17.11 is so close, and it will break any Item information response and probably any self checkout device, I propose this be added as is.
Created attachment 69303 [details] [review] [PATCH] Bug 19651 - SIP/ILS/Item missing title Signed-off-by: Benjamin Rokseth <bensinober@gmail.com>
Took the liberty of adding git bz required info to your patch. It is needed for using git bz (https://wiki.koha-community.org/wiki/Git_bz_configuration) which Koha community uses for bugtracking. Basically it is email version of git issues, very old and tedioius, but this is what is used.
Created attachment 69327 [details] [review] Bug 19651: SIP/ILS/Item misses title and author Signed-off-by: Benjamin Rokseth <bensinober@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Amended $item->biblio by $biblio.
Caused by bug 18276.
Patch pushed to Master! Thanks Stephan and congrats for your first patch in!
Bug 18276 not in 17.05.x