Changeset 15911 for gsdl/trunk/perllib


Ignore:
Timestamp:
2008-06-09T13:12:28+12:00 (16 years ago)
Author:
kjdon
Message:

tidy up a couple of places using dummy text and NoText metadata

Location:
gsdl/trunk/perllib/plugins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/MP3Plugin.pm

    r15872 r15911  
    105105    }
    106106   
    107     #whats this crap?
    108    my $text = &gsprintf::lookup_string("{BasePlugin.dummy_text}",1);
     107    my $text = &gsprintf::lookup_string("{BasePlugin.dummy_text}",1);
    109108    if ($self->{'assoc_images'}) {
    110109    $text .= "[img1]<br>";
     
    112111    }
    113112    $doc_obj->add_utf8_text($doc_obj->get_top_section(), $text);
     113    $doc_obj->add_metadata ($doc_obj->get_top_section(), "NoText",    "1");
    114114
    115115}
     
    188188    $doc_obj->add_metadata ($section, $assoc_field, $assoc_name);
    189189    $doc_obj->add_metadata ($section, "srcurl", $assoc_url);
    190     $doc_obj->add_metadata ($section, "NoText",    "1");
    191190
    192191    my $mp3_info = get_mp3info($filename);
  • gsdl/trunk/perllib/plugins/OggVorbisPlugin.pm

    r15872 r15911  
    130130    $doc_obj->add_metadata ($top_section, "srcicon", "<img src=\"_httpprefix_/images/iogg.gif\" title=\"Download\" border=0>");
    131131
    132     # add NoText metadata which can be used to suppress the dummy text
    133     $doc_obj->add_metadata ($top_section, "NoText", "1");
     132    # add dummy text and NoText metadata which can be used to suppress the dummy text
     133    $self->add_dummy_text($doc_obj, $top_section);
    134134
    135135    # Add the actual file as an associated file
  • gsdl/trunk/perllib/plugins/PagedImagePlugin.pm

    r15905 r15911  
    547547    # if we want a header page, we need to add some text into the top section, otherwise this section will become invisible
    548548    if ($self->{'headerpage'}) {
    549     $doc_obj->add_text($topsection, &gsprintf::lookup_string("{BasePlugin.dummy_text}"));
     549    $self->add_dummy_text($doc_obj, $topsection);
    550550    }
    551551
Note: See TracChangeset for help on using the changeset viewer.