Directory-based MetadataProvider

Yuji Shinozaki ys2n at virginia.edu
Thu Oct 25 14:19:31 EDT 2012


On Oct 25, 2012, at 1:03 PM, "Cantor, Scott" <cantor.2 at osu.edu> wrote:

>> I have a bunch of SP Metadata in separate files.  What is the best way to
>> automate loading them into the IDP?
> 
> I don't think there is a best way, really. I was suggesting that if the
> metadata is not so much external to you but metadata you can produce
> yourself, the script that I stuck into the SP distribution is a useful
> tool for generating it.
> 

Yes, that is my primary use case.  I'll take a look at that script.  Thanks!

> But if you really have a bunch of actual metadata you got from somebody
> else, no, there's no easy way. Glomming it together tends to be brittle
> because XML isn't great at that.
> 

Yes.  In this case, I would massage and verify the xml first before "concatenating",  which is part of the reason that I thought that an actual directory-based implementation might be better (where each file is treated separately, so a failure in one doesn't affect all the rest of the metadata).

> You could also write a MetadataProvider plugin that does what you want, of
> course.

Yep.  And that's why I was asking whether there wasn't one already to save me the trouble…  In the end,  I am thinking that your script might be the best compromise for our local SP's, since the case of external metadata is infrequent for us, so configuring one MDP per file will be only a minor annoyance.

Thanks Scott!

yuji
----



More information about the users mailing list