Ignore:
Timestamp:
2000-12-18T17:17:57+13:00 (23 years ago)
Author:
paynter
Message:

Changed phind classifier so that its HTML is generated by documentaction,
instead of pageaction. This ensures that the macros it requires are set
properly and makes it consistant with the other classifiers. But what a
waste of my time it was.

File:
1 edited

Legend:

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

    r1610 r1804  
    605605      text_t classtop;
    606606      get_top (arg_cl, classtop);
     607      metadata.insert ("childtype");
     608
    607609      if (get_info (classtop, collection, metadata, false, collectproto, response, logout)) {
    608610     
     
    623625      disp.setmacro ("pagetitle", "document", "_text" + title + "page_");
    624626      disp.setmacro ("imagethispage", "document", "_icon" + title + "page_");
     627    }
     628
     629        // Add a macro to display the phind classifier (if appropriate)
     630    text_t &childtype = response.docInfo[0].metadata["childtype"].values[0];
     631    if (childtype == "Phind") {
     632      disp.setmacro ("phindclassifier", "document", "_phindapplet_");
    625633    }
    626634      }
Note: See TracChangeset for help on using the changeset viewer.