don't display notes on result and fix wrong link.
[koha.git] / koha-tmpl / opac-tmpl / prog / en / opac-suggestions.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryNameTitle" --> Catalog -- 
2 <!-- TMPL_IF name="op_add" -->Enter a new purchase suggestion<!-- /TMPL_IF -->
3 <!-- TMPL_IF name="op_else" -->Purchase Suggestions<!-- /TMPL_IF -->
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <!--TMPL_INCLUDE NAME="masthead.inc" -->
6 <!--TMPL_INCLUDE NAME="navigation.inc" -->
7
8 <!-- TMPL_IF name="op_add" -->
9     <h1>Enter a new purchase suggestion</h1>
10
11     <p>Fill this form to suggest the library a new acquisition. You will be emailed when the library processes your purchase suggestion</p>
12     <p>No fields are mandatory. Enter whatever information you have. The "Notes" field can be used to provide any additional information.</p>
13     <form action="/cgi-bin/koha/opac-suggestions.pl" method="post">
14     <table>
15     <tr><th scope="row"><label for="">Summary</label></th><td><input type="text" id="title" name="title" size="50" maxlentgh="80" /></td></tr>
16     <tr><th scope="row"><label for="">Author</label></th><td><input type="text" id="author" name="author" size="50" maxlength="80" /></td></tr>
17     <tr><th scope="row"><label for="">Copyright date</label></th><td><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" /></td></tr>
18     <tr><th scope="row"><label for="">Publisher</label></th><td><input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" /></td></tr>
19     <tr><th scope="row"><label for="">Notes</label></th><td><textarea name="note" id="note" rows="5" cols="40"></textarea></td></tr>
20     </table>
21         <p><input type="hidden" name="op" value="add_confirm" /><input type="submit" value="Submit Your Suggestion" /></p>
22     </form>
23
24 <!-- /TMPL_IF -->
25
26 <!-- TMPL_IF name="op_else" -->
27     <h1>Purchase Suggestions</h1>
28     <!-- TMPL_IF NAME="suggestions_loop" -->
29     <table>
30         <tr>
31             <th>&nbsp;</th>
32             <th>Summary</th>
33             <th>Status</th>
34             <th>Suggested by</th>
35             <th>Managed by</th>
36             <th>Note</th>
37         </tr>
38         <tr>
39             <form action="/cgi-bin/koha/opac-suggestions.pl" method="get">
40                 <th>
41                     Filter by:
42                 </th>
43                 <td>
44                     <input type="text" name="title" value="<!-- TMPL_VAR name="title"-->" />
45                 </td>
46                 <td>
47                 &nbsp;
48                 </td>
49                 <td>
50                     <select name="suggestedbyme">
51                         <option value="0">Anyone</option>
52                         <option value="1">Me</option>
53                     </select>
54                 </td>
55                 <td>
56                     &nbsp;
57                 </td>
58                 <td>
59                     <input type="submit" value="Set Filter" />
60                 </td>
61             </form>
62         </tr>
63         <form action="/cgi-bin/koha/opac-suggestions.pl" method="post">
64             <input type="hidden" name="op" value="delete_confirm" />
65         <!-- TMPL_LOOP NAME="suggestions_loop" -->
66             <!-- TMPL_IF name="even" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
67                 <td>
68                     <input type="checkbox" name="delete_field" value="<!--TMPL_VAR name="suggestionid" -->" />
69                 </td>
70                 <td>
71                     <p><!-- TMPL_VAR NAME="title" --></p>
72                     <p><!-- TMPL_IF name="author" --><!-- TMPL_VAR NAME="author" -->,<!-- /TMPL_IF -->
73                         <!-- TMPL_IF name="copyrightdate" --> - <!-- TMPL_VAR NAME="copyrightdate" -->,<!-- /TMPL_IF --> 
74                         <!-- TMPL_IF name="publishercode" --> - <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
75                     </p>
76                 </td>
77                 <td>
78                     <!-- TMPL_IF name="ASKED" -->Requested<!-- /TMPL_IF -->
79                     <!-- TMPL_IF name="ACCEPTED" -->Accepted by the library<!-- /TMPL_IF -->
80                     <!-- TMPL_IF name="ORDERED" -->Ordered by the library<!-- /TMPL_IF -->
81                     <!-- TMPL_IF name="REJECTED" -->Suggestion declined <!-- /TMPL_IF -->
82                     <!-- TMPL_IF name="AVAILABLE" -->Available in the library<!-- /TMPL_IF -->
83                     <!-- TMPL_IF name="reason" -->(<!-- TMPL_VAR name="reason" -->)<!-- /TMPL_IF -->
84                 </td>
85                 <td>
86                     <!-- TMPL_VAR name="surnamesuggestedby" --><!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF --> <!-- TMPL_VAR name="firstnamesuggestedby" -->
87                 </td>
88                 <td>
89                                         <!-- TMPL_VAR name="surnamemanagedby" --><!-- TMPL_IF name="firstnamemanagedby" -->,<!-- /TMPL_IF --> <!-- TMPL_VAR name="firstnamemanagedby" -->
90                 </td>
91                 <td>
92                     <!-- TMPL_VAR name="note" -->
93                 </td>
94             </tr>
95         <!-- /TMPL_LOOP -->
96         <tr>
97             <td colspan="9">
98                 <input type="submit" value="Delete Checked Items" />
99             </td>
100         </tr>
101         </form>
102     </table>
103     <!-- TMPL_ELSE --><div class="content-block">There are no pending purchase suggestions</div><!-- /TMPL_IF -->
104     <form action="/cgi-bin/koha/opac-suggestions.pl" method="post">
105         <input type="hidden" name="op" value="add" />
106         <input type="submit" value="Enter a new purchase suggestion" />
107     </form>
108 <!-- /TMPL_IF -->
109 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->