Subversion Repositories bacoAlunos

Rev

Rev 1717 | Rev 1755 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1717 Rev 1725
Line 31... Line 31...
31
            </html:link>
31
            </html:link>
32
        </baco:hasRole>
32
        </baco:hasRole>
33
    </div>
33
    </div>
34
    <div class="repository-document-collection-childs">
34
    <div class="repository-document-collection-childs">
35
    <%
35
    <%
36
        if(collection.getChilds() != null && collection.getChilds().size()>0)
-
 
37
        {
-
 
38
            for(RepositoryDocumentCollection child: collection.getChilds())
-
 
39
            {
-
 
40
                request.setAttribute("collection",child);
-
 
41
        %>
-
 
42
                <jsp:include page="showInterfaceColFragment.jsp"/>
-
 
43
        <%
-
 
44
            }
-
 
45
        }
36
 
46
        Criteria c = AbstractDao.getCurrentSession().createCriteria(RepositoryDocument.class);
37
        Criteria c = AbstractDao.getCurrentSession().createCriteria(RepositoryDocument.class);
47
 
38
 
48
        c.add(eq("collection.id",collection.getId()));
39
        c.add(eq("collection.id",collection.getId()));
49
        c.add(eq("visible",true));
40
        c.add(eq("visible",true));
50
 
41
 
Line 80... Line 71...
80
            %>
71
            %>
81
            <jsp:include page="showInterfaceDocsFragment.jsp"/>
72
            <jsp:include page="showInterfaceDocsFragment.jsp"/>
82
            <%
73
            <%
83
        }
74
        }
84
 
75
 
-
 
76
        //SUBCOLECOES
-
 
77
 
-
 
78
        if(collection.getChilds() != null && collection.getChilds().size()>0)
-
 
79
        {
-
 
80
            for(RepositoryDocumentCollection child: collection.getChilds())
-
 
81
            {
-
 
82
                if(!child.isVisible())
-
 
83
                    continue;
-
 
84
                request.setAttribute("collection",child);
-
 
85
            %>
-
 
86
        <jsp:include page="showInterfaceColFragment.jsp"/>
-
 
87
        <%
-
 
88
                }
-
 
89
            }
-
 
90
 
85
    %>
91
    %>
86
 
92
 
87
    </div>
93
    </div>
88
</div>
94
</div>
89
 
95