Changeset 30742

Show
Ignore:
Timestamp:
24.08.2016 13:37:00 (3 years ago)
Author:
kjdon
Message:

paged docs without images look weird in gs3. need to make a new type, eg pagedimg so that we can differentiate those with and without images. For those without images we should do a different toc widget. for now, set thistype to Hierarchy for PDF -use_sections docs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/PDFPlugin.pm

    r30492 r30742  
    439439     
    440440    if ($self->{'use_sections'} && $self->{'converted_to'} eq "HTML") { 
    441     # we explicitly make it a paged document, cos greenstone won't get it 
     441    # For gs2 we explicitly make it a paged document, cos greenstone won't get it 
    442442    # right if any section has an empty title, or one with letters in it 
    443     $doc_obj->set_utf8_metadata_element ($cursection, "gsdlthistype", "Paged"); 
     443    if (&util::is_gs3()) { 
     444        # but for gs3, paged docs currently use image slider which is ugly if there are no images 
     445        $doc_obj->set_utf8_metadata_element ($cursection, "gsdlthistype", "Hierarchy"); 
     446    } else { 
     447        $doc_obj->set_utf8_metadata_element ($cursection, "gsdlthistype", "Paged"); 
     448    } 
    444449    } 
    445450