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(){
172 $("#quantity,#price,#currency").on("change",function(){
179 <script type="text/javascript" src="[% interface %]/[% theme %]/js/acq.js"></script>
181 <body id="acq_suggestion" class="acq">
182 [% INCLUDE 'header.inc' %]
183 [% INCLUDE 'cat-search.inc' %]
184 <div id="breadcrumbs">
185 <a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> ›
187 [% IF ( suggestionid ) %]
188 <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Edit suggestion #[% suggestionid %]
190 <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Add suggestion
192 [% ELSIF ( op == 'show' ) %]
193 <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Show suggestion #[% suggestionid %]
195 Suggestions management
199 [% IF ( op == 'show' ) %]
200 <div id="doc" class="yui-t7"> <!-- <div id="doc3" class="yui-t2"> -->
205 <div id="toolbar" class="btn-toolbar">
206 <a class="btn btn-default btn-sm" id="editsuggestion" href="suggestion.pl?op=edit&suggestionid=[% suggestionid %]"><i class="fa fa-pencil"></i> Edit</a>
207 <a class="btn btn-default btn-sm" id="deletesuggestion" href="suggestion.pl?op=delete&edit_field=[% suggestionid %]"><i class="fa fa-trash"></i> Delete</a>
210 <fieldset class="rows">
211 <legend>Bibliographic information</legend>
215 <span class="label">Title:</span>
221 <span class="label">Author:</span>
225 [% IF ( copyrightdate ) %]
227 <span class="label">Copyright date:</span>
228 [% copyrightdate |html %]
233 <span class="label">ISBN or ISSN or other standard number:</span>
237 [% IF ( publishercode ) %]
239 <span class="label">Publisher:</span>
240 [% publishercode |html %]
245 <span class="label">Publication place:</span>
249 [% IF ( collectiontitle ) %]
251 <span class="label">Collection title:</span>
252 [% collectiontitle |html %]
255 [% IF ( itemtype ) %]
257 <span class="label">Document type:</span>
258 [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', itemtype, 0 ) %]
261 [% IF ( patron_reason_loop ) %]
262 <li><span class="label">Reason for suggestion: </span>
263 [% FOREACH patron_reason_loo IN patron_reason_loop %]
264 [% IF patron_reason_loo.authorised_value == patronreason %][% patron_reason_loo.lib %][% END %]
270 <span class="label">Notes:</span>
276 <fieldset class="rows"> <legend>Suggestion management</legend>
279 <span class="label">Status:</span>
280 [% SET status_found = 0 %]
281 [% IF ( STATUS == 'ASKED' ) %]
283 [% SET status_found = 1 %]
284 [% ELSIF ( STATUS == 'ACCEPTED' ) %]
286 [% SET status_found = 1 %]
287 [% ELSIF ( STATUS == 'CHECKED' ) %]
289 [% SET status_found = 1 %]
290 [% ELSIF ( STATUS == 'REJECTED' ) %]
292 [% SET status_found = 1 %]
294 [% FOREACH s IN SuggestionStatuses %]
295 [% IF STATUS == s.authorised_value %]
297 [% SET status_found = 1 %]
305 <thead><tr><th> </th><th>Date</th><th>By</th></tr></thead>
309 <td>[% suggesteddate | $KohaDates %]</td>
311 [% IF ( suggestedby_borrowernumber ) %]
312 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_borrowernumber %]">[% suggestedby_surname %], [% suggestedby_firstname %] ([% suggestedby_cardnumber %])</a>
313 [% Branches.GetName( suggestedby_branchcode ) %] ([% suggestedby_description %])
319 <td>[% manageddate | $KohaDates %]</td>
321 [% IF ( managedby_borrowernumber ) %]
322 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% managedby_borrowernumber %]">[% managedby_surname %], [% managedby_firstname %] ([% suggestedby_cardnumber %])</a>
323 [% Branches.GetName( managedby_branchcode ) %] ([% managedby_description %])
328 <th>Accepted on:</th>
329 <td>[% accepteddate | $KohaDates %]</td>
331 [% IF ( acceptedby_borrowernumber ) %]
332 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% acceptedby_borrowernumber %]">[% acceptedby_surname %], [% acceptedby_firstname %] ([% suggestedby_cardnumber %])</a>
333 [% Branches.GetName( acceptedby_branchcode ) %] ([% acceptedby_description %])
340 <fieldset class="rows"> <legend>Acquisition information</legend>
343 <span class="label">Library:</span> [% Branches.GetName( branchcode ) %]
346 <span class="label">Fund:</span> [% budgetname %]
349 <span class="label">Copies:</span>[% quantity %]
352 <span class="label">Currency:</span>[% currency %]
355 <span class="label">Price:</span>[% price | $Price %]
358 <span class="label">Total</span>[% total | $Price %]
363 <fieldset class="action">
364 <a href="suggestion.pl"><< Back to suggestions</a>
372 [% IF ( op_save ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
377 <form id="add_edit" action="suggestion.pl" method="post" class="validated">
378 <input type="hidden" name="redirect" id="redirect" value="[% redirect %]" />
379 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
380 [% IF ( suggestionid ) %]
381 <h1>Edit purchase suggestion #[% suggestionid %]</h1>
382 <input type="hidden" name="suggestionid" value="[% suggestionid %]"/>
384 <h1>Enter a new purchase suggestion</h1>
386 <fieldset class="rows"> <legend>Bibliographic information</legend><ol>
388 <label for="title" class="required">Title:</label>
389 <input type="text" id="title" name="title" size="80" maxlength="255" value="[% title |html %]" required="required" class="required" />
390 <span class="required">Required</span>
392 <li><label for="author">Author:</label><input type="text" id="author" name="author" size="50" maxlength="80" value="[% author | html %]"/></li>
393 <li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" value="[% copyrightdate | html %]" /></li>
394 <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>
395 <li><label for="publishercode">Publisher:</label><input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" value="[% publishercode | html %]"/></li>
396 <li><label for="place">Publication place:</label><input type="text" id="place" name="place" size="50" maxlength="80" value="[% place | html %]"/></li>
397 <li><label for="collectiontitle">Collection title:</label><input type="text" id="collectiontitle" name="collectiontitle" size="50" maxlength="80" value="[% collectiontitle | html %]"/></li>
398 <li><label for="itemtype">Document type:</label>
399 [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, default=itemtype %]
401 [% IF patron_reason_loop %]
403 <label for="patronreason">Reason for suggestion: </label>
404 <select name="patronreason" id="patronreason">
405 <option value=""> -- Choose -- </option>
406 [% FOREACH patron_reason_loo IN patron_reason_loop %]
407 [% IF patron_reason_loo.authorised_value == patronreason %]
408 <option value="[% patron_reason_loo.authorised_value %]" selected="selected">[% patron_reason_loo.lib %]</option>
410 <option value="[% patron_reason_loo.authorised_value %]">[% patron_reason_loo.lib %]</option>
416 <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40">[% note %]</textarea></li>
419 <fieldset class="rows"> <legend>Suggestion management</legend>
421 [% IF ( suggestionid ) %]
423 <label for="STATUS">Status:</label>
424 <select id="STATUS" name="STATUS">
425 <option value="">No Status</option>
427 [% IF (statusselected_ASKED ) %]
428 <option value="ASKED" selected="selected">Pending</option>
430 <option value="ASKED">Pending</option>
433 [% IF (statusselected_ACCEPTED ) %]
434 <option value="ACCEPTED" selected="selected">Accepted</option>
436 <option value="ACCEPTED">Accepted</option>
439 [% IF (statusselected_CHECKED ) %]
440 <option value="CHECKED" selected="selected">Checked</option>
442 <option value="CHECKED">Checked</option>
445 [% IF ( statusselected_REJECTED ) %]
446 <option value="REJECTED" selected="selected">Rejected</option>
448 <option value="REJECTED">Rejected</option>
451 [% FOREACH s IN SuggestionStatuses %]
452 [% IF s.authorised_value == selected_status %]
453 <option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option>
455 <option value="[% s.authorised_value %]">[% s.lib %]</option>
462 <thead><tr><th> </th><th>Date</th><th>By</th></tr></thead>
465 <th><label for="suggesteddate">Created by:</label> </th>
466 <td><input type="text" id="suggesteddate" name="suggesteddate" class="datepicker" size="10" maxlength="10" value="[% suggesteddate | $KohaDates %]"/>[% INCLUDE 'date-format.inc' %]</td>
467 <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 %] ([% suggestedby_cardnumber %])</a> [% Branches.GetName( suggestedby_branchcode ) %] ([% suggestedby_description %])[% END %]
471 <th><label for="managedon">Managed by:</label> </th>
472 <td><input type="text" id="managedon" name="manageddate" class="datepicker" size="10" maxlength="10" value="[% manageddate | $KohaDates %]" />[% INCLUDE 'date-format.inc' %]</td>
473 <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 %] ([% suggestedby_cardnumber %])</a> [% Branches.GetName( managedby_branchcode ) %] ([% managedby_description %])[% END %]</td>
476 <th><label for="accepteddate">Accepted on:</label> </th>
477 <td><input type="text" id="accepteddate" name="accepteddate" class="datepicker" size="10" maxlength="10" value="[% accepteddate | $KohaDates %]" />[% INCLUDE 'date-format.inc' %]</td>
478 <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 %] ([% suggestedby_cardnumber %])</a> [% Branches.GetName( acceptedby_branchcode ) %] ([% acceptedby_description %])[% END %]</td>
483 <fieldset class="rows"> <legend>Acquisition information</legend><ol>
484 <li><label for="branchcode">Library:</label>
485 <select name="branchcode" id="branchcode">
486 <option value="">Any</option>
487 [% IF branchfilter %]
488 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter ) %]
490 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
494 <li><label for="budgetid">Fund:</label>
495 <select name="budgetid" id="budgetid">
496 <option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %]
497 [% 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 %]
499 </li><li><label for="quantity">Copies:</label>
500 <input type="text" size="10" id="quantity" name="quantity" value="[% quantity %]" />
503 <label for="currency">Currency:</label>
504 [% FOREACH c IN currencies %]
505 <input type="hidden" value="[% c.rate %]" id="currency_rate_[% c.currency %]" name="currency_rate_[% c.currency %]" />
506 <input type="hidden" id="[% c.currency %]" name="[% c.currency %]" value="[% c.rate %]" />
509 <select name="currency" id="currency">
510 [% FOREACH c IN currencies %]
511 [% IF suggestionid and suggestion.currency == c.currency or not suggestionid and c.active %]
512 <option value="[% c.currency %]" selected="selected">[% c.currency %]</option>
513 [% ELSIF not c.archived %]
514 <option value="[% c.currency %]">[% c.currency %]</option>
519 <li><label for="price">Price:</label>
520 <input type="text" size="20" name="price" id="price" value="[% price %]" />
521 </li><li><label for="total">Total: </label>
522 <input type="text" readonly="readonly" id="total" name="total" size="10" value="[% total %]"/>
524 </fieldset><input type="hidden" id="returnsuggested" name="returnsuggested" value="[% IF ( returnsuggestedby ) %][% returnsuggestedby %][% ELSE %]noone[% END %]"/>
525 <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 %]
531 <div id="toolbar" class="btn-toolbar">
532 <a class="btn btn-default btn-sm" id="newsuggestion" href="suggestion.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a>
535 <h1>Suggestions management</h1>
538 [% FOR m IN messages %]
539 <div class="dialog [% m.type %]">
541 [% CASE 'already_exists' %]
542 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>)
549 [% UNLESS ( notabs ) %]
550 <div id="suggestiontabs" class="toptabs">
551 <ul class="ui-tabs-nav">
552 [% FOREACH suggestion IN suggestions %]
554 <a href="#[% suggestion.suggestiontype %]">
555 [% IF ( suggestion.suggestiontypelabel ) %]
556 [% IF (suggestion.suggestiontypelabel == "Pending") %]Pending
557 [% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted
558 [% ELSIF (suggestion.suggestiontypelabel == "Checked") %]Checked
559 [% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]Rejected
560 [% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available
561 [% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]Ordered
562 [% ELSIF (suggestion.suggestiontypelabel == "Unknown") %]Status unknown
563 [% ELSE %][% suggestion.suggestiontypelabel %][% END %]
565 [% IF ( suggestion.suggestiontype ) %]
566 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.suggestiontype ) %]
571 ([% suggestion.suggestions_loop.size %])</a></li>
577 [% FOREACH suggestion IN suggestions %]
578 <div id="[% suggestion.suggestiontype %]">
579 <form class="update_suggestions" name="f[% suggestion.suggestiontype %]" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype %]">
581 [% IF ( suggestion.suggestions_loop ) %]
582 <p><a id="CheckAll[% suggestion.suggestiontype %]" href="#">Check all</a> | <a id="UncheckAll[% suggestion.suggestiontype %]" href="#">Uncheck all</a></p>
583 <table id="[% suggestion.suggestiontype %]t" class="sorted">
587 <th class="anti-the">Suggestion</th>
588 <th>Suggested by - on</th>
589 <th>Managed by - on</th>
595 [% FOREACH suggestions_loo IN suggestion.suggestions_loop %]
598 <input type="checkbox" name="edit_field" value="[% suggestions_loo.suggestionid %]" />
601 [% suggestions_loo.suggestionid %]
604 <a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&op=show" title="suggestion" >
605 [% suggestions_loo.title |html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author %][% END %]</a>
606 [<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&op=edit" title="suggestion" >edit</a>]
608 [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate |html %] [% END %]
609 [% IF ( suggestions_loo.volumedesc ) %]; Volume:<i>[% suggestions_loo.volumedesc |html %]</i> [% END %]
610 [% 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 %]
613 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.suggestedby %]">[% suggestions_loo.surnamesuggestedby %][% IF ( suggestions_loo.firstnamesuggestedby ) %], [% suggestions_loo.firstnamesuggestedby %][% END %] [% IF (suggestions_loo.cardnumbersuggestedby ) %]([% suggestions_loo.cardnumbersuggestedby %])[% END %]</a>
614 [% IF ( suggestions_loo.suggesteddate ) %] - [% suggestions_loo.suggesteddate | $KohaDates %][% END %]
617 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.suggestedby %]">[% suggestions_loo.surnamemanagedby %][% IF ( suggestions_loo.firstnamemanagedby ) %], [% suggestions_loo.firstnamemanagedby %][% END %]</a>
618 [% IF ( suggestions_loo.manageddate ) %] - [% suggestions_loo.manageddate | $KohaDates %][% END %]
621 [% Branches.GetName( suggestions_loo.branchcode ) %]
624 [% suggestions_loo.budget_name %]
627 [% IF ( suggestions_loo.ASKED ) %]
629 [% ELSIF ( suggestions_loo.ACCEPTED ) %]
631 [% ELSIF ( suggestions_loo.ORDERED ) %]
633 [% ELSIF ( suggestions_loo.REJECTED ) %]
635 [% ELSIF ( suggestions_loo.CHECKED ) %]
637 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %]
638 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %]
643 [% IF ( suggestions_loo.reason ) %]
644 <br />([% suggestions_loo.reason %])
650 <div id="select-reason[% suggestion.suggestiontype %]">
651 <div id="status[% suggestion.suggestiontype %]">
652 <label for="STATUS[% suggestion.suggestiontype %]">Mark selected as: </label>
653 <select name="STATUS" id="STATUS[% suggestion.suggestiontype %]">
654 <option value=""> -- Choose a status --</option>
656 [% IF (statusselected_ASKED ) %]
657 <option value="ASKED" selected="selected">Pending</option>
659 <option value="ASKED">Pending</option>
662 [% IF (statusselected_ACCEPTED ) %]
663 <option value="ACCEPTED" selected="selected">Accepted</option>
665 <option value="ACCEPTED">Accepted</option>
668 [% IF (statusselected_CHECKED ) %]
669 <option value="CHECKED" selected="selected">Checked</option>
671 <option value="CHECKED">Checked</option>
674 [% IF ( statusselected_REJECTED ) %]
675 <option value="REJECTED" selected="selected">Rejected</option>
677 <option value="REJECTED">Rejected</option>
680 [% FOREACH s IN SuggestionStatuses %]
681 <option value="[% s.authorised_value %]">[% s.lib %]</option>
685 <label for="reason[% suggestion.suggestiontype %]">with this reason:</label>
686 <select id="reason[% suggestion.suggestiontype %]" name="reason[% suggestion.suggestiontype %]">
687 <option value=""> -- Choose a reason -- </option>
688 [% FOREACH reasonsloo IN suggestion.reasonsloop %]
689 <option value="[% reasonsloo.lib %]">[% reasonsloo.lib %]</option>
691 <option value="other">Others...</option>
694 <span id="other_reason[% suggestion.suggestiontype %]">
695 <input type="text" size="31" id="select-other_reason[% suggestion.suggestiontype %]" name="other_reason[% suggestion.suggestiontype %]" placeholder="please note your reason here..." />
696 <a href="#back[% suggestion.suggestiontype %]">Cancel</a>
699 <strong style="padding: 0 1em;">OR:</strong>
701 <label for="[% suggestion.suggestiontype %]delete">Delete selected</label>
702 <input type="checkbox" name="op" id="[% suggestion.suggestiontype %]delete" />
706 <input type="hidden" name="branchcode" value="[% branchfilter %]" />
707 <input type="hidden" name="tabcode" value="[% suggestion.suggestiontype %]" />
708 <input type="hidden" name="op" value="change" />
710 <fieldset class="action">
711 <input type="submit" value="Submit" /></fieldset>
723 [% UNLESS ( op_save ) %] [% UNLESS ( op == 'show' ) %]<div class="yui-b">
724 <form name="suggestionfilter" action="suggestion.pl" method="get">
725 <fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label>
726 <select name="displayby" id="displayby" style="width:auto;">
727 [% IF ( displayby == "STATUS" ) %]
728 <option value="STATUS" selected="selected">Status</option>
730 <option value="STATUS">Status</option>
732 [% IF ( displayby == "branchcode" ) %]
733 <option value="branchcode" selected="selected">Library</option>
735 <option value="branchcode">Library</option>
737 [% IF ( displayby == "itemtype" ) %]
738 <option value="itemtype" selected="selected">Item type</option>
740 <option value="itemtype">Item type</option>
742 [% IF ( displayby == "managedby" ) %]
743 <option value="managedby" selected="selected">Managed by</option>
745 <option value="managedby">Managed by</option>
747 [% IF ( displayby == "acceptedby" ) %]
748 <option value="acceptedby" selected="selected">Accepted by</option>
750 <option value="acceptedby">Accepted by</option>
752 </select> <input type="submit" value="Go" /></li></ol></fieldset>
753 <h4>Filter by: <a style="font-size:80%;font-weight:normal;" href="/cgi-bin/koha/suggestion/suggestion.pl">[clear]</a></h4>
754 <div style="display:block;" id="limits">
756 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Bibliographic information</a></h4>
757 <ol> <li><label for="title"> Title:</label><input type="text" id="title" name="title" value="[% title |html %]" /></li>
758 <li><label for="author"> Author:</label><input type="text" id="author" name="author" value="[% author | html %]" /></li>
759 <li><label for="isbn"> ISBN:</label><input type="text" id="isbn" name="isbn" value="[% isbn | html %]" /></li>
760 <li><label for="publishercode"> Publisher:</label><input type="text" id="publishercode" name="publishercode" value="[% publishercode | html %]" /></li>
761 <li><label for="copyrightdate_filter"> Copyright date:</label><input type="text" id="copyrightdate_filter" name="copyrightdate" value="[% copyrightdate | html %]" /></li>
762 <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>
764 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Suggestion information</a></h4>
767 <label for="STATUS"> Status:</label>
768 <select name="STATUS" id="STATUS">
769 <option value="">Any</option>
771 [% IF (statusselected_ASKED ) %]
772 <option value="ASKED" selected="selected">Pending</option>
774 <option value="ASKED">Pending</option>
777 [% IF (statusselected_ACCEPTED ) %]
778 <option value="ACCEPTED" selected="selected">Accepted</option>
780 <option value="ACCEPTED">Accepted</option>
783 [% IF (statusselected_CHECKED ) %]
784 <option value="CHECKED" selected="selected">Checked</option>
786 <option value="CHECKED">Checked</option>
789 [% IF ( statusselected_REJECTED ) %]
790 <option value="REJECTED" selected="selected">Rejected</option>
792 <option value="REJECTED">Rejected</option>
795 [% FOREACH s IN SuggestionStatuses %]
796 [% IF s.authorised_value == selected_status %]
797 <option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option>
799 <option value="[% s.authorised_value %]">[% s.lib %]</option>
805 <li><label for="suggestedby"> Suggested by:</label><select id="suggestedby" name="suggestedby"><option value="">Any</option>
806 [% 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 %]
809 <label for="suggesteddate_from">Suggested date from:</label>
810 <input type="text" id="suggesteddate_from" size="10" name="suggesteddate_from" value="[% suggesteddate_from %]" />
813 <label for="suggesteddate_to">To:</label>
814 <input type="text" id="suggesteddate_to" size="10" name="suggesteddate_to" value="[% suggesteddate_to %]" />
816 <li><label for="managedby"> Managed by:</label><select id="managedby" name="managedby"><option value="">Any</option>
817 [% 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 %]
820 <label for="manageddate_from">Management date from:</label>
821 <input type="text" id="manageddate_from" size="10" name="manageddate_from" value="[% manageddate_from %]" />
824 <label for="manageddate_to">To:</label>
825 <input type="text" id="manageddate_to" size="10" name="manageddate_to" value="[% manageddate_to %]" />
827 <li><label for="acceptedby"> Accepted by:</label><select id="acceptedby" name="acceptedby"><option value="">Any</option>
828 [% 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 %]
831 <label for="accepteddate_from">Accepted date from:</label>
832 <input type="text" id="accepteddate_from" size="10" name="accepteddate_from" value="[% accepteddate_from %]" />
835 <label for="accepteddate_to">To:</label>
836 <input type="text" id="accepteddate_to" size="10" name="accepteddate_to" value="[% accepteddate_to %]" />
838 <li><input type="submit" value="Go" /></li></ol>
841 <fieldset class="brief"><h4 class="local_collapse"><a href="#">Acquisition information</a></h4>
842 <ol><li><label for="budgetid"> Book fund:</label>
843 <select name="budgetid" id="budgetid">
844 <option value="__ANY__">Any</option>
845 [% IF budgetid == '__NONE__' %]
846 <option value="__NONE__" selected="selected">None</option>
848 <option value="__NONE__">None</option>
850 [% FOREACH budgetid_loo IN budgetid_loop %]
851 [% 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 %]
854 <li><label for="branchcode">Library:</label>
855 <select name="branchcode" id="branchcode">
856 <option value="__ANY__">Any</option>
857 [% IF branchfilter %]
858 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter ) %]
860 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
862 </select></li><li><input type="submit" value="Go" /></li></ol>
866 [% INCLUDE 'acquisitions-menu.inc' %]
872 [% INCLUDE 'intranet-bottom.inc' %]