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