Olorin Auto-Printer ์ ์์: Kyle Hall
Silent receipt and label printing for web apps like the Koha ILS, via the Olorin Companion App.
ํ์ฅ ๋ฉํ ๋ฐ์ดํฐ
์คํฌ๋ฆฐ์ท
์ ๋ณด
- The web application embeds a print button โ in Koha, notice/slip
templates carry it:
html
<button id="webPrint" data-printer="receipt_printer" data-print="#receipt">Print</button>data-printer names one of five logical printers โ receipt_printer,sticker_printer, paper_printer, full_sheet_printer,label_printer โ and data-print is a CSS selector for the element whosecontents should print. Any element with the
olorinPlugin class works thesame way.
- Wrap the printable part of the slip:
html
<span id="receipt"> ... slip content ... </span>
- To print automatically when the page loads, trigger a click on the
button from the page's own JavaScript. In Koha that means setting the
IntranetSlipPrinterJSsystem preference to:
javascript
setTimeout(function () {
$("#webPrint").trigger("click");
}, 1000);(Any page script that dispatches a real click works โ jQuery is not
required.)
- The extension's options page maps each logical printer to a real OS
printer, with per-printer page size, margins, orientation, number of
copies, and duplex (long edge / short edge) mode. Settings are stored by
the companion app, so they are shared by every browser on the machine.
Pages can react to print outcomes by listening for a DOM event:
document.addEventListener("olorin:print-result", (e) => console.log(e.detail));
// e.detail = { success: true } or { success: false, error: "..." }
๋ฆฌ๋ทฐ์ด 0๋ช
์ด 0์ ์ผ๋ก ํ๊ฐํจ
๊ถํ ๋ฐ ๋ฐ์ดํฐ
ํ์ ๊ถํ:
- ๋ชจ๋ ์น์ฌ์ดํธ์์ ์ฌ์ฉ์์ ๋ฐ์ดํฐ์ ์ ๊ทผ
์ ํ์ ๊ถํ:
- localhost:9696์์ ์ฌ์ฉ์์ ๋ฐ์ดํฐ์ ์ ๊ทผ
๋ฐ์ดํฐ ์์ง:
- ๊ฐ๋ฐ์๋ ์ด ํ์ฅ ๊ธฐ๋ฅ์ด ๋ฐ์ดํฐ ์์ง์ ์๊ตฌํ์ง ์๋๋ค๊ณ ๋ฐํ๊ณ ์์ต๋๋ค.
์ถ๊ฐ ์ ๋ณด
- ๋ถ๊ฐ ๊ธฐ๋ฅ ๋งํฌ
- ๋ฒ์
- 2.0.0
- ํฌ๊ธฐ
- 41.93 KB
- ๋ง์ง๋ง ์ ๋ฐ์ดํธ
- 7์ผ ์ (2026๋ 7์ 22์ผ)
- ๊ด๋ จ ์นดํ ๊ณ ๋ฆฌ
- ๋ผ์ด์ ์ค
- GNU General Public License v3.0 ์ ์ฉ
- ๊ฐ์ธ์ ๋ณด์ฒ๋ฆฌ๋ฐฉ์นจ
- ์ด ๋ถ๊ฐ ๊ธฐ๋ฅ์ ๋ํ ๊ฐ์ธ์ ๋ณด์ฒ๋ฆฌ๋ฐฉ์นจ ์ฝ๊ธฐ
- ๋ฒ์ ๋ชฉ๋ก
- ๋ชจ์์ง์ ์ถ๊ฐ