Dodatki do przeglądarki Firefox
  • Rozszerzenia
  • Motywy
    • do Firefoksa
    • Słowniki i pakiety językowe
    • Inne strony
    • Dodatki na Androida
Zaloguj się
Podgląd „Olorin Auto-Printer”

Olorin Auto-Printer Autor: Kyle Hall

Silent receipt and label printing for web apps like the Koha ILS, via the Olorin Companion App.

0 (recenzje: 0)0 (recenzje: 0)
Pobierz Firefoksa i to rozszerzenie
Pobierz plik

Metadane rozszerzenia

Zrzuty ekranu
O tym rozszerzeniu
  1. 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 whose
contents should print. Any element with the olorinPlugin class works the
same way.
  1. Wrap the printable part of the slip:

html
<span id="receipt"> ... slip content ... </span>
  1. 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
    IntranetSlipPrinterJS system preference to:

javascript
setTimeout(function () {
$("#webPrint").trigger("click");
}, 1000);


(Any page script that dispatches a real click works — jQuery is not
required.)
  1. 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: "..." }
Ocenione na 0 przez 0 recenzentów
Zaloguj się, aby ocenić to rozszerzenie
Nie ma jeszcze ocen

Zapisano ocenę w gwiazdkach

5
0
4
0
3
0
2
0
1
0
Nie ma jeszcze recenzji
Uprawnienia i dane

Wymagane uprawnienia:

  • Mieć dostęp do danych użytkownika na wszystkich stronach

Opcjonalne uprawnienia:

  • Mieć dostęp do danych użytkownika na stronie „localhost:9696”

Zbieranie danych:

  • Autorzy tego rozszerzenia twierdzą, że nie wymaga ono zbierania danych.
Więcej informacji
Więcej informacji
Odnośniki dodatku
  • Pomoc
  • Adres e-mail pomocy
  • Skopiuj identyfikator dodatku
Wersja
2.0.0
Rozmiar
41,93 KB
Ostatnia aktualizacja
7 dni temu (22 lip 2026)
Powiązane kategorie
  • Inne
Licencja
Tylko GNU General Public License v3.0
Prywatność
Zasady ochrony prywatności tego dodatku
Historia wersji
  • Wszystkie wersje
Dodaj do kolekcji
Zgłoś ten dodatek
Strona domowa Mozilli

Dodatki

  • O serwisie
  • Blog dodatków do Firefoksa
  • Warsztat rozszerzeń
  • Strefa autora
  • Zasady programistów
  • Blog społeczności
  • Forum
  • Zgłoś błąd
  • Wytyczne recenzji

Pobieranie

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

Najnowsze kompilacje

  • Nightly
  • Beta

Firefox dla firm

  • Enterprise

Społeczność

  • Connect
  • Contribute
  • Developer

Obserwuj nas

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • Prywatność
  • Ciasteczka
  • Kwestie prawne

O ile nie wskazano inaczej, treść tej strony jest dostępna na warunkach licencji Creative Commons Attribution Share-Alike w wersji 3.0 lub nowszej.