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) {$("#"+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({
29 headers: { 0: { sorter: 'articles' },3:{sorter: false},4:{sorter: false},5:{sorter: false},6:{sorter: false},7:{sorter: false}}
31 $("#acceptedt").bind("sortStart",function() {
33 }).bind("sortEnd",function() {
36 $("#pendingt").tablesorter({
37 headers: { 0: { sorter: 'articles' },3:{sorter: false},4:{sorter: false},5:{sorter: false},6:{sorter: false},7:{sorter: false}}
39 $("#pendingt").bind("sortStart",function() {
41 }).bind("sortEnd",function() {
44 $("#rejectedt").tablesorter({
45 headers: { 0: { sorter: 'articles' },3:{sorter: false},4:{sorter: false},5:{sorter: false},6:{sorter: false},7:{sorter: false}}
47 $("#rejectedt").bind("sortStart",function() {
49 }).bind("sortEnd",function() {
53 $("div[id*=other-reason]").hide();
54 $("input[name*=other-reason]").focus(function(){ $(this).val(""); });
55 $("select[name*=reason]").change(function(){
56 if($(this).children("[@selected]").val() == "other"){
57 displayOther($(this).attr("name").replace(/reason/,""),"other-reason","select-reason");
60 $("a[href*=back]").click(function(){
61 var sid = $(this).attr("href").replace(/#back/,"");
62 displayOther(sid,"select-reason","other-reason");
63 $("#reason"+sid).find("option[value='']").attr("selected","selected");
65 $("a[href=#markall]").click(function(){
66 if($(this).attr("id").indexOf("markallop") > -1){
67 // select each identical option, clear each input
68 var selectedOp = $(this).prev().find("option:selected").val();
69 var container = $(this).attr("id").replace(/markallop/,"");
70 $("#"+container+" div[id*=other-reason]").hide();
71 $("#"+container+" div[id*=select-reason]").show();
72 $("#"+container+" select[name*=reason]").not("select[name*=all]").children().each(function(){
73 if($(this).val() == selectedOp){ $(this).attr("selected","selected"); }
76 // set each input value, deselect options
77 var inputText = $(this).prev().val();
78 var container = $(this).attr("id").replace(/markalltext/,"");
80 $("#"+container+" input[name*=other-reason]").not("input[name*=all]").each(function(){
81 // show all text inputs and populate
82 $(this).val(inputText).parent("div").show();
83 $("div[class=select"+container+"]").hide();
91 <style type="text/css">
92 .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; }
96 <!-- TMPL_INCLUDE NAME="header.inc" -->
97 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
99 <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>
101 <div id="doc" class="yui-t7">
108 <div id="sorting" class="overlay">Sorting...</div>
109 <div id="loadingtab" class="overlay">Loading tab...</div>
110 <div id="suggestiontabs" class="toptabs">
111 <ul class="ui-tabs-nav">
112 <li><a href="/cgi-bin/koha/suggestion/acceptorreject.pl#accepted">Accepted</a></li>
113 <li class="ui-tabs-selected"><a href="/cgi-bin/koha/suggestion/acceptorreject.pl#pending">Pending</a></li>
114 <li><a href="/cgi-bin/koha/suggestion/acceptorreject.pl#rejected">Rejected</a></li>
117 <!--TMPL_LOOP Name="suggestions"-->
118 <div id="<!--TMPL_VAR Name="suggestiontype"-->">
119 <form name="f<!--TMPL_VAR Name="suggestiontype"-->" method="post" action="/cgi-bin/koha/suggestion/acceptorreject.pl#<!--TMPL_VAR Name="suggestiontype"-->">
120 <input type="hidden" name="op" value="aorr_confirm" />
121 <input type="hidden" name="suggestiontype" value="<!--TMPL_VAR Name="suggestiontype"-->" />
123 <!-- TMPL_IF NAME="suggestions_loop" -->
124 <!--TMPL_IF EXPR="suggestiontype eq 'accepted'"-->
125 <table id="acceptedt">
126 <!-- TMPL_ELSIF EXPR="suggestiontype eq 'pending'" -->
127 <table id="pendingt">
129 <table id="rejectedt">
133 <th>Suggested by</th>
135 <!--TMPL_IF EXPR="suggestiontype ne 'pending'"-->
137 <th>Reason Update</th>
145 <tbody><!-- TMPL_LOOP NAME="suggestions_loop" -->
146 <!-- TMPL_IF name="even" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
148 <!-- TMPL_VAR NAME="title" --><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --><br />
149 <!-- TMPL_IF name="copyrightdate" -->© <!-- TMPL_VAR name="copyrightdate" --> <!-- /TMPL_IF -->
150 <!-- TMPL_IF name="volumedesc" -->; Volume:<i><!-- TMPL_VAR name="volumedesc" --></i> <!-- /TMPL_IF -->
151 <!-- 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 -->
154 <!-- TMPL_VAR name="surnamesuggestedby" -->
155 <!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
156 <!-- TMPL_VAR name="firstnamesuggestedby" -->
159 <!-- TMPL_VAR name="date" -->
162 <!--TMPL_IF EXPR="suggestiontype ne 'pending'"-->
164 <!--TMPL_VAR Name="reason"-->
165 <input type="hidden" name="initial-reason<!-- TMPL_VAR name="suggestionid" -->" value="<!--TMPL_VAR Name="reason" ESCAPE="HTML"-->" />
170 <div id="select-reason<!-- TMPL_VAR NAME="suggestionid" -->" class="select<!-- TMPL_VAR NAME="suggestiontype" -->">
171 <!-- TMPL_IF NAME="reasonsloop" --><select id="reason<!-- TMPL_VAR NAME="suggestionid" -->" name="reason<!-- TMPL_VAR NAME="suggestionid" -->">
172 <option value=""> -- Choose a reason -- </option>
173 <!-- TMPL_LOOP NAME="reasonsloop" -->
174 <option value="<!-- TMPL_VAR NAME="lib" -->"><!-- TMPL_VAR NAME="lib" --></option>
176 <option value="other">Others...</option>
177 </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 -->
179 <div id="other-reason<!-- TMPL_VAR NAME="suggestionid" -->">
180 <input type="text" size="31" name="other-reason<!-- TMPL_VAR name="suggestionid" -->" value="please note your reason here..." />
181 <p><a href="#back<!-- TMPL_VAR NAME="suggestionid" -->">back to list</a></p>
186 <!--TMPL_IF EXPR="suggestiontype eq 'accepted'"-->
187 <input id="a<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="ACCEPTED" readonly="readonly" checked="checked" />
190 <input id="a<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="ACCEPTED" />
194 <!--TMPL_IF EXPR="suggestiontype eq 'rejected'"-->
195 <input id="r<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="REJECTED" readonly="readonly" checked="checked" />
198 <input id="r<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="REJECTED" />
203 <input id="d<!--TMPL_VAR name="suggestionid" -->" name="<!--TMPL_VAR name="suggestionid" -->" type="radio" value="delete" />
206 <!-- /TMPL_LOOP --></tbody>
208 <div id="select-reason<!-- TMPL_VAR NAME="suggestiontype" -->all">
209 <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">
210 <option value=""> -- Choose a reason -- </option>
211 <!--TMPL_LOOP Name="reasonsloop"-->
212 <option value="<!--TMPL_VAR Name="lib" -->"><!--TMPL_VAR Name="lib" --></option>
214 <option value="other">Others...</option>
215 </select> <a href="#markall" id="markallop<!-- TMPL_VAR NAME="suggestiontype" -->">Mark all with this reason</a>
218 <div id="other-reason<!-- TMPL_VAR NAME="suggestiontype" -->all">
219 <label for="other-reason<!-- TMPL_VAR NAME="suggestiontype" -->all">Enter a reason for all marked entries:</label>
220 <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>
223 <fieldset class="action"><input type="submit" value="Change Status" /></fieldset>
226 <!--TMPL_IF EXPR="suggestiontype eq 'pending'"-->
227 <b>No pending suggestions.</b>
229 <!--TMPL_IF EXPR="suggestiontype eq 'accepted'"-->
230 <b>No accepted suggestions.</b>
232 <!--TMPL_IF EXPR="suggestiontype eq 'rejected'"-->
233 <b>No rejected suggestions.</b>
246 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->