https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20469
Marcel de Rooy <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #77184|0 |1 is obsolete| | --- Comment #18 from Marcel de Rooy <[email protected]> --- Created attachment 77223 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=77223&action=edit Bug 20469: Add item status to staff article request form A method Koha::Item->has_waiting_or_transit_hold is added (with tests). The template checks if an item is checked out, on hold (waiting or transit), or is available. (Note: This can be extended in the future in a general include as we have at opac side.) Test plan: [1] Run t/db_dependent/Koha/Items.t [2] Place an article request on an item on loan. Verify status on form. [3] Place an article request on a waiting item. Check status again. Signed-off-by: Marcel de Rooy <[email protected]> Signed-off-by: Owen Leonard <[email protected]> EDIT (July 24, 2018): Method renamed to has_waiting_or_transit_hold. Part of the logic moved to Koha::Holds (see first patch now). Replaced storing undef to found by deleting hold in corresponding subtest of Items.t. Added an additional check in the template for article requests on record level that have no itemnumber (in that case no item status). Signed-off-by: Marcel de Rooy <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
