<title>Home › Tools › Tags › <!-- TMPL_IF NAME="do_it" -->Review › <!-- TMPL_ELSE -->Review Tags<!-- /TMPL_IF --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
-<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.pack.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
<style type="text/css">
.setlabel {width: 6em; font-family: courier; background-color:#E8E8E8;}
.red {color:darkred; background-color: pink;}
}
}
var success_approve = function(tag){
- // window.alert('AJAX approved tag: ' + tag);
+ // window.alert(_('AJAX approved tag: ') + tag);
};
var failure_approve = function(tag){
- window.alert('AJAX failed to approve tag: ' + tag);
+ window.alert(_('AJAX failed to approve tag: ') + tag);
};
var success_reject = function(tag){
- // window.alert('AJAX rejected tag: ' + tag);
+ // window.alert(_('AJAX rejected tag: ') + tag);
};
var failure_reject = function(tag){
- window.alert('AJAX failed to reject tag: ' + tag);
+ window.alert(_('AJAX failed to reject tag: ') + tag);
};
var success_test = function(tag){
- $('#verdict').html(tag + ' is permitted!');
+ $('#verdict').html(tag + _(' is permitted!'));
};
var failure_test = function(tag){
- $('#verdict').html(tag + ' is prohibited!');
+ $('#verdict').html(tag + _(' is prohibited!'));
};
var indeterminate_test = function(tag){
- $('#verdict').html(tag + ' is neither permitted nor prohibited!');
+ $('#verdict').html(tag + _(' is neither permitted nor prohibited!'));
};
var success_test_call = function() {
}
$(document).ready(function() {
$('.ajax_buttons' ).css({visibility:"visible"});
- $("p.check").html("<strong>Select: <\/strong><a id=\"CheckAll\" href=\"/cgi-bin/koha/tags/review.pl\">All<\/a> <a id=\"CheckPending\" href=\"/cgi-bin/koha/tags/review.pl\">Pending<\/a> <a id=\"CheckNone\" href=\"/cgi-bin/koha/tags/review.pl\">None<\/a>");
+ $("p.check").html("<strong>"+_("Select:")+" <\/strong><a id=\"CheckAll\" href=\"/cgi-bin/koha/tags/review.pl\">"+_("All")+"<\/a> <a id=\"CheckPending\" href=\"/cgi-bin/koha/tags/review.pl\">"+_("Pending")+"<\/a> <a id=\"CheckNone\" href=\"/cgi-bin/koha/tags/review.pl\">"+_("None")+"<\/a>");
$("#CheckAll").click(function(){
$(".checkboxed").checkCheckboxes();
return false;
});
$('body').click(function(event) {
pull_counts();
- // window.alert("Click detected on " + event.target + ": " + $(event.target).html);
+ // window.alert(_("Click detected on ") + event.target + ": " + $(event.target).html);
if ($(event.target).is('.ok')) {
$.ajax({
"data": {ok: $(event.target).attr("title"), CGISESSID: readCookie('CGISESSID')},
"success": count_approve // success_approve
});
$(event.target).next(".rej").removeAttr("disabled").attr("value","Reject").css("color","#000");
- $(event.target).attr( "value","Approved").attr("disabled","disabled").css("color","#666");
+ $(event.target).attr( "value",_("Approved")).attr("disabled","disabled").css("color","#666");
return false; // cancel submit
}
if ($(event.target).is('.rej')) {
"success": count_reject // success_reject
});
$(event.target).prev(".ok").removeAttr("disabled").attr("value","Approve").css("color","#000");
- $(event.target).attr( "value","Rejected").attr("disabled","disabled").css("color","#666");
+ $(event.target).attr( "value",_("Rejected")).attr("disabled","disabled").css("color","#666");
return false; // cancel submit
}
if ($(event.target).is('#test_button')) {
- $(event.target).attr( "value","Testing...").attr("disabled","disabled");
+ $(event.target).attr( "value",_("Testing...")).attr("disabled","disabled");
$.ajax({
"data": {test: $('#test').attr("value")},
"success": success_test_call // success_reject
}
});
$("*").ajaxError(function(evt, request, settings){
- if ((alerted +=1) <= 1){ window.alert("AJAX error (" + alerted + " alert)"); }
+ if ((alerted +=1) <= 1){ window.alert(_("AJAX error")+" (" + alerted + " alert)"); }
});
});
//]]>
<div id="yui-main">
<div class="yui-b">
+<div class="yui-ge">
+<div class="yui-u first">
<h1>Tags</h1>
-
-<form method="post" action="/cgi-bin/koha/tags/review.pl">
-<fieldset>
- <legend>Filters</legend>
- <table>
- <tr>
- <th>Term</th>
- <th>Status</th>
- <th>Reviewer</th>
- <th>Date</th>
- </tr>
- <tr>
- <td><input type="text" name="tag" value="<!-- TMPL_VAR NAME="filter_tag" -->" />
- </td>
- <td><select name="approved">
- <option <!-- TMPL_IF NAME="filter_approved_all" -->selected="selected" <!-- /TMPL_IF -->value="all">all</option>
- <option <!-- TMPL_IF NAME="filter_approved_ok" -->selected="selected" <!-- /TMPL_IF -->value="1">approved</option>
- <option <!-- TMPL_IF NAME="filter_approved_pending" -->selected="selected" <!-- /TMPL_IF -->value="0">pending</option>
- <option <!-- TMPL_IF NAME="filter_approved_rej" -->selected="selected" <!-- /TMPL_IF -->value="-1">rejected</option>
- </select>
- </td>
- <td><input type="text" name="approver" value="<!-- TMPL_VAR NAME="filter_approver" -->" />
- </td>
- <td>
- <label for="from" class="setlabel">from </label>
- <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="filter_date_approved_from" -->" />
- <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" alt="Show Calendar" style="cursor: pointer;" id="openCalendarFrom" />
- <br />
- <label for="to" class="setlabel"> to </label>
- <input type="text" size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="filter_date_approved_to" -->" />
- <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" alt="Show Calendar" style="cursor: pointer;" id="openCalendarTo" />
- </td>
- </tr>
- </table>
- <fieldset class="action"><input type="submit" value="Apply Filter(s)" /></fieldset>
-</fieldset>
-</form>
-<script type="text/javascript">
-//<![CDATA[
-// function submit_check (from_id,to_id) {
-// var dateFrom = Date_from_syspref(document.getElementById(from_id).value);
-// var dateTo = Date_from_syspref(document.getElementById( to_id).value);
-// var today = new Date();
-// if (dateFrom < dateTo) {
-// alert("The starting date cannot be after the ending date.");
-// document.getElementById(to_id).select();
-// return false;
-// }
-// if (dateFrom > today) {
-// alert("The starting date cannot be in the future.");
-// document.getElementById(from_id).select();
-// return false;
-// }
-// }
-
-// return true if the date is blocked.
-function disable_from(date) {var limit = get_Calendar_limit(date,'to' ); return (limit && limit < date);}
-function disable_to (date) {var limit = get_Calendar_limit(date,'from'); return (limit && limit > date);}
-
-Calendar.setup({
- inputField : "from",
- ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
- button : "openCalendarFrom",
- disableFunc : disable_from,
- dateStatusFunc : disable_from
-});
-Calendar.setup({
- inputField : "to",
- ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
- button : "openCalendarTo",
- disableFunc : disable_to,
- dateStatusFunc : disable_to
-});
-//]]>
-</script>
<form method="post" action="/cgi-bin/koha/tags/review.pl" class="checkboxed">
<h4>Displaying
<!-- TMPL_IF NAME="filter_approved_all" -->ALL<!-- /TMPL_IF -->
<th>Term</th>
<th>Weight</th>
<th>Actions</th>
- <th>Reviewer</th>
+ <!-- TMPL_UNLESS NAME="filter_approved_pending" --><th>Reviewer</th><!-- /TMPL_UNLESS -->
<th>Date</th>
</tr>
<!-- TMPL_LOOP NAME="tagloop" -->
<input class="rej" type="submit" title="<!-- TMPL_VAR NAME="term"-->" value="Reject" name="reject" />
</span>
</td>
- <td> </td>
+ <!-- TMPL_UNLESS NAME="filter_approved_pending" --><td> </td><!-- /TMPL_UNLESS -->
<!-- /TMPL_IF -->
<td><!-- TMPL_VAR NAME="date_approved"-->
</td>
<input type="submit" value="Reject" id="reject_button" name="op" />
</fieldset><!-- /TMPL_IF -->
</form>
- </div>
- </div>
- <div class="yui-b">
-
- <fieldset class="brief">
+</div>
+<div class="yui-u">
+ <fieldset class="brief">
<h4>Terms Summary</h4>
<ul>
<li><a href="/cgi-bin/koha/tags/review.pl?approved=1">Approved</a>:
</div>
</form>
</fieldset>
+</div>
+</div>
+
+
+ </div>
+ </div>
+ <div class="yui-b">
+<form method="post" action="/cgi-bin/koha/tags/review.pl">
+<fieldset class="brief">
+ <h4>Filters</h4>
+ <ol>
+ <li><label for="tag">Term</label> <input type="text" name="tag" id="tag" value="<!-- TMPL_VAR NAME="filter_tag" -->" />
+ </li>
+ <li><label for="approved">Status</label> <select name="approved" id="approved">
+ <option <!-- TMPL_IF NAME="filter_approved_all" -->selected="selected" <!-- /TMPL_IF -->value="all">all</option>
+ <option <!-- TMPL_IF NAME="filter_approved_ok" -->selected="selected" <!-- /TMPL_IF -->value="1">approved</option>
+ <option <!-- TMPL_IF NAME="filter_approved_pending" -->selected="selected" <!-- /TMPL_IF -->value="0">pending</option>
+ <option <!-- TMPL_IF NAME="filter_approved_rej" -->selected="selected" <!-- /TMPL_IF -->value="-1">rejected</option>
+ </select>
+ </li>
+ <li><label for="approver">Reviewer</label> <input type="text" name="approver" id="approver" value="<!-- TMPL_VAR NAME="filter_approver" -->" />
+ </li>
+ <li>
+ <label for="from">Date: from </label>
+ <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="filter_date_approved_from" -->" />
+ <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" alt="Show Calendar" style="cursor: pointer;" id="openCalendarFrom" />
+ <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
+
+ <label for="to">...to </label>
+ <input type="text" size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="filter_date_approved_to" -->" />
+ <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" alt="Show Calendar" style="cursor: pointer;" id="openCalendarTo" />
+ <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
+ </li>
+ </ol>
+ <fieldset class="action"><input type="submit" value="Apply Filter(s)" /></fieldset>
+</fieldset>
+</form>
+<script type="text/javascript">
+//<![CDATA[
+// function submit_check (from_id,to_id) {
+// var dateFrom = Date_from_syspref(document.getElementById(from_id).value);
+// var dateTo = Date_from_syspref(document.getElementById( to_id).value);
+// var today = new Date();
+// if (dateFrom < dateTo) {
+// alert("The starting date cannot be after the ending date.");
+// document.getElementById(to_id).select();
+// return false;
+// }
+// if (dateFrom > today) {
+// alert("The starting date cannot be in the future.");
+// document.getElementById(from_id).select();
+// return false;
+// }
+// }
+
+// return true if the date is blocked.
+function disable_from(date) {var limit = get_Calendar_limit(date,'to' ); return (limit && limit < date);}
+function disable_to (date) {var limit = get_Calendar_limit(date,'from'); return (limit && limit > date);}
+
+Calendar.setup({
+ inputField : "from",
+ ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
+ button : "openCalendarFrom",
+ disableFunc : disable_from,
+ dateStatusFunc : disable_from
+});
+Calendar.setup({
+ inputField : "to",
+ ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
+ button : "openCalendarTo",
+ disableFunc : disable_to,
+ dateStatusFunc : disable_to
+});
+//]]>
+</script>
+
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->