public class OpenURLReader
extends org.apache.cocoon.reading.AbstractReader
implements org.apache.avalon.excalibur.pool.Recyclable
| Modifier and Type | Field and Description |
|---|---|
protected Context |
context |
protected HandleService |
handleService |
protected javax.servlet.http.HttpServletResponse |
httpResponse
The Servlet Response
|
protected org.apache.cocoon.environment.Request |
request
The Cocoon request
|
protected org.apache.cocoon.environment.Response |
response
The Cocoon response
|
| Constructor and Description |
|---|
OpenURLReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate() |
void |
handleLegacy() |
void |
handleZ39882004()
Validate supported formats.
|
void |
recycle() |
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters par) |
protected org.apache.cocoon.environment.Response response
protected org.apache.cocoon.environment.Request request
protected javax.servlet.http.HttpServletResponse httpResponse
protected Context context
protected HandleService handleService
public void generate()
throws IOException,
SAXException,
org.apache.cocoon.ProcessingException
generate in interface org.apache.cocoon.reading.ReaderIOExceptionSAXExceptionorg.apache.cocoon.ProcessingExceptionpublic void setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters par)
throws org.apache.cocoon.ProcessingException,
SAXException,
IOException
setup in interface org.apache.cocoon.sitemap.SitemapModelComponentsetup in class org.apache.cocoon.reading.AbstractReaderorg.apache.cocoon.ProcessingExceptionSAXExceptionIOExceptionpublic void recycle()
recycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class org.apache.cocoon.reading.AbstractReaderpublic void handleLegacy()
throws IOException
IOExceptionpublic void handleZ39882004()
throws IOException,
org.apache.cocoon.ProcessingException,
SQLException
We can deal with various formats if they exist such as journals and books, but we currently do not have specific needs to represent different formats, thus it may be more appropriate to use Dublin Core here directly.
rft_val_fmt=info:ofi/fmt:kev:mtx:dc
See Dublin Core OpenURL Profile Citation Guidelines:
What happens when we use Context Objects of different versions? Do
they exist? ctx_ver=Z39.88-2004
COinS will be implemented as:
<span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.issn=1045-4438">
<A HREF="http://library.example.edu/?url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.issn=1045-4438">
Find at Example Library
</A>
</span>
If a ctx_id is present, use it to resolve the item directly.
Otherwise, use the search mechanism. Our ctx_ids are going to be
local handle identifiers like the following:
ctx_id=10255/dryad.111
Global identifiers will be any other valid dc.identifier present
within that field. Thus:
dc.identifier.uri http://dx.doi.org/10.1080/106351598260806
dc.identifier.uri http://hdl.handle.net/10255/dryad.111
will lead to
rft.identifier=http%3A%2F%2Fdx.doi.org%2F10.1080%2F106351598260806
rft.identifier=http%3A%2F%2Fhdl.handle.net%2F10255%2Fdryad.111
and thus be resolvable as wellIOException - passed through.org.apache.cocoon.ProcessingException - on unknown formats.SQLException - passed through.Copyright © 2016 DuraSpace. All rights reserved.