Changeset 3186


Ignore:
Timestamp:
2002-06-25T23:05:43+12:00 (20 years ago)
Author:
sjboddie
Message:

* empty log message *

Location:
trunk/protemix
Files:
2 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/protemix/etc/collect.cfg

    r3182 r3186  
    33public        true
    44
    5 buildtype     mgpp
    6 indexes       text,metadata
    7 levels        Section
    8 defaultindex  text,metadata
     5#buildtype     mgpp
     6#indexes       text,metadata
     7#levels        Section
     8#defaultindex  text,metadata
    99
    10 collectionmeta .text,metadata    "all"
     10#collectionmeta .text,metadata    "all"
     11
     12indexes section:text
     13defaultindex section:text
    1114
    1215plugin        GAPlug
    1316plugin        ProtemixPlug
     17plugin        HTMLPlug
     18plugin        PDFPlug
     19plugin        RTFPlug
     20plugin        WordPlug
    1421plugin        ArcPlug
    1522plugin        RecPlug
     
    2128
    2229format CL1VList \
    23   '<p>[Title]<br><small>\[ [link]text</a> \]\[ <a href="_httpcollection_/index/assoc/[archivedir]/[pdf]">pdf</a> \]</small></p>'
     30  '<p>[Title]<br><small>\[ [link]text</a> \]{If}{[pdf],\\[ <a href="_httpcollection_/index/assoc/[archivedir]/[pdf]">pdf</a> \\]}</small></p>'
    2431
    2532format SearchVList \
    26   '<p>{If}{[parent:Title],[parent:Title] <small><i>(page [Title])</i>,[Title]}<br>\[ [link]text</a> \]\[ <a href="_httpcollection_/index/assoc/[parent:archivedir]/[pdf]">page</a> \]\[ <a href="_httpcollection_/index/assoc/[parent:archivedir]/[parent:pdf]">article</a> \]</small></p>'
     33  '<p>{If}{[parent:Title],[parent:Title] <small><i>(page [Title])</i></small>,[Title]}<br><small>\[ [link]text</a> \]{If}{[pdf],\\[ <a href="_httpcollection_/index/assoc/[parent:archivedir]/[pdf]">page</a> \\]\\[ <a href="_httpcollection_/index/assoc/[parent:archivedir]/[parent:pdf]">article</a> \\]}</small></p>'
    2734
    2835collectionmeta collectionname      "Protemix FDA Submission"
  • trunk/protemix/macros/base.dm

    r3177 r3186  
    124124#######################################################################
    125125
     126_httppagesubdocs_ {_httppagex_(subdocs)}
     127
    126128_httpcollimg_ {_httpcollection_/index/assoc}
    127129_httpdocimg_ {_httpcollimg_/_thisOID_}
     
    145147_httpbuild_ {_gwcgi_?e=_compressedoptions_&a=bc}
    146148
    147 _httpiconchalk_ {_httpcollection_/images/bottombgnd.gif}
     149_httpiconchalk_ {_httpcollection_/images/bg.gif}
    148150_widthchalk_ {2000}
    149151_heightchalk_ {10}
     
    261263src="_httpiconttitlgr_" width=_widthttitlx_ border=0>}
    262264
    263 _iconblankbar_ {<center><img src="_httpcollection_/images/bar.gif"></center>}
     265_iconblankbar_ {<center><img src="_httpcollection_/images/bar2.gif"></center>}
    264266
    265267_icontext_ {<img border=0 align=absmiddle src="_httpiconitext_" width=_widthitext_ height=_heightitext_ alt="_texticontext_">}
  • trunk/protemix/macros/style.dm

    r3182 r3186  
    8787
    8888<tr valign="top">
    89 <td><table border="0" cellpadding="0" cellspacing="0" width="638">
     89<td><center><table border="0" cellpadding="0" cellspacing="0" width="100%">
    9090<tr valign="top">
    9191
    92 <td><img name="greydot1" src="_httpcollection_/images/greydot1.gif" width="26" height="11" border="0"></td>
    93 
    94 <td>
     92<td align="center" width="25%">
    9593<a href="_httpquery_"
    9694onMouseOut="MM_nbGroup('out');"
     
    10098</td>
    10199
    102 <td><img name="greydot2" src="_httpcollection_/images/greydot2.gif" width="96" height="11" border="0"></td>
    103 
    104 <td>
     100<td align="center" width="25%">
    105101<a href="_httpdocument_&cl=CL1"
    106102onMouseOut="MM_nbGroup('out');"
     
    110106</td>
    111107
    112 <td><img name="greydot4" src="_httpcollection_/images/greydot2.gif" width="96" height="11" border="0"></td>
    113 
    114 <td>
     108<td align="center" width="25%">
    115109<a href="_httpdocument_&cl=CL2"
    116110onMouseOut="MM_nbGroup('out');"
    117 onMouseOver="MM_nbGroup('over','phrases','_httpcollection_/images/phraseon.gif','_httpcollection_/images/phrase.gif',1);"
     111onMouseOver="MM_nbGroup('over','phrases','_httpcollection_/images/phraseon.gif','_httpcollection_/images/phraseon.gif',1);"
    118112onClick="MM_nbGroup('down','navbar1','phrases','_httpcollection_/images/phraseon.gif',1);"><img
    119113name="phrases" src="_httpcollection_/images/phraseoff.gif" width="52" height="11" border="0" alt="phrase browser"></a>
    120114</td>
    121115
    122 <td><img name="greydot5" src="_httpcollection_/images/greydot5.gif" width="25" height="11" border="0"></td>
     116<td align="center" width="25%">
     117<a href="_httppagesubdocs_"
     118onMouseOut="MM_nbGroup('out');"
     119onMouseOver="MM_nbGroup('over','subdocs','_httpcollection_/images/sdocson.gif','_httpcollection_/images/sdocson.gif',1);"
     120onClick="MM_nbGroup('down','navbar1','subdocs','_httpcollection_/images/sdocson.gif',1);"><img
     121name="subdocs" src="_httpcollection_/images/sdocsoff.gif" width="110" height="11" border="0" alt="view submission documents"></a>
     122</td>
    123123
    124124</tr>
    125 </table></td>
     125</table></center></td>
    126126</tr>
    127127</table>
  • trunk/protemix/perllib/plugins/ProtemixPlug.pm

    r3182 r3186  
    5858    $filename = &util::filename_cat ($base_dir, $file) if $base_dir =~ /\w/;
    5959
    60     return 0 if $filename =~ /\.(pdf|html?|jpe?g)$/i;
     60    my $basename = File::Basename::basename($filename);
     61    return 0 if $basename =~ /^\d+(-(all|\d+))?\.(html?|pdf)/;
    6162    return undef unless $filename =~ /meta\.xml$/;
    6263   
     
    7677
    7778    my $dir = File::Basename::dirname($filename);
     79
     80    my $outhandle = $self->{'outhandle'};
     81    print $outhandle "ProtemixPlug: processing $dir\n";
     82
    7883
    7984    # associate article level pdf file
  • trunk/protemix/src/recpt/browsetools.cpp

    r3177 r3186  
    3333
    3434void output_controls (cgiargsclass &args, const text_tarray &ibuttons,
    35               recptproto * /*collectproto*/, displayclass &disp,
     35              recptproto *collectproto, displayclass &disp,
    3636              outconvertclass &outconvert, ostream &textout,
    37               ostream &/*logout*/) {
    38 
     37              ostream &logout) {
     38
     39  FilterResponse_t response;
     40  text_tset metadata;
     41  metadata.insert("pdf");
     42
     43  if (!get_info (args["d"], args["c"], metadata, false, collectproto, response, logout)) return;
     44
     45  if (!response.docInfo[0].metadata["pdf"].values[0].empty()) {
     46    textout << outconvert << disp
     47        << "_document:imagepagepdf_"
     48        << "_document:imagearticlepdf_";
     49  }
    3950  textout << outconvert << disp
    40       << "_document:imagepagepdf_"
    41       << "_document:imagearticlepdf_"
    4251      << "_document:imagedetach_";
    4352  if (args["hl"] == "1") {
Note: See TracChangeset for help on using the changeset viewer.