do circulation only from 3M reader
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 29 Oct 2014 13:28:59 +0000 (14:28 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 29 Oct 2014 13:28:59 +0000 (14:28 +0100)
examples/selfcheck.js

index 032aa7e..16c28e5 100644 (file)
@@ -232,6 +232,7 @@ function circulation( barcode, tag ) {
                        && barcode.length == 10
                        && barcode.substr(0,3) == 130
                        && book_barcodes[barcode] != 1
+                       && tag.reader == '3M810'
        ) { // book, not seen yet
                book_barcodes[ barcode ] = 1;
                pending_jsonp++;