On Tue, Nov 13, 2012 at 9:06 PM, Jason Sherman <[email protected]> wrote:
> $context/mets:fileSec/mets:fileGrp[@USE='BRANDED_PREVIEW']/mets:file[@GROUPID=current()/@GROUPID]/mets:FLocat[@LOCTYPE='URL']/@xlink:href
Hi Jason,
are you using this in a template that matches match="mets:file"? Send
us the whole template and the METS document you're applying it to. You
can find the METS document on your instance here (example):
/metadata/handle/123456789/100/mets.xml
> 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?
OK, nice you found that out. How about doing something like this?
<xsl:variable name="$thumbnail_id"
select="substring($context/mets:fileSec/mets:fileGrp[@USE='THUMBNAIL']/mets:file[@GROUPID=current()/@GROUPID]/@ID,
5)"/>
<xsl:value-of select="$context/mets:fileSec/mets:fileGrp[@USE='THUMBNAIL']/
mets:file[@GROUPID= concat('group_file_', $thumbnail_id)
]/mets:FLocat[@LOCTYPE='URL']/@xlink:href"/>
This is completely off the top of my head and probably contains a
million bugs, but it should give you the idea.
> 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.
So you probably saw this page:
https://wiki.duraspace.org/pages/viewpage.action?pageId=27001634#TransformingDSpaceContent(MediaFilters)-CreatingCustomMediaFilters
Why not just make a copy of one of the classes here
https://github.com/DSpace/DSpace/tree/master/dspace-api/src/main/java/org/dspace/app/mediafilter
change the class name, add it to dspace.cfg and rebuild DSpace?
Shouldn't be harder than that.
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
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