Mercurial > hg > digilib-old
comparison client/digitallibrary/ImgInfo-json.jsp @ 754:ce5a0e6b5ee9 jquery
reading image info asynchronously works now. has just no use yet.
author | robcast |
---|---|
date | Sun, 06 Feb 2011 00:12:47 +0100 |
parents | 39bd5128811c |
children | 485b85f6e097 |
comparison
equal
deleted
inserted
replaced
753:39bd5128811c | 754:ce5a0e6b5ee9 |
---|---|
23 digilib.io.DocuDirCache dirCache = (digilib.io.DocuDirCache) dlConfig.getValue("servlet.dir.cache"); | 23 digilib.io.DocuDirCache dirCache = (digilib.io.DocuDirCache) dlConfig.getValue("servlet.dir.cache"); |
24 // get file | 24 // get file |
25 FileOps.FileClass fc = FileOps.FileClass.IMAGE; | 25 FileOps.FileClass fc = FileOps.FileClass.IMAGE; |
26 ImageFileset imgFile = (ImageFileset) dirCache.getFile(dlRequest.getFilePath(), dlRequest.getAsInt("pn"), fc); | 26 ImageFileset imgFile = (ImageFileset) dirCache.getFile(dlRequest.getFilePath(), dlRequest.getAsInt("pn"), fc); |
27 | 27 |
28 %>// JSON format metadata about an image | 28 %>{ <% |
29 { <% | |
30 if (imgFile != null) { | 29 if (imgFile != null) { |
31 ImageFile img = imgFile.getBiggest(); | 30 ImageFile img = imgFile.getBiggest(); |
32 if (!img.isChecked()) { | 31 if (!img.isChecked()) { |
33 DigilibConfiguration.docuImageIdentify(img); | 32 DigilibConfiguration.docuImageIdentify(img); |
34 } | 33 } |