Download the latest .kpz file from the Project / Releases page
- Go to staff client /cgi-bin/koha/plugins/plugins-home.pl
- Click Actions -> Configure
/etc/apache2/sites-available/your_koha_instance.conf
ScriptAlias /custom/cgi-bin/koha/scc/scc.pl "/var/lib/koha/your_koha_instance/plugins/Koha/Plugin/Fi/Hypernova/SelfCheckoutCheckin/opac/scc.pl"
$("#sci_finish_button").on('click', function(e) {
window.location.href = SCC_SCRIPT_LOCATION;
e.preventDefault();
});
function timerIncrement() {
if ( $("#sci_finish_button").is(":visible") || $("#sci_refresh_button").is(":visible") ) {
// checkin status screen timeout
idleTime = idleTime + 1;
idleTimeout = 20;
if (idleTime >= idleTimeout ) {
location.href = SCC_SCRIPT_LOCATION;
idleTime = 0;
}
}
if ( $("#barcode_input").is(":visible") ) {
// checkin barcode read screen timeout
idleTime = idleTime + 1;
idleTimeout = 60;
if (idleTime >= idleTimeout ) {
location.href = SCC_SCRIPT_LOCATION;
idleTime = 0;
}
}
}
$(document).ready(function () {
//Increment the idle time counter every second
var idleInterval = setInterval(timerIncrement, 1000);
var idleTime = 0;
//Zero the idle timer on mouse movement.
$(this).mousemove(function (e) {
idleTime = 0;
});
$(this).keypress(function (e) {
idleTime = 0;
});
function timerIncrement() {
if ( $("#patronpw").is(":visible") && $("div.sco_entry").is(":visible") ) {
idleTime = idleTime + 1;
idleTimeout = 60;
if (idleTime >= idleTimeout ) {
location.href = SCC_SCRIPT_LOCATION;
idleTime = 0;
}
}
}
});
if (new RegExp("fi-FI").exec($("html").attr("lang"))) {
SCC_HOME_BUTTON_TEXT = "PAINA TÄSTÄ PALATAKSESI TAKAISIN";
} else {
SCC_HOME_BUTTON_TEXT = "GO BACK";
}
$.each($("#sci_bcheckins_table").find('td'), function() { if (new RegExp('Kirja ei ole tällä hetkellä lainassa').exec($(this).html())) { $(this).html("Palautettu"); } });