OpenILS::Application::Search::AddedContent is now just a dummy file
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Search / AddedContent.pm
1 package OpenILS::Application::Search::AddedContent;
2 use base qw/OpenSRF::Application/;
3 use strict; use warnings;
4
5
6 __PACKAGE__->register_method(
7         method  => "summary",
8         api_name        => "open-ils.search.added_content.summary.retrieve",
9         notes           => <<"  NOTE");
10                 Returns an object like so:
11                         {
12                                 Review          : true/false
13                                 Inventory       : true/false
14                                 Annotation      : true/false
15                                 Jacket          : true/false
16                                 TOC                     : true/false
17                                 Product         : true/false
18                         }
19                 This object indicates the existance of each type of added content for the given ISBN
20                 PARAMS( ISBN ),
21         NOTE
22
23 sub summary {
24         return { 
25                 Review          => "false",
26                 Inventory       => "false",
27                 Annotation      => "false",
28                 Jacket          => "false",
29                 TOC                     => "false",
30                 Product         => "false",
31         };
32 }
33
34
35 __PACKAGE__->register_method(
36         method  => "reviews",
37         api_name        => "open-ils.search.added_content.review.retrieve.random",
38         notes           => <<"  NOTE");
39                 Returns a singe random review article object
40                 PARAMS( ISBN ),
41         NOTE
42
43 __PACKAGE__->register_method(
44         method  => "reviews",
45         api_name        => "open-ils.search.added_content.review.retrieve.all",
46         notes           => <<"  NOTE");
47                 Returns an array review article objects
48                 PARAMS( ISBN ),
49         NOTE
50
51 sub reviews { return []; }
52
53
54 __PACKAGE__->register_method(
55         method  => "toc",
56         api_name        => "open-ils.search.added_content.toc.retrieve",
57         notes           => <<"  NOTE");
58                 Returns the table of contents for the given ISBN
59                 PARAMS( ISBN ),
60         NOTE
61
62 sub toc { return ""; }
63
64
65 1;