Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fraktik/d88dea9658a8363810dba562e6a4db68 to your computer and use it in GitHub Desktop.
Save fraktik/d88dea9658a8363810dba562e6a4db68 to your computer and use it in GitHub Desktop.
intranetuserJS - porovnání vMýto + zbytek
Ano - ne - vrátit - prodloužit vše
Brandys == VMyto
1: brandys, lanskroun, kraliky, vmyto
3: REKS, zamberk, jablonne
5: Letohrad
14: Chocen
=Run+this+report&reports=1
Brandys: 1
Lanskroun: =1
Kraliky: = 1
VMyto: = 1
REKS: =3
UO = ---
Zamberk: =3
Jablonne: =3
Letohrad: =5
Chocen: =14
Lichkov - 134
__________________________________________________
collectionId = window.location.getParameter("colId");
if (typeof collectionId != 'undefined') {
$('<div class="btn-group"><a id="printrcoll" class="btn btn-sm btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Run+this+report&reports=3&limit=200&sql_params=' + collectionId + '"><i class="fa fa-print"></i> Vytisknout</a></div>').insertAfter("#rcoll_addItems div[class='btn-group']:nth-child(2)");
}
rcollCount = $("#rcoll_addItems table tr").length - 1;
$("<p>Počet načtených dokumentů: <strong>" + rcollCount + "</strong></p>").insertAfter("#rcoll_addItems h2");
___________________________________________________
++++++++++btn-default vs btn-small + number of report:
$('<div class="btn-group"><a id="printrcoll" class="btn btn-sm btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Run+this+report&reports=1&limit=200&sql_params=' + collectionId + '"><i class="fa fa-print"
btn-small
collectionId = window.location.getParameter("colId");
if (typeof collectionId != 'undefined') {
$('<div class="btn-group"><a id="printrcoll" class="btn btn-sm btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Run+this+report&reports=1&limit=200&sql_params=' + collectionId + '"><i class="fa fa-print"></i> Vytisknout</a></div>').insertAfter("#rcoll_addItems div[class='btn-group']:nth-child(2)");
}
collectionId = window.location.getParameter("colId");
if (typeof collectionId != 'undefined') {
$('<div class="btn-group"><a id="printrcoll" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Run+this+report&reports=3&limit=200&sql_params=' + collectionId + '"><i class="fa fa-print"></i> Vytisknout</a></div>').insertAfter("#rcoll_addItems div[class='btn-group']:nth-child(2)");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment