Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store Application Identifier (AI) data string in products #8926

Closed
Tracked by #8333
hangy opened this issue Aug 29, 2023 · 3 comments
Closed
Tracked by #8333

Store Application Identifier (AI) data string in products #8926

hangy opened this issue Aug 29, 2023 · 3 comments
Labels
barcodes GS1 The producer platform is integrating with the GS1 product data formats. GS1 manages barcodes.

Comments

@hangy
Copy link
Member

hangy commented Aug 29, 2023

New barcodes like GS1 DataMatrix, GS1 QR Code, and GS1 Digital Link can contain more information than the GTIN (AI (Application Identifier) = 01). For example, they can contain the product weight for variable weight items, and the "best before" date.

Example

(01)3274080005003 # GTIN
(15)230501 # Best before
(3103)000123 # Weight

(The string is split into multiple lines for readability. The AI string returned from libgs1encoders doesn't contain newlines.)

Proposal

  1. Normalize the barcodes to AI strings using GS1::SyntaxEngine::FFI after a successful run of scan_barcode,
  2. Store a list of unique AI strings in the product identified by the GTIN, so that they can be analyzed later.

TBD: API integration

This would only solve product search from images uploaded from the web. (Mobile) apps that use the API need some way to search by the new GS1 barcodes and/or the AI data string.

Part of

Depends on

@hangy hangy added barcodes GS1 The producer platform is integrating with the GS1 product data formats. GS1 manages barcodes. labels Aug 29, 2023
@teolemon teolemon changed the title Store AI data string in products Store Application Identifier (AI) data string in products Aug 30, 2023
@stephanegigandet
Copy link
Contributor

In addition, we could just accept AI strings in the API, e.g. /api/v3/product/(01)3274080005003(15)230501(3103)000123 would return the product 3274080005003

@hangy
Copy link
Member Author

hangy commented Sep 2, 2023

I think it could be advantageous for the API to accept other types, too. Otherwise. each app/client would have to be able to parse all the GS1 barcode variations, as well.

@hangy
Copy link
Member Author

hangy commented Feb 18, 2024

I think this will be satisfied by #9791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
barcodes GS1 The producer platform is integrating with the GS1 product data formats. GS1 manages barcodes.
Projects
Development

No branches or pull requests

2 participants