Changeset 11465


Ignore:
Timestamp:
2006-03-22T16:16:32+12:00 (18 years ago)
Author:
mdewsnip
Message:

Now adds ISISRecordHTML metadata also, as a shortcut towards a nicely formatted collection.

File:
1 edited

Legend:

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

    r11430 r11465  
    168168    my $subfield_separator = $self->{'subfield_separator'};
    169169    my $entry_separator = $self->{'entry_separator'};
     170    my $isis_record_html_metadata_value = "<table>";
    170171
    171172    # Report that we're processing the file
     
    287288    # print STDERR "All metadata name: $all_metadata_name, value: $all_metadata_value\n";
    288289    $doc_obj->add_utf8_metadata($section, $all_metadata_name, $all_metadata_value);
     290
     291    $isis_record_html_metadata_value .= "<tr><td valign=top><nobr><b>" . $fdt_mapping->{$tag}{'name'} . "</b></nobr></td><td valign=top>" . $all_metadata_value . "</td></tr>";
    289292    }
     293
     294    # Add a reasonably formatted HTML table view of the record as metadata, as a shortcut towards a nice display
     295    $isis_record_html_metadata_value .= "</table>";
     296    $doc_obj->add_utf8_metadata($section, "ISISRecordHTML", $isis_record_html_metadata_value);
    290297
    291298    # Add the full record as the document text
Note: See TracChangeset for help on using the changeset viewer.