« blib/lib/Keystone/Resolver/DB/Domain.pm
↑ Summary
blib/lib/Keystone/Resolver/DB/GenreServiceType.pm »
| 1 | # $Id: Genre.pm,v 1.8 2007-09-13 09:42:33 mike Exp $ | ||
| 2 | |||
| 3 | package Keystone::Resolver::DB::Genre; | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | use Keystone::Resolver::DB::Object; | ||
| 8 | |||
| 9 | use vars qw(@ISA); | ||
| 10 | @ISA = qw(Keystone::Resolver::DB::Object); | ||
| 11 | |||
| 12 | |||
| 13 | sub table { "genre" } | ||
| 14 | |||
| 15 | sub fields { (id => undef, | ||
| 16 | tag => undef, | ||
| 17 | name => undef, | ||
| 18 | metadata_formats => | ||
| 19 | [ id => "MetadataFormat", "genre_id", "name" ], | ||
| 20 | ) } | ||
| 21 | |||
| 22 | sub search_fields { (tag => "t10", | ||
| 23 | name => "t25", | ||
| 24 | ) } | ||
| 25 | |||
| 26 | sub sort_fields { ("name") } | ||
| 27 | |||
| 28 | sub display_fields { (tag => "c", | ||
| 29 | name => "Lt", | ||
| 30 | ) } | ||
| 31 | |||
| 32 | sub fulldisplay_fields { (tag => "c", | ||
| 33 | name => "Lt", | ||
| 34 | metadata_formats => "t", | ||
| 35 | ) } | ||
| 36 | |||
| 37 | 1; |