[livesupport-dev] metadata behavior on file-upload
  • I changed metadata behavior on file-upload (automatic setup of metadata from
    ID3).

    If user is logged in in default language, just this language will be set.
    If user is logged in with other language, records will be set in default and
    user-language too, because the user should see metadata in his language,
    even default language have to be set.

    If you have other opinion let me know.

    Sebastian

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • 3 Comments sorted by
  • Hi Sebastian,

    Can you explain what you mean exactly? If I log in in Hungarian, and
    upload an audio clip, will every metadata entry get doubled, like this?

    xmlns="http://mdlf.org/livesupport/elements/1.0/"
    xmlns:ls="http://mdlf.org/livesupport/elements/1.0/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:xml="http://www.w3.org/XML/1998/namespace">
    Yellow Submarine
    The Beatles
    The Beatles
    00:02:43.000000
    00:02:43.000000


    Or is going to be like this?

    ...
    Yellow Submarine
    Yellow Submarine
    ...

    I personally would be more comfortable with not having any xml:lang
    attributes in the metadata for 1.0, and add this feature in 1.1, after
    we have thought about it, asked Robert and others, and figured out what
    we want exactly.

    Up to now, we haven't even agreed on a default language; in Studio, we
    use "en", you seem to be using "en_GB" -- but "en_US" might be a more
    natural choice.

    Ferenc


    Sebastian Goebel wrote:
    > I changed metadata behavior on file-upload (automatic setup of metadata from
    > ID3).
    >
    > If user is logged in in default language, just this language will be set.
    > If user is logged in with other language, records will be set in default and
    > user-language too, because the user should see metadata in his language,
    > even default language have to be set.
    >
    > If you have other opinion let me know.
    >
    > Sebastian
    >
    >
    >

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Hi Ferenc,

    yes, if you logged in in hungarian than metadata (just the fields gotten
    from id3) will stored in hungarian and default language (now switched to
    en_US).

    But maybee you are right that metadata should always stored in default
    language after upload, and just if user choose another lang in metadataform
    he can translate into this. I added entry in config file to have possibility
    to switch to this behavior.

    Anyway, php part uses xml:lang attribute since a longer while. I guess
    storageServer can changed to ignore this completely, but this would be step
    back. If people starting to upload files to 1.0 they should be able to
    upgrade to 1.1 without losing those files.




    > -----Urspr
  • Hi,

    My main point was: a vaguely defined and totally undocumented feature
    has suddenly appeared a few days before the release deadline. This I no
    likey.

    I can't even see any way to select according to language in the storage
    server methods:
    http://livesupport.campware.org/public_html/doc/doxygen/html/classXR__LocStor.html#a25
    and
    http://livesupport.campware.org/public_html/doc/doxygen/html/classXR__LocStor.html#a66

    Question: if I do not use any xml:lang attributes when uploading from
    the C++ gui, and only look at the first tag of each kind(*) in an audio
    clip returned from storage, is that going to work? I.e., will an audio
    clip uploaded from C++ be visible from HTML, and vice versa?

    Ferenc

    (*) for example, if it has
    Das gelbe U-Boot
    Yellow Submarine
    S