From 10c68f326a96b1bc52f67fe4b2eb17eadd152f6d Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 13 Feb 2014 16:38:38 +0100 Subject: [PATCH 1/1] support books and borrower data from RFID cards --- scripts/RFID-JSONP-server.pl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/RFID-JSONP-server.pl b/scripts/RFID-JSONP-server.pl index 978a1f9..3085ea5 100755 --- a/scripts/RFID-JSONP-server.pl +++ b/scripts/RFID-JSONP-server.pl @@ -244,10 +244,16 @@ function got_visible_tags(data,textStatus) { $.each(data.tags, function(i,tag) { console.debug( i, tag ); html += '
  • ' + tag.sid; - var borrowernumber = tag.content || tag.borrower.cardnumber; + var content = tag.content || tag.borrower.cardnumber; - if ( borrowernumber ) { - html += ' ' + borrowernumber + ''; + if ( content ) { + html += ' ' + content + ''; html += ''; /* html += '
    ' -- 2.20.1