199 lines
No EOL
8.1 KiB
Cheetah
199 lines
No EOL
8.1 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Suggestion Management</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
|
|
<!-- TMPL_INCLUDE NAME="menu-acqui.inc" -->
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b"><div class="yui-g">
|
|
|
|
<h1>Suggestions Management</h1>
|
|
|
|
<div id="action">
|
|
<a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=accepted">Accepted</a>
|
|
<a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=aorr_confirm">Waiting</a>
|
|
<a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=rejected">Rejected</a>
|
|
</div>
|
|
|
|
<!-- TMPL_IF name="op_else" -->
|
|
<!-- TMPL_IF NAME="suggestions_loop" -->
|
|
<b>Waiting suggestion,</b> accept or reject these suggestions with a reason.
|
|
<form name="f" method="post" action="/cgi-bin/koha/suggestion/acceptorreject.pl">
|
|
<input type="hidden" name="op" value="aorr_confirm">
|
|
<table>
|
|
<tr>
|
|
<th>Status</th>
|
|
<th>Reason</th>
|
|
<th>Suggestion</th>
|
|
<th>Suggested by</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="suggestions_loop" -->
|
|
<tr<!-- TMPL_IF name="even" --> class="highlight"<!-- /TMPL_IF -->>
|
|
<td>
|
|
<select name="aorr">
|
|
<option value=""> -- Choose Action -- </option>
|
|
<option value="R<!--TMPL_VAR name="suggestionid" -->">Reject</option>
|
|
<option value="A<!--TMPL_VAR name="suggestionid" -->">Accept</option>
|
|
</select>
|
|
</td>
|
|
<td>
|
|
|
|
<span id="span-select-reason<!-- TMPL_VAR NAME="suggestionid" -->" class="content_visible">
|
|
<select name="reason<!-- TMPL_VAR name="suggestionid" -->" onchange="displayOther('<!-- TMPL_VAR NAME="suggestionid" -->');">
|
|
<option value=""> -- Choose a reason -- </option>
|
|
<!-- TMPL_LOOP NAME="reasonsloop" -->
|
|
<option value="<!-- TMPL_VAR NAME="lib" -->"><!-- TMPL_VAR NAME="lib" --></option>
|
|
<!-- /TMPL_LOOP -->
|
|
<option value="other">Others...</option>
|
|
</select>
|
|
<!-- TMPL_UNLESS NAME="reasonsloop"-->
|
|
<span class="problem">No reasons defined on</span> <a href="/cgi-bin/koha/admin/authorised_values.pl">authorised value</a>.
|
|
<!-- /TMPL_UNLESS -->
|
|
</span>
|
|
<span id="span-other-reason<!-- TMPL_VAR NAME="suggestionid" -->" class="content_hidden">
|
|
<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=''}" />
|
|
<small><a href="JavaScript:displayOther('<!-- TMPL_VAR NAME="suggestionid" -->');">back to list</a></small>
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="title" --><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --><br />
|
|
<!-- TMPL_IF name="copyrightdate" -->© <!-- TMPL_VAR name="copyrightdate" --> <!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="volumedesc" -->; Volume:<i><!-- TMPL_VAR name="volumedesc" --></i> <!-- /TMPL_IF -->
|
|
<!-- 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 -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_VAR name="surnamesuggestedby" -->
|
|
<!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR name="firstnamesuggestedby" -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
<input type="submit" value="Change Status">
|
|
</form>
|
|
<!-- TMPL_ELSE -->
|
|
<b>No waiting suggestion to accept or reject.</b>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="done" -->
|
|
<br />
|
|
<!-- TMPL_IF NAME="op_accepted"-->
|
|
<b>Accepted suggestion</b>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="op_rejected"-->
|
|
<b>Rejected suggestion</b>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="suggestions_loop" -->
|
|
<table>
|
|
<tr>
|
|
<th>Reason</th>
|
|
<th>Suggestion</th>
|
|
<th>Suggested by</th>
|
|
<th>Date</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="suggestions_loop" -->
|
|
<td>
|
|
<!-- TMPL_VAR NAME="reason" -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="title" -->
|
|
<!-- TMPL_IF NAME="author" -->
|
|
, by <!-- TMPL_VAR NAME="author" -->
|
|
<!-- /TMPL_IF -->
|
|
<br />
|
|
<!-- TMPL_IF name="copyrightdate" -->
|
|
© <!-- TMPL_VAR name="copyrightdate" -->
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="volumedesc" -->
|
|
; Volume:<i><!-- TMPL_VAR name="volumedesc" --></i>
|
|
<!-- /TMPL_IF -->
|
|
<!-- 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 -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_VAR name="surnamesuggestedby" -->
|
|
<!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR name="firstnamesuggestedby" -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="date" -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
<!-- TMPL_ELSE -->
|
|
<br /><br />
|
|
No suggestion has already been
|
|
<!-- TMPL_IF NAME="op_accepted"-->
|
|
accepted.
|
|
<!-- TMPL_ELSE -->
|
|
rejected.
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
<script type="text/JavaScript" language="JavaScript">
|
|
// <![CDATA[
|
|
/**
|
|
* check(form);
|
|
* This function check the form before submit it.
|
|
*/
|
|
/*
|
|
function check(form){
|
|
return true;
|
|
}
|
|
*/
|
|
/**
|
|
* displayOther.
|
|
* This function display the select or an textaera to write a reason.
|
|
*/
|
|
function displayOther(id) {
|
|
var spanselect = document.getElementById("span-select-reason"+id);
|
|
var spanother = document.getElementById("span-other-reason"+id);
|
|
var select = spanselect.firstChild.nextSibling;
|
|
|
|
if(select.value != "other"){
|
|
return;
|
|
}
|
|
if(spanother.getAttribute('class')=='content_visible'){
|
|
spanother.removeAttribute('class');
|
|
spanselect.removeAttribute('class');
|
|
spanother.setAttribute('class','content_hidden');
|
|
spanselect.setAttribute('class','content_visible');
|
|
}
|
|
else{
|
|
spanother.removeAttribute('class');
|
|
spanselect.removeAttribute('class');
|
|
spanselect.setAttribute('class','content_hidden');
|
|
spanother.setAttribute('class','content_visible');
|
|
}
|
|
}
|
|
// ]]>
|
|
</script>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" --> |