Changeset 6553


Ignore:
Timestamp:
2004-01-20T14:53:13+13:00 (20 years ago)
Author:
kjdon
Message:

If a plugin sets the gsdlthistype metadata to Paged, then the document will be treated as a paged doc - this allows Titles that are not totally numeric.

Location:
trunk/gsdl/perllib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/mgbuildproc.pm

    r4743 r6553  
    201201# and each section at second level has a number for
    202202# Title metadata
     203#also use Paged if gsdlthistype metadata is set to Paged
    203204sub get_document_type {
    204205    my $self = shift (@_);
     
    211212   
    212213    my $section = $doc_obj->get_top_section ();
     214
     215    my $gsdlthistype = $doc_obj->get_metadata_element ($section, "gsdlthistype");
     216    if (defined $gsdlthistype && $gsdlthistype eq "Paged") {
     217    $thistype = "Paged";
     218    $childtype = "Paged";
     219    return ($thistype, $childtype);
     220    }
     221   
    213222    my $first = 1;
    214223    while (defined $section) {
  • trunk/gsdl/perllib/mgppbuildproc.pm

    r6546 r6553  
    238238# and each section at second level has a number for
    239239# Title metadata
     240# also use Paged if gsdlthistype metadata is set to Paged
    240241sub get_document_type {
    241242    my $self = shift (@_);
     
    248249   
    249250    my $section = $doc_obj->get_top_section ();
     251   
     252    my $gsdlthistype = $doc_obj->get_metadata_element ($section, "gsdlthistype");
     253    if (defined $gsdlthistype && $gsdlthistype eq "Paged") {
     254    $thistype = "Paged";
     255    $childtype = "Paged";
     256    return ($thistype, $childtype);
     257    }
    250258    my $first = 1;
    251259    while (defined $section) {
Note: See TracChangeset for help on using the changeset viewer.