/[A3C]/lib/A3C/Model/Person.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/A3C/Model/Person.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 93 by dpavlin, Fri Apr 11 22:02:09 2008 UTC revision 94 by dpavlin, Wed Apr 30 17:23:46 2008 UTC
# Line 4  use warnings; Line 4  use warnings;
4  package A3C::Model::Person;  package A3C::Model::Person;
5  use Jifty::DBI::Schema;  use Jifty::DBI::Schema;
6    
7    use A3C::AAIEduHr;
8    
9  use utf8;  use utf8;
10    
11  use A3C::Record schema {  use A3C::Record schema {
# Line 74  use A3C::Record schema { Line 76  use A3C::Record schema {
76                  filters are 'Jifty::DBI::Filter::Date';                  filters are 'Jifty::DBI::Filter::Date';
77    
78          column hrEduPersonGender =>          column hrEduPersonGender =>
79                  label is _('Spol');                  label is _('Spol'),
80                    valid are [ { display => 'Nepoznato', value => 0 }, A3C::AAIEduHr->vocabulary('hrEdu002') ];
81    
82          column jpegPhoto =>          column jpegPhoto =>
83                  label is _('Slika');                  label is _('Slika');
# Line 96  use A3C::Record schema { Line 99  use A3C::Record schema {
99    
100          column hrEduPersonProfessionalStatus =>          column hrEduPersonProfessionalStatus =>
101                  label is _('Stručni status'),                  label is _('Stručni status'),
102                  valid are [                  valid are [ '', A3C::AAIEduHr->vocabulary('hrEdu001'), 'VŠS' ],
                         '',  
                         'NKV',  
                         'PKV',  
                         'KV',  
                         'VKV',  
                         'SSS',  
                         'VS',  
                         'VSS',  
                         'VŠS',  
                         'MR',  
                         'DR',  
                 ],  
103                  default is '';                  default is '';
104    
105          column hrEduPersonAcademicStatus =>          column hrEduPersonAcademicStatus =>
106                  label is _('Zvanje'),                  label is _('Zvanje'),
107                  valid are [                  valid are [ '', A3C::AAIEduHr->vocabulary('hrEdu002') ],
                         '',  
                         'knjižničar',  
                         'viši knjižničar',  
                         'korepetitor',  
                         'viši korepetitor',  
                         'lektor',  
                         'viši lektor',  
                         'stručni suradnik',  
                         'asistent visoke škole',  
                         'profesor visoke škole',  
                         'mlađi asistent',  
                         'znanstveni novak',  
                         'znanstveni asistent',  
                         'znanstveni suradnik',  
                         'predavač',  
                         'viši predavač',  
                         'asistent',  
                         'asistent - predavač',  
                         'viši asistent',  
                         'docent',  
                         'izvanredni profesor',  
                         'redoviti profesor',  
                         'znanstveni savjetnik',  
                         'viši znanstveni suradnik',  
                 ],  
108                  default is '';                  default is '';
109    
110          column hrEduPersonScienceArea =>          column hrEduPersonScienceArea =>
111                  label is _('Područje znanosti'),                  label is _('Područje znanosti'),
112                  valid are [                  valid are [ '', A3C::AAIEduHr->vocabulary('hrEdu007') ],
                         '',  
                         'Tehničke znanosti',  
                         'Prirodne znanosti',  
                         'Humanističke znanosti',  
                         'Društvene znanosti',  
                         'Biotehničke znanosti',  
                         'Biomedicina i zdravstvo',  
                 ],  
113                  default is '';                  default is '';
114    
115          column 'o' =>          column 'o' =>
# Line 169  use A3C::Record schema { Line 127  use A3C::Record schema {
127          column hrEduPersonAffiliation =>          column hrEduPersonAffiliation =>
128                  label is _('Povezanost s ustanovom'),                  label is _('Povezanost s ustanovom'),
129                  is mandatory,                  is mandatory,
130                  valid are [                  valid are A3C::AAIEduHr->vocabulary('hrEdu004'),
                         'učenik',  
                         'student',  
                         'djelatnik',  
                         'vanjski suradnik',  
                         'korisnik usluge',  
                         'gost',  
                 ],  
131                  default is 'korisnik usluge';                  default is 'korisnik usluge';
132    
133          column hrEduPersonPrimaryAffiliation =>          column hrEduPersonPrimaryAffiliation =>
134                  label is _('Temeljna povezanost s ustanovom');                  label is _('Temeljna povezanost s ustanovom');
135                  is mandatory,                  is mandatory,
136                  valid are [                  valid are A3C::AAIEduHr->vocabulary('hrEdu004'),
                         'učenik',  
                         'student',  
                         'djelatnik',  
                         'vanjski suradnik',  
                         'korisnik usluge',  
                         'gost',  
                 ],  
137                  default is 'korisnik usluge';                  default is 'korisnik usluge';
138    
139          column hrEduPersonStudentCategory =>          column hrEduPersonStudentCategory =>
140                  label is 'Vrsta studenta',                  label is 'Vrsta studenta',
141                  valid are [                  valid are [
142                          '',                          '',
143                          'osnovnoškolac',                          A3C::AAIEduHr->vocabulary('hrEdu010'),
                         'srednjoškolac',  
                         'student stručnog studija',  
                         'preddiplomac',  
                         'postdiplomac',  
                         'dodiplomac',  
                         'pauzira godinu',  
                         'prekid studija',  
144                  ],                  ],
145                  default is '';                  default is '';
146    
# Line 216  use A3C::Record schema { Line 153  use A3C::Record schema {
153    
154          column hrEduPersonTitle =>          column hrEduPersonTitle =>
155                  label is 'Položaj u ustanovi',                  label is 'Položaj u ustanovi',
156                  valid are [     # FIXME reorder                  valid are [ '', A3C::AAIEduHr->vocabulary('hrEdu003') ],
                         '',  
                         'dekan',  
                         'direktor',  
                         'pomoćnik ravnatelja',  
                         'predstojnik zavoda',  
                         'pročelnik katedre',  
                         'pročelnik odsjeka',  
                         'pročelnik sveučilišnog odjela',  
                         'prodekan',  
                         'prorektor',  
                         'ravnatelj',  
                         'rektor',  
                         'voditelj laboratorija',  
                         'voditelj odjela',  
                         'voditelj organizacijske jedini',  
                         'voditelj projekta',  
                         'zamjenik pročelnika sveučilišn',  
                         'zamjenik ravnatelja',  
                 ],  
157                  default is '';                  default is '';
158    
159          column hrEduPersonRole =>          column hrEduPersonRole =>
160                  label is 'Uloga u ustanovi',                  label is 'Uloga u ustanovi',
161                  valid are [                  valid are [
162                          '',                          '',
163                          'administrator imenika',                          A3C::AAIEduHr->vocabulary('hrEdu006'),
                         'CARNet koordinator',  
                         'CARNet sistem inženjer',  
                         'ICT koordinator',  
                         'ISVU koordinator',  
                         'kontakt za sigurnosna pitanja',  
                         'MS koordinator',  
164                          'MATICA operater',                          'MATICA operater',
165                          'MATICA urednik',                          'MATICA urednik',
166                  ],                  ],
# Line 256  use A3C::Record schema { Line 168  use A3C::Record schema {
168    
169          column hrEduPersonStaffCategory =>          column hrEduPersonStaffCategory =>
170                  label is 'Vrsta posla u ustanovi',                  label is 'Vrsta posla u ustanovi',
171                  valid are [                  valid are [ '', A3C::AAIEduHr->vocabulary('hrEdu005') ];
                         'administrativno osoblje',  
                         'ICT podrška',  
                         'istraživači',  
                         'nastavno osoblje',  
                         'osoblje knjižnice',  
                         'tehničko osoblje',  
                 ];  
172    
173          column hrEduPersonGroupMember =>          column hrEduPersonGroupMember =>
174                  label is 'Pripadnost grupi',                  label is 'Pripadnost grupi',

Legend:
Removed from v.93  
changed lines
  Added in v.94

  ViewVC Help
Powered by ViewVC 1.1.26