<%inherit file="/base/index.html" /> <%namespace file="/base/collectionViews.html" name="collectionViews" import="*"/> <%namespace file="/base/javascriptDefs.html" name="javascriptDefs" import="*"/> <%def name="heading()"> % if hasattr(c, 'browsing'):

Collections (${c.collectionCount})

% elif c.paginator.item_count == 1:

Collection Results: ${c.paginator.item_count} match

% else:

Collection Results: ${c.paginator.item_count} matches

% endif % if hasattr(c, 'browsing'):

Collections are documents that can represent stories and records of elicitations, among other things. In the body of a Collection, you can refer to a Form and thereby embed a representation of it.

% endif % if hasattr(c, 'paginator') and len(c.paginator):

${ c.paginator.pager('$link_first $link_previous $first_item to $last_item of $item_count $link_next $link_last') }

% endif % if not hasattr(c, 'browsing'): ${javascriptDefs.toggleLabelsJavaScript('fileTableRowLabel')} - % endif
% if hasattr(c, 'browsing'): % for cType in app_globals.collectionTypes:

${app_globals.collectionTypesPlurals[cType].capitalize()} (${len(c.collections[cType])})

% for collection in c.collections[cType]: % endfor
+ ${collection.title}
% endfor % else: % for collection in c.paginator: ${collectionViews.collectionViewShort(collection)} % endfor % endif % if hasattr(c, 'paginator'):

${ c.paginator.pager('~2~') }

% endif