Hey Mark, Have you had a chance to look at this. I know it's Monday, and you probably have higher priority, but if you have a chance let me know.
Thank you! JOse -----Original Message----- From: Blanco, Jose [mailto:blan...@umich.edu] Sent: Friday, July 22, 2011 4:50 PM To: Mark Diggory Cc: dspace-tech@lists.sourceforge.net; Mark H. Wood Subject: Re: [Dspace-tech] from aspect to theme Mark, I have deployed these changes and when I get to a restricted item I just get a page with no data: ( not sure if you can see this. If it ask you for username and password, I can send it to you separately ) http://blancoj.dev.deepblue.lib.umich.edu/handle/TEMP-BOGUS/190931 This of course makes sense, since I have nothing really in my TombstoneView.pm file. Here it is: public class TombstoneView extends AbstractDSpaceTransformer { public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { DSpaceObject dso = HandleUtil.obtainHandle(objectModel); if (!(dso instanceof Item)) { return; } // Set up the major variables Item item = (Item) dso; Division home = body.addDivision("test-tombstone", "message"); } } -----Original Message----- From: Mark Diggory [mailto:mdigg...@atmire.com] Sent: Friday, July 22, 2011 3:25 PM To: Blanco, Jose Cc: dspace-tech@lists.sourceforge.net; Mark H. Wood Subject: Re: [Dspace-tech] from aspect to theme On Fri, Jul 22, 2011 at 12:15 PM, Blanco, Jose <blan...@umich.edu> wrote: > Mark, I think I understand your directions. Sorry if I'm being hard headed > about this, but I'm hoping that making this change will help me get smarter > about Manakin and Cocoon. Of course… > So, I created the selector. I think it does what is suppose to do. > > I've changed the sitemap in the ArtifactBrowse as you suggested. BTW, I > don't quite understand what the difference is between ArtifactBrowse, > BrowseArtifacts, and ViewArtifacts. Can you explain it without too much > trouble? We will consider replicating your site map work in ViewArtifacts, these three new aspects separate out Browse and Search from viewing Items and are meant to eventually replace the ArtifactViewer aspect. > > Here is a the change to the sitemap file. I think it's what you suggested: yep, thats it. > <map:match type="HandleAuthorizedMatcher" pattern="!READ"> > <map:select type="WithdrawnSelector"> > <map:when test="true"> > <map:transform type="TombstoneView"/> > <map:serialize type="xml"/> > </map:when> > <map:otherwise> > <map:select type="AuthenticatedSelector"> > <map:when test="eperson"> > <map:transform type="RestrictedItem"/> > <map:serialize/> > </map:when> > <map:otherwise> > <map:act type="StartAuthentication"> > <map:parameter name="header" > value="xmlui.ArtifactBrowser.RestrictedItem.auth_header"/> > <map:parameter name="message" > value="xmlui.ArtifactBrowser.RestrictedItem.auth_message"/> > </map:act> > <map:serialize/> > </map:otherwise> > </map:select> > </map:otherwise> > </map:match> > > Now, I have my new transformer aspect/artifactbrowse/TombstoneView.java, and > I'm not exactly sure how to change it. I copied the ItetemViewer.java file > to TombsotneView.java, but how do I change the output of the body that is > output? What needs to be output so that the themes know what to do? I would start out very simple, don't copy ItemViewer, instead start by just making a barebones body that contains a simple Div and some text. The first objective before working on how the rendering will work is to first verify if your solution will properly present the tombstone page when the item is withdrawn. > Thank you so much for this help!!!! Absolutely, and thank you too, this is a feature we need to get finished out in DSpace XMLUI… Mark -- Mark R. Diggory @mire - www.atmire.com 2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010 Esperantolaan 4 - Heverlee 3001 - Belgium ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech