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.min.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) {$("#"+hide+id).hide(); $("#"+show+id).show(); }
18 $(document).ready(function() {
19 $('#suggestiontabs > ul').tabs({
20 select: function(ui) {
21 $("#loadingtab").show();
24 $("#loadingtab").hide();
27 $.tablesorter.defaults.widgets = ['zebra'];
28 $("#acceptedt").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
29 dateFormat: 'uk',<!-- /TMPL_IF -->
30 headers: { 0: { sorter: 'articles' },3:{sorter: false},4:{sorter: false},5:{sorter: false},6:{sorter: false},7:{sorter: false}}
32 $("#acceptedt").bind("sortStart",function() {
34 }).bind("sortEnd",function() {
37 $("#pendingt").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
38 dateFormat: 'uk',<!-- /TMPL_IF -->
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({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
47 dateFormat: 'uk',<!-- /TMPL_IF -->
48 headers: { 0: { sorter: 'articles' },3:{sorter: false},4:{sorter: false},5:{sorter: false},6:{sorter: false},7:{sorter: false}}
50 $("#rejectedt").bind("sortStart",function() {
52 }).bind("sortEnd",function() {
56 $("div[id*=other-reason]").hide();
57 $("input[name*=other-reason]").focus(function(){ $(this).val(""); });
58 $("select[name*=reason]").change(function(){
59 if($(this).children("[selected]").val() == "other"){
60 displayOther($(this).attr("name").replace(/reason/,""),"other-reason","select-reason");
63 $("a[href*=back]").click(function(){
64 var sid = $(this).attr("href").replace(/#back/,"");
65 displayOther(sid,"select-reason","other-reason");
66 $("#reason"+sid).find("option[value='']").attr("selected","selected");
68 $("a[href=#markall]").click(function(){
69 if($(this).attr("id").indexOf("markallop") > -1){
70 // select each identical option, clear each input
71 var selectedOp = $(this).prev().find("option:selected").val();
72 var container = $(this).attr("id").replace(/markallop/,"");
73 $("#"+container+" div[id*=other-reason]").hide();
74 $("#"+container+" div[id*=select-reason]").show();
75 $("#"+container+" select[name*=reason]").not("select[name*=all]").children().each(function(){
76 if($(this).val() == selectedOp){ $(this).attr("selected","selected"); }
79 // set each input value, deselect options
80 var inputText = $(this).prev().val();
81 var container = $(this).attr("id").replace(/markalltext/,"");
83 $("#"+container+" input[name*=other-reason]").not("input[name*=all]").each(function(){
84 // show all text inputs and populate
85 $(this).val(inputText).parent("div").show();
86 $("div[class=select"+container+"]").hide();
94 <style type="text/css">
95 .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; }
99 <!-- TMPL_INCLUDE NAME="header.inc" -->
100 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
102 <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>
104 <div id="doc" class="yui-t7">
111 <div id="sorting" class="overlay">Sorting...</div>
112 <div id="loadingtab" class="overlay">Loading tab...</div>
113 <div id="suggestiontabs" class="toptabs">
114 <ul class="ui-tabs-nav">
115 <li><a href="/cgi-bin/koha/suggestion/acceptorreject.pl#accepted">Accepted</a></li>
116 <li class="ui-tabs-selected"><a href="/cgi-bin/koha/suggestion/acceptorreject.pl#pending">Pending</a></li>
117 <li><a href="/cgi-bin/koha/suggestion/acceptorreject.pl#rejected">Rejected</a></li>
120 <!--TMPL_LOOP Name="suggestions"-->
121 <div id="<!--TMPL_VAR Name="suggestiontype"-->">
122 <form name="f<!--TMPL_VAR Name="suggestiontype"-->" method="post" action="/cgi-bin/koha/suggestion/acceptorreject.pl#<!--TMPL_VAR Name="suggestiontype"-->">
123 <input type="hidden" name="op" value="aorr_confirm" />
124 <input type="hidden" name="suggestiontype" value="<!--TMPL_VAR Name="suggestiontype"-->" />
126 <!-- TMPL_IF NAME="suggestions_loop" -->
127 <!--TMPL_IF EXPR="suggestiontype eq 'accepted'"-->
128 <table id="acceptedt">
129 <!-- TMPL_ELSIF EXPR="suggestiontype eq 'pending'" -->
130 <table id="pendingt">
132 <table id="rejectedt">
137 <th>Suggested by</th>
140 <!--TMPL_IF EXPR="suggestiontype ne 'pending'"-->
141 <th>Reason Update</th>
147 <tbody><!-- TMPL_LOOP NAME="suggestions_loop" -->
148 <!-- TMPL_IF name="even" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
150 <!-- TMPL_VAR NAME="title" escape="html" --><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --><br />
151 <!-- TMPL_IF name="copyrightdate" -->© <!-- TMPL_VAR name="copyrightdate" --> <!-- /TMPL_IF -->
152 <!-- TMPL_IF name="volumedesc" -->; Volume:<i><!-- TMPL_VAR name="volumedesc" --></i> <!-- /TMPL_IF -->
153 <!-- 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 /></td>
154 <td><!-- TMPL_VAR NAME="note" --></td>
156 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrnumsuggestedby" -->"><!-- TMPL_VAR name="surnamesuggestedby" -->
157 <!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
158 <!-- TMPL_VAR name="firstnamesuggestedby" --></a>
159 (<!-- TMPL_VAR name="branchcodesuggestedby" -->)
162 <!-- TMPL_VAR name="date" -->
165 <!--TMPL_IF EXPR="suggestiontype ne 'pending'"-->
167 <!--TMPL_VAR Name="reason"-->
168 <input type="hidden" name="initial-reason<!-- TMPL_VAR name="suggestionid" -->" value="<!--TMPL_VAR Name="reason" ESCAPE="HTML"-->" />
172 <div id="select-reason<!-- TMPL_VAR NAME="suggestionid" -->" class="select<!-- TMPL_VAR NAME="suggestiontype" -->">
173 <!-- TMPL_IF NAME="reasonsloop" --><select id="reason<!-- TMPL_VAR NAME="suggestionid" -->" name="reason<!-- TMPL_VAR NAME="suggestionid" -->">
174 <option value=""> -- Choose a reason -- </option>
175 <!-- TMPL_LOOP NAME="reasonsloop" -->
176 <option value="<!-- TMPL_VAR NAME="lib" -->"><!-- TMPL_VAR NAME="lib" --></option>
178 <option value="other">Others...</option>
179 </select><!-- TMPL_ELSE --><span class="problem">No reasons defined in <a href="/cgi-bin/koha/admin/authorised_values.pl">authorized values</a></span><!-- /TMPL_IF -->
181 <div id="other-reason<!-- TMPL_VAR NAME="suggestionid" -->">
182 <input type="text" size="31" name="other-reason<!-- TMPL_VAR name="suggestionid" -->" value="please note your reason here..." />
183 <p><a href="#back<!-- TMPL_VAR NAME="suggestionid" -->">back to list</a></p>
188 <!-- These EXPR are NOT doing what the author thinks they are -->
189 <!--TMPL_IF EXPR="suggestiontype eq 'accepted'"-->
190 <input id="a<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="ACCEPTED" readonly="readonly" checked="checked" />
192 <input id="a<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="ACCEPTED" />
196 <!--TMPL_IF EXPR="suggestiontype eq 'rejected'"-->
197 <input id="r<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="REJECTED" readonly="readonly" checked="checked" />
199 <input id="r<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="REJECTED" />
204 <input id="d<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="delete" />
207 <!-- /TMPL_LOOP --></tbody>
209 <div id="select-reason<!-- TMPL_VAR NAME="suggestiontype" -->all">
210 <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">
211 <option value=""> -- Choose a reason -- </option>
212 <!--TMPL_LOOP Name="reasonsloop"-->
213 <option value="<!--TMPL_VAR Name="lib" -->"><!--TMPL_VAR Name="lib" --></option>
215 <option value="other">Others...</option>
216 </select> <a href="#markall" id="markallop<!-- TMPL_VAR NAME="suggestiontype" -->">Mark all with this reason</a>
219 <div id="other-reason<!-- TMPL_VAR NAME="suggestiontype" -->all">
220 <label for="other-reason<!-- TMPL_VAR NAME="suggestiontype" -->all">Enter a reason for all marked entries:</label>
221 <input type="text" size="31" id="select-other-reason<!-- TMPL_VAR NAME="suggestiontype" -->all" name="other-reason<!-- TMPL_VAR NAME="suggestiontype" -->all" value="please note your reason here..." /> <a href="#markall" id="markalltext<!-- TMPL_VAR NAME="suggestiontype" -->">Mark all with this reason</a> <a href="#back<!-- TMPL_VAR NAME="suggestiontype" -->all">Cancel</a>
224 <fieldset class="action"><input type="submit" value="Change Status" /></fieldset>
227 <!--TMPL_IF EXPR="suggestiontype eq 'pending'"-->
228 <b>No pending suggestions.</b>
230 <!--TMPL_IF EXPR="suggestiontype eq 'accepted'"-->
231 <b>No accepted suggestions.</b>
233 <!--TMPL_IF EXPR="suggestiontype eq 'rejected'"-->
234 <b>No rejected suggestions.</b>
246 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->