Changeset 22329

Show
Ignore:
Timestamp:
30.06.2010 13:29:33 (9 years ago)
Author:
kjdon
Message:

changed mp3:meta to ex.id3.meta. apparently id3 isa better name for it, and ex. is added so that it will show up in GLI

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/MP3Plugin.pm

    r21760 r22329  
    216216 
    217217        if ($mp3_metavalue !~ m/^\s*$/s) { 
    218         my $mp3_metaname = "mp3:".lc($ki); 
     218        my $mp3_metaname = "ex.id3.".lc($ki); 
    219219        $doc_obj->add_metadata ($section, $mp3_metaname, $mp3_metavalue); 
    220220        } 
     
    227227        my $kt_len = length($kt); 
    228228        my $kt_initial_cap = uc(substr($kt,0,1)).lc(substr($kt,1,$kt_len-1)); 
    229         my $mp3_metaname = "mp3:".$kt_initial_cap; 
     229        my $mp3_metaname = "ex.id3.".$kt_initial_cap; 
    230230         
    231231        $doc_obj->add_metadata ($section, $mp3_metaname, $mp3_metavalue); 
     
    244244         
    245245        if ($mp3i_metavalue !~ m/^\s*$/s) { 
    246             my $mp3i_metaname = "mp3:".lc($field); 
     246            my $mp3i_metaname = "ex.id3.".lc($field); 
    247247            $doc_obj->add_metadata ($section, $mp3i_metaname, $mp3i_metavalue); 
    248248        } 
     
    255255         
    256256        if ($mp3t_metavalue !~ m/^\s*$/s) { 
    257             my $mp3t_metaname = "mp3:".$field; 
     257            my $mp3t_metaname = "ex.id3.".$field; 
    258258             
    259259            $doc_obj->add_metadata ($section, $mp3t_metaname, $mp3t_metavalue); 
     
    339339 
    340340 
    341 # we want to use mp3:Title if its there, otherwise we'll use BasePlugin method 
     341# we want to use ex.id3.Title if its there, otherwise we'll use BasePlugin method 
    342342sub title_fallback 
    343343{ 
     
    346346 
    347347    if (!defined $doc_obj->get_metadata_element ($section, "Title")) { 
    348     my $mp3_title = $doc_obj->get_metadata_element ($section, "mp3:Title"); 
     348    my $mp3_title = $doc_obj->get_metadata_element ($section, "ex.id3.Title"); 
    349349    if (defined $mp3_title) { 
    350350        $doc_obj->add_metadata ($section, "Title", $mp3_title);