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)
committerJohn Soros <john.soros@biblibre.com>
Tue, 28 Apr 2009 11:15:10 +0000 (13:15 +0200)
commit5ee85ae84ece4c6a82cfe341e83e8bb71cf350fd
tree329ded3f042dc7f4afde021f5a6ae86553a5db65
parent521e34ff716a6cd3acf421b4f8f0e1899ba1faf4
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>
C4/Items.pm
cataloguing/additem.pl