function str=web_pobex_get_task_desc(task_desc,web_root) file=[web_root,'research/tasks/',task_desc]; str2 = textread(file,'%s','delimiter','\n','whitespace',''); if length(str2) == 0 str{1}='Text goes here'; return end il=0; for i=1:length(str2) tmp=str2{i}; il=il+1; str{il}=tmp; if length(tmp) > 5 if strcmp(tmp(1:5),'REF##') [cit, fields]=web_process_ref_string(tmp); str{il}=['
'];
il=il+1; str{il}=cit.title{:};
il=il+1; str{il}=['
'];
il=il+1; str{il}=[''];
il=il+1; str{il}=[cit.authors{:}];
il=il+1; str{il}=['
'];
il=il+1; str{il}=['',cit.journ{:},', ',cit.year{:},', ',cit.cit{:},'. [ PDF ]' ];
il=il+1; str{il}=[ '
']; [str,il]=web_append_cell(str,fields(j).section); il=il+1; str{il}=['
']; end end end end if length(tmp) > 7 if strcmp(tmp(1:7),'SLIDE##') in=findstr(tmp,'#'); istr=in(2)+2; iend=in(3)-2; slide_ref=tmp(istr:iend); [slide,img,links]=web_get_slide(slide_ref); istr=in(3)+2; iend=in(4)-2; if strcmp(tmp(istr:iend),'IMG'); str{il}=img; end if strcmp(tmp(istr:iend),'LINK'); str{il}=links; end end end end