Use biblioitems.itemtype as a default for items.itype
authorMichael Hafen <mdhafen@tech.washk12.org>
Fri, 12 Sep 2008 19:16:58 +0000 (13:16 -0600)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:18:48 +0000 (23:18 +0200)
commit49a75f4d4f5765ccf3213a51f5bee47019e3d60f
tree5a9d8f1f22546e1a9408006e779f614ca2c2addd
parent47869466931f44b532dc36085aa5a35c292efc6e
Use biblioitems.itemtype as a default for items.itype

This correct the html select default in additem.pl, and enforces use of
biblioitems.itemtype as the default in Items::AddItem.  The code in
Items is to catch items added through MARC record staging.

Thanks to Joe Atzberger for suggestion.

[RM note: this patch means that an item's item-level item type,
 once that item is added or updated via additem.pl,
 now cannot be blank or NULL unless the biblio-level item type
 is blank.]

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
cataloguing/additem.pl