package Koha::AdditionalField;
+=head1 NAME
+
+Koha::AdditionalField - Koha::Object derived class for additional fields
+
+=cut
+
use Modern::Perl;
use base qw(Koha::Object);
sub _type { 'AdditionalField' }
-1;
-
-__END__
-
-=head1 NAME
-
-Koha::AdditionalField
-
=head1 AUTHOR
-Jonathan Druart <jonathan.druart at biblibre.com>
+Koha Development Team <http://koha-community.org/>
-=head1 COPYRIGHT
+=head1 COPYRIGHT AND LICENSE
-Copyright 2013 BibLibre
-
-=head1 LICENSE
+Copyright 2013, 2018 BibLibre
This file is part of Koha.
You should have received a copy of the GNU General Public License along
with Koha; if not, see <http://www.gnu.org/licenses>.
+
+=head1 SEE ALSO
+
+L<Koha::Object>
+
+=cut
+
+1;
package Koha::AdditionalFieldValue;
+=head1 NAME
+
+Koha::AdditionalFieldValue - Koha::Object derived class for additional field
+values
+
+=cut
+
use Modern::Perl;
use base 'Koha::Object';
sub _type { 'AdditionalFieldValue' }
+=head1 AUTHOR
+
+Koha Development Team <http://koha-community.org/>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2018 BibLibre
+
+This file is part of Koha.
+
+Koha is free software; you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation; either version 3 of the License, or (at your option) any later
+version.
+
+Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with Koha; if not, see <http://www.gnu.org/licenses>.
+
+=head1 SEE ALSO
+
+L<Koha::Object>
+
+=cut
+
1;
package Koha::AdditionalFieldValues;
+=head1 NAME
+
+Koha::AdditionalFieldValues - Koha::Objects derived class for additional field
+values
+
+=cut
+
use Modern::Perl;
use base 'Koha::Objects';
sub _type { 'AdditionalFieldValue' }
sub object_class { 'Koha::AdditionalFieldValue' }
+=head1 AUTHOR
+
+Koha Development Team <http://koha-community.org/>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2018 BibLibre
+
+This file is part of Koha.
+
+Koha is free software; you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation; either version 3 of the License, or (at your option) any later
+version.
+
+Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with Koha; if not, see <http://www.gnu.org/licenses>.
+
+=head1 SEE ALSO
+
+L<Koha::Objects>
+
+=cut
+
1;
package Koha::AdditionalFields;
+=head1 NAME
+
+Koha::AdditionalFields - Koha::Objects derived class for additional fields
+
+=cut
+
use Modern::Perl;
use base 'Koha::Objects';
sub _type { 'AdditionalField' }
sub object_class { 'Koha::AdditionalField' }
+=head1 AUTHOR
+
+Koha Development Team <http://koha-community.org/>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2018 BibLibre
+
+This file is part of Koha.
+
+Koha is free software; you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation; either version 3 of the License, or (at your option) any later
+version.
+
+Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with Koha; if not, see <http://www.gnu.org/licenses>.
+
+=head1 SEE ALSO
+
+L<Koha::Objects>
+
+=cut
+
1;
}
}
+=head3 additional_field_values
+
+Returns additional field values
+
+ my @values = $foo->additional_field_values;
+
+=cut
+
sub additional_field_values {
my ($self) = @_;
return $self->_result->additional_field_values;
}
+=head1 AUTHOR
+
+Koha Development Team <http://koha-community.org/>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2018 BibLibre
+
+This file is part of Koha.
+
+Koha is free software; you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation; either version 3 of the License, or (at your option) any later
+version.
+
+Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with Koha; if not, see <http://www.gnu.org/licenses>.
+
+=cut
+
1;
return $class->search(\%conditions, { join => [ ('additional_field_values') x $idx ] });
}
+=head1 AUTHOR
+
+Koha Development Team <http://koha-community.org/>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2018 BibLibre
+
+This file is part of Koha.
+
+Koha is free software; you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation; either version 3 of the License, or (at your option) any later
+version.
+
+Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with Koha; if not, see <http://www.gnu.org/licenses>.
+
+=cut
+
1;