Changeset 25345


Ignore:
Timestamp:
2012-04-05T14:49:08+12:00 (12 years ago)
Author:
kjdon
Message:

working on equiv link stuff. Have changed xxx.assoclink and equivlink back to having parent(Top):assocfilepath in it as this is needed for gs2. Have left equivDocLink as it was as I think that is used for gs3. I'll change this later.

File:
1 edited

Legend:

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

    r24564 r25345  
    13161316        my ($doc_ext) = ($tail_filename =~ m/^.*\.(.*)$/);
    13171317
    1318 ##      my $start_doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/{Or}{[parent(Top):assocfilepath],[assocfilepath]}/$url_tail_filename\">";
    1319         my $start_doclink = "<a href=\'_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/$url_tail_filename\'>";
     1318        # the greenstone 2 stuff
     1319        my $start_doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/{Or}{[parent(Top):assocfilepath],[assocfilepath]}/$url_tail_filename\">";
     1320        #my $start_doclink = "<a href=\'_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/$url_tail_filename\'>";
    13201321        my $start_doclink_gs3 = "<a href=\'_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/$url_tail_filename\'>";
    13211322
     
    13251326        my $assoc_form = "$start_doclink\{If\}{$srcicon,$srcicon,$doc_ext\}$end_doclink";
    13261327
    1327         $doc_obj->add_utf8_metadata ($cursection, "equivDocLink", $start_doclink);
    1328         $doc_obj->add_utf8_metadata ($cursection, "equivDocIcon", $srcicon);
    1329         $doc_obj->add_utf8_metadata ($cursection, "/equivDocLink", $end_doclink);
    13301328
    13311329        if (defined $pre_doc_ext && $pre_doc_ext ne "") {
     
    13381336
    13391337        $equiv_form .= " $assoc_form"; 
     1338
     1339        # following are used for greenstone 3,
     1340        $doc_obj->add_utf8_metadata ($cursection, "equivDocLink", $start_doclink_gs3);
     1341        $doc_obj->add_utf8_metadata ($cursection, "equivDocIcon", $srcicon);
     1342        $doc_obj->add_utf8_metadata ($cursection, "/equivDocLink", $end_doclink);
     1343
    13401344        }
    13411345        $doc_obj->add_utf8_metadata ($cursection, "equivlink", $equiv_form);
Note: See TracChangeset for help on using the changeset viewer.