Mark, I have something that shows the metadata and unlinkable files like Jim wanted. Many thanks for your guidance through this. I still have to do a couple of things more, and clean up the code, but I feel like I'm real close to complete with this.
Thank you again! Jose -----Original Message----- From: Blanco, Jose [mailto:[email protected]] Sent: Tuesday, July 26, 2011 1:47 PM To: Mark Diggory Cc: DSpace Developers Subject: Re: [Dspace-devel] [Dspace-tech] from aspect to theme Thanks! I will talk this over with Jim and see if he wants to narrow the display. In order to behave just like the jspui, I wanted to just show the short display with the reason and disable the link to the bitstream, that's kind of why I was trying to duplicate the "regular display" and just make it a bit different. I added a table and now have some metadata showing, unfortunately I have no labels for the metadata. I did declare a 3 column table, but am not sure how to add the I'm going to read the Row.java object and see how to make this more like a table, but here is my code. If you see something that is obvious that I'm missing, could you let me know. Division results = division.addDivision("browse-dislay-results", "primary"); Table singleTable = results.addTable("display-meta-results", 10, 3); DCValue[] titles = item.getDC("title", Item.ANY, Item.ANY); DCValue[] authors = item.getDC("contributor", "author", Item.ANY); DCValue[] abstracts = item.getDC("description", "abstract", Item.ANY); String handle = item.getHandle(); if (titles != null && titles.length > 0) { singleTable.addRow(Row.ROLE_HEADER).addCell().addContent(titles[0].value); } http://blancoj.dev.deepblue.lib.umich.edu/handle/TEMP-BOGUS/190931 -----Original Message----- From: Mark Diggory [mailto:[email protected]] Sent: Tuesday, July 26, 2011 1:21 PM To: Blanco, Jose Cc: DSpace Developers Subject: Re: [Dspace-devel] [Dspace-tech] from aspect to theme Jose, Withdraw is at the Item level, so I'd assume theres no reason to show more detail about the item other than maybe its title and handle, possibly its authors. Yes, you could possibly create a table and populate it some detail about the bitstreams, but without any links to download etc. Because its withdrawn, I'd assume your organization isn't interested in showing off too much detail about the item, rather, just that it was removed from the archive with a tombstone containing some citation details and possibly a contact email and/or form to request further detail on the item from the repository managers. I was treating this more like the behavior found when attempting to view a restricted item rather than the behavior found in ItemViewer. Here, the content generated is more to inform the user concerning the status without exposing details about the Item, which already has been removed from Search, Browse and likewise, has been restricted from being shown in ItemViewer altogether. Mark On Tue, Jul 26, 2011 at 9:29 AM, Blanco, Jose <[email protected]> wrote: > Mark, > > > > So what I have to do is > > 1. Find all the meta data I want to display, say: title, authors, > abstract, handle, date issued, and then add them to say a DRI table, > > 2. Create a table for the bitstreams and add them in there to a > different table along with the reason for with draw. > > 3. Find out the collections listed and add them to the DRI ( not sure > to what tag? ). > > > > Is there a good aspect that does something like this that I can look at? > One that just uses the DRI. > > > > Thanks! Jose > > > > From: Mark Diggory [mailto:[email protected]] > Sent: Monday, July 25, 2011 5:05 PM > To: Blanco, Jose > Cc: Mark Diggory; DSpace Developers > Subject: Re: [Dspace-devel] [Dspace-tech] from aspect to theme > > > > Jose, > > Don't use the ReferenceSet approach, instead of using reference set use DRI > div and add the text you want from the item directly to the view. This means > it will use the default DRI xslt rendering rather than using the METS xslt's > to render your output. Which will be much simpler. You will not even have > to write any xsl templates for the DRI content your adding to the view. > > I say to use the logic to retrieve and validate the item from ItemViewer so > that it's cached properly if for instance the withdrawn state is dropped and > the item is returned to the archive. > > Best, > Mark > > On Monday, July 25, 2011, Blanco, Jose <[email protected]> wrote: >> Mark, I’ve added more of less the stuff that;s in ItemViewer and now you >> can see the short display. But I still don’t see how I can include the >> reason for withdraw and disable the links to the bitstreams without making a >> change to the themes. >> >> >> >> http://blancoj.dev.deepblue.lib.umich.edu/handle/TEMP-BOGUS/190931 >> >> >> >> -Jose >> >> >> >> From: [email protected] [mailto:[email protected]] On Behalf Of Mark >> Diggory >> Sent: Monday, July 25, 2011 4:09 PM >> To: Blanco, Jose >> Cc: DSpace Developers >> Subject: Re: [Dspace-tech] from aspect to theme >> >> >> >> This makes sense. I would test it with actual text in the body of the div. >> Then I would review the codebase around item view or others and borrow >> getting the Item from that code. Yoummay need to add wildcards and >> parameterization in the site map to pass the values into your transformer. >> >> Mark >> >> On Monday, July 25, 2011, Blanco, Jose <[email protected]> wrote: >>> 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:[email protected]] >>> Sent: Friday, July 22, 2011 4:50 PM >>> To: Mark Diggory >>> Cc: [email protected]; 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:[email protected]] >>> Sent: Friday, July 22, 2011 3:25 PM >>> To: Blanco, Jose >>> Cc: [email protected]; Mark H. Wood >>> Subject: Re: [Dspace-tech] from aspect to theme >>> >>> On Fri, Jul 22, 2011 at 12:15 PM, Blanco, Jose <[email protected]> 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"> >>>> > > -- > Mark R. Diggory > @mire - www.atmire.com > 2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010 > Esperantolaan 4 - Heverlee 3001 - Belgium -- Mark R. Diggory @mire - www.atmire.com 2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010 Esperantolaan 4 - Heverlee 3001 - Belgium ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ Dspace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-devel ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ Dspace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-devel ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Dspace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-devel
