2 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Acquisitions ›
8 [% IF ( suggestionid ) %]
9 Suggestions › Edit suggestion #[% suggestionid %]
11 Suggestions › Add suggestion
13 [% ELSIF ( op == 'show' ) %]
14 Suggestions › Show suggestion #[% suggestionid %]
16 Suggestions management
19 [% INCLUDE 'doc-head-close.inc' %]
20 [% INCLUDE 'calendar.inc' %]
21 [% IF ( op == 'show' ) %]
22 <script type="text/javascript">
24 $(document).ready(function(){
25 $("#deletesuggestion").on("click",function(){
26 return confirm(_("Are you sure you want to delete this suggestion?"));
33 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
34 [% INCLUDE 'datatables.inc' %]
35 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
36 <script type="text/javascript">
40 * This function display the select or an textaera to write a reason.
42 function displayOther(id,show,hide){
43 $("#"+hide+id).hide();
44 $("#"+show+id).show();
46 $(document).ready(function() {
47 $('#suggestiontabs').tabs({
48 // Correct table sizing for tables hidden in tabs
49 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
50 "activate": function(event, ui) {
51 $( $.fn.dataTable.tables( true ) ).DataTable().columns.adjust();
54 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
56 { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
57 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
59 "sPaginationType": "four_button"
61 [% FOREACH suggestion IN suggestions %]
62 // functions for [% suggestion.suggestiontype %] interactions
63 $("#CheckAll[% suggestion.suggestiontype %]").click(function(e){
64 $("#[% suggestion.suggestiontype %]t").checkCheckboxes();
67 $("#UncheckAll[% suggestion.suggestiontype %]").click(function(e){
68 $("#[% suggestion.suggestiontype %]t").unCheckCheckboxes();
71 $("#other_reason[% suggestion.suggestiontype %]").hide();
72 $("#reason[% suggestion.suggestiontype %]").change(function(){
73 if($(this).val() == "other"){
75 $("#other_reason[% suggestion.suggestiontype %]").show();
78 $("#[% suggestion.suggestiontype %]delete").change(function(){
80 $("form[name='f[% suggestion.suggestiontype %]'] input[name=op]").attr("value","delete");
82 $("form[name='f[% suggestion.suggestiontype %]'] input[name=op]").attr("value","change");
87 $("a[href*=back]").click(function(){
88 var sid = $(this).attr("href").replace(/#back/,"");
89 $("#reason"+sid).show().find("option[value='']").attr("selected","selected");
90 $("#other_reason"+sid).hide();
92 $("h4.local_collapse a").click(function(){
93 $(this).parent().parent().find("ol").toggle();
96 // http://jqueryui.com/demos/datepicker/#date-range
97 var dates = $( "#suggesteddate_from, #suggesteddate_to" ).datepicker({
100 onSelect: function( selectedDate ) {
101 var option = this.id == "suggesteddate_from" ? "minDate" : "maxDate",
102 instance = $( this ).data( "datepicker" );
103 date = $.datepicker.parseDate(
104 instance.settings.dateFormat ||
105 $.datepicker._defaults.dateFormat,
106 selectedDate, instance.settings );
107 dates.not( this ).datepicker( "option", option, date );
110 var datesMD = $( "#manageddate_from, #manageddate_to" ).datepicker({
113 onSelect: function( selectedDate ) {
114 var option = this.id == "manageddate_from" ? "minDate" : "maxDate",
115 instance = $( this ).data( "datepicker" );
116 date = $.datepicker.parseDate(
117 instance.settings.dateFormat ||
118 $.datepicker._defaults.dateFormat,
119 selectedDate, instance.settings );
120 datesMD.not( this ).datepicker( "option", option, date );
123 var datesAD = $( "#accepteddate_from, #accepteddate_to" ).datepicker({
126 onSelect: function( selectedDate ) {
127 var option = this.id == "accepteddate_from" ? "minDate" : "maxDate",
128 instance = $( this ).data( "datepicker" );
129 date = $.datepicker.parseDate(
130 instance.settings.dateFormat ||
131 $.datepicker._defaults.dateFormat,
132 selectedDate, instance.settings );
133 datesAD.not( this ).datepicker( "option", option, date );
137 $("form.update_suggestions").on("submit", function(e){
139 var action_delete_selected = $(this).find("input[value='delete']").is(":checked");
140 if ( action_delete_selected ) {
141 var suggestions_to_delete = $(this).find("input[name='edit_field']:checked");
142 if ( suggestions_to_delete.length == 0 ) {
143 alert(_("Please select at least one suggestion to delete"));
146 } else if ( suggestions_to_delete.length == 1 ) {
147 if ( ! confirm(_("Are you sure you want to delete this suggestion?")) ) {
151 } else if ( suggestions_to_delete.length > 1 ) {
152 if ( ! confirm(_("Are you sure you want to delete these suggestions?")) ) {
163 <style type="text/css">
164 h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; }
165 .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%; }
168 <script type="text/javascript">
170 $(document).ready(function() { calcNewsuggTotal(); });
174 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
176 <body id="acq_suggestion" class="acq">
177 [% INCLUDE 'header.inc' %]
178 [% INCLUDE 'cat-search.inc' %]
179 <div id="breadcrumbs">
180 <a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> ›
182 [% IF ( suggestionid ) %]
183 <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Edit suggestion #[% suggestionid %]
185 <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Add suggestion
187 [% ELSIF ( op == 'show' ) %]
188 <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Show suggestion #[% suggestionid %]
190 Suggestions management
194 [% IF ( op == 'show' ) %]
195 <div id="doc" class="yui-t7"> <!-- <div id="doc3" class="yui-t2"> -->
200 <div id="toolbar" class="btn-toolbar">
201 <a class="btn btn-small" id="editsuggestion" href="suggestion.pl?op=edit&suggestionid=[% suggestionid %]"><i class="fa fa-pencil"></i> Edit</a>
202 <a class="btn btn-small" id="deletesuggestion" href="suggestion.pl?op=delete&edit_field=[% suggestionid %]"><i class="fa fa-remove"></i> Delete</a>
205 <fieldset class="rows">
206 <legend>Bibliographic information</legend>
208 <li><span class="label">Title:</span>[% title |html %]</li>
209 <li><span class="label">Author:</span>[% author |html %]</li>
210 <li><span class="label">Copyright date:</span>[% copyrightdate |html %]</li>
211 <li><span class="label">ISBN or ISSN or other standard number:</span>[% isbn |html %]</li>
212 <li><span class="label">Publisher:</span>[% publishercode |html %]</li>
213 <li><span class="label">Publication place:</span>[% place |html %]</li>
214 <li><span class="label">Collection title:</span>[% collectiontitle |html %]</li>
215 <li><span class="label">Document type:</span>
216 [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', itemtype, 0 ) %]
218 [% IF ( patron_reason_loop ) %]
219 <li><span class="label">Reason for suggestion: </span>
220 [% FOREACH patron_reason_loo IN patron_reason_loop %]
221 [% IF patron_reason_loo.authorised_value == patronreason %][% patron_reason_loo.lib %][% END %]
225 <li><span class="label">Notes:</span>[% note |html %]</li>
228 <fieldset class="rows"> <legend>Suggestion management</legend>
231 <span class="label">Status:</span>
232 [% SET status_found = 0 %]
233 [% IF ( STATUS == 'ASKED' ) %]
235 [% SET status_found = 1 %]
236 [% ELSIF ( STATUS == 'ACCEPTED' ) %]
238 [% SET status_found = 1 %]
239 [% ELSIF ( STATUS == 'CHECKED' ) %]
241 [% SET status_found = 1 %]
242 [% ELSIF ( STATUS == 'REJECTED' ) %]
244 [% SET status_found = 1 %]
246 [% FOREACH s IN SuggestionStatuses %]
247 [% IF STATUS == s.authorised_value %]
249 [% SET status_found = 1 %]
257 <thead><tr><th> </th><th>Date</th><th>By</th></tr></thead>
260 <th><span class="label">Suggestion creation</span> </th>
261 <td>[% suggesteddate | $KohaDates %]</td>
262 <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 %]
266 <th><span class="label">Suggestion management</span> </th>
267 <td>[% manageddate | $KohaDates %]</td>
268 <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>
271 <th><span class="label">Suggestion accepted</span> </th>
272 <td>[% accepteddate | $KohaDates %]</td>
273 <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>
278 <fieldset class="rows"> <legend>Acquisition information</legend>
281 <span class="label">Library:</span> [% branchname %]
284 <span class="label">Fund:</span> [% budgetname %]
287 <span class="label">Copies:</span>[% quantity %]
290 <span class="label">Currency:</span>[% currency %]
293 <span class="label">Price:</span>[% price | $Price %]
296 <span class="label">Total</span>[% total | $Price %]
301 <fieldset class="action">
302 <a href="suggestion.pl"><< Back to suggestions</a>
310 [% IF ( op_save ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
315 <form id="add_edit" action="suggestion.pl" method="post" class="validated">
316 <input type="hidden" name="redirect" id="redirect" value="[% redirect %]" />
317 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
318 [% IF ( suggestionid ) %]
319 <h1>Edit purchase suggestion #[% suggestionid %]</h1>
320 <input type="hidden" name="suggestionid" value="[% suggestionid %]"/>
322 <h1>Enter a new purchase suggestion</h1>
324 <fieldset class="rows"> <legend>Bibliographic information</legend><ol>
326 <label for="title" class="required">Title:</label>
327 <input type="text" id="title" name="title" size="80" maxlength="255" value="[% title |html %]" required="required" class="required" />
328 <span class="required">Required</span>
330 <li><label for="author">Author:</label><input type="text" id="author" name="author" size="50" maxlength="80" value="[% author | html %]"/></li>
331 <li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" value="[% copyrightdate | html %]" /></li>
332 <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 | html %]"/></li>
333 <li><label for="publishercode">Publisher:</label><input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" value="[% publishercode | html %]"/></li>
334 <li><label for="place">Publication place:</label><input type="text" id="place" name="place" size="50" maxlength="80" value="[% place | html %]"/></li>
335 <li><label for="collectiontitle">Collection title:</label><input type="text" id="collectiontitle" name="collectiontitle" size="50" maxlength="80" value="[% collectiontitle | html %]"/></li>
336 <li><label for="itemtype">Document type:</label>
337 [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, default=itemtype %]
339 [% IF patron_reason_loop %]
341 <label for="patronreason">Reason for suggestion: </label>
342 <select name="patronreason" id="patronreason">
343 <option value=""> -- Choose -- </option>
344 [% FOREACH patron_reason_loo IN patron_reason_loop %]
345 [% IF patron_reason_loo.authorised_value == patronreason %]
346 <option value="[% patron_reason_loo.authorised_value %]" selected="selected">[% patron_reason_loo.lib %]</option>
348 <option value="[% patron_reason_loo.authorised_value %]">[% patron_reason_loo.lib %]</option>
354 <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40">[% note %]</textarea></li>
357 <fieldset class="rows"> <legend>Suggestion management</legend>
359 [% IF ( suggestionid ) %]
361 <label for="STATUS">Status:</label>
362 <select id="STATUS" name="STATUS">
363 <option value="">No Status</option>
365 [% IF (statusselected_ASKED ) %]
366 <option value="ASKED" selected="selected">Pending</option>
368 <option value="ASKED">Pending</option>
371 [% IF (statusselected_ACCEPTED ) %]
372 <option value="ACCEPTED" selected="selected">Accepted</option>
374 <option value="ACCEPTED">Accepted</option>
377 [% IF (statusselected_CHECKED ) %]
378 <option value="CHECKED" selected="selected">Checked</option>
380 <option value="CHECKED">Checked</option>
383 [% IF ( statusselected_REJECTED ) %]
384 <option value="REJECTED" selected="selected">Rejected</option>
386 <option value="REJECTED">Rejected</option>
389 [% FOREACH s IN SuggestionStatuses %]
390 [% IF s.authorised_value == selected_status %]
391 <option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option>
393 <option value="[% s.authorised_value %]">[% s.lib %]</option>
400 <thead><tr><th> </th><th>Date</th><th>By</th></tr></thead>
403 <th><label for="suggesteddate">Suggestion creation</label> </th>
404 <td><input type="text" id="suggesteddate" name="suggesteddate" size="10" maxlength="10" value="[% suggesteddate | $KohaDates %]"/></td>
405 <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 %]
409 <th><label for="managedon">Suggestion management</label> </th>
410 <td><input type="text" id="managedon" name="manageddate" size="10" maxlength="10" value="[% manageddate | $KohaDates %]" /></td>
411 <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>
414 <th><label for="accepteddate">Suggestion accepted</label> </th>
415 <td><input type="text" id="accepteddate" name="accepteddate" size="10" maxlength="10" value="[% accepteddate | $KohaDates %]" /></td>
416 <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>
421 <fieldset class="rows"> <legend>Acquisition information</legend><ol>
422 <li><label for="branchcode">Library:</label>
423 <select name="branchcode" id="branchcode">
424 <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
425 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %][% END %]
428 <li><label for="budgetid">Fund:</label>
429 <select name="budgetid" id="budgetid">
430 <option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %]
431 [% 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 %]
433 </li><li><label for="quantity">Copies:</label>
434 <input type="text" size="10" id="quantity" name="quantity" value="[% quantity %]" onchange="calcNewsuggTotal();" />
437 <label for="currency">Currency:</label>
438 [% FOREACH c IN currencies %]
439 <input type="hidden" value="[% c.rate %]" id="currency_rate_[% c.currency %]" name="currency_rate_[% c.currency %]" />
440 <input type="hidden" id="[% c.currency %]" name="[% c.currency %]" value="[% c.rate %]" />
443 <select name="currency" id="currency" onchange="calcNewsuggTotal();">
444 [% FOREACH c IN currencies %]
445 [% IF suggestionid and suggestion.currency == c.currency or not suggestionid and c.active %]
446 <option value="[% c.currency %]" selected="selected">[% c.currency %]</option>
447 [% ELSIF not c.archived %]
448 <option value="[% c.currency %]">[% c.currency %]</option>
453 <li><label for="price">Price:</label>
454 <input type="text" size="20" name="price" id="price" value="[% price %]" onchange="calcNewsuggTotal();" />
455 </li><li><label for="total">Total: </label>
456 <input type="text" readonly="readonly" id="total" name="total" size="10" value="[% total %]"/>
458 </fieldset><input type="hidden" id="returnsuggested" name="returnsuggested" value="[% IF ( returnsuggestedby ) %][% returnsuggestedby %][% ELSE %]noone[% END %]"/>
459 <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 %]
465 <div id="toolbar" class="btn-toolbar">
466 <a class="btn btn-small" id="newsuggestion" href="suggestion.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a>
469 <h1>Suggestions management</h1>
472 [% FOR m IN messages %]
473 <div class="dialog [% m.type %]">
475 [% CASE 'already_exists' %]
476 The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id %]&op=show'>suggestion #[% m.id %]</a>)
483 [% UNLESS ( notabs ) %]
484 <div id="suggestiontabs" class="toptabs">
485 <ul class="ui-tabs-nav">
486 [% FOREACH suggestion IN suggestions %]
488 <a href="#[% suggestion.suggestiontype %]">
489 [% IF ( suggestion.suggestiontypelabel ) %]
490 [% IF (suggestion.suggestiontypelabel == "Pending") %]Pending
491 [% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted
492 [% ELSIF (suggestion.suggestiontypelabel == "Checked") %]Checked
493 [% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]Rejected
494 [% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available
495 [% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]Ordered
496 [% ELSE %][% suggestion.suggestiontypelabel %][% END %]
498 [% IF ( suggestion.suggestiontype ) %]
499 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.suggestiontype ) %]
504 ([% suggestion.suggestions_loop.size %])</a></li>
510 [% FOREACH suggestion IN suggestions %]
511 <div id="[% suggestion.suggestiontype %]">
512 <form class="update_suggestions" name="f[% suggestion.suggestiontype %]" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype %]">
514 [% IF ( suggestion.suggestions_loop ) %]
515 <p><a id="CheckAll[% suggestion.suggestiontype %]" href="#">Check all</a> | <a id="UncheckAll[% suggestion.suggestiontype %]" href="#">Uncheck all</a></p>
516 <table id="[% suggestion.suggestiontype %]t" class="sorted">
520 <th class="anti-the">Suggestion</th>
521 <th>Suggested by - on</th>
522 <th>Managed by - on</th>
528 [% FOREACH suggestions_loo IN suggestion.suggestions_loop %]
531 <input type="checkbox" name="edit_field" value="[% suggestions_loo.suggestionid %]" />
534 [% suggestions_loo.suggestionid %]
537 <a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&op=show" title="suggestion" >
538 [% suggestions_loo.title |html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author %][% END %]</a>
539 [<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&op=edit" title="suggestion" >edit</a>]
541 [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate |html %] [% END %]
542 [% IF ( suggestions_loo.volumedesc ) %]; Volume:<i>[% suggestions_loo.volumedesc |html %]</i> [% END %]
543 [% 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 ) %]; [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestions_loo.itemtype, 0 ) %] [% END %]<br />[% IF ( suggestions_loo.note ) %]<span class="note">[% suggestions_loo.note |html%]</span>[% END %]
546 [% 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.cardnumbersuggestedby ) %]([% suggestions_loo.cardnumbersuggestedby %])[% END %] [% IF ( suggestions_loo.emailsuggestedby ) %]</a>[% END %]
547 [% IF ( suggestions_loo.suggesteddate ) %] - [% suggestions_loo.suggesteddate | $KohaDates %][% END %]
550 [% 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 %]
551 [% IF ( suggestions_loo.manageddate ) %] - [% suggestions_loo.manageddate | $KohaDates %][% END %]
554 [% Branches.GetName( suggestions_loo.branchcode ) %]
557 [% suggestions_loo.budget_name %]
560 [% IF ( suggestions_loo.ASKED ) %]
562 [% ELSIF ( suggestions_loo.ACCEPTED ) %]
564 [% ELSIF ( suggestions_loo.ORDERED ) %]
566 [% ELSIF ( suggestions_loo.REJECTED ) %]
568 [% ELSIF ( suggestions_loo.CHECKED ) %]
570 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %]
571 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %]
574 [% IF ( suggestions_loo.reason ) %]
575 <br />([% suggestions_loo.reason %])
581 <div id="select-reason[% suggestion.suggestiontype %]">
582 <div id="status[% suggestion.suggestiontype %]">
583 <label for="STATUS[% suggestion.suggestiontype %]">Mark selected as: </label>
584 <select name="STATUS" id="STATUS[% suggestion.suggestiontype %]">
585 <option value=""> -- Choose a status --</option>
587 [% IF (statusselected_ASKED ) %]
588 <option value="ASKED" selected="selected">Pending</option>
590 <option value="ASKED">Pending</option>
593 [% IF (statusselected_ACCEPTED ) %]
594 <option value="ACCEPTED" selected="selected">Accepted</option>
596 <option value="ACCEPTED">Accepted</option>
599 [% IF (statusselected_CHECKED ) %]
600 <option value="CHECKED" selected="selected">Checked</option>
602 <option value="CHECKED">Checked</option>
605 [% IF ( statusselected_REJECTED ) %]
606 <option value="REJECTED" selected="selected">Rejected</option>
608 <option value="REJECTED">Rejected</option>
611 [% FOREACH s IN SuggestionStatuses %]
612 <option value="[% s.authorised_value %]">[% s.lib %]</option>
616 <label for="reason[% suggestion.suggestiontype %]">with this reason:</label>
617 <select id="reason[% suggestion.suggestiontype %]" name="reason[% suggestion.suggestiontype %]">
618 <option value=""> -- Choose a reason -- </option>
619 [% FOREACH reasonsloo IN suggestion.reasonsloop %]
620 <option value="[% reasonsloo.lib %]">[% reasonsloo.lib %]</option>
622 <option value="other">Others...</option>
625 <span id="other_reason[% suggestion.suggestiontype %]">
626 <input type="text" size="31" id="select-other_reason[% suggestion.suggestiontype %]" name="other_reason[% suggestion.suggestiontype %]" placeholder="please note your reason here..." />
627 <a href="#back[% suggestion.suggestiontype %]">Cancel</a>
630 <strong style="padding: 0 1em;">OR:</strong>
632 <label for="[% suggestion.suggestiontype %]delete">Delete selected</label>
633 <input type="checkbox" name="op" id="[% suggestion.suggestiontype %]delete" />
638 <input type="hidden" name="tabcode" value="[% suggestion.suggestiontype %]" />
639 <input type="hidden" name="op" value="change" />
641 <fieldset class="action">
642 <input type="submit" value="Submit" /></fieldset>
654 [% UNLESS ( op_save ) %] [% UNLESS ( op == 'show' ) %]<div class="yui-b">
655 <form name="suggestionfilter" action="suggestion.pl" method="get">
656 <fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label>
657 <select name="displayby" id="displayby" style="width:auto;">
658 [% IF ( displayby == "STATUS" ) %]
659 <option value="STATUS" selected="selected">Status</option>
661 <option value="STATUS">Status</option>
663 [% IF ( displayby == "branchcode" ) %]
664 <option value="branchcode" selected="selected">Library</option>
666 <option value="branchcode">Library</option>
668 [% IF ( displayby == "itemtype" ) %]
669 <option value="itemtype" selected="selected">Item type</option>
671 <option value="itemtype">Item type</option>
673 [% IF ( displayby == "managedby" ) %]
674 <option value="managedby" selected="selected">Managed by</option>
676 <option value="managedby">Managed by</option>
678 [% IF ( displayby == "acceptedby" ) %]
679 <option value="acceptedby" selected="selected">Accepted by</option>
681 <option value="acceptedby">Accepted by</option>
683 </select> <input type="submit" value="Go" /></li></ol></fieldset>
684 <h4>Filter by: <a style="font-size:80%;font-weight:normal;" href="/cgi-bin/koha/suggestion/suggestion.pl">[clear]</a></h4>
685 <div style="display:block;" id="limits">
687 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Bibliographic information</a></h4>
688 <ol> <li><label for="title"> Title:</label><input type="text" id="title" name="title" value="[% title |html %]" /></li>
689 <li><label for="author"> Author:</label><input type="text" id="author" name="author" value="[% author | html %]" /></li>
690 <li><label for="isbn"> ISBN:</label><input type="text" id="isbn" name="isbn" value="[% isbn | html %]" /></li>
691 <li><label for="publishercode"> Publisher:</label><input type="text" id="publishercode" name="publishercode" value="[% publishercode | html %]" /></li>
692 <li><label for="copyrightdate_filter"> Copyright date:</label><input type="text" id="copyrightdate_filter" name="copyrightdate" value="[% copyrightdate | html %]" /></li>
693 <li><label for="collectiontitle"> Collection title:</label><input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle | html %]" /></li><li><input type="submit" value="Go" /></li></ol>
695 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Suggestion information</a></h4>
698 <label for="STATUS"> Status:</label>
699 <select name="STATUS" id="STATUS">
700 <option value="">Any</option>
702 [% IF (statusselected_ASKED ) %]
703 <option value="ASKED" selected="selected">Pending</option>
705 <option value="ASKED">Pending</option>
708 [% IF (statusselected_ACCEPTED ) %]
709 <option value="ACCEPTED" selected="selected">Accepted</option>
711 <option value="ACCEPTED">Accepted</option>
714 [% IF (statusselected_CHECKED ) %]
715 <option value="CHECKED" selected="selected">Checked</option>
717 <option value="CHECKED">Checked</option>
720 [% IF ( statusselected_REJECTED ) %]
721 <option value="REJECTED" selected="selected">Rejected</option>
723 <option value="REJECTED">Rejected</option>
726 [% FOREACH s IN SuggestionStatuses %]
727 [% IF s.authorised_value == selected_status %]
728 <option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option>
730 <option value="[% s.authorised_value %]">[% s.lib %]</option>
736 <li><label for="suggestedby"> Suggested by:</label><select id="suggestedby" name="suggestedby"><option value="">Any</option>
737 [% 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 %]
740 <label for="suggesteddate_from">Suggested date from:</label>
741 <input type="text" id="suggesteddate_from" size="10" name="suggesteddate_from" value="[% suggesteddate_from %]" />
744 <label for="suggesteddate_to">To:</label>
745 <input type="text" id="suggesteddate_to" size="10" name="suggesteddate_to" value="[% suggesteddate_to %]" />
747 <li><label for="managedby"> Managed by:</label><select id="managedby" name="managedby"><option value="">Any</option>
748 [% 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 %]
751 <label for="manageddate_from">Management date from:</label>
752 <input type="text" id="manageddate_from" size="10" name="manageddate_from" value="[% manageddate_from %]" />
755 <label for="manageddate_to">To:</label>
756 <input type="text" id="manageddate_to" size="10" name="manageddate_to" value="[% manageddate_to %]" />
758 <li><label for="acceptedby"> Accepted by:</label><select id="acceptedby" name="acceptedby"><option value="">Any</option>
759 [% 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 %]
762 <label for="accepteddate_from">Accepted date from:</label>
763 <input type="text" id="accepteddate_from" size="10" name="accepteddate_from" value="[% accepteddate_from %]" />
766 <label for="accepteddate_to">To:</label>
767 <input type="text" id="accepteddate_to" size="10" name="accepteddate_to" value="[% accepteddate_to %]" />
769 <li><input type="submit" value="Go" /></li></ol>
772 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Acquisition information</a></h4>
773 <ol><li><label for="budgetid"> Book fund:</label>
774 <select name="budgetid" id="budgetid">
775 <option value="__ANY__">Any</option>
776 [% IF budgetid == '__NONE__' %]
777 <option value="__NONE__" selected="selected">None</option>
779 <option value="__NONE__">None</option>
781 [% FOREACH budgetid_loo IN budgetid_loop %]
782 [% 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 %]
785 <li><label for="branchcode"> For:</label>
786 <select name="branchcode" id="branchcode">
787 <option value="__ANY__">Any</option>[% FOREACH branchloo IN branchloop %]
788 [% IF ( branchloo.selected ) %] <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %] <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
790 </select></li><li><input type="submit" value="Go" /></li></ol>
799 [% INCLUDE 'intranet-bottom.inc' %]