Lines 155-160
defines if the attribute is mandatory or not in the OPAC
Link Here
|
155 |
|
155 |
|
156 |
=cut |
156 |
=cut |
157 |
|
157 |
|
|
|
158 |
=head2 hidden |
159 |
|
160 |
data_type: 'tinyint' |
161 |
default_value: 0 |
162 |
is_nullable: 0 |
163 |
|
164 |
defines if the attribute is hidden or not |
165 |
|
166 |
=cut |
167 |
|
168 |
=head2 readonly |
169 |
|
170 |
data_type: 'tinyint' |
171 |
default_value: 0 |
172 |
is_nullable: 0 |
173 |
|
174 |
defines if the attribute is readonly or not |
175 |
|
176 |
=cut |
177 |
|
178 |
=head2 secret |
179 |
|
180 |
data_type: 'tinyint' |
181 |
default_value: 0 |
182 |
is_nullable: 0 |
183 |
|
184 |
defines if the attribute is secret or not |
185 |
|
186 |
=cut |
187 |
|
188 |
|
158 |
__PACKAGE__->add_columns( |
189 |
__PACKAGE__->add_columns( |
159 |
"code", |
190 |
"code", |
160 |
{ data_type => "varchar", is_nullable => 0, size => 64 }, |
191 |
{ data_type => "varchar", is_nullable => 0, size => 64 }, |
Lines 188-193
__PACKAGE__->add_columns(
Link Here
|
188 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
219 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
189 |
"opac_mandatory", |
220 |
"opac_mandatory", |
190 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
221 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
|
|
222 |
"hidden", |
223 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
224 |
"readonly", |
225 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
226 |
"secret", |
227 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
191 |
); |
228 |
); |
192 |
|
229 |
|
193 |
=head1 PRIMARY KEY |
230 |
=head1 PRIMARY KEY |
Lines 276-282
__PACKAGE__->has_many(
Link Here
|
276 |
__PACKAGE__->add_columns( |
313 |
__PACKAGE__->add_columns( |
277 |
'+keep_for_pseudonymization' => { is_boolean => 1 }, |
314 |
'+keep_for_pseudonymization' => { is_boolean => 1 }, |
278 |
'+mandatory' => { is_boolean => 1 }, |
315 |
'+mandatory' => { is_boolean => 1 }, |
279 |
'+opac_mandatory' => { is_boolean => 1 }, |
316 |
'+opac_mandatory' => { is_boolean => 1 }, |
280 |
'+searched_by_default' => { is_boolean => 1 }, |
317 |
'+searched_by_default' => { is_boolean => 1 }, |
281 |
'+staff_searchable' => { is_boolean => 1 }, |
318 |
'+staff_searchable' => { is_boolean => 1 }, |
282 |
); |
319 |
); |
283 |
- |
|
|