Changeset 27363 for main/trunk/greenstone2/runtime-src/src
- Timestamp:
- 2013-05-16T18:37:30+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/recpt/documentaction.cpp
r22984 r27363 728 728 // must have a valid collection server to continue 729 729 730 text_t &collection = args["c"]; 730 // _allowusercomments_ Whether the User Comments area is to be shown for this doc or not 731 732 text_t &collection = args["c"]; 731 733 if (collection.empty()) return; 732 734 recptproto *collectproto = protos->getrecptproto (collection, logout); … … 783 785 //do not display relation metadata 784 786 disp.setmacro ("relateddoc", "document", ""); 785 787 788 // Whether the UserComments section is supposed to be displayed when a document is loaded or not 789 if (collectproto != NULL) { 790 ColInfoResponse_t *cinfo = NULL; 791 792 cinfo = recpt->get_collectinfo_ptr (collectproto, collection, logout); 793 794 text_tmap::const_iterator user_comments_it = cinfo->format.find ("AllowUserComments"); 795 if ((user_comments_it != cinfo->format.end()) && ((*user_comments_it).second == "true")) { 796 disp.setmacro ("allowusercomments", "document", "1"); // document package 797 //disp.setmacro ("allowusercomments", displayclass::defaultpackage, "1"); // Global 798 } 799 } 800 786 801 //if preferences indicate relevant docs should be collected 787 802 //and there is no particular format specified then display
Note:
See TracChangeset
for help on using the changeset viewer.