Lines 1671-1682
Link Here
|
1671 |
|
1671 |
|
1672 |
[% IF ( Koha.Preference('OPACDetailQRCode') ) %] |
1672 |
[% IF ( Koha.Preference('OPACDetailQRCode') ) %] |
1673 |
|
1673 |
|
|
|
1674 |
var link_canonical = document.querySelector("link[rel=canonical]"); |
1675 |
|
1674 |
var qrcode = kjua({ |
1676 |
var qrcode = kjua({ |
1675 |
ecLevel: "H", |
1677 |
ecLevel: "H", |
1676 |
render: "canvas", |
1678 |
render: "canvas", |
1677 |
rounded: 100, |
1679 |
rounded: 100, |
1678 |
size: 150, |
1680 |
size: 150, |
1679 |
text: location.href, |
1681 |
text: link_canonical ? link_canonical.href : location.href, |
1680 |
}); |
1682 |
}); |
1681 |
if (qrcode) { |
1683 |
if (qrcode) { |
1682 |
document.getElementById("qrcode").appendChild( qrcode ); |
1684 |
document.getElementById("qrcode").appendChild( qrcode ); |
1683 |
- |
|
|