Hello, Adam, Elliot --

The application is question right now is a pure javascript application, 
IIPMooViewer, that is designed to work with Djatoka.  One of my 
colleagues is modifying that application for our own environment, and 
she is currently getting some information from the javascript location 
property.

My question was slightly a more philosophical one... many web 
applications out there in the world do not rely entirely on relative 
URLs, which can make them tricky to integrate with a disseminator. 
Also, there's the overhead of passing requests to an application through 
a disseminator -- I'd rather avoid having every request to a web 
application go through Fedora, if there's no need beyond the first request.

The use case I'm thinking of is where the disseminator simply becomes a 
gateway to a representation of the digital object that is handled 
elsewhere:  Fedora's role, in this case, is to provide that entry point, 
hand off the resource to the external application, then step out of the 
picture.

One workaround we're trying out this morning:  have the disseminator 
point to an external URL managed by Apache;  Apache then grabs the bits 
of the request it needs using mod_rewrite, builds a new URL, and does a 
RedirectPermanent to the new location.  Slightly more elegant, in that 
we don't need to maintain a separate web service just to do a redirect.

-- Scott

[email protected] wrote:
> Scott--
> 
> Can you say a little more about this backend service in particular? Does it 
> feature any means by which to adjust or prefix the URLs that it produces?
> 
> ---
> A. Soroka
> Digital Research and Scholarship R & D
> the University of Virginia Library
> 
> 
> 
> On Feb 4, 2010, at 10:20 AM, Scott Prater wrote:
> 
>> Has anyone had any experience creating disseminators that send redirects 
>> to the browser?
>>
>> Here's what we want to do:  create a disseminator that redirects the 
>> user's browser to an external web application, passing along to the 
>> external application an object PID or datastream url.
>>
>> The problem we're having is that disseminators serve the output of the 
>> external web application as if it were coming from Fedora, serving, in 
>> effect, as a reverse proxy to the external webapp.  This breaks all the 
>> links and mappings in the external application's javascripts.
>>
>> I know we could do a workaround by creating Redirect datastreams with 
>> the URL to the external application, but I want to avoid doing that for 
>> two reasons:
>>
>>   -- I don't want to have to update all the objects if my web service 
>> changes;  and
>>   -- I want to keep clean the distinction between content (datastreams) 
>> and behaviors (disseminations) (or, to put it RESTfully, between a 
>> resource and its representations).  By mapping a behavior to a 
>> datastream, I'm conflating the resource (the content) and the viewer 
>> (the web application).
>>
>> Another approach I've used before is to have the disseminator point to a 
>> webservice that constructs a redirect header to send back to the 
>> browser, but that also strikes me as a hack.
>>
>> Has anyone had this problem before?  How do others approach this?
>>
>> thanks,
>>
>> -- Scott
>>
>> -- 
>> Scott Prater
>> Library, Instructional, and Research Applications (LIRA)
>> Division of Information Technology (DoIT)
>> University of Wisconsin - Madison
>> [email protected]
>>
>> ------------------------------------------------------------------------------
>> The Planet: dedicated and managed hosting, cloud storage, colocation
>> Stay online with enterprise data centers and the best network in the business
>> Choose flexible plans and management services without long-term contracts
>> Personal 24x7 support from experience hosting pros just a phone call away.
>> http://p.sf.net/sfu/theplanet-com
>> _______________________________________________
>> Fedora-commons-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
> 
> 
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Fedora-commons-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users


-- 
Scott Prater
Library, Instructional, and Research Applications (LIRA)
Division of Information Technology (DoIT)
University of Wisconsin - Madison
[email protected]

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to