Mark,  I realize now that I can’t count on the dso object to have item in it, 
so I will use the parameters passed in. Hopefully soon I will have a page show 
up.  Thanks again for your help!

From: Blanco, Jose [mailto:[email protected]]
Sent: Friday, April 20, 2012 11:18 AM
To: Mark Diggory
Cc: DSpace Tech
Subject: Re: [Dspace-tech] creating a new page in Mirage

Thanks Mark,  This is exactly what is happening – when I go addBody, this check 
is done:

       DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
        if (!(dso instanceof Item))
        {
            return;
        }


And the return is executed.

But how do I get the objectModel to get the dso object.  I’m trying to 
implement the request copy functionality in xmlui so what I’m doing is in 
BitstreamReader.java, I’m checking if the item is one where a request-copy page 
needs to be generated.  This is the code I created:

                    else if ( requestcopy )
                    {
                                
///request-item?handle=TEMP-BOGUS/200308&bitstream-id=487539 "

                                String redictURL = request.getContextPath() + 
"/request-item?handle=";
                                if (item!=null){
                                    redictURL += item.getHandle();
                                }
                                else if(dso!=null){
                                    redictURL += dso.getHandle();
                                }
                                redictURL += "&bitstream-id=" + 
bitstream.getID();

                                HttpServletResponse httpResponse = 
(HttpServletResponse)
                                    
objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT);
                                httpResponse.sendRedirect(redictURL);
                                return;
                    }

From: [email protected] [mailto:[email protected]] On Behalf Of Mark Diggory
Sent: Thursday, April 19, 2012 7:47 PM
To: Blanco, Jose
Cc: DSpace Tech
Subject: Re: [Dspace-tech] creating a new page in Mirage

Jose,

Lately my pile of DSpace list emails has built up to the point I can't deal 
with it...

The question is what are in these transformers you are adding?  You might try 
testing with a very basic transformer from the xmltest aspect to make sure its 
not that the transformer is "not adding any body content" to the pipeline. if 
the dri body tag remains empty for the entire pipeline of transforms, then you 
will get a page not found.

Mark


On Thu, Apr 19, 2012 at 11:10 AM, Blanco, Jose 
<[email protected]<mailto:[email protected]>> wrote:
I'm still stuck on this.  I changed

From:
ArtifactBrowser/sitemap.xmap:            <map:match pattern="statistics">
To:
ArtifactBrowser/sitemap.xmap:            <map:match pattern="statisticsABC">

And /statistics works the way it should, and I get PageNotFound for 
/statisticsABC

I was expecting /statisticsABC to work, and /statistics to not work.

What am I missing?

-Jose
-----Original Message-----
From: Blanco, Jose [mailto:[email protected]<mailto:[email protected]>]
Sent: Thursday, April 19, 2012 11:43 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [Dspace-tech] creating a new page in Mirage

I have no idea why I'm not getting a page with this request.

-----Original Message-----
From: Blanco, Jose [mailto:[email protected]<mailto:[email protected]>]
Sent: Wednesday, April 18, 2012 1:50 PM
To: [email protected]<mailto:[email protected]>
Subject: [Dspace-tech] creating a new page in Mirage

I have added this link from one of the pages:

http://xxxxx.lib.umich.edu/request-item?handle=TEMP-BOGUS/200308&bitstream-id=487539


and I added a transform by the name RequestItem.java  and I added the following

           <!-- restricted resource -->
           <map:match pattern="request-item">
                <map:transform type="RequestItem"/>
                <map:serialize type="xml"/>
           </map:match>

To the sitemap.xmap file in aspects/ArtifactBrowser area.

But when I try to go to the link I get a PageNotFound error.  I have not yet 
changed the Mirage files to handle this, but was actually expecting some sort 
of badly displayed page since there is no xsl to handle my request.  Is there 
anything obvious that I'm forgetting or doing wrong.

Thank you!
Jose

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to monitoring Big 
Data applications. Try Boundary one-second resolution app monitoring today. 
Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
DSpace-tech mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
DSpace-tech mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/dspace-tech



--
[Description: Image removed by sender. @mire Inc.]

Mark Diggory (Schedule a Meeting<https://tungle.me/markdiggory>)
2888 Loker Avenue East, Suite 305, Carlsbad, CA. 92010
Esperantolaan 4, Heverlee 3001, Belgium
http://www.atmire.com<http://www.atmire.com/>


<<inline: image001.jpg>>

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to