Olorin Auto-Printer bởi Kyle Hall
Silent receipt and label printing for web apps like the Koha ILS, via the Olorin Companion App.
Siêu dữ liệu mở rộng
Ảnh chụp màn hình
Về tiện ích mở rộng này
- 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: "..." }
Được xếp hạng 0 (bởi 1 người dùng)
Quyền hạn và dữ liệu
Quyền hạn bắt buộc:
- Truy cập dữ liệu của bạn trên mọi trang web
Quyền hạn tùy chọn:
- Truy cập dữ liệu của bạn cho localhost:9696
Thu thập dữ liệu:
- Nhà phát triển cho biết tiện ích mở rộng này không yêu cầu thu thập dữ liệu.
Thêm thông tin
- Liên kết tiện ích
- Phiên bản
- 2.0.0
- Kích cỡ
- 41,93 KB
- Cập nhật gần nhất
- 7 ngày trước (22 Thg 07 2026)
- Thể loại có liên quan
- Giấy phép
- Chỉ Giấy phép Công cộng GNU v3.0
- Chính sách riêng tư
- Đọc chính sách riêng tư của tiện ích này
- Lịch sử các phiên bản
- Thêm vào bộ sưu tập