Olorin Auto-Printer di Kyle Hall
Silent receipt and label printing for web apps like the Koha ILS, via the Olorin Companion App.
Metadâts de estension
Schermadis
Informazions su la estension
- 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: "..." }
Valutât 0 di 0 recensôrs
Permès e dâts
Permès obligatoris:
- Acedi ai tiei dâts di ducj i sÎts web
Permès facoltatÎfs:
- Acedi ai dâts utent di localhost:9696
Racuelte dâts:
- Il svilupadôr al declare che cheste estension no domande la racuelte di dâts.
Altris informazions
- Colegaments component adizionâl
- Version
- 2.0.0
- Dimension
- 41,93 kB
- Ultin inzornament
- 7 napja (2026. jĂşl. 22.)
- Categoriis coreladis
- Informative su la riservatece
- Lei la informative su la riservatece par chest component adizionâl
- Cronologjie versions
- Zonte ae racuelte