Allow search results
This commit is contained in:
parent
efdd2b6ea9
commit
23fb5e4c68
1 changed files with 2 additions and 3 deletions
|
|
@ -340,10 +340,9 @@ public class AlbumServlet
|
||||||
item.put("name", e.getName());
|
item.put("name", e.getName());
|
||||||
item.put("type", e.getType());
|
item.put("type", e.getType());
|
||||||
if ("dir".equals(e.getType())) {
|
if ("dir".equals(e.getType())) {
|
||||||
DirectoryEntry de = (DirectoryEntry)e;
|
if (e.getEarliest() != null) {
|
||||||
if (de.getEarliest() != null) {
|
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy");
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy");
|
||||||
item.put("earliest", sdf.format(de.getEarliest()));
|
item.put("earliest", sdf.format(e.getEarliest()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Thumbnail thumb = e.getThumbnail();
|
Thumbnail thumb = e.getThumbnail();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue