Changeset 9228


Ignore:
Timestamp:
2005-03-01T15:21:11+13:00 (19 years ago)
Author:
davidb
Message:

Changed setting URL metadata back to always being done (regardless of
whether -file_is_url is set or not. This is because URL metadata is used
elsewhere in runtime Greenstone to resolve internal links. Setting
"weblink" and "webicon" are still only done if -file_is_url is true.

File:
1 edited

Legend:

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

    r9169 r9228  
    233233    unless $self->{'no_metadata'} || $self->{'description_tags'};
    234234
     235    # Store URL for page as metadata - this can be used for an
     236    # altavista style search interface. The URL won't be valid
     237    # unless the file structure contains the domain name (i.e.
     238    # like when w3mir is used to download a website).
     239
     240    # URL metadata (even invalid ones) are used to support internal
     241    # links, so even if 'file_is_url' is off, still need to store info
     242
     243    my $web_url = "http://$file";
     244    $doc_obj->add_metadata($cursection, "URL", $web_url);
     245
    235246    if ($self->{'file_is_url'}) {
    236     # Store URL for page as metadata - this can be used for an
    237     # altavista style search interface. The URL won't be valid
    238     # unless the file structure contains the domain name (i.e.
    239     # like when w3mir is used to download a website).
    240     my $web_url = "http://$file";
    241     $doc_obj->add_metadata($cursection, "URL", $web_url);
    242247    $doc_obj->add_metadata($cursection, "weblink", "<a href=\"$web_url\">");
    243248    $doc_obj->add_metadata($cursection, "webicon", "_iconworld_");
Note: See TracChangeset for help on using the changeset viewer.