Ignore:
Timestamp:
2006-07-04T15:23:58+12:00 (18 years ago)
Author:
davidb
Message:

First cut at 'The Depositor' -- Greenstone support for institutional
repositories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/documentaction.cpp

    r11771 r11998  
    619619  if (get_info (inlink, args["c"], args["l"], metadata, false, collectproto, response, logout)) {
    620620    if (!response.docInfo[0].metadata["section"].values[0].empty()) {
     621#ifndef DOCHANDLE
    621622      outlink = "_httpdocument_&d=" + response.docInfo[0].metadata["section"].values[0];
     623#else
     624      outlink = "_httpdocumenthandle_("+args["c"]+","+response.docInfo[0].metadata["section"].values[0]+")";
     625#endif
     626
    622627      return true;
    623628    }
     
    642647      if (get_info (inlink, *col_here, args["l"], metadata, false, collectproto, response, logout)) {
    643648    if (!response.docInfo[0].metadata["section"].values[0].empty()) {
     649#ifndef DOCHANDLE
    644650      outlink = "_httpdocument_&c=" + *col_here + "&d=" +
    645651        response.docInfo[0].metadata["section"].values[0];
     652#else
     653      outlink = "_httpdocumenthandle_("+*col_here+","+response.docInfo[0].metadata["section"].values[0]+")";
     654#endif
     655
    646656      return true;
    647657    }
     
    10031013        << "<frameset rows=\"68,*\" noresize border=0>\n"
    10041014        << "<frame scrolling=no frameborder=0 src=\"_gwcgi_?_optsite_e=_compressedoptions_&a=p&p=nav\">\n"
     1015#ifndef DOCHANDLE
    10051016        << "<frame name=\"documenttop\" frameborder=0 src=\"_gwcgi_?_optsite_e=_compressedoptions_&a=d&d="
    10061017        << args["d"] << "\">"
     1018#else
     1019        << "<frame name=\"documenttop\" frameborder=0 src=\"_httpdocumenthandle_("
     1020        << args["c"] << "," << args["d"] << ")\">"
     1021#endif
    10071022        << "<noframes>\n"
    10081023        << "<p>You must have a frame enabled browser to view this.</p>\n"
     
    12971312  // work out values for next link
    12981313  if (haschildren) {
     1314#ifndef DOCHANLE
    12991315    disp.setmacro ("httpnextarrow", "document", "_httpdocument_&amp;cl=" + args["cl"] +
    13001316           "&amp;d=" + arg_d + ".fc");
     1317#else
     1318    disp.setmacro ("httpnextarrow", "document", "_httpdocumenthandle_("+args["c"]+","+arg_d + ".fc)";
     1319
     1320#endif
     1321
    13011322  } else {
    13021323    text_tarray::const_iterator h = next_siblings.begin();
     
    13041325    while (h != e) {
    13051326      if (!(*h).empty()) {
     1327#ifndef DOCHANLE
    13061328    disp.setmacro ("httpnextarrow", "document", "_httpdocument_&amp;cl=" + args["cl"] +
    13071329               "&amp;d=" + *h);
     1330#else
     1331    disp.setmacro ("httpnextarrow", "document", "_httpdocumenthandle_("+args["c"]+","+*h+")";
     1332
     1333#endif
     1334
    13081335    break;
    13091336      }
     
    13141341  // work out value for previous link
    13151342  if (!previous_sibling.empty()) {
     1343#ifndef DOCHANDLE
    13161344    disp.setmacro ("httpprevarrow", "document", "_httpdocument_&amp;cl=" + args["cl"] +
    13171345           "&amp;d=" + previous_sibling);
     1346#else
     1347    disp.setmacro ("httpprevarrow", "document", "_httpdocumenthandle_("+args["c"]+","+ previous_sibling+")");
     1348
     1349#endif
     1350
    13181351  } else {
    13191352    if (countchar(arg_d.begin(), arg_d.end(), '.')) {
     1353#ifndef DOCHANDLE
    13201354      disp.setmacro ("httpprevarrow", "document", "_httpdocument_&amp;cl=" + args["cl"] +
    13211355             "&amp;d=" + get_parent(arg_d));
     1356#else
     1357      disp.setmacro ("httpprevarrow", "document", "_httpdocumenthandle_("+args["c"]+","+get_parent(arg_d)+")");
     1358
     1359#endif
     1360
    13221361    }
    13231362  }
Note: See TracChangeset for help on using the changeset viewer.