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.collapse a").click(function(){
83 $(this).parent().parent().find("ol").toggle();
85 // http://jqueryui.com/demos/datepicker/#date-range
86 var dates = $( "#suggesteddate_from, #suggesteddate_to" ).datepicker({
89 onSelect: function( selectedDate ) {
90 var option = this.id == "suggesteddate_from" ? "minDate" : "maxDate",
91 instance = $( this ).data( "datepicker" );
92 date = $.datepicker.parseDate(
93 instance.settings.dateFormat ||
94 $.datepicker._defaults.dateFormat,
95 selectedDate, instance.settings );
96 dates.not( this ).datepicker( "option", option, date );
99 var datesMD = $( "#manageddate_from, #manageddate_to" ).datepicker({
102 onSelect: function( selectedDate ) {
103 var option = this.id == "manageddate_from" ? "minDate" : "maxDate",
104 instance = $( this ).data( "datepicker" );
105 date = $.datepicker.parseDate(
106 instance.settings.dateFormat ||
107 $.datepicker._defaults.dateFormat,
108 selectedDate, instance.settings );
109 datesMD.not( this ).datepicker( "option", option, date );
112 var datesAD = $( "#accepteddate_from, #accepteddate_to" ).datepicker({
115 onSelect: function( selectedDate ) {
116 var option = this.id == "accepteddate_from" ? "minDate" : "maxDate",
117 instance = $( this ).data( "datepicker" );
118 date = $.datepicker.parseDate(
119 instance.settings.dateFormat ||
120 $.datepicker._defaults.dateFormat,
121 selectedDate, instance.settings );
122 datesAD.not( this ).datepicker( "option", option, date );
128 <style type="text/css">
129 h4.collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; }
130 .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%; }
132 <script type="text/javascript">
134 $(document).ready(function() { calcNewsuggTotal(); });
138 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
140 <body id="acq_suggestion" class="acq">
141 [% INCLUDE 'header.inc' %]
142 [% INCLUDE 'cat-search.inc' %]
143 <div id="breadcrumbs">
144 <a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> ›
146 <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> ›
147 [% IF ( op == 'show' ) %]
148 Show suggestion #[% suggestionid %]
150 Suggestion edit #[% suggestionid %]
153 Suggestions management
157 [% IF ( op == 'show' ) %]
158 <div id="doc" class="yui-t7"> <!-- <div id="doc3" class="yui-t2"> -->
163 <fieldset class="rows">
164 <legend>Bibliographic information</legend>
166 <li><span class="label">Title:</span>[% title |html %]</li>
167 <li><span class="label">Author:</span>[% author %]</li>
168 <li><span class="label">Copyright date:</span>[% copyrightdate %]</li>
169 <li><span class="label">ISBN or ISSN or other standard number:</span>[% isbn %]</li>
170 <li><span class="label">Publisher:</span>[% publishercode %]</li>
171 <li><span class="label">Publication place:</span>[% place %]</li>
172 <li><span class="label">Collection title:</span>[% collectiontitle %]</li>
173 <li><span class="label">Document type:</span>
174 [% FOREACH itemtypeloo IN itemtypeloop %]
175 [% IF ( itemtypeloo.selected ) %][% itemtypeloo.description %][% END %]
178 [% IF ( patron_reason_loop ) %]
179 <li><span class="label">Reason for suggestion: </span>
180 [% FOREACH patron_reason_loo IN patron_reason_loop %]
181 [% IF ( patron_reason_loo.selected ) %][% patron_reason_loo.lib %][% END %]
185 <li><span class="label">Notes:</span>[% note %]</li>
188 <fieldset class="rows"> <legend>Suggestion management</legend>
191 <span class="label">Status:</span>
192 [% IF ( STATUS == 'ASKED' ) %]Pending
193 [% ELSIF ( STATUS == 'ACCEPTED' ) %]Accepted
194 [% ELSIF ( STATUS == 'CHECKED' ) %]Checked
195 [% ELSIF ( STATUS == 'REJECTED' ) %]Rejected
201 <thead><tr><th> </th><th>Date</th><th>By</th></tr></thead>
204 <th><span class="label">Suggestion creation</span> </th>
205 <td>[% suggesteddate %]</td>
206 <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 %]
210 <th><span class="label">Suggestion management</span> </th>
211 <td>[% manageddate %]</td>
212 <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>
215 <th><span class="label">Suggestion accepted</span> </th>
216 <td>[% accepteddate %]</td>
217 <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>
222 <fieldset class="rows"> <legend>Acquisition information</legend>
225 <span class="label">Library:</span> [% branchname %]
228 <span class="label">Budget:</span> [% budgetname %]
231 <span class="label">Copies:</span>[% quantity %]
234 <span class="label">Currency:</span>[% currency %]
237 <span class="label">Price:</span>[% price %]
240 <span class="label">Total</span>[% total %]
245 <a class="cancel" href="suggestion.pl"><<Back to the list</a>
252 [% IF ( op_save ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
257 <form id="add_edit" action="suggestion.pl" method="post">
258 [% IF ( suggestionid ) %]
259 <h1>Edit purchase suggestion #[% suggestionid %]</h1>
260 <input type="hidden" name="suggestionid" value="[% suggestionid %]"/>
262 <h1>Enter a new purchase suggestion</h1>
264 <fieldset class="rows"> <legend>Bibliographic information</legend><ol>
265 <li><label for="title">Title:</label><input type="text" id="title" name="title" size="50" maxlength="80" value="[% title |html %]"/></li>
266 <li><label for="author">Author:</label><input type="text" id="author" name="author" size="50" maxlength="80" value="[% author %]"/></li>
267 <li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" value="[% copyrightdate %]" /></li>
268 <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>
269 <li><label for="publishercode">Publisher:</label><input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" value="[% publishercode %]"/></li>
270 <li><label for="place">Publication place:</label><input type="text" id="place" name="place" size="50" maxlength="80" value="[% place %]"/></li>
271 <li><label for="collectiontitle">Collection title:</label><input type="text" id="collectiontitle" name="collectiontitle" size="50" maxlength="80" value="[% collectiontitle %]"/></li>
272 <li><label for="itemtype">Document type:</label>
273 <select id="itemtype" name="itemtype" >
274 [% FOREACH itemtypeloo IN itemtypeloop %]
275 [% IF ( itemtypeloo.selected ) %]<option selected="selected" value="[% itemtypeloo.itemtype %]">[% ELSE %]<option value="[% itemtypeloo.itemtype %]">[% END %]
276 [% itemtypeloo.description %]</option>
280 [% 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 %]
281 [% 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 %]
282 [% END %]</select></li>[% END %]
283 <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40">[% note %]</textarea></li>
286 <fieldset class="rows"> <legend>Suggestion management</legend>
288 [% IF ( suggestionid ) %]<li><label for="status">Status:</label><select id="STATUS" name="STATUS"><option value="">No Status</option>
289 [% IF (statusselected_ASKED ) %]<option value="ASKED" selected="selected">Pending</option>
290 [% ELSE %]<option value="ASKED">Pending</option>[% END %]
291 [% IF (statusselected_ACCEPTED ) %]<option value="ACCEPTED" selected="selected">Accepted</option>
292 [% ELSE %]<option value="ACCEPTED">Accepted</option>[% END %]
293 [% IF (statusselected_CHECKED ) %]<option value="CHECKED" selected="selected">Checked</option>
294 [% ELSE %]<option value="CHECKED">Checked</option>[% END %]
295 [% IF ( statusselected_REJECTED ) %]<option value="REJECTED" selected="selected">Rejected</option>
296 [% ELSE %]<option value="REJECTED">Rejected</option>[% END %]
297 </select></li>[% END %]
299 <thead><tr><th> </th><th>Date</th><th>By</th></tr></thead>
302 <th><label for="suggesteddate">Suggestion creation</label> </th>
303 <td><input type="text" id="suggesteddate" name="suggesteddate" size="10" maxlength="10" value="[% suggesteddate %]"/></td>
304 <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 %]
308 <th><label for="managedon">Suggestion management</label> </th>
309 <td><input type="text" id="managedon" name="manageddate" size="10" maxlength="10" value="[% manageddate %]" /></td>
310 <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>
313 <th><label for="accepteddate">Suggestion accepted</label> </th>
314 <td><input type="text" id="accepteddate" name="accepteddate" size="10" maxlength="10" value="[% accepteddate %]" /></td>
315 <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>
320 <fieldset class="rows"> <legend>Acquisition information</legend><ol>
321 <li><label for="branchcode">Library:</label>
322 <select name="branchcode" id="branchcode">
323 <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
324 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %][% END %]
327 <li><label for="budgetid">Budget:</label>
328 <select name="budgetid" id="budgetid">
329 <option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %]
330 [% 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 %]
332 </li><li><label for="quantity">Copies:</label>
333 <input type="text" size="10" id="quantity" name="quantity" value="[% quantity %]" onchange="calcNewsuggTotal();" />
334 </li><li><label for="currency">Currency:</label>
335 [% FOREACH loop_currenc IN loop_currency %]
336 <input type="hidden" id="[% loop_currenc.currcode %]" name="[% loop_currenc.currcode %]" value="[% loop_currenc.rate %]" />
338 <select name="currency" id="currency" onchange="calcNewsuggTotal();">
339 [% FOREACH loop_currenc IN loop_currency %]
340 [% 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 %]
342 </li><li><label for="price">Price:</label>
343 <input type="text" size="20" name="price" id="price" value="[% price %]" onchange="calcNewsuggTotal();" />
344 </li><li><label for="total">Total</label>
345 <input type="text" readonly="readonly" id="total" name="total" size="10" value="[% total %]"/>
347 </fieldset><input type="hidden" id="returnsuggested" name="returnsuggested" value="[% IF ( returnsuggestedby ) %][% returnsuggestedby %][% ELSE %]noone[% END %]"/>
348 <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 %]
354 <div id="toolbar" class="btn-toolbar">
355 <a class="btn btn-small" id="newsuggestion" href="suggestion.pl?op=add"><i class="icon-plus"></i> New purchase suggestion</a>
358 <h1>Suggestions management</h1>
360 [% UNLESS ( notabs ) %]
361 <div id="sorting" class="overlay">Sorting...</div>
362 <div id="loadingtab" class="overlay">Loading tab...</div>
363 <div id="suggestiontabs" class="toptabs">
364 <ul class="ui-tabs-nav">
365 [% FOREACH suggestion IN suggestions %]
366 [% IF ( suggestion.first ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="#[% suggestion.suggestiontype %]">[% IF ( suggestion.suggestiontypelabel ) %]
367 [% IF (suggestion.suggestiontypelabel == "Pending") %]Pending
368 [% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted
369 [% ELSIF (suggestion.suggestiontypelabel == "Checked") %]Checked
370 [% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]Rejected
371 [% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available
372 [% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]Ordered[% ELSE %]
373 [% suggestion.suggestiontypelabel %][% END %]
374 [% ELSE %]No name[% END %] ([% suggestion.suggestionscount %])</a></li>
379 [% FOREACH suggestion IN suggestions %]
380 <div id="[% suggestion.suggestiontype %]">
381 <form name="f[% suggestion.suggestiontype %]" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype %]">
383 [% IF ( suggestion.suggestions_loop ) %]
384 <p><a id="CheckAll[% suggestion.suggestiontype %]" href="#">Check all</a> | <a id="UncheckAll[% suggestion.suggestiontype %]" href="#">Uncheck all</a></p>
385 <table id="[% suggestion.suggestiontype %]t">
389 <th>Suggested by - on</th>
390 <th>Managed by - on</th>
396 [% FOREACH suggestions_loo IN suggestion.suggestions_loop %]
397 [% IF ( suggestions_loo.even ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
399 <input type="checkbox" name="edit_field" value="[% suggestions_loo.suggestionid %]" />
402 <a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&op=show" title="suggestion" >
403 [% suggestions_loo.title |html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author %][% END %]</a>
404 [<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&op=edit" title="suggestion" >edit</a>]
406 [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate %] [% END %]
407 [% IF ( suggestions_loo.volumedesc ) %]; Volume:<i>[% suggestions_loo.volumedesc %]</i> [% END %]
408 [% 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 %]
411 [% 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 %]
412 [% IF ( suggestions_loo.suggesteddate ) %] - [% suggestions_loo.suggesteddate %][% END %]
415 [% 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 %]
416 [% IF ( suggestions_loo.manageddate ) %] - [% suggestions_loo.manageddate %][% END %]
419 [% suggestions_loo.branchcode %]
422 [% suggestions_loo.budget_name %]
425 [% 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 %]
430 <div id="select-reason[% suggestion.suggestiontype %]">
431 <div id="status[% suggestion.suggestiontype %]">
432 <label for="STATUS[% suggestion.suggestiontype %]">Mark selected as: </label><select name="STATUS" id="STATUS[% suggestion.suggestiontype %]">
433 <option value=""> -- Choose a status --</option>
434 [% IF (statusselected_ASKED ) %]<option value="ASKED" selected="selected">Pending</option>
435 [% ELSE %]<option value="ASKED">Pending</option>[% END %]
436 [% IF (statusselected_ACCEPTED ) %]<option value="ACCEPTED" selected="selected">Accepted</option>
437 [% ELSE %]<option value="ACCEPTED">Accepted</option>[% END %]
438 [% IF (statusselected_CHECKED ) %]<option value="CHECKED" selected="selected">Checked</option>
439 [% ELSE %]<option value="CHECKED">Checked</option>[% END %]
440 [% IF ( statusselected_REJECTED ) %]<option value="REJECTED" selected="selected">Rejected</option>
441 [% ELSE %]<option value="REJECTED">Rejected</option>[% END %]
443 <label for="reason[% suggestion.suggestiontype %]">with this reason:</label> <select id="reason[% suggestion.suggestiontype %]" name="reason[% suggestion.suggestiontype %]">
444 <option value=""> -- Choose a reason -- </option>
445 [% FOREACH reasonsloo IN suggestion.reasonsloop %]
446 <option value="[% reasonsloo.lib %]">[% reasonsloo.lib %]</option>
448 <option value="other">Others...</option>
449 </select> <span id="other_reason[% suggestion.suggestiontype %]">
450 <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>
451 </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" />
456 <input type="hidden" name="tabcode" value="[% suggestion.suggestiontype %]" />
457 <input type="hidden" name="op" value="change" />
459 <fieldset class="action">
460 <input type="submit" value="Submit" /></fieldset>
472 [% UNLESS ( op_save ) %] [% UNLESS ( op == 'show' ) %]<div class="yui-b">
473 <form name="suggestionfilter" action="suggestion.pl" method="get">
474 <fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label>
475 <select name="displayby" id="displayby" style="width:auto;">
476 <option value="STATUS">Status</option>
477 <option value="branchcode">Library</option>
478 <option value="itemtype">Item type</option>
479 <option value="managedby">Managed by</option>
480 <option value="acceptedby">Accepted by</option>
481 </select> <input type="submit" value="Go" /></li></ol></fieldset>
482 <h4>Filter by: <a style="font-size:80%;font-weight:normal;" href="/cgi-bin/koha/suggestion/suggestion.pl">[clear]</a></h4>
483 <div style="display:block;" id="limits">
485 <fieldset class="brief"><h4 class="collapse"><a href="#">Bibliographic information</a></h4>
486 <ol> <li><label for="title"> Title:</label><input type="text" id="title" name="title" value="[% title |html %]" /></li>
487 <li><label for="author"> Author:</label><input type="text" id="author" name="author" value="[% author %]" /></li>
488 <li><label for="isbn"> ISBN:</label><input type="text" id="isbn" name="isbn" value="[% isbn %]" /></li>
489 <li><label for="publishercode"> Publisher:</label><input type="text" id="publishercode" name="publishercode" value="[% publishercode %]" /></li>
490 <li><label for="copyrightdate_filter"> Copyright date:</label><input type="text" id="copyrightdate_filter" name="copyrightdate" value="[% copyrightdate %]" /></li>
491 <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>
493 <fieldset class="brief"><h4 class="collapse"><a href="#">Suggestion information</a></h4>
495 <li><label for="STATUS"> Status:</label><select name="STATUS" id="STATUS"><option value="">Any</option>
496 [% IF (statusselected_ASKED ) %]<option value="ASKED" selected="selected">Pending</option>
497 [% ELSE %]<option value="ASKED">Pending</option>[% END %]
498 [% IF (statusselected_ACCEPTED ) %]<option value="ACCEPTED" selected="selected">Accepted</option>
499 [% ELSE %]<option value="ACCEPTED">Accepted</option>[% END %]
500 [% IF (statusselected_CHECKED ) %]<option value="CHECKED" selected="selected">Checked</option>
501 [% ELSE %]<option value="CHECKED">Checked</option>[% END %]
502 [% IF ( statusselected_REJECTED ) %]<option value="REJECTED" selected="selected">Rejected</option>
503 [% ELSE %]<option value="REJECTED">Rejected</option>[% END %]
505 <li><label for="suggestedby"> Suggested by:</label><select id="suggestedby" name="suggestedby"><option value="">Any</option>
506 [% 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 %]
508 <li><label for="suggesteddate_from"> Suggested on:</label>
509 <table class="invis">
511 <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>
514 <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>
518 <li><label for="managedby"> Managed by:</label><select id="managedby" name="managedby"><option value="">Any</option>
519 [% 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 %]
521 <li><label for="manageddate_from"> Management date:</label>
522 <table class="invis">
524 <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>
527 <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>
531 <li><label for="acceptedby"> Accepted by:</label><select id="acceptedby" name="acceptedby"><option value="">Any</option>
532 [% 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 %]
534 <li><label for="accepteddate_from"> Accepted on:</label>
535 <table class="invis">
537 <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>
540 <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>
544 <li><input type="submit" value="Go" /></li></ol>
547 <fieldset class="brief"><h4 class="collapse"><a href="#">Acquisition information</a></h4>
548 <ol><li><label for="budgetid"> Book fund:</label>
549 <select name="budgetid" id="budgetid"><option value="">Any</option>[% FOREACH budgetid_loo IN budgetid_loop %]
550 [% 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 %]
553 <li><label for="branchcode"> For:</label>
554 <select name="branchcode" id="branchcode">
555 <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
556 [% IF ( branchloo.selected ) %] <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %] <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
558 </select></li><li><input type="submit" value="Go" /></li></ol>
567 [% INCLUDE 'intranet-bottom.inc' %]