2 [% USE AuthorisedValues %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Acquisitions ›
6 [% IF ( suggestionid ) %]
7 Suggestions › Edit suggestion #[% suggestionid %]
9 Suggestions › Add suggestion
11 [% ELSIF ( op == 'show' ) %]
12 Suggestions › Show suggestion #[% suggestionid %]
14 Suggestions management
17 [% INCLUDE 'doc-head-close.inc' %]
18 [% INCLUDE 'calendar.inc' %]
19 [% IF ( op == 'show' ) %]
20 <script type="text/javascript">
22 $(document).ready(function(){
23 $("#deletesuggestion").on("click",function(){
24 return confirm(_("Are you sure you want to delete this suggestion?"));
31 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
32 [% INCLUDE 'datatables.inc' %]
33 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
34 <script type="text/javascript">
38 * This function display the select or an textaera to write a reason.
40 function displayOther(id,show,hide){
41 $("#"+hide+id).hide();
42 $("#"+show+id).show();
44 $(document).ready(function() {
45 $('#suggestiontabs').tabs({
46 // Correct table sizing for tables hidden in tabs
47 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
48 "show": function(event, ui) {
49 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
50 if ( oTable.length > 0 ) {
51 oTable.fnAdjustColumnSizing();
55 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
57 { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
58 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
60 "sPaginationType": "four_button"
62 [% FOREACH suggestion IN suggestions %]
63 // functions for [% suggestion.suggestiontype %] interactions
64 $("#CheckAll[% suggestion.suggestiontype %]").click(function(e){
65 $("#[% suggestion.suggestiontype %]t").checkCheckboxes();
68 $("#UncheckAll[% suggestion.suggestiontype %]").click(function(e){
69 $("#[% suggestion.suggestiontype %]t").unCheckCheckboxes();
72 $("#other_reason[% suggestion.suggestiontype %]").hide();
73 $("#reason[% suggestion.suggestiontype %]").change(function(){
74 if($(this).val() == "other"){
76 $("#other_reason[% suggestion.suggestiontype %]").show();
79 $("#[% suggestion.suggestiontype %]delete").change(function(){
81 $("form[name='f[% suggestion.suggestiontype %]'] input[name=op]").attr("value","delete");
83 $("form[name='f[% suggestion.suggestiontype %]'] input[name=op]").attr("value","change");
88 $("a[href*=back]").click(function(){
89 var sid = $(this).attr("href").replace(/#back/,"");
90 $("#reason"+sid).show().find("option[value='']").attr("selected","selected");
91 $("#other_reason"+sid).hide();
93 $("h4.local_collapse a").click(function(){
94 $(this).parent().parent().find("ol").toggle();
97 // http://jqueryui.com/demos/datepicker/#date-range
98 var dates = $( "#suggesteddate_from, #suggesteddate_to" ).datepicker({
101 onSelect: function( selectedDate ) {
102 var option = this.id == "suggesteddate_from" ? "minDate" : "maxDate",
103 instance = $( this ).data( "datepicker" );
104 date = $.datepicker.parseDate(
105 instance.settings.dateFormat ||
106 $.datepicker._defaults.dateFormat,
107 selectedDate, instance.settings );
108 dates.not( this ).datepicker( "option", option, date );
111 var datesMD = $( "#manageddate_from, #manageddate_to" ).datepicker({
114 onSelect: function( selectedDate ) {
115 var option = this.id == "manageddate_from" ? "minDate" : "maxDate",
116 instance = $( this ).data( "datepicker" );
117 date = $.datepicker.parseDate(
118 instance.settings.dateFormat ||
119 $.datepicker._defaults.dateFormat,
120 selectedDate, instance.settings );
121 datesMD.not( this ).datepicker( "option", option, date );
124 var datesAD = $( "#accepteddate_from, #accepteddate_to" ).datepicker({
127 onSelect: function( selectedDate ) {
128 var option = this.id == "accepteddate_from" ? "minDate" : "maxDate",
129 instance = $( this ).data( "datepicker" );
130 date = $.datepicker.parseDate(
131 instance.settings.dateFormat ||
132 $.datepicker._defaults.dateFormat,
133 selectedDate, instance.settings );
134 datesAD.not( this ).datepicker( "option", option, date );
140 <style type="text/css">
141 h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; }
142 .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("[% interface %]/[% theme %]/img/famfamfam/silk/comment.png") top left no-repeat; padding : 1px 3px 1px 18px; font-size : 90%; }
145 <script type="text/javascript">
147 $(document).ready(function() { calcNewsuggTotal(); });
151 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
153 <body id="acq_suggestion" class="acq">
154 [% INCLUDE 'header.inc' %]
155 [% INCLUDE 'cat-search.inc' %]
156 <div id="breadcrumbs">
157 <a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> ›
159 [% IF ( suggestionid ) %]
160 <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Edit suggestion #[% suggestionid %]
162 <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Add suggestion
164 [% ELSIF ( op == 'show' ) %]
165 <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Show suggestion #[% suggestionid %]
167 Suggestions management
171 [% IF ( op == 'show' ) %]
172 <div id="doc" class="yui-t7"> <!-- <div id="doc3" class="yui-t2"> -->
177 <div id="toolbar" class="btn-toolbar">
178 <a class="btn btn-small" id="editsuggestion" href="suggestion.pl?op=edit&suggestionid=[% suggestionid %]"><i class="icon-pencil"></i> Edit</a>
179 <a class="btn btn-small" id="deletesuggestion" href="suggestion.pl?op=delete&edit_field=[% suggestionid %]"><i class="icon-remove"></i> Delete</a>
182 <fieldset class="rows">
183 <legend>Bibliographic information</legend>
185 <li><span class="label">Title:</span>[% title |html %]</li>
186 <li><span class="label">Author:</span>[% author |html %]</li>
187 <li><span class="label">Copyright date:</span>[% copyrightdate |html %]</li>
188 <li><span class="label">ISBN or ISSN or other standard number:</span>[% isbn |html %]</li>
189 <li><span class="label">Publisher:</span>[% publishercode |html %]</li>
190 <li><span class="label">Publication place:</span>[% place |html %]</li>
191 <li><span class="label">Collection title:</span>[% collectiontitle |html %]</li>
192 <li><span class="label">Document type:</span>
193 [% FOREACH itemtypeloo IN itemtypeloop %]
194 [% IF ( itemtypeloo.selected ) %][% itemtypeloo.description %][% END %]
197 [% IF ( patron_reason_loop ) %]
198 <li><span class="label">Reason for suggestion: </span>
199 [% FOREACH patron_reason_loo IN patron_reason_loop %]
200 [% IF ( patron_reason_loo.selected ) %][% patron_reason_loo.lib %][% END %]
204 <li><span class="label">Notes:</span>[% note |html %]</li>
207 <fieldset class="rows"> <legend>Suggestion management</legend>
210 <span class="label">Status:</span>
211 [% SET status_found = 0 %]
212 [% IF ( STATUS == 'ASKED' ) %]
214 [% SET status_found = 1 %]
215 [% ELSIF ( STATUS == 'ACCEPTED' ) %]
217 [% SET status_found = 1 %]
218 [% ELSIF ( STATUS == 'CHECKED' ) %]
220 [% SET status_found = 1 %]
221 [% ELSIF ( STATUS == 'REJECTED' ) %]
223 [% SET status_found = 1 %]
225 [% FOREACH s IN SuggestionStatuses %]
226 [% IF STATUS == s.authorised_value %]
228 [% SET status_found = 1 %]
236 <thead><tr><th> </th><th>Date</th><th>By</th></tr></thead>
239 <th><span class="label">Suggestion creation</span> </th>
240 <td>[% suggesteddate %]</td>
241 <td>[% IF ( suggestedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_borrowernumber %]">[% suggestedby_surname %], [% suggestedby_firstname %]</a> [% Branches.GetName( suggestedby_branchcode ) %] ([% suggestedby_description %])[% END %]
245 <th><span class="label">Suggestion management</span> </th>
246 <td>[% manageddate %]</td>
247 <td>[% IF ( managedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% managedby_borrowernumber %]">[% managedby_surname %], [% managedby_firstname %]</a> [% Branches.GetName( managedby_branchcode ) %] ([% managedby_description %])[% END %]</td>
250 <th><span class="label">Suggestion accepted</span> </th>
251 <td>[% accepteddate %]</td>
252 <td>[% IF ( acceptedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% acceptedby_borrowernumber %]">[% acceptedby_surname %], [% acceptedby_firstname %]</a> [% Branches.GetName( acceptedby_branchcode ) %] ([% acceptedby_description %])[% END %]</td>
257 <fieldset class="rows"> <legend>Acquisition information</legend>
260 <span class="label">Library:</span> [% branchname %]
263 <span class="label">Fund:</span> [% budgetname %]
266 <span class="label">Copies:</span>[% quantity %]
269 <span class="label">Currency:</span>[% currency %]
272 <span class="label">Price:</span>[% price %]
275 <span class="label">Total</span>[% total %]
280 <fieldset class="action">
281 <a href="suggestion.pl"><< Back to suggestions</a>
289 [% IF ( op_save ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
294 <form id="add_edit" action="suggestion.pl" method="post" class="validated">
295 <input type="hidden" name="redirect" id="redirect" value="[% redirect %]" />
296 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
297 [% IF ( suggestionid ) %]
298 <h1>Edit purchase suggestion #[% suggestionid %]</h1>
299 <input type="hidden" name="suggestionid" value="[% suggestionid %]"/>
301 <h1>Enter a new purchase suggestion</h1>
303 <fieldset class="rows"> <legend>Bibliographic information</legend><ol>
305 <label for="title" class="required">Title:</label>
306 <input type="text" id="title" name="title" size="80" maxlength="255" value="[% title |html %]" required="required" class="required" />
307 <span class="required">Required</span>
309 <li><label for="author">Author:</label><input type="text" id="author" name="author" size="50" maxlength="80" value="[% author %]"/></li>
310 <li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" value="[% copyrightdate %]" /></li>
311 <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>
312 <li><label for="publishercode">Publisher:</label><input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" value="[% publishercode %]"/></li>
313 <li><label for="place">Publication place:</label><input type="text" id="place" name="place" size="50" maxlength="80" value="[% place %]"/></li>
314 <li><label for="collectiontitle">Collection title:</label><input type="text" id="collectiontitle" name="collectiontitle" size="50" maxlength="80" value="[% collectiontitle %]"/></li>
315 <li><label for="itemtype">Document type:</label>
316 <select id="itemtype" name="itemtype" >
317 [% FOREACH itemtypeloo IN itemtypeloop %]
318 [% IF ( itemtypeloo.selected ) %]<option selected="selected" value="[% itemtypeloo.itemtype %]">[% ELSE %]<option value="[% itemtypeloo.itemtype %]">[% END %]
319 [% itemtypeloo.description %]</option>
323 [% 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 %]
324 [% 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 %]
325 [% END %]</select></li>[% END %]
326 <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40">[% note %]</textarea></li>
329 <fieldset class="rows"> <legend>Suggestion management</legend>
331 [% IF ( suggestionid ) %]
333 <label for="STATUS">Status:</label>
334 <select id="STATUS" name="STATUS">
335 <option value="">No Status</option>
337 [% IF (statusselected_ASKED ) %]
338 <option value="ASKED" selected="selected">Pending</option>
340 <option value="ASKED">Pending</option>
343 [% IF (statusselected_ACCEPTED ) %]
344 <option value="ACCEPTED" selected="selected">Accepted</option>
346 <option value="ACCEPTED">Accepted</option>
349 [% IF (statusselected_CHECKED ) %]
350 <option value="CHECKED" selected="selected">Checked</option>
352 <option value="CHECKED">Checked</option>
355 [% IF ( statusselected_REJECTED ) %]
356 <option value="REJECTED" selected="selected">Rejected</option>
358 <option value="REJECTED">Rejected</option>
361 [% FOREACH s IN SuggestionStatuses %]
362 [% IF s.authorised_value == selected_status %]
363 <option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option>
365 <option value="[% s.authorised_value %]">[% s.lib %]</option>
372 <thead><tr><th> </th><th>Date</th><th>By</th></tr></thead>
375 <th><label for="suggesteddate">Suggestion creation</label> </th>
376 <td><input type="text" id="suggesteddate" name="suggesteddate" size="10" maxlength="10" value="[% suggesteddate %]"/></td>
377 <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> [% Branches.GetName( suggestedby_branchcode ) %] ([% suggestedby_description %])[% END %]
381 <th><label for="managedon">Suggestion management</label> </th>
382 <td><input type="text" id="managedon" name="manageddate" size="10" maxlength="10" value="[% manageddate %]" /></td>
383 <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> [% Branches.GetName( managedby_branchcode ) %] ([% managedby_description %])[% END %]</td>
386 <th><label for="accepteddate">Suggestion accepted</label> </th>
387 <td><input type="text" id="accepteddate" name="accepteddate" size="10" maxlength="10" value="[% accepteddate %]" /></td>
388 <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> [% Branches.GetName( acceptedby_branchcode ) %] ([% acceptedby_description %])[% END %]</td>
393 <fieldset class="rows"> <legend>Acquisition information</legend><ol>
394 <li><label for="branchcode">Library:</label>
395 <select name="branchcode" id="branchcode">
396 <option value="__ANY__">Any</option>[% FOREACH branchloo IN branchloop %]
397 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %][% END %]
400 <li><label for="budgetid">Fund:</label>
401 <select name="budgetid" id="budgetid">
402 <option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %]
403 [% 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 %]
405 </li><li><label for="quantity">Copies:</label>
406 <input type="text" size="10" id="quantity" name="quantity" value="[% quantity %]" onchange="calcNewsuggTotal();" />
407 </li><li><label for="currency">Currency:</label>
408 [% FOREACH loop_currenc IN loop_currency %]
409 <input type="hidden" value="[% loop_currenc.rate %]" id="currency_rate_[% loop_currenc.currcode %]" name="currency_rate_[% loop_currenc.currcode %]" />
410 <input type="hidden" id="[% loop_currenc.currcode %]" name="[% loop_currenc.currcode %]" value="[% loop_currenc.rate %]" />
412 <select name="currency" id="currency" onchange="calcNewsuggTotal();">
413 [% FOREACH loop_currenc IN loop_currency %]
414 [% 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 %]
416 </li><li><label for="price">Price:</label>
417 <input type="text" size="20" name="price" id="price" value="[% price %]" onchange="calcNewsuggTotal();" />
418 </li><li><label for="total">Total: </label>
419 <input type="text" readonly="readonly" id="total" name="total" size="10" value="[% total %]"/>
421 </fieldset><input type="hidden" id="returnsuggested" name="returnsuggested" value="[% IF ( returnsuggestedby ) %][% returnsuggestedby %][% ELSE %]noone[% END %]"/>
422 <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 %]
428 <div id="toolbar" class="btn-toolbar">
429 <a class="btn btn-small" id="newsuggestion" href="suggestion.pl?op=add"><i class="icon-plus"></i> New purchase suggestion</a>
432 <h1>Suggestions management</h1>
434 [% UNLESS ( notabs ) %]
435 <div id="suggestiontabs" class="toptabs">
436 <ul class="ui-tabs-nav">
437 [% FOREACH suggestion IN suggestions %]
439 <a href="#[% suggestion.suggestiontype %]">
440 [% IF ( suggestion.suggestiontypelabel ) %]
441 [% IF (suggestion.suggestiontypelabel == "Pending") %]Pending
442 [% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted
443 [% ELSIF (suggestion.suggestiontypelabel == "Checked") %]Checked
444 [% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]Rejected
445 [% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available
446 [% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]Ordered
447 [% ELSE %][% suggestion.suggestiontypelabel %][% END %]
449 [% IF ( suggestion.suggestiontype ) %]
450 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.suggestiontype ) %]
455 ([% suggestion.suggestions_loop.size %])</a></li>
461 [% FOREACH suggestion IN suggestions %]
462 <div id="[% suggestion.suggestiontype %]">
463 <form name="f[% suggestion.suggestiontype %]" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype %]">
465 [% IF ( suggestion.suggestions_loop ) %]
466 <p><a id="CheckAll[% suggestion.suggestiontype %]" href="#">Check all</a> | <a id="UncheckAll[% suggestion.suggestiontype %]" href="#">Uncheck all</a></p>
467 <table id="[% suggestion.suggestiontype %]t" class="sorted">
470 <th class="anti-the">Suggestion</th>
471 <th>Suggested by - on</th>
472 <th>Managed by - on</th>
478 [% FOREACH suggestions_loo IN suggestion.suggestions_loop %]
479 [% IF ( suggestions_loo.even ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
481 <input type="checkbox" name="edit_field" value="[% suggestions_loo.suggestionid %]" />
484 <a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&op=show" title="suggestion" >
485 [% suggestions_loo.title |html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author %][% END %]</a>
486 [<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&op=edit" title="suggestion" >edit</a>]
488 [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate |html %] [% END %]
489 [% IF ( suggestions_loo.volumedesc ) %]; Volume:<i>[% suggestions_loo.volumedesc |html %]</i> [% END %]
490 [% IF ( suggestions_loo.isbn ) %]; ISBN:<i>[% suggestions_loo.isbn |html %]</i> [% END %][% IF ( suggestions_loo.publishercode ) %]; Published by [% suggestions_loo.publishercode |html %] [% END %][% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear |html %]</i> [% END %][% IF ( suggestions_loo.place ) %] in <i>[% suggestions_loo.place |html %]</i> [% END %][% IF ( suggestions_loo.collectiontitle ) %]; [% suggestions_loo.collectiontitle |html %] [% END %][% IF ( suggestions_loo.itemtype ) %]; [% suggestions_loo.itemtype |html %] [% END %]<br />[% IF ( suggestions_loo.note ) %]<span class="note">[% suggestions_loo.note |html%]</span>[% END %]
493 [% 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 %]
494 [% IF ( suggestions_loo.suggesteddate ) %] - [% suggestions_loo.suggesteddate %][% END %]
497 [% 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 %]
498 [% IF ( suggestions_loo.manageddate ) %] - [% suggestions_loo.manageddate %][% END %]
501 [% Branches.GetName( suggestions_loo.branchcode ) %]
504 [% suggestions_loo.budget_name %]
507 [% IF ( suggestions_loo.ASKED ) %]
509 [% ELSIF ( suggestions_loo.ACCEPTED ) %]
511 [% ELSIF ( suggestions_loo.ORDERED ) %]
513 [% ELSIF ( suggestions_loo.REJECTED ) %]
515 [% ELSIF ( suggestions_loo.CHECKED ) %]
517 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %]
518 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %]
521 [% IF ( suggestions_loo.reason ) %]
522 <br />([% suggestions_loo.reason %])
528 <div id="select-reason[% suggestion.suggestiontype %]">
529 <div id="status[% suggestion.suggestiontype %]">
530 <label for="STATUS[% suggestion.suggestiontype %]">Mark selected as: </label>
531 <select name="STATUS" id="STATUS[% suggestion.suggestiontype %]">
532 <option value=""> -- Choose a status --</option>
534 [% IF (statusselected_ASKED ) %]
535 <option value="ASKED" selected="selected">Pending</option>
537 <option value="ASKED">Pending</option>
540 [% IF (statusselected_ACCEPTED ) %]
541 <option value="ACCEPTED" selected="selected">Accepted</option>
543 <option value="ACCEPTED">Accepted</option>
546 [% IF (statusselected_CHECKED ) %]
547 <option value="CHECKED" selected="selected">Checked</option>
549 <option value="CHECKED">Checked</option>
552 [% IF ( statusselected_REJECTED ) %]
553 <option value="REJECTED" selected="selected">Rejected</option>
555 <option value="REJECTED">Rejected</option>
558 [% FOREACH s IN SuggestionStatuses %]
559 <option value="[% s.authorised_value %]">[% s.lib %]</option>
563 <label for="reason[% suggestion.suggestiontype %]">with this reason:</label>
564 <select id="reason[% suggestion.suggestiontype %]" name="reason[% suggestion.suggestiontype %]">
565 <option value=""> -- Choose a reason -- </option>
566 [% FOREACH reasonsloo IN suggestion.reasonsloop %]
567 <option value="[% reasonsloo.lib %]">[% reasonsloo.lib %]</option>
569 <option value="other">Others...</option>
572 <span id="other_reason[% suggestion.suggestiontype %]">
573 <input type="text" size="31" id="select-other_reason[% suggestion.suggestiontype %]" name="other_reason[% suggestion.suggestiontype %]" placeholder="please note your reason here..." />
574 <a href="#back[% suggestion.suggestiontype %]">Cancel</a>
577 <strong style="padding: 0 1em;">OR:</strong>
579 <label for="[% suggestion.suggestiontype %]delete">Delete selected</label>
580 <input type="checkbox" name="op" id="[% suggestion.suggestiontype %]delete" />
585 <input type="hidden" name="tabcode" value="[% suggestion.suggestiontype %]" />
586 <input type="hidden" name="op" value="change" />
588 <fieldset class="action">
589 <input type="submit" value="Submit" /></fieldset>
601 [% UNLESS ( op_save ) %] [% UNLESS ( op == 'show' ) %]<div class="yui-b">
602 <form name="suggestionfilter" action="suggestion.pl" method="get">
603 <fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label>
604 <select name="displayby" id="displayby" style="width:auto;">
605 [% IF ( displayby == "STATUS" ) %]
606 <option value="STATUS" selected="selected">Status</option>
608 <option value="STATUS">Status</option>
610 [% IF ( displayby == "branchcode" ) %]
611 <option value="branchcode" selected="selected">Library</option>
613 <option value="branchcode">Library</option>
615 [% IF ( displayby == "itemtype" ) %]
616 <option value="itemtype" selected="selected">Item type</option>
618 <option value="itemtype">Item type</option>
620 [% IF ( displayby == "managedby" ) %]
621 <option value="managedby" selected="selected">Managed by</option>
623 <option value="managedby">Managed by</option>
625 [% IF ( displayby == "acceptedby" ) %]
626 <option value="acceptedby" selected="selected">Accepted by</option>
628 <option value="acceptedby">Accepted by</option>
630 </select> <input type="submit" value="Go" /></li></ol></fieldset>
631 <h4>Filter by: <a style="font-size:80%;font-weight:normal;" href="/cgi-bin/koha/suggestion/suggestion.pl">[clear]</a></h4>
632 <div style="display:block;" id="limits">
634 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Bibliographic information</a></h4>
635 <ol> <li><label for="title"> Title:</label><input type="text" id="title" name="title" value="[% title |html %]" /></li>
636 <li><label for="author"> Author:</label><input type="text" id="author" name="author" value="[% author %]" /></li>
637 <li><label for="isbn"> ISBN:</label><input type="text" id="isbn" name="isbn" value="[% isbn %]" /></li>
638 <li><label for="publishercode"> Publisher:</label><input type="text" id="publishercode" name="publishercode" value="[% publishercode %]" /></li>
639 <li><label for="copyrightdate_filter"> Copyright date:</label><input type="text" id="copyrightdate_filter" name="copyrightdate" value="[% copyrightdate %]" /></li>
640 <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>
642 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Suggestion information</a></h4>
645 <label for="STATUS"> Status:</label>
646 <select name="STATUS" id="STATUS">
647 <option value="">Any</option>
649 [% IF (statusselected_ASKED ) %]
650 <option value="ASKED" selected="selected">Pending</option>
652 <option value="ASKED">Pending</option>
655 [% IF (statusselected_ACCEPTED ) %]
656 <option value="ACCEPTED" selected="selected">Accepted</option>
658 <option value="ACCEPTED">Accepted</option>
661 [% IF (statusselected_CHECKED ) %]
662 <option value="CHECKED" selected="selected">Checked</option>
664 <option value="CHECKED">Checked</option>
667 [% IF ( statusselected_REJECTED ) %]
668 <option value="REJECTED" selected="selected">Rejected</option>
670 <option value="REJECTED">Rejected</option>
673 [% FOREACH s IN SuggestionStatuses %]
674 [% IF s.authorised_value == selected_status %]
675 <option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option>
677 <option value="[% s.authorised_value %]">[% s.lib %]</option>
683 <li><label for="suggestedby"> Suggested by:</label><select id="suggestedby" name="suggestedby"><option value="">Any</option>
684 [% 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 %]
686 <li><label for="suggesteddate_from"> Suggested on:</label>
687 <table class="invis">
689 <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>
692 <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>
696 <li><label for="managedby"> Managed by:</label><select id="managedby" name="managedby"><option value="">Any</option>
697 [% 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 %]
699 <li><label for="manageddate_from"> Management date:</label>
700 <table class="invis">
702 <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>
705 <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>
709 <li><label for="acceptedby"> Accepted by:</label><select id="acceptedby" name="acceptedby"><option value="">Any</option>
710 [% 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 %]
712 <li><label for="accepteddate_from"> Accepted on:</label>
713 <table class="invis">
715 <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>
718 <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>
722 <li><input type="submit" value="Go" /></li></ol>
725 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Acquisition information</a></h4>
726 <ol><li><label for="budgetid"> Book fund:</label>
727 <select name="budgetid" id="budgetid"><option value="">Any</option>[% FOREACH budgetid_loo IN budgetid_loop %]
728 [% 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 %]
731 <li><label for="branchcode"> For:</label>
732 <select name="branchcode" id="branchcode">
733 <option value="__ANY__">Any</option>[% FOREACH branchloo IN branchloop %]
734 [% IF ( branchloo.selected ) %] <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %] <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
736 </select></li><li><input type="submit" value="Go" /></li></ol>
745 [% INCLUDE 'intranet-bottom.inc' %]