Mercurial > hg > digilib-old
comparison client/digitallibrary/dirInfo-xml.jsp @ 592:f7e2b6f29b6d stream
Merge from HEAD
a667d2952aab2cfd5070237fa1e2fee320f5d897
author | robcast |
---|---|
date | Thu, 06 Jan 2011 20:53:18 +0100 |
parents | a667d2952aab |
children |
comparison
equal
deleted
inserted
replaced
590:69bc69381ac4 | 592:f7e2b6f29b6d |
---|---|
1 <%@page import="digilib.io.FileOps"%> | 1 <%@page import="digilib.io.FileOps"%><%@ page language="java" %><%! |
2 <%@ page language="java" %><%! | |
3 // create DocumentBean instance for all JSP requests | 2 // create DocumentBean instance for all JSP requests |
4 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean(); | 3 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean(); |
5 | 4 |
6 // initialize DocumentBean instance in JSP init | 5 // initialize DocumentBean instance in JSP init |
7 public void jspInit() { | 6 public void jspInit() { |
25 digilib.io.DocuDirectory dir = dirCache.getDirectory(dlRequest.getFilePath()); | 24 digilib.io.DocuDirectory dir = dirCache.getDirectory(dlRequest.getFilePath()); |
26 FileOps.FileClass fc = FileOps.FileClass.IMAGE; | 25 FileOps.FileClass fc = FileOps.FileClass.IMAGE; |
27 int dirSize = dir.size(fc); | 26 int dirSize = dir.size(fc); |
28 | 27 |
29 %><!-- Automatically generated XML snippet with directory info --> | 28 %><!-- Automatically generated XML snippet with directory info --> |
30 <huhu/> | |
31 <dir><% if (dir != null) { %> | 29 <dir><% if (dir != null) { %> |
32 <size><%= dirSize %></size> | 30 <size><%= dirSize %></size> |
33 <name><%= dir.getDirName() %></name> | 31 <name><%= dir.getDirName() %></name> |
34 <fsname><%= dir.getDir().getPath() %></fsname> | 32 <fsname><%= dir.getDir().getPath() %></fsname> |
35 <% | 33 <% |