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]<mailto:[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]<mailto:[email protected]>]
> Sent: Friday, July 22, 2011 4:50 PM
> To: Mark Diggory
> Cc: 
> [email protected]<mailto:[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]<mailto:[email protected]>]
> Sent: Friday, July 22, 2011 3:25 PM
> To: Blanco, Jose
> Cc: 
> [email protected]<mailto:[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]<mailto:[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">
>>                    <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><

--
Mark R. Diggory
@mire - www.atmire.com<http://www.atmire.com/>
2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010
Esperantolaan 4 - Heverlee 3001 - Belgium
------------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to