From:
Ben Parkes <Ben.P...@ed.ac.uk>
Date: Friday, 25 August 2023 at 15:55
To: DSpace Community <dspace-commun...@googlegroups.com>
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