Move checks of additem.pl to the API
authorNahuel Angelinetti <nahuel.angelinetti@biblibre.com>
Thu, 13 Nov 2008 14:30:42 +0000 (15:30 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Fri, 6 Mar 2009 10:09:41 +0000 (11:09 +0100)
commit3d1a6e20d7dd3c940d453ab8c9406d5ce94c6c29
tree5e18e66657d9d53df35f1e51955e91bd0c2e4141
parent4ebba44a348acdeb2bc64451307c95f1c15c3a5d
Move checks of additem.pl to the API

This patch create a new function DelItemCheck, that add some checks before deleting an item and return 1 if it worked fine, else an error
code (the same as in additem.pl).

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
C4/Items.pm
cataloguing/additem.pl