1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Suggestion Management</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!--TMPL_INCLUDE NAME="menus.inc" -->
5 <!-- TMPL_INCLUDE NAME="menu-acqui.inc" -->
7 <h1>Suggestions Management</h1>
10 <a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=accepted">Accepted</a>
11 <a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=aorr_confirm">Waiting</a>
12 <a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=rejected">Rejected</a>
15 <!-- TMPL_IF name="op_else" -->
17 <!-- TMPL_IF NAME="suggestions_loop" -->
18 <b>Waiting suggestion,</b> accept or reject these suggestions with a reason.
19 <form name="f" method="post" action="/cgi-bin/koha/suggestion/acceptorreject.pl">
20 <input type="hidden" name="op" value="aorr_confirm">
28 <!-- TMPL_LOOP NAME="suggestions_loop" -->
29 <tr<!-- TMPL_IF name="even" --> class="highlight"<!-- /TMPL_IF -->>
32 <option value=""> -- Choose Action -- </option>
33 <option value="R<!--TMPL_VAR name="suggestionid" -->">Reject</option>
34 <option value="A<!--TMPL_VAR name="suggestionid" -->">Accept</option>
39 <span id="span-select-reason<!-- TMPL_VAR NAME="suggestionid" -->" class="content_visible">
40 <select name="reason<!-- TMPL_VAR name="suggestionid" -->" onchange="displayOther('<!-- TMPL_VAR NAME="suggestionid" -->');">
41 <option value=""> -- Choose a reason -- </option>
42 <!-- TMPL_LOOP NAME="reasonsloop" -->
43 <option value="<!-- TMPL_VAR NAME="lib" -->"><!-- TMPL_VAR NAME="lib" --></option>
45 <option value="other">Others...</option>
47 <!-- TMPL_UNLESS NAME="reasonsloop"-->
48 <span class="problem">No reasons defined on</span> <a href="/cgi-bin/koha/admin/authorised_values.pl">authorised value</a>.
51 <span id="span-other-reason<!-- TMPL_VAR NAME="suggestionid" -->" class="content_hidden">
52 <input type="text" name="other-reason<!-- TMPL_VAR name="suggestionid" -->" value="write your reason here..." onclick="if(this.value === 'write your reason here...'){this.value=''}" />
53 <small><a href="JavaScript:displayOther('<!-- TMPL_VAR NAME="suggestionid" -->');">back to list</a></small>
57 <!-- TMPL_VAR NAME="title" --><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --><br>
58 <!-- TMPL_IF name="copyrightdate" -->© <!-- TMPL_VAR name="copyrightdate" --> <!-- /TMPL_IF -->
59 <!-- TMPL_IF name="volumedesc" -->; Volume:<i><!-- TMPL_VAR name="volumedesc" --></i> <!-- /TMPL_IF -->
60 <!-- TMPL_IF name="isbn" -->; ISBN :<i><!-- TMPL_VAR name="isbn" --></i> <!-- /TMPL_IF --><!-- TMPL_IF name="publishercode" -->; Published by <!-- TMPL_VAR name="publishercode" --> <!-- /TMPL_IF --><!-- TMPL_IF name="publicationyear" --> in <i><!-- TMPL_VAR name="publicationyear" --></i> <!-- /TMPL_IF --><!-- TMPL_IF name="place" --> in <i><!-- TMPL_VAR name="place" --></i> <!-- /TMPL_IF --><br><!-- TMPL_IF name="note" --><!-- TMPL VAR NAME="note" --><!-- /TMPL_IF -->
63 <!-- TMPL_VAR name="surnamesuggestedby" -->
64 <!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
65 <!-- TMPL_VAR name="firstnamesuggestedby" -->
70 <input type="submit" value="Change Status">
73 <b>No waiting suggestion to accept or reject.</b>
77 <!-- TMPL_IF NAME="done" -->
79 <!-- TMPL_IF NAME="op_accepted"-->
80 <b>Accepted suggestion</b>
82 <!-- TMPL_IF NAME="op_rejected"-->
83 <b>Rejected suggestion</b>
86 <!-- TMPL_IF NAME="suggestions_loop" -->
94 <!-- TMPL_LOOP NAME="suggestions_loop" -->
96 <!-- TMPL_VAR NAME="reason" -->
99 <!-- TMPL_VAR NAME="title" -->
100 <!-- TMPL_IF NAME="author" -->
101 , by <!-- TMPL_VAR NAME="author" -->
104 <!-- TMPL_IF name="copyrightdate" -->
105 © <!-- TMPL_VAR name="copyrightdate" -->
107 <!-- TMPL_IF name="volumedesc" -->
108 ; Volume:<i><!-- TMPL_VAR name="volumedesc" --></i>
110 <!-- TMPL_IF name="isbn" -->
111 ; ISBN :<i><!-- TMPL_VAR name="isbn" --></i>
113 <!-- TMPL_IF name="publishercode" -->
114 ; Published by <!-- TMPL_VAR name="publishercode" -->
116 <!-- TMPL_IF name="publicationyear" -->
117 in <i><!-- TMPL_VAR name="publicationyear" --></i>
119 <!-- TMPL_IF name="place" -->
120 in <i><!-- TMPL_VAR name="place" --></i>
123 <!-- TMPL_IF name="note" -->
124 <!-- TMPL VAR NAME="note" -->
128 <!-- TMPL_VAR name="surnamesuggestedby" -->
129 <!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
130 <!-- TMPL_VAR name="firstnamesuggestedby" -->
133 <!-- TMPL_VAR NAME="date" -->
140 No suggestion has already been
141 <!-- TMPL_IF NAME="op_accepted"-->
149 <script type="text/JavaScript" language="JavaScript">
153 * This function check the form before submit it.
156 function check(form){
162 * This function display the select or an textaera to write a reason.
164 function displayOther(id) {
165 var spanselect = document.getElementById("span-select-reason"+id);
166 var spanother = document.getElementById("span-other-reason"+id);
167 var select = spanselect.firstChild.nextSibling;
169 if(select.value != "other"){
172 if(spanother.getAttribute('class')=='content_visible'){
173 spanother.removeAttribute('class');
174 spanselect.removeAttribute('class');
175 spanother.setAttribute('class','content_hidden');
176 spanselect.setAttribute('class','content_visible');
179 spanother.removeAttribute('class');
180 spanselect.removeAttribute('class');
181 spanselect.setAttribute('class','content_hidden');
182 spanother.setAttribute('class','content_visible');
188 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->