From: Ben Parkes <[email protected]>
Date: Friday, 25 August 2023 at 15:55
To: DSpace Community <[email protected]>
Subject: Check if item has file in search results list

Hello,



I am working on an instance of DSpace 7.6 and I have a use case where I am 
required to display if an item has a file/bitstream attached to it and, if yes, 
display a download link to that file/bitstream. In all cases the file/bitstream 
will be a pdf file.



I had implemented this previously in 6.x by getting the bitstream info 
(<xsl:variable name=”bitstreaminfo” select=”util:getBitstreamInfo($handle)/>) 
then checking if the metsDoc string contains “pdf” (<xsl:when 
test="normalize-space($bitstreaminfo)">) and creating a download link if the 
Boolean returns true.



I am curious if there is a way to do something similar in the new Angular 
frontend? I am in the process of upgrading the repository and the client would 
like to retain all the previous functionality.



Thanks,

Ben

____________________________
Ben Parkes
Digital Library Software Developer
Digital Library, Library & University Collections, University of Edinburgh
Argyle House, Lady Lawson Street, Edinburgh EH3 9DR
Pronouns: He, him, his

The University of Edinburgh is a charitable body, registered in Scotland, with 
registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh 
Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-community/DU0PR05MB984288869F4CA9AA86281542BEE3A%40DU0PR05MB9842.eurprd05.prod.outlook.com.

Reply via email to