Hi all, I recently got a dspace repository up and running, and I've been working on my own xmlui theme. I'm working on a lightbox-based branded preview for our images (which are mostly TIFFs). By following the online documentation, I managed to get the thumbnail and preview filters diligently creating JPEGs from our TIFF bitstreams. Heck, I've even figured out where to add in references to static files and I've done a fair amount of xsl customization. After reading in the documentation that I would need to implement xmlui previews myself, I started to do just that. However, while customizing the mets:file template I simply could not get the following xpath to match anything when it seemed like it should. I played with it for a while without success.
$context/mets:fileSec/mets:fileGrp[@USE='BRANDED_PREVIEW']/mets:file[@GROUPID=current()/@GROUPID]/mets:FLocat[@LOCTYPE='URL']/@xlink:href I was able to get something if I dropped the @GROUPID limiter, however. I decided to go further up the path to see what I could find. Here's what I discovered. The original file gets a group with the same number as its file ID. The thumbnail file get its own ID number, but is put in the same group as the original file. This allows each thumbnail to be connected to the file from which it was created, not just the record. The preview filter, on the other hand, is creating a new group for each preview file. If I forcibly re-filter the record, the preview file ID and group ID increment together. After looking at a few dozen records on my system, I have concluded that each preview file belongs to a file group of exactly one member: itself. The group ID number always matches the preview file ID number. CONTENT GROUPID=group_file_12212 ID=file_12212 THUMBNAIL GROUPID=group_file_12212 ID=file_34568 BRANDED_PREVIEW: GROUPID=group_file_34569 ID=file_34569 This seems like it's probably a bug, but it could be somebody's feature. What can I do to change or to work around this behavior? I found very limited documentation about creating custom media filters, but I couldn't find how to make a copy of an existing filter and modify it. I appreciate any light you can shed on the issue, -- Jason Sherman Systems Librarian University of Science and Arts of Oklahoma 405.574.1340 ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

