Changeset 11467 for trunk/gsdl


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

Changed my mind about the previous change. Now the nicely formatted table record is added as the document text, so users will get this by default. The raw record is added as ISISRawRecord metadata.

File:
1 edited

Legend:

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

    r11466 r11467  
    292292    }
    293293
    294     # Add a reasonably formatted HTML table view of the record as metadata, as a shortcut towards a nice display
     294    # Add a reasonably formatted HTML table view of the record as the document text
    295295    $isis_record_html_metadata_value .= "</table>";
    296     $doc_obj->add_utf8_metadata($section, "ISISRecordHTML", $isis_record_html_metadata_value);
    297 
    298     # Add the full record as the document text
    299     $$textref =~ s/\</&lt;/g;
    300     $$textref =~ s/\>/&gt;/g;
    301     $doc_obj->add_utf8_text($section, $$textref);
     296    $doc_obj->add_utf8_text($section, $isis_record_html_metadata_value);
     297
     298    # Add the full raw record as metadata
     299    $doc_obj->add_utf8_metadata($section, "ISISRawRecord", $$textref);
    302300
    303301    # Add FileFormat metadata
Note: See TracChangeset for help on using the changeset viewer.