Greetings,

First of all I'd like to thank you for your work on this module, I find it quite handy, however since it's lacking documentation, there are still a few things that I can't seem to get straightened out. I've taken a look at other issues, but I still can't figure things out entirely. If you could please provide more specific steps/documentation, it would be of great help.

I'd like to know how to add other web services such as IMDB, is it possible to do so now, or would it be necessary to wait while these are being developed? It also seems difficult to figure out how to map out fields with information that Create From Web grabs. Could you please be in more detail in creating .inc files and how to format them correctly?

It would be greatly appreciated.

Thank you!

CommentFileSizeAuthor
#9 operator_sru.zip2.81 KBsunfish62

Comments

sunfish62’s picture

I'm encountering similar problems.

I created a Z39.50 lookup object that returns data in the named array, but it doesn't load the data into the form. I have a CCK content type (named 'bibinfo') that would love to get this data. The query works; I get the array of data, but I can't figure out what needs to change to get the data into the form.

Suggestions/guidance welcome.

David

brevity’s picture

Thanks guys,

regarding IMDB there was/is a PHP class [1] to scrape the data -- don't know if it's still current. For my tests retrieving movie metadata from Wikipedia worked like a charm ...

Regarding the mapping, CreateFromWeb tries to match the attributes automatically (currently simply via edit-distance), but if web service array keys are quite different to the CCK field names this won't work, so you have to specify the correspondences manually as mapping under settings.

[1]: http://www.phpclasses.org/browse/package/3299.html

sunfish62’s picture

Mapping isn't working. I don't understand why. My object returns an associative array whose elements are the same name as the CCK fields I created. My fields are wrapped as a CCK module, which may be confusing things. For my title field, the form code includes the name and id tag as follows:
name="field_bkinfo[0][bktitle]" id="edit-field-bkinfo-0-bktitle"

My returned data includes the array element: bktitle: graveyard book

So I do not know why the mapping isn't happening. Suggestions are welcome!

David

brevity’s picture

if u have module devel installed -- do the session vars, eg createfromweb_editdistance contain some valuable info?
not sure if at current state the module populates those session vars as they were mainly for debugging ...

sunfish62’s picture

I have the devel module installed and activated. I do not see how to get the session vars to display.

brevity’s picture

That's available via [baseurl]/devel/session -- or enable the devel block to see the links ...

sunfish62’s picture

Um. I've tried a bunch of things (including manually inputting a mapping). Most recent sessions:

... (Array, 6 elements)
node_overview_filter (Array, 0 elements)
createfromweb_keywords (String, 10 characters ) 0060530928
createfromweb_operator (String, 3 characters ) sru
createfromweb_nodetype (String, 10 characters ) bookreview
createfromweb_mapping (Array, 2 elements)
bkinfo (String, 7 characters ) bktitle
bktitle (String, 22 characters ) bkinfo-0-bktitle bked
createfromweb_editdistance (String, 70 characters ) bkinfo to bktitle: 4 (0.333333333333) title ...
bkinfo to bktitle: 4 (0.333333333333) title to bktitle: 2 (0.6)

This is after I set the manual mapping to:

bktitle=bkinfo-0-bktitle
bked=bkinfo-0-bked
bkpubplace=bkinfo-0-bkpubplace

I have reversed the equation, as well.

I have to profess a profound ignorance about how this module is mapping things. Where is it getting the isolated bkinfo from? Where is it getting the 'title' element from? What is the second element in the createfromweb_mapping array?

sunfish62’s picture

Bump.

sunfish62’s picture

StatusFileSize
new2.81 KB

So, I'm not getting anywhere on this. I attach my work to date. Perhaps someone else can figure out the field mapping mess.

David

Bananoide’s picture

I'd like to know if anyone has added other web services such as IMDB after all this time? It would be really usefull. Thanks!

sunfish62’s picture

Bump.

Brevity: are you still supporting this module? Do you have any explanation about how this might work with CCK bundled fields?

brevity’s picture

Sorry, I'm not very active regarding Drupal these days... times might change, but don't know when.

B747’s picture

I have added LastFM as a web service at #715818: LastFM Node if this helps. If you want me to look into implementing similar I can certainly try.