On 15/04/15 09:03, Mike Ray wrote:
> One thing I don't understand at the moment; I tried using the web
> interface and one of the things it asked me for was a list of keywords,
> but I can't find in any of the ia examples or instructions any metadata
> string that looks like it is the keywords equivalent.  Do you happen to
> know what that might be?

Hi Mike,

If you look at the latest upload I did at:

https://archive.org/details/hpr1745

you will see keywords listed there. These have come from the tags
associated with the show in the database, and these are what the host
provides when filling in the submission form.

Since my script generates the CSV data required by ias3upload.pl it
builds the metadata names required by the API by naming the columns in
the CSV matrix. These names are 'subject[n]' when dealing with
tags/keywords.

I can send you my script off-list if it will help. It expends a lot of
effort turning the HTML of the show notes into a single field called
'description' for upload. These fields are HTTP headers so they can't
contain internal line breaks. Turning HTML with line breaks inside <pre>
tags requires the script to parse the HTML and replace newlines with
<br/> tags.

It also gets very funky when dealing with HTML entities since the
Internet Archive software was doing weird things with these which made
the HTML syntactically incorrect.

If you don't care about adding an arbitrarily complex HTML description
then your task should be much simpler.

Dave

-- 
Dave Morriss, Edinburgh, Scotland, UK | [email protected]

_______________________________________________
Hpr mailing list
[email protected]
http://hackerpublicradio.org/mailman/listinfo/hpr_hackerpublicradio.org

Reply via email to