1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Acquisitions ›
4 [% IF ( suggestionid) %]
5 [% IF ( op == 'show' ) %]
6 Show purchase suggestion #[% suggestionid %]
8 Edit purchase suggestion #[% suggestionid %]
11 Enter a new purchase suggestion
14 Suggestions management
17 [% INCLUDE 'doc-head-close.inc' %]
18 [% INCLUDE 'calendar.inc' %]
19 [% IF ( op_else ) %] <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
20 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
21 <script type="text/javascript">
23 $.tablesorter.addParser({
25 is: function(s) {return false; },
26 format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
31 * This function display the select or an textaera to write a reason.
33 function displayOther(id,show,hide){
34 $("#"+hide+id).hide();
35 $("#"+show+id).show();
37 $(document).ready(function() {
38 $('#suggestiontabs').tabs({
39 select: function(ui) {
40 $("#loadingtab").show();
43 $("#loadingtab").hide();
46 $.tablesorter.defaults.widgets = ['zebra'];
48 [% FOREACH suggestion IN suggestions %]
49 // functions for [% suggestion.suggestiontype %] interactions
50 $("#[% suggestion.suggestiontype %]t").tablesorter({[% IF ( dateformat == 'metric' ) %]
51 dateFormat: 'uk',[% END %]
52 headers: {0:{sorter: false}, 1: { sorter: 'articles' },5:{sorter: false},6:{sorter: false},7:{sorter: false}, 8:{sorter: false},9:{sorter: false},10:{sorter: false}}
54 $("#CheckAll[% suggestion.suggestiontype %]").click(function(){
55 $("#[% suggestion.suggestiontype %]t").checkCheckboxes();
57 $("#UncheckAll[% suggestion.suggestiontype %]").click(function(){
58 $("#[% suggestion.suggestiontype %]t").unCheckCheckboxes();
60 $("#other_reason[% suggestion.suggestiontype %]").hide();
61 $("input[name*=other_reason[% suggestion.suggestiontype %]]").focus(function(){ $(this).val(""); });
62 $("#reason[% suggestion.suggestiontype %]").change(function(){
63 if($(this).val() == "other"){
65 $("#other_reason[% suggestion.suggestiontype %]").show();
68 $("#[% suggestion.suggestiontype %]delete").change(function(){
70 $("form[name='f[% suggestion.suggestiontype %]'] input[name=op]").attr("value","delete");
72 $("form[name='f[% suggestion.suggestiontype %]'] input[name=op]").attr("value","change");
77 $("a[href*=back]").click(function(){
78 var sid = $(this).attr("href").replace(/#back/,"");
79 $("#reason"+sid).show().find("option[value='']").attr("selected","selected");
80 $("#other_reason"+sid).hide();
82 $("h4.local_collapse a").click(function(){
83 $(this).parent().parent().find("ol").toggle();
86 // http://jqueryui.com/demos/datepicker/#date-range
87 var dates = $( "#suggesteddate_from, #suggesteddate_to" ).datepicker({
90 onSelect: function( selectedDate ) {
91 var option = this.id == "suggesteddate_from" ? "minDate" : "maxDate",
92 instance = $( this ).data( "datepicker" );
93 date = $.datepicker.parseDate(
94 instance.settings.dateFormat ||
95 $.datepicker._defaults.dateFormat,
96 selectedDate, instance.settings );
97 dates.not( this ).datepicker( "option", option, date );
100 var datesMD = $( "#manageddate_from, #manageddate_to" ).datepicker({
103 onSelect: function( selectedDate ) {
104 var option = this.id == "manageddate_from" ? "minDate" : "maxDate",
105 instance = $( this ).data( "datepicker" );
106 date = $.datepicker.parseDate(
107 instance.settings.dateFormat ||
108 $.datepicker._defaults.dateFormat,
109 selectedDate, instance.settings );
110 datesMD.not( this ).datepicker( "option", option, date );
113 var datesAD = $( "#accepteddate_from, #accepteddate_to" ).datepicker({
116 onSelect: function( selectedDate ) {
117 var option = this.id == "accepteddate_from" ? "minDate" : "maxDate",
118 instance = $( this ).data( "datepicker" );
119 date = $.datepicker.parseDate(
120 instance.settings.dateFormat ||
121 $.datepicker._defaults.dateFormat,
122 selectedDate, instance.settings );
123 datesAD.not( this ).datepicker( "option", option, date );
129 <style type="text/css">
130 h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; }
131 .overlay { top: 180px; left: 50%; position: absolute; margin-left: -100px; width: 200px; text-align: center; display: none; margin-top: -10px; background: #eeffd4; padding: .5em; color: #000; } .note { -moz-border-radius: 3px; border-radius:3px; background: transparent url("/intranet-tmpl/prog/img/famfamfam/silk/comment.png") top left no-repeat; padding : 1px 3px 1px 18px; font-size : 90%; }
133 <script type="text/javascript">
135 $(document).ready(function() { calcNewsuggTotal(); });
139 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
141 <body id="acq_suggestion" class="acq">
142 [% INCLUDE 'header.inc' %]
143 [% INCLUDE 'cat-search.inc' %]
144 <div id="breadcrumbs">
145 <a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> ›
147 <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> ›
148 [% IF ( op == 'show' ) %]
149 Show suggestion #[% suggestionid %]
151 Suggestion edit #[% suggestionid %]
154 Suggestions management
158 [% IF ( op == 'show' ) %]
159 <div id="doc" class="yui-t7"> <!-- <div id="doc3" class="yui-t2"> -->
164 <fieldset class="rows">
165 <legend>Bibliographic information</legend>
167 <li><span class="label">Title:</span>[% title |html %]</li>
168 <li><span class="label">Author:</span>[% author %]</li>
169 <li><span class="label">Copyright date:</span>[% copyrightdate %]</li>
170 <li><span class="label">ISBN or ISSN or other standard number:</span>[% isbn %]</li>
171 <li><span class="label">Publisher:</span>[% publishercode %]</li>
172 <li><span class="label">Publication place:</span>[% place %]</li>
173 <li><span class="label">Collection title:</span>[% collectiontitle %]</li>
174 <li><span class="label">Document type:</span>
175 [% FOREACH itemtypeloo IN itemtypeloop %]
176 [% IF ( itemtypeloo.selected ) %][% itemtypeloo.description %][% END %]
179 [% IF ( patron_reason_loop ) %]
180 <li><span class="label">Reason for suggestion: </span>
181 [% FOREACH patron_reason_loo IN patron_reason_loop %]
182 [% IF ( patron_reason_loo.selected ) %][% patron_reason_loo.lib %][% END %]
186 <li><span class="label">Notes:</span>[% note %]</li>
189 <fieldset class="rows"> <legend>Suggestion management</legend>
192 <span class="label">Status:</span>
193 [% IF ( STATUS == 'ASKED' ) %]Pending
194 [% ELSIF ( STATUS == 'ACCEPTED' ) %]Accepted
195 [% ELSIF ( STATUS == 'CHECKED' ) %]Checked
196 [% ELSIF ( STATUS == 'REJECTED' ) %]Rejected
202 <thead><tr><th> </th><th>Date</th><th>By</th></tr></thead>
205 <th><span class="label">Suggestion creation</span> </th>
206 <td>[% suggesteddate %]</td>
207 <td>[% IF ( suggestedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_borrowernumber %]">[% suggestedby_surname %], [% suggestedby_firstname %]</a> [% suggestedby_branchcode %] ([% suggestedby_description %])[% END %]
211 <th><span class="label">Suggestion management</span> </th>
212 <td>[% manageddate %]</td>
213 <td>[% IF ( managedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% managedby_borrowernumber %]">[% managedby_surname %], [% managedby_firstname %]</a> [% managedby_branchcode %] ([% managedby_description %])[% END %]</td>
216 <th><span class="label">Suggestion accepted</span> </th>
217 <td>[% accepteddate %]</td>
218 <td>[% IF ( acceptedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% acceptedby_borrowernumber %]">[% acceptedby_surname %], [% acceptedby_firstname %]</a> [% acceptedby_branchcode %] ([% acceptedby_description %])[% END %]</td>
223 <fieldset class="rows"> <legend>Acquisition information</legend>
226 <span class="label">Library:</span> [% branchname %]
229 <span class="label">Budget:</span> [% budgetname %]
232 <span class="label">Copies:</span>[% quantity %]
235 <span class="label">Currency:</span>[% currency %]
238 <span class="label">Price:</span>[% price %]
241 <span class="label">Total</span>[% total %]
246 <a class="cancel" href="suggestion.pl"><<Back to the list</a>
253 [% IF ( op_save ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
258 <form id="add_edit" action="suggestion.pl" method="post">
259 [% IF ( suggestionid ) %]
260 <h1>Edit purchase suggestion #[% suggestionid %]</h1>
261 <input type="hidden" name="suggestionid" value="[% suggestionid %]"/>
263 <h1>Enter a new purchase suggestion</h1>
265 <fieldset class="rows"> <legend>Bibliographic information</legend><ol>
266 <li><label for="title">Title:</label><input type="text" id="title" name="title" size="50" maxlength="80" value="[% title |html %]"/></li>
267 <li><label for="author">Author:</label><input type="text" id="author" name="author" size="50" maxlength="80" value="[% author %]"/></li>
268 <li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" value="[% copyrightdate %]" /></li>
269 <li><label for="isbn">ISBN or ISSN or other standard number:</label><input type="text" id="isbn" name="isbn" size="50" maxlength="80" value="[% isbn %]"/></li>
270 <li><label for="publishercode">Publisher:</label><input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" value="[% publishercode %]"/></li>
271 <li><label for="place">Publication place:</label><input type="text" id="place" name="place" size="50" maxlength="80" value="[% place %]"/></li>
272 <li><label for="collectiontitle">Collection title:</label><input type="text" id="collectiontitle" name="collectiontitle" size="50" maxlength="80" value="[% collectiontitle %]"/></li>
273 <li><label for="itemtype">Document type:</label>
274 <select id="itemtype" name="itemtype" >
275 [% FOREACH itemtypeloo IN itemtypeloop %]
276 [% IF ( itemtypeloo.selected ) %]<option selected="selected" value="[% itemtypeloo.itemtype %]">[% ELSE %]<option value="[% itemtypeloo.itemtype %]">[% END %]
277 [% itemtypeloo.description %]</option>
281 [% IF ( patron_reason_loop ) %]<li><label for="patronreason">Reason for suggestion: </label><select name="patronreason" id="patronreason"><option value=""> -- Choose -- </option>[% FOREACH patron_reason_loo IN patron_reason_loop %]
282 [% IF ( patron_reason_loo.selected ) %]<option value="[% patron_reason_loo.authorised_value %]" selected="selected">[% patron_reason_loo.lib %]</option>[% ELSE %]<option value="[% patron_reason_loo.authorised_value %]">[% patron_reason_loo.lib %]</option>[% END %]
283 [% END %]</select></li>[% END %]
284 <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40">[% note %]</textarea></li>
287 <fieldset class="rows"> <legend>Suggestion management</legend>
289 [% IF ( suggestionid ) %]<li><label for="status">Status:</label><select id="STATUS" name="STATUS"><option value="">No Status</option>
290 [% IF (statusselected_ASKED ) %]<option value="ASKED" selected="selected">Pending</option>
291 [% ELSE %]<option value="ASKED">Pending</option>[% END %]
292 [% IF (statusselected_ACCEPTED ) %]<option value="ACCEPTED" selected="selected">Accepted</option>
293 [% ELSE %]<option value="ACCEPTED">Accepted</option>[% END %]
294 [% IF (statusselected_CHECKED ) %]<option value="CHECKED" selected="selected">Checked</option>
295 [% ELSE %]<option value="CHECKED">Checked</option>[% END %]
296 [% IF ( statusselected_REJECTED ) %]<option value="REJECTED" selected="selected">Rejected</option>
297 [% ELSE %]<option value="REJECTED">Rejected</option>[% END %]
298 </select></li>[% END %]
300 <thead><tr><th> </th><th>Date</th><th>By</th></tr></thead>
303 <th><label for="suggesteddate">Suggestion creation</label> </th>
304 <td><input type="text" id="suggesteddate" name="suggesteddate" size="10" maxlength="10" value="[% suggesteddate %]"/></td>
305 <td><input type="hidden" id="suggestedby" name="suggestedby" value="[% suggestedby %]"/>[% IF ( suggestedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_borrowernumber %]">[% suggestedby_surname %], [% suggestedby_firstname %]</a> [% suggestedby_branchcode %] ([% suggestedby_description %])[% END %]
309 <th><label for="managedon">Suggestion management</label> </th>
310 <td><input type="text" id="managedon" name="manageddate" size="10" maxlength="10" value="[% manageddate %]" /></td>
311 <td><input type="hidden" id="managedby" name="managedby" value="[% managedby %]"/>[% IF ( managedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% managedby_borrowernumber %]">[% managedby_surname %], [% managedby_firstname %]</a> [% managedby_branchcode %] ([% managedby_description %])[% END %]</td>
314 <th><label for="accepteddate">Suggestion accepted</label> </th>
315 <td><input type="text" id="accepteddate" name="accepteddate" size="10" maxlength="10" value="[% accepteddate %]" /></td>
316 <td><input type="hidden" id="acceptedby" name="acceptedby" value="[% acceptedby %]"/>[% IF ( acceptedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% acceptedby_borrowernumber %]">[% acceptedby_surname %], [% acceptedby_firstname %]</a> [% acceptedby_branchcode %] ([% acceptedby_description %])[% END %]</td>
321 <fieldset class="rows"> <legend>Acquisition information</legend><ol>
322 <li><label for="branchcode">Library:</label>
323 <select name="branchcode" id="branchcode">
324 <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
325 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %][% END %]
328 <li><label for="budgetid">Budget:</label>
329 <select name="budgetid" id="budgetid">
330 <option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %]
331 [% IF ( budgetsloo.selected ) %]<option value="[% budgetsloo.budget_id %]" selected="selected">[% budgetsloo.budget_name %]</option>[% ELSE %]<option value="[% budgetsloo.budget_id %]">[% budgetsloo.budget_name %]</option>[% END %][% END %]
333 </li><li><label for="quantity">Copies:</label>
334 <input type="text" size="10" id="quantity" name="quantity" value="[% quantity %]" onchange="calcNewsuggTotal();" />
335 </li><li><label for="currency">Currency:</label>
336 [% FOREACH loop_currenc IN loop_currency %]
337 <input type="hidden" id="[% loop_currenc.currcode %]" name="[% loop_currenc.currcode %]" value="[% loop_currenc.rate %]" />
339 <select name="currency" id="currency" onchange="calcNewsuggTotal();">
340 [% FOREACH loop_currenc IN loop_currency %]
341 [% IF ( loop_currenc.selected ) %]<option value="[% loop_currenc.currcode %]" selected="selected">[% loop_currenc.currcode %]</option>[% ELSE %]<option value="[% loop_currenc.currcode %]">[% loop_currenc.currcode %]</option>[% END %][% END %]
343 </li><li><label for="price">Price:</label>
344 <input type="text" size="20" name="price" id="price" value="[% price %]" onchange="calcNewsuggTotal();" />
345 </li><li><label for="total">Total</label>
346 <input type="text" readonly="readonly" id="total" name="total" size="10" value="[% total %]"/>
348 </fieldset><input type="hidden" id="returnsuggested" name="returnsuggested" value="[% IF ( returnsuggestedby ) %][% returnsuggestedby %][% ELSE %]noone[% END %]"/>
349 <fieldset class="action"><input type="hidden" name="op" value="[% op %]" />[% IF ( suggestionid ) %]<input type="submit" value="Save" /> <a class="cancel" href="[% IF ( returnsuggestedby ) %]/cgi-bin/koha/members/moremember.pl?borrowernumber=[% returnsuggestedby %]#suggestions[% ELSE %]suggestion.pl[% END %]">Cancel</a>[% ELSE %]<input type="submit" value="Submit Your Suggestion" /> <a class="cancel" href="suggestion.pl">Cancel</a>[% END %]
355 <div id="toolbar" class="btn-toolbar">
356 <a class="btn btn-small" id="newsuggestion" href="suggestion.pl?op=add"><i class="icon-plus"></i> New purchase suggestion</a>
359 <h1>Suggestions management</h1>
361 [% UNLESS ( notabs ) %]
362 <div id="sorting" class="overlay">Sorting...</div>
363 <div id="loadingtab" class="overlay">Loading tab...</div>
364 <div id="suggestiontabs" class="toptabs">
365 <ul class="ui-tabs-nav">
366 [% FOREACH suggestion IN suggestions %]
367 [% IF ( suggestion.first ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="#[% suggestion.suggestiontype %]">[% IF ( suggestion.suggestiontypelabel ) %]
368 [% IF (suggestion.suggestiontypelabel == "Pending") %]Pending
369 [% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted
370 [% ELSIF (suggestion.suggestiontypelabel == "Checked") %]Checked
371 [% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]Rejected
372 [% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available
373 [% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]Ordered[% ELSE %]
374 [% suggestion.suggestiontypelabel %][% END %]
375 [% ELSE %]No name[% END %] ([% suggestion.suggestionscount %])</a></li>
380 [% FOREACH suggestion IN suggestions %]
381 <div id="[% suggestion.suggestiontype %]">
382 <form name="f[% suggestion.suggestiontype %]" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype %]">
384 [% IF ( suggestion.suggestions_loop ) %]
385 <p><a id="CheckAll[% suggestion.suggestiontype %]" href="#">Check all</a> | <a id="UncheckAll[% suggestion.suggestiontype %]" href="#">Uncheck all</a></p>
386 <table id="[% suggestion.suggestiontype %]t">
390 <th>Suggested by - on</th>
391 <th>Managed by - on</th>
397 [% FOREACH suggestions_loo IN suggestion.suggestions_loop %]
398 [% IF ( suggestions_loo.even ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
400 <input type="checkbox" name="edit_field" value="[% suggestions_loo.suggestionid %]" />
403 <a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&op=show" title="suggestion" >
404 [% suggestions_loo.title |html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author %][% END %]</a>
405 [<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&op=edit" title="suggestion" >edit</a>]
407 [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate %] [% END %]
408 [% IF ( suggestions_loo.volumedesc ) %]; Volume:<i>[% suggestions_loo.volumedesc %]</i> [% END %]
409 [% IF ( suggestions_loo.isbn ) %]; ISBN:<i>[% suggestions_loo.isbn %]</i> [% END %][% IF ( suggestions_loo.publishercode ) %]; Published by [% suggestions_loo.publishercode %] [% END %][% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear %]</i> [% END %][% IF ( suggestions_loo.place ) %] in <i>[% suggestions_loo.place %]</i> [% END %][% IF ( suggestions_loo.collectiontitle ) %]; [% suggestions_loo.collectiontitle %] [% END %][% IF ( suggestions_loo.itemtype ) %]; [% suggestions_loo.itemtype %] [% END %]<br />[% IF ( suggestions_loo.note ) %]<span class="note">[% suggestions_loo.note %]</span>[% END %]
412 [% IF ( suggestions_loo.emailsuggestedby ) %]<a href="mailto:[% suggestions_loo.emailsuggestedby %]">[% END %][% suggestions_loo.surnamesuggestedby %][% IF ( suggestions_loo.firstnamesuggestedby ) %], [% suggestions_loo.firstnamesuggestedby %][% END %] [% IF ( suggestions_loo.emailsuggestedby ) %]</a>[% END %]
413 [% IF ( suggestions_loo.suggesteddate ) %] - [% suggestions_loo.suggesteddate %][% END %]
416 [% IF ( suggestions_loo.emailmanagedby ) %]<a href="mailto:[% suggestions_loo.emailmanagedby %]">[% END %][% suggestions_loo.surnamemanagedby %][% IF ( suggestions_loo.firstnamemanagedby ) %], [% suggestions_loo.firstnamemanagedby %][% END %] [% IF ( suggestions_loo.emailmanagedby ) %]</a>[% END %]
417 [% IF ( suggestions_loo.manageddate ) %] - [% suggestions_loo.manageddate %][% END %]
420 [% suggestions_loo.branchcode %]
423 [% suggestions_loo.budget_name %]
426 [% IF ( suggestions_loo.ASKED ) %]Pending[% END %] [% IF ( suggestions_loo.ACCEPTED ) %]Accepted[% END %] [% IF ( suggestions_loo.ORDERED ) %]Ordered[% END %] [% IF ( suggestions_loo.REJECTED ) %]Rejected[% END %] [% IF ( suggestions_loo.CHECKED ) %]Checked[% END %] [% IF ( suggestions_loo.reason ) %]<br />([% suggestions_loo.reason %])[% END %]
431 <div id="select-reason[% suggestion.suggestiontype %]">
432 <div id="status[% suggestion.suggestiontype %]">
433 <label for="STATUS[% suggestion.suggestiontype %]">Mark selected as: </label><select name="STATUS" id="STATUS[% suggestion.suggestiontype %]">
434 <option value=""> -- Choose a status --</option>
435 [% IF (statusselected_ASKED ) %]<option value="ASKED" selected="selected">Pending</option>
436 [% ELSE %]<option value="ASKED">Pending</option>[% END %]
437 [% IF (statusselected_ACCEPTED ) %]<option value="ACCEPTED" selected="selected">Accepted</option>
438 [% ELSE %]<option value="ACCEPTED">Accepted</option>[% END %]
439 [% IF (statusselected_CHECKED ) %]<option value="CHECKED" selected="selected">Checked</option>
440 [% ELSE %]<option value="CHECKED">Checked</option>[% END %]
441 [% IF ( statusselected_REJECTED ) %]<option value="REJECTED" selected="selected">Rejected</option>
442 [% ELSE %]<option value="REJECTED">Rejected</option>[% END %]
444 <label for="reason[% suggestion.suggestiontype %]">with this reason:</label> <select id="reason[% suggestion.suggestiontype %]" name="reason[% suggestion.suggestiontype %]">
445 <option value=""> -- Choose a reason -- </option>
446 [% FOREACH reasonsloo IN suggestion.reasonsloop %]
447 <option value="[% reasonsloo.lib %]">[% reasonsloo.lib %]</option>
449 <option value="other">Others...</option>
450 </select> <span id="other_reason[% suggestion.suggestiontype %]">
451 <input type="text" size="31" id="select-other_reason[% suggestion.suggestiontype %]" name="other_reason[% suggestion.suggestiontype %]" value="please note your reason here..." /> <a href="#back[% suggestion.suggestiontype %]">Cancel</a>
452 </span> <strong style="padding: 0 1em;">OR:</strong> <label for="[% suggestion.suggestiontype %]delete">Delete selected</label> <input type="checkbox" name="op" id="[% suggestion.suggestiontype %]delete" />
457 <input type="hidden" name="tabcode" value="[% suggestion.suggestiontype %]" />
458 <input type="hidden" name="op" value="change" />
460 <fieldset class="action">
461 <input type="submit" value="Submit" /></fieldset>
473 [% UNLESS ( op_save ) %] [% UNLESS ( op == 'show' ) %]<div class="yui-b">
474 <form name="suggestionfilter" action="suggestion.pl" method="get">
475 <fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label>
476 <select name="displayby" id="displayby" style="width:auto;">
477 <option value="STATUS">Status</option>
478 <option value="branchcode">Library</option>
479 <option value="itemtype">Item type</option>
480 <option value="managedby">Managed by</option>
481 <option value="acceptedby">Accepted by</option>
482 </select> <input type="submit" value="Go" /></li></ol></fieldset>
483 <h4>Filter by: <a style="font-size:80%;font-weight:normal;" href="/cgi-bin/koha/suggestion/suggestion.pl">[clear]</a></h4>
484 <div style="display:block;" id="limits">
486 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Bibliographic information</a></h4>
487 <ol> <li><label for="title"> Title:</label><input type="text" id="title" name="title" value="[% title |html %]" /></li>
488 <li><label for="author"> Author:</label><input type="text" id="author" name="author" value="[% author %]" /></li>
489 <li><label for="isbn"> ISBN:</label><input type="text" id="isbn" name="isbn" value="[% isbn %]" /></li>
490 <li><label for="publishercode"> Publisher:</label><input type="text" id="publishercode" name="publishercode" value="[% publishercode %]" /></li>
491 <li><label for="copyrightdate_filter"> Copyright date:</label><input type="text" id="copyrightdate_filter" name="copyrightdate" value="[% copyrightdate %]" /></li>
492 <li><label for="collectiontitle"> Collection title:</label><input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle %]" /></li><li><input type="submit" value="Go" /></li></ol>
494 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Suggestion information</a></h4>
496 <li><label for="STATUS"> Status:</label><select name="STATUS" id="STATUS"><option value="">Any</option>
497 [% IF (statusselected_ASKED ) %]<option value="ASKED" selected="selected">Pending</option>
498 [% ELSE %]<option value="ASKED">Pending</option>[% END %]
499 [% IF (statusselected_ACCEPTED ) %]<option value="ACCEPTED" selected="selected">Accepted</option>
500 [% ELSE %]<option value="ACCEPTED">Accepted</option>[% END %]
501 [% IF (statusselected_CHECKED ) %]<option value="CHECKED" selected="selected">Checked</option>
502 [% ELSE %]<option value="CHECKED">Checked</option>[% END %]
503 [% IF ( statusselected_REJECTED ) %]<option value="REJECTED" selected="selected">Rejected</option>
504 [% ELSE %]<option value="REJECTED">Rejected</option>[% END %]
506 <li><label for="suggestedby"> Suggested by:</label><select id="suggestedby" name="suggestedby"><option value="">Any</option>
507 [% FOREACH suggestedby_loo IN suggestedby_loop %][% IF ( suggestedby_loo.selected ) %]<option value="[% suggestedby_loo.code %]" selected="selected">[% suggestedby_loo.desc %]</option>[% ELSE %]<option value="[% suggestedby_loo.code %]">[% suggestedby_loo.desc %]</option>[% END %][% END %]
509 <li><label for="suggesteddate_from"> Suggested on:</label>
510 <table class="invis">
512 <td><label for="suggesteddate_from">from:</label></td><td><input type="text" id="suggesteddate_from" name="suggesteddate_from" value="[% suggesteddate_from %]" style="width:76px;" /></td>
515 <td><label for="suggesteddate_to">to:</label></td><td><input type="text" id="suggesteddate_to" name="suggesteddate_to" value="[% suggesteddate_to %]" style="width:76px;" /></td>
519 <li><label for="managedby"> Managed by:</label><select id="managedby" name="managedby"><option value="">Any</option>
520 [% FOREACH managedby_loo IN managedby_loop %][% IF ( managedby_loo.selected ) %]<option value="[% managedby_loo.code %]" selected="selected">[% managedby_loo.desc %]</option>[% ELSE %]<option value="[% managedby_loo.code %]">[% managedby_loo.desc %]</option>[% END %][% END %]
522 <li><label for="manageddate_from"> Management date:</label>
523 <table class="invis">
525 <td><label for="manageddate_from">from:</label></td><td><input type="text" id="manageddate_from" name="manageddate_from" value="[% manageddate_from %]" style="width:76px;" /></td>
528 <td><label for="manageddate_to">to:</label></td><td><input type="text" id="manageddate_to" name="manageddate_to" value="[% manageddate_to %]" style="width:76px;" /></td>
532 <li><label for="acceptedby"> Accepted by:</label><select id="acceptedby" name="acceptedby"><option value="">Any</option>
533 [% FOREACH acceptedby_loo IN acceptedby_loop %][% IF ( acceptedby_loo.selected ) %] <option value="[% acceptedby_loo.code %]" selected="selected">[% acceptedby_loo.desc %]</option>[% ELSE %]<option value="[% acceptedby_loo.code %]">[% acceptedby_loo.desc %]</option>[% END %][% END %]
535 <li><label for="accepteddate_from"> Accepted on:</label>
536 <table class="invis">
538 <td><label for="accepteddate_from">from:</label></td><td><input type="text" id="accepteddate_from" name="accepteddate_from" value="[% accepteddate_from %]" style="width:76px;" /></td>
541 <td><label for="accepteddate_to">to:</label></td><td><input type="text" id="accepteddate_to" name="accepteddate_to" value="[% accepteddate_to %]" style="width:76px;" /></td>
545 <li><input type="submit" value="Go" /></li></ol>
548 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Acquisition information</a></h4>
549 <ol><li><label for="budgetid"> Book fund:</label>
550 <select name="budgetid" id="budgetid"><option value="">Any</option>[% FOREACH budgetid_loo IN budgetid_loop %]
551 [% IF ( budgetid_loo.selected ) %] <option value="[% budgetid_loo.code %]" selected="selected">[% budgetid_loo.desc %]</option>[% ELSE %]<option value="[% budgetid_loo.code %]">[% budgetid_loo.desc %]</option>[% END %]
554 <li><label for="branchcode"> For:</label>
555 <select name="branchcode" id="branchcode">
556 <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
557 [% IF ( branchloo.selected ) %] <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %] <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
559 </select></li><li><input type="submit" value="Go" /></li></ol>
568 [% INCLUDE 'intranet-bottom.inc' %]