1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Acquisitions › Suggestions Management</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pack.js"></script>
5 <script type="text/JavaScript">
7 $.tablesorter.addParser({
9 is: function(s) {return false; },
10 format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
15 * This function display the select or an textaera to write a reason.
17 function displayOther(id,show,hide) {
18 $("#"+hide+id).hide();
19 $("#"+show+id).show();
21 $(document).ready(function() {
22 $('#suggestiontabs > ul').tabs({
23 select: function(ui) {
24 $("#loadingtab").show();
27 $("#loadingtab").hide();
30 $("#acceptedt").tablesorter({
31 headers: { 0: { sorter: 'articles' },3:{sorter: false},4:{sorter: false},5:{sorter: false},6:{sorter: false},7:{sorter: false}}
33 $("#acceptedt").bind("sortStart",function() {
35 }).bind("sortEnd",function() {
38 $("#pendingt").tablesorter({
39 headers: { 0: { sorter: 'articles' },3:{sorter: false},4:{sorter: false},5:{sorter: false},6:{sorter: false},7:{sorter: false}}
41 $("#pendingt").bind("sortStart",function() {
43 }).bind("sortEnd",function() {
46 $("#rejectedt").tablesorter({
47 headers: { 0: { sorter: 'articles' },3:{sorter: false},4:{sorter: false},5:{sorter: false},6:{sorter: false},7:{sorter: false}}
49 $("#rejectedt").bind("sortStart",function() {
51 }).bind("sortEnd",function() {
54 $("div[id*=other-reason]").hide();
55 $("input[name*=other-reason]").focus(function(){ $(this).val(""); });
56 $("select[name*=reason]").change(function(){
57 if($(this).children("[@selected]").val() == "other"){
58 displayOther($(this).attr("name").replace(/reason/,""),"other-reason","select-reason");
61 $("a[href*=back]").click(function(){
62 var sid = $(this).attr("href").replace(/#back/,"");
63 displayOther(sid,"select-reason","other-reason");
64 $("#reason"+sid).find("option[value='']").attr("selected","selected");
86 <!-- TMPL_INCLUDE NAME="header.inc" -->
87 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
89 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <!-- TMPL_IF NAME="op_accepted"--> <a href="/cgi-bin/koha/suggestion/acceptorreject.pl">Suggestions Management</a> › Accepted<!-- /TMPL_IF --><!-- TMPL_IF NAME="op_else"--> Suggestions Management<!-- /TMPL_IF --><!-- TMPL_IF NAME="op_rejected"--> <a href="/cgi-bin/koha/suggestion/acceptorreject.pl">Suggestions Management</a> › Rejected<!-- /TMPL_IF --></div>
91 <div id="doc" class="yui-t7">
98 <div id="sorting" class="overlay">Sorting...</div>
99 <div id="loadingtab" class="overlay">Loading tab...</div>
100 <div id="suggestiontabs" class="toptabs">
101 <ul class="ui-tabs-nav">
102 <li><a href="/cgi-bin/koha/suggestion/acceptorreject.pl#accepted">Accepted</a></li>
103 <li class="ui-tabs-selected"><a href="/cgi-bin/koha/suggestion/acceptorreject.pl#pending">Pending</a></li>
104 <li><a href="/cgi-bin/koha/suggestion/acceptorreject.pl#rejected">Rejected</a></li>
107 <!--TMPL_LOOP Name="suggestions"-->
108 <div id="<!--TMPL_VAR Name="suggestiontype"-->">
109 <form name="f<!--TMPL_VAR Name="suggestiontype"-->" method="post" action="/cgi-bin/koha/suggestion/acceptorreject.pl">
110 <input type="hidden" name="op" value="aorr_confirm" />
111 <input type="hidden" name="suggestiontype" value="<!--TMPL_VAR Name="suggestiontype"-->" >
113 <!-- TMPL_IF NAME="suggestions_loop" -->
114 <!--TMPL_IF EXPR="suggestiontype eq 'accepted'"-->
115 <table id="acceptedt">
116 <!-- TMPL_ELSIF EXPR="suggestiontype eq 'pending'" -->
117 <table id="pendingt">
119 <table id="rejectedt">
123 <th>Suggested by</th>
125 <!--TMPL_IF EXPR="suggestiontype ne 'pending'"-->
127 <th>Reason Update</th>
135 <tbody><!-- TMPL_LOOP NAME="suggestions_loop" -->
136 <!-- TMPL_IF name="even" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
138 <!-- TMPL_VAR NAME="title" --><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --><br />
139 <!-- TMPL_IF name="copyrightdate" -->© <!-- TMPL_VAR name="copyrightdate" --> <!-- /TMPL_IF -->
140 <!-- TMPL_IF name="volumedesc" -->; Volume:<i><!-- TMPL_VAR name="volumedesc" --></i> <!-- /TMPL_IF -->
141 <!-- 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 -->
144 <!-- TMPL_VAR name="surnamesuggestedby" -->
145 <!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
146 <!-- TMPL_VAR name="firstnamesuggestedby" -->
149 <!-- TMPL_VAR name="date" -->
152 <!--TMPL_IF EXPR="suggestiontype ne 'pending'"-->
154 <!--TMPL_VAR Name="reason"-->
159 <div id="select-reason<!-- TMPL_VAR NAME="suggestionid" -->">
160 <!-- TMPL_IF NAME="reasonsloop" --><select id="reason<!-- TMPL_VAR NAME="suggestionid" -->" name="reason<!-- TMPL_VAR NAME="suggestionid" -->">
161 <option value=""> -- Choose a reason -- </option>
162 <!-- TMPL_LOOP NAME="reasonsloop" -->
163 <option value="<!-- TMPL_VAR NAME="lib" -->"><!-- TMPL_VAR NAME="lib" --></option>
165 <option value="other">Others...</option>
166 </select><!-- TMPL_ELSE --><span class="problem">No reasons defined in <a href="/cgi-bin/koha/admin/authorised_values.pl">authorised values</a></span><!-- /TMPL_IF -->
168 <div id="other-reason<!-- TMPL_VAR NAME="suggestionid" -->">
169 <input type="text" size="31" name="other-reason<!-- TMPL_VAR name="suggestionid" -->" value="please note your reason here..." />
170 <p><a href="#back<!-- TMPL_VAR NAME="suggestionid" -->">back to list</a></p>
175 <!--TMPL_IF EXPR="suggestiontype eq 'accepted'"-->
176 <input id="a<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="ACCEPTED" disabled="disabled" />
179 <input id="a<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="ACCEPTED" />
183 <!--TMPL_IF EXPR="suggestiontype eq 'rejected'"-->
184 <input id="r<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="REJECTED" disabled="disabled" />
187 <input id="r<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="REJECTED" />
192 <input id="d<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="delete" />
195 <!-- /TMPL_LOOP --></tbody>
197 <div id="select-reason<!-- TMPL_VAR NAME="suggestiontype" -->all">
198 <label for="reason<!-- TMPL_VAR NAME="suggestiontype" -->all">Choose a reason for all marked entries:</label> <select id="reason<!-- TMPL_VAR NAME="suggestiontype" -->all" name="reason<!-- TMPL_VAR NAME="suggestiontype" -->all">
199 <option value=""> -- Choose a reason -- </option>
200 <!--TMPL_LOOP Name="reasonsloop"-->
201 <option value="<!--TMPL_VAR Name="lib" -->"><!--TMPL_VAR Name="lib" --></option>
203 <option value="other">Others...</option>
204 </select> <a href="#markall" id="markallop<!-- TMPL_VAR NAME="suggestiontype" -->">Mark all with this reason</a>
207 <div id="other-reason<!-- TMPL_VAR NAME="suggestiontype" -->all">
208 <label for="other-reason<!-- TMPL_VAR NAME="suggestiontype" -->all">Enter a reason for all marked entries:</label>
209 <input type="text" size="31" id="other-reason<!-- TMPL_VAR NAME="suggestiontype" -->all" name="other-reason<!-- TMPL_VAR NAME="suggestiontype" -->all" value="please note your reason here..." />
212 <fieldset class="action"><input type="submit" value="Change Status" /></fieldset>
215 <!--TMPL_IF EXPR="suggestiontype eq 'pending'"-->
216 <b>No pending suggestions.</b>
218 <!--TMPL_IF EXPR="suggestiontype eq 'accepted'"-->
219 <b>No accepted suggestions.</b>
221 <!--TMPL_IF EXPR="suggestiontype eq 'rejected'"-->
222 <b>No rejected suggestions.</b>
235 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->