Skip to main content
WolfShade
Legend
December 3, 2009
Question

UPC, EAN, or ISBN

  • December 3, 2009
  • 2 replies
  • 1916 views

Hello, all.

Does anyone know of a CFC that can take a string and return whether that string is a UPC, an EAN, or an ISBN?

I'm working on a site that adds items to a seller's half.com account (for many sellers) and the product ID that is being supplied could be a UPC, an EAN, or an ISBN (both -10 and -13), and I need to be able to tell half.com which the product ID is.

Thanks,

^_^
    This topic has been closed for replies.

    2 replies

    Inspiring
    December 5, 2009

    WolfShade,

    I came across this webservice named "GetISBNInformation", through which you can perform the ISBN (or) EAN lookups.

    As for UPC,

    You can make use of this UDF,

    http://cflib.org/index.cfm?event=page.udfbyid&udfid=661

    HTH

    Inspiring
    December 5, 2009

    @Daverms

    Did you mean to post a url for the webservice?

    -Leigh

    Inspiring
    December 5, 2009

    Oops.. Sorry,

    Here is the URL,

    http://www.webservicex.net/isbn.asmx

    Inspiring
    December 3, 2009

    UPC, an EAN, or an ISBN (both -10 and -13)

    Have you checked cflib.org? I know they have a function for ISBN at least. Also, what type of UPC?

    Inspiring
    December 3, 2009

    To expand -==cfSearching==-'s suggestion,

    For ISBN,

    http://cflib.org/udf/IsISBN

    For UPC,

    http://cflib.org/index.cfm?event=page.udfbyid&udfid=661

    Unfortunately there is no library avaiable for EAN (in CFLIB)., but I hope you can follow the ISBN code from where you can build another library for EAN.

    Inspiring
    December 3, 2009

    Unfortunately there is no library avaiable for EAN (in

    CFLIB)., but I hope you can follow the ISBN code from where

    you can build another library for EAN.

    That would be a good addition. But what formats of EAN? There is some overlap between the types you listed. I am not sure you could differentiate between some of them. Not unless the values are formatted. Or perhaps use different check digit calculations.