Lines 1679-1690
Link Here
|
1679 |
|
1679 |
|
1680 |
[% IF ( Koha.Preference('OPACDetailQRCode') ) %] |
1680 |
[% IF ( Koha.Preference('OPACDetailQRCode') ) %] |
1681 |
|
1681 |
|
|
|
1682 |
var link_canonical = document.querySelector("link[rel=canonical]"); |
1683 |
|
1682 |
var qrcode = kjua({ |
1684 |
var qrcode = kjua({ |
1683 |
ecLevel: "H", |
1685 |
ecLevel: "H", |
1684 |
render: "canvas", |
1686 |
render: "canvas", |
1685 |
rounded: 100, |
1687 |
rounded: 100, |
1686 |
size: 150, |
1688 |
size: 150, |
1687 |
text: location.href, |
1689 |
text: link_canonical ? link_canonical.href : location.href, |
1688 |
}); |
1690 |
}); |
1689 |
if (qrcode) { |
1691 |
if (qrcode) { |
1690 |
document.getElementById("qrcode").appendChild( qrcode ); |
1692 |
document.getElementById("qrcode").appendChild( qrcode ); |
1691 |
- |
|
|