--- lib/Arh/Model/Unit.pm 2007/11/29 16:40:10 9 +++ lib/Arh/Model/Unit.pm 2008/04/06 11:12:58 39 @@ -4,47 +4,170 @@ package Arh::Model::Unit; use Jifty::DBI::Schema; +use Data::Dump qw/dump/; + use Arh::Record schema { + column unit_id => + type is 'text', + label is _("ID"), + hint is _('Number for unit identification'), + is mandatory; + column name => type is 'text', - label is _("Name"), + label is _("Unit"), + hint is _('Name of unit described'), is mandatory; - - column number => + + column subcategory => + label is _('Subcategory'), + hint is _('Function of unit, larger concept of which unit is part'), type is 'text', - label is _("Number"), is mandatory; - column campaign => - refers_to Arh::Model::Campaign, + column category => + label is _('Category'), is mandatory, - since '0.0.9'; + references Arh::Model::Category, + is AutoReference; + + column location => + label is _("Location"), + refers_to Arh::Model::Location, + is AutoReference; + column site => + label is _('Site'), + is mandatory, + refers_to Arh::Model::Site, + is AutoReference; + + column gps => + label is _('GPS coordinates'); + + column placement => + label is _('Placement'), + is mandatory; + + column context => + label is _('Context'); + + column discovery => + label is _('Time of discovery'); + + column function => + label is _('Function'); + + column reusage => + label is _('Reusage'); + + column ownership => + label is _('Ownership'); + + column presevation_place => + label is _('Place of preservation'); + + column inventory_nr => + label is _('Inventory number'); + column dimensions => label is _("Dimensions"), - hit is _("Separate values with ; (semicolumn)"), - type is 'text'; - - column position => - label is _("Place of discovery"), + hint is _("Separate values with ; (semicolumn)"), type is 'text'; + column condition => + label is _('Condition'), + is mandatory; + + column toplogy => + label is _('Topology'); + +# column material => +# label is _('Material'); + + column technique => + label is _('Technique'); + column description => label is _("Description"), + is mandatory, render as 'textarea'; + column contstruction => + label is _('Construction'); + + column iconography => + label is _('Iconography'); + + column decoration => + label is _('Decoration'); + + column motifs => + label is _('Motifs'); + + column inscription => + label is _('Inscription'); + + column language => + label is _('Language'); + + column font => + label is _('Font'); + + column author => + label is _('Author(s)'); + column chronology => label is _("Chronology"), refers_to Arh::Model::Chronology, +# is AutoReference, since '0.0.2'; - column location => - label is _("Current location"), - refers_to Arh::Model::Location; + column chronostyle => + label is _('Chronostyle'); + + column explored => + label is _('Explored'); + + column conservations => + label is _('Conservations'); + + column restorations => + label is _('Restorations'); + + column legal => + label is _('Legal status'); + + column links => + label is _('Links'), + refers_to Arh::Model::Unit, + is AutoReference; + + column sources => + label is _('Sources'); + + column bibliography => + label is _('Bibliography'), + is mandatory; + + column copyright => + label is _('Copyright'), + is mandatory; + +=for remove + column campaign => + label is _("Part of campaign"), + refers_to Arh::Model::Campaign, +# is AutoReference, + is mandatory, + since '0.0.9'; +=cut }; +#use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on + # Your model-specific methods go here. sub material { @@ -54,5 +177,7 @@ return $m; } +use Arh::DefaultACL; + 1;