[
https://jira.duraspace.org/browse/DS-1055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=22895#comment-22895
]
Àlex Magaz Graça edited comment on DS-1055 at 10/25/11 10:47 AM:
-----------------------------------------------------------------
I didn't thought about the second case, so I've updated the patch adding the
following clause:
or not(/atom:entry/oreatom:triples/rdf:Description[@rdf:about=$link_href])
but maybe the following one would be safer in case there is a rdf:Description
generated by a non-DSpace source:
or not(/atom:entry/oreatom:triples/rdf:Description[@rdf:about=$link_href]/
rdf:type[@rdf:resource='http://www.dspace.org/objectModel/DSpaceBitstream'])">
was (Author: alexm):
I didn't thought about the second case, so I've updated the patch adding
the following clause:
{{or not(/atom:entry/oreatom:triples/rdf:Description[@rdf:about=$link_href])}}
but maybe the following one would be safer in case there is a rdf:Description
generated by a non-DSpace source:
{{or not(/atom:entry/oreatom:triples/rdf:Description[@rdf:about=$link_href]/
rdf:type[@rdf:resource='http://www.dspace.org/objectModel/DSpaceBitstream'])">}}
> References to bitstreams not from the 'ORIGINAL' bundle are shown in
> harvested items
> ------------------------------------------------------------------------------------
>
> Key: DS-1055
> URL: https://jira.duraspace.org/browse/DS-1055
> Project: DSpace
> Issue Type: Bug
> Components: XMLUI
> Reporter: Àlex Magaz Graça
> Assignee: Scott Phillips
> Fix For: post-1.8.0
>
> Attachments: only-show-ORIGINAL-bitstreams.patch
>
>
> When harvesting a collection with references to bitstreams (ORE) from another
> DSpace instance, all the bitstreams from the source repository are shown
> instead of only the ones in the 'ORIGINAL' bundle. For example, if a
> 'document.pdf' is shown in the item of the source repository, in the
> harvested item 'document.pdf.txt' (THUMBNAIL bundle) and 'license.txt'
> (LICENSE bundle) are also shown. It should look at the <dcterms:description>
> value in the RDFs statements of the corresponding bitstream to filter out the
> other bundles:
> [...]
> <atom:link [...]
> href="https://buleria.unileon.es/xmlui/bitstream/handle/10612/793/1945333.pdf.txt?sequence=4"
> title="1945333.pdf.txt" [...]/>
> [...]
> <rdf:Description
> rdf:about="https://buleria.unileon.es/xmlui/bitstream/handle/10612/793/1945333.pdf.txt?sequence=4">
> <rdf:type rdf:resource="http://www.dspace.org/objectModel/DSpaceBitstream"/>
> <dcterms:description>TEXT</dcterms:description>
> </rdf:Description>
> [...]
> snippet taken from here:
> https://buleria.unileon.es/oai/request?verb=GetRecord&metadataPrefix=ore&identifier=oai:buleria.unileon.es:10612/793
> I think the code to be fixed is in
> dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/dri2xhtml-alt/aspect/artifactbrowser/ORE.xsl
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel