On Fri, Oct 26, 2012 at 10:16 PM, Alain Tschanz <[email protected]> wrote: > How do I display the checksum of a bitstream in the item record? Patrons > would like to have a way to compare the checksum on DSpace with the checksum > generated on their own computer once they download a DSpace document.
Hi Alain, you can find it in the METS document. Example: http://demo.dspace.org/xmlui/metadata/handle/10673/145/mets.xml To display something from the METS XML document in your theme, you should: 1) construct the URL to the document based on current item's handle 2) read the external XML file using the document() call 3) navigate it using xquery to get the value of the CHECKSUM attribute. It will actually be a (long) one-liner, but I'll leave it up to you as an exercise :) If you have a problem with any of the steps, let me know. When you're done, post the one-liner here for reference. Regards, ~~helix84 ------------------------------------------------------------------------------ WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

