Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4121

Add the error acceptance median as a settable attribute in barcodescanner

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Later
    • Resolution: Done
    • Affects Version/s: 8.6.0
    • Fix Version/s: 8.6.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Current barcodescanner implementation uses a median error value acceptance based on the following post:
      https://github.com/serratus/quaggaJS/issues/237#issuecomment-389667599

      https://github.com/zkoss/zkcml/blob/master/zkmax/src/archive/web/js/zkmax/barscanner/Barcodescanner.js#L559-L564

      At the moment, the acceptance value is hardcoded at 0.1, and is defined in a library initialization object, which is not easy to override without replacing the whole init function.

      It would be good to use a widget value (with component getter / setter / attribute in zul) to give developers the option to turn this feature off (set to 1) or require a stricter or looser safety check.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rudyhuang rudyhuang
              Reporter:
              MDuchemin MDuchemin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h