Show
Ignore:
Timestamp:
09-12-10 14:51:51 (3 years ago)
Author:
work@…
Message:

- moved 'description' from study template fields into domain variables so that every study will contain a -non required- description which is more logical

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/study/show.gsp

    r1244 r1245  
    55<head> 
    66        <meta name="layout" content="main"/> 
    7         <g:if test="${studyList.size()}"> 
     7        <g:if test="${studyList.size() == 1}"> 
    88        <meta property="og:title" content="${studyList[0].title}"/> 
    9         <g:if test="${studyList[0].getField('description')}"> 
    10         <meta property="og:description" content="${(studyList[0].getFieldValue('Description')) ? studyList[0].getFieldValue('Description') : 'A study in the Generic Study Capture Framework'}"/> 
    11         </g:if><g:else> 
    12         <meta property="og:description" content="A study in the Generic Study Capture Framework"/> 
    13         </g:else> 
     9        <meta property="og:description" content="${(studyList[0].getFieldValue('description')) ? studyList[0].getFieldValue('description') : 'A study in the Generic Study Capture Framework'}"/> 
    1410        </g:if> 
    1511        <g:set var="entityName" value="${message(code: 'study.label', default: 'Study')}"/>