Any idea on how to do that ? maybe by defining a new route ?
Thanks !
items/browse/output/dcmes-xml
This should work out of the box.
-John
HM.
On 7 déc, 18:37, John Flatness <j...@zerocrates.org> wrote:
> While we use the "?output=dcmes-xml" URL form by default, you should be
> able to get to a dcmes-xml output by going to:
>
> items/browse/output/dcmes-xml
>
> This should work out of the box.
>
> -John
>
> On 12/07/2011 12:12 PM, hms wrote:
>
>
>
>
>
>
>
> > Hello,
> > In order to build a light unAPI server on my site (in order to have
> > zotero readable Illustration items), i'd like to have an address
> > without get parameters for accessing my show.dcmes-xml.php files
> > (unAPI specshttp://unapi.info/specs/mention the fact that no ?
> --
> You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
> To post to this group, send email to omek...@googlegroups.com.
> To unsubscribe from this group, send email to omeka-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/omeka-dev?hl=en.
>
items/show/id/[itemId]/output/dcmes-xml
(items/show/[id]/output/dcmes-xml doesn't work; it returns an Omeka_Controller_Exception_404. The '/id/' is required, so Omeka knows what item ID to retrieve when using this URL formatting.)
Best,
Jeremy
So, the solution would'nt be then to add a route to reach the
show.dcmes-xml.php file, who would behave according to the presence or
not of a GET parameter ?
On 7 déc, 21:00, Jeremy Boggs <jer...@clioweb.org> wrote:
> To get the items/show URL without the query string, you can do:
>
> items/show/id/[itemId]/output/dcmes-xml
>
> (items/show/[id]/output/dcmes-xml doesn't work; it returns an Omeka_Controller_Exception_404. The '/id/' is required, so Omeka knows what item ID to retrieve when using this URL formatting.)
>
> Best,
> Jeremy
>
> On Dec 7, 2011, at 1:39 PM, Jim Safley wrote:
>
>
>
>
>
>
>
> > items/show/[itemId]?output=dcmes-xml
>
> > On Wed, Dec 7, 2011 at 1:21 PM, hms <hmsuch...@gmail.com> wrote:
> >> Ok, thanks. But how do you pass an item id, then ?
>
> >> HM.
>
> >> On 7 déc, 18:37, John Flatness <j...@zerocrates.org> wrote:
> >>> While we use the "?output=dcmes-xml" URL form by default, you should be
> >>> able to get to a dcmes-xml output by going to:
>
> >>> items/browse/output/dcmes-xml
>
> >>> This should work out of the box.
>
> >>> -John
>
> >>> On 12/07/2011 12:12 PM, hms wrote:
>
> >>>> Hello,
> >>>> In order to build a light unAPI server on my site (in order to have
> >>>> zotero readable Illustration items), i'd like to have an address
> >>>> without get parameters for accessing my show.dcmes-xml.php files
> >>>> (unAPI specshttp://unapi.info/specs/mentionthe fact that no ?
> >>>> should be present in the link for unAPI server).
>
> >>>> Any idea on how to do that ? maybe by defining a new route ?
> >>>> Thanks !
>
> >> --
> >> You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
> >> To post to this group, send email to omek...@googlegroups.com.
> >> To unsubscribe from this group, send email to omeka-dev+...@googlegroups.com.
> >> For more options, visit this group athttp://groups.google.com/group/omeka-dev?hl=en.
are reachable. I just get an error when no id is provided. Instead of
this, i'd like to have a specific behaviour, such as displaying a
specific rdf description for example.
Any idea on how to do that ?
Thank you !
HM.
> > >>>> (unAPI specshttp://unapi.info/specs/mentionthefact that no ?
Just one last single question to reach what specs says : it seems that
somewhere before executing that script, a header with application/rdf
+xml content type is sent. I'd just like to change it to application/
xml, or better remove that. Is it possible ? how to do that ?
Thanks !
HM.
On 8 déc, 12:31, hms <hmsuch...@gmail.com> wrote:
> Hello,
> Actually bothhttp://mysite.org/items/show/output/dcmes-xml?id=2133
> andhttp://mysite.org/items/show/output/dcmes-xml
> > > >>>> (unAPI specshttp://unapi.info/specs/mentionthefactthat no ?
Creating a plugin with a controller and view for an unAPI page would be a much better approach. You could set the header for that view from within your plugin as well, instead of trying to change the header for the dcmes-xml output.
Jeremy
Thanks,
HM.
> >>>>>>>> (unAPI specshttp://unapi.info/specs/mentionthefactthatno ?