--- lib/A3C/Model/Organization.pm 2008/03/18 19:03:53 32 +++ lib/A3C/Model/Organization.pm 2008/04/01 19:44:02 56 @@ -6,15 +6,16 @@ use A3C::Record schema { + column uid => + label is _('UID'), + is indexed, + is distinct, + is mandatory; + column o => label is _('Naziv matične ustanove'), is mandatory; - column hrEduPersonHomeOrg => - label is _('Oznaka matične ustanove'), - hint is 'CARNet', - is mandatory; - column l => label is _('Mjesto'), hist is 'Zagreb', @@ -31,11 +32,65 @@ column street => label is _('Ulica i kućni broj'); + + column hrEduOrgUniqueNumber => + label is _('hrEduOrgUniqueNumber'), + is indexed, + is mandatory; + column telephoneNumber => + label is _('Broj telefona'); + + column facsimileTelephoneNumber => + label is _('fax number'); + + column cn => + label is _('cn'), + is indexed; + + column dc => + label is _('dc'), + is indexed; + + column uidNumber => + type is 'int', + label is _('uid number'); + + column gidNumber => + type is 'int', + label is _('gid number'); + + column homeDirectory => + label is _('home directory'); + + column 'loginShell'; + + column 'hrEduOrgMail'; + + column 'hrEduOrgType'; + + column 'hrEduOrgURL'; + + column 'hrEduOrgPolicyURI'; + + column 'hrEduOrgMobile'; + + column 'hrEduOrgMember'; }; # Your model-specific methods go here. +=head2 name + +Humanly readable name of organization + +=cut + +sub name { + my $self = shift; + return $self->__value('cn') . ' ' . $self->__value('o'); +} + 1;