Ignore:
Timestamp:
2006-08-25T16:47:40+12:00 (18 years ago)
Author:
kjdon
Message:

changed the special metadata formatting for Language and Date. Now these both output macros rather than a final result. Language codes get turned into _iso639:iso639xx_, dates (yyyy-?mm-?dd) get turned into _format:date_(yyyy,mm,dd). This is now controlled by a new option for metadata names [format:Date]. Without this, Dates and Languages get output as raw text. format must coma after cgiSafe and before parent/sibling/child. If its used with a different metadata name, eg [format:dc.Title] the output will be _format:dc.Title_(title value), and the user can define _dc.Title_ macro in format package to handle it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/formattools.h

    r10415 r12567  
    3838        comDocumentButtonExpandContents, comDocumentButtonExpandText, comOID, comRank, comCollection};
    3939
    40 enum mcommand_t {mNone=0, mCgiSafe=1, mParent=2, mSibling=4, mChild=8};
     40enum mcommand_t {mNone=0, mCgiSafe=1, mParent=2, mSibling=4, mChild=8, mSpecial=16};
    4141
    4242enum pcommand_t {pNone, pImmediate, pTop, pAll};
Note: See TracChangeset for help on using the changeset viewer.