From: Bill Erickson Date: Mon, 23 Apr 2018 19:47:11 +0000 (-0400) Subject: hatch summary X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cb732b7d2d93a7f707e2cda48a06e131d29a40e5;p=working%2Frandom.git hatch summary Signed-off-by: Bill Erickson --- diff --git a/hatch-summary.adoc b/hatch-summary.adoc new file mode 100644 index 000000000..cbfe8ef24 --- /dev/null +++ b/hatch-summary.adoc @@ -0,0 +1,89 @@ += Hatch Review +:author: Bill Erickson, Software Development Engineer, King County Library System +:email: berickxx@gmail.com +:date: Evergreen Conference, 2018 +:duration: 10 +:backend: deckjs +:max-width: 45em +:deckjs_theme: web-2.0 + +== What Problem Does Hatch Solve? + +[source,js] +--------------------------------------------------------------------------- +window.print(); +--------------------------------------------------------------------------- + +== Hatch Architecture + +. Browser AngularJS Service egHatch (JavaScript) +. Browser Extension (JavaScript) +. Native Application (Java) + +== Hatch Message Flow + +image:images/Hatch_Flow_Diagram.png[Hatch Diagram] + +== JS Objects and JSON All The Way Down + +[source,js] +--------------------------------------------------------------------------- +{ + "action":"print", + "content":"Hello, World!", + "contentType":"text/html", + "showDialog":true, + "msgid":10, + "from":"page", + "clientid":5319, // set by extension + "origin":"https://eg.example.org", // set by extension + "settings":{"context":"default","printer":"HP-Deskjet-5100", ...} +} +--------------------------------------------------------------------------- + +== HatchInstaller.exe + +* Copies Hatch files into place (e.g. C:\Program Files (x86)\Hatch) +* Creates Windows registry keys telling the browser how to find the files. +* Installs the Chrome extension. + +== Verifying the Java Install + +[source,sh] +--------------------------------------------------------------------------- +# Linux +% ./hatch.sh test + +# Windows +C:\Program Files (x86)\Hatch> hatch.bat test + +2017-03-29 13:52:21 FINEST MessageWriter sending: {"clientid":1,"origin":"https://test.hatch... +2017-03-29 13:52:21 INFO Using data directory: /home/berick/.evergreen +2017-03-29 13:52:21 FINEST MessageReader read: {"clientid":1,"origin":"https://test.hatch.... +2017-03-29 13:52:21 INFO Received message id=1 action=keys +2017-03-29 13:52:21 FINEST MessageWriter sending: {"clientid":1,"msgid":1,"message":"OK",... +2017-03-29 13:52:21 FINEST MessageReader read: {"clientid":1,"msgid":1,"message":"OK",... +2017-03-29 13:52:21 INFO TestJSON:doReceive(): {"clientid":1,"msgid":1,"message":"OK",... +2017-03-29 13:52:22 FINEST MessageWriter sending: {"clientid":1,"origin":"https://test.hatch... +... +--------------------------------------------------------------------------- + +== Hatch UI Recap + + * Enable Hatch for Printing + * Configure Printers + +== Hatch Printing UI + +Administration => Workstation => Printer Settings + +image:images/hatch_print_config.png[Hatch Print Config] + +== What's Next? + + * Firefox Support + * Using Hatch for printer negotiation only. + * Alternate Native Application Implementations + ** Render HTML + ** Communicate with printers + diff --git a/images/Hatch_Flow_Diagram.png b/images/Hatch_Flow_Diagram.png new file mode 100644 index 000000000..fc0ff6ced Binary files /dev/null and b/images/Hatch_Flow_Diagram.png differ diff --git a/images/hatch_print_config.png b/images/hatch_print_config.png new file mode 100644 index 000000000..4bfe1a0f8 Binary files /dev/null and b/images/hatch_print_config.png differ