Re: Getting article aid (giving or notgivingpubid) via the title

"Jason Judge" <[email protected]> Tue, 9 Sep 2003 18:00:48 +0100
Newsgroups gmane.comp.cms.xaraya.knowledge-base
Organization Xaraya News Server
Message-ID <[email protected]>
"Federico Luciani" <[email protected]> wrote in message
news:mailman.290.1063103277.9998.xaraya_knowledge-base-n5IRV0TL0hwRxVAL8JNkP+OyGI2DFzLe@public.gmane.org
> ...
> > 2) about retrieving an article by title
> >
> > I'm not sure why you could have the title available but not the aid.
> > After all, even with syndication, you can retrieve the aid from the
> > URL if necessary.
>
> This is the point. XML results came from another data source, completely
> decoupled.
> If I have to interface, for example, a product name
> ("PIPPO PC SERVER")
> with an article, how to connect the name ("PIPPO PC SERVER") with an AID?
> My hope:
> 1) with the title (+pubid)
> Your response:
> 2) with a search

This is not an unusual request. The ID used within Xaraya is specific to
Xaraya. The source of the data may well be another system, with its own item
IDs, in this case with the title serving that purpose.

Another example of this type of thing is when setting up an online store. I
manage a store myself (based on osCommerce) for which I receive a file with
updated procucts each month. Loading the products up is not a problem, as
the products are just inserted into the database, with product IDs being
created automatically. Updating an existing product is more involved, as I
need to find the existing product based on data supplied by the external
system - and that does not include the ID - so I use the product title.

Swap products for articles, and you have the same situation - items
maintained on an external system, and transferred to Xaraya. For that
external system to update or fetch one of those articles, it cannot use the
article ID as it has no knowledge of IDs.

-- JJ