Skip to content

Commit

Permalink
Fix bug with scanning barcodes with trailing blank.
Browse files Browse the repository at this point in the history
Don't trim barcodes, Rather, replace all spaces with "%20".
  • Loading branch information
mgobat committed Jul 7, 2021
1 parent 5aafb40 commit 0c86b07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Public Class Form1
'v. 2.3: dlgSettings.UseEXDialog = True to enable print dialog selection in Windows 7
'v. 2.2: corrects spacing & punctuation errors in incoming call numbers (for TML);
'v. ...:
Dim somVersion As String = "8.1.1"
Dim somVersion As String = "8.1.2"
Dim javaClassName As String = "almalabelu2" 'the java class name
Dim javaSDKName As String = "alma-sdk.1.0.jar" 'the Ex Libris SDK for web services
Dim javaTest As String = "javatest" 'java class that reports presence and version of java
Expand Down Expand Up @@ -1214,7 +1214,8 @@ Public Class Form1
Exit Sub
End If

fixedBarcode = Replace(Trim(InputBox.Text), "+", "%2B")
fixedBarcode = Replace(InputBox.Text, "+", "%2B")
fixedBarcode = Replace(fixedBarcode, " ", "%20")
svcRequest = Trim(apiURL.Text) & Trim(apiMethod.Text.Replace("{item_barcode}", fixedBarcode)) & "&apikey=" & Trim(apiKey.Text)

lastbc = InputBox.Text
Expand Down
6 changes: 3 additions & 3 deletions My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("ExL")>
<Assembly: AssemblyProduct("SpineLabeler")>
<Assembly: AssemblyCopyright("Copyright © ExL 2019")>
<Assembly: AssemblyCopyright("Copyright © ExL 2021")>
<Assembly:AssemblyTrademark("")>

<Assembly:ComVisible(False)>
Expand All @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly:AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("8.1.0.0")>
<Assembly: AssemblyFileVersion("8.1.0.0")>
<Assembly: AssemblyVersion("8.1.2.0")>
<Assembly: AssemblyFileVersion("8.1.2.0")>

0 comments on commit 0c86b07

Please sign in to comment.