Opened 19 years ago

Last modified 16 years ago

#1518 closed enhancement

MIME type XML for browse template — at Version 4

Reported by: j.l.h.hartmann@… Owned by: sdlime
Priority: high Milestone: 5.0.3 release
Component: Documentation - MapServer Version: unspecified
Severity: minor Keywords:
Cc: jmckenna

Description (last modified by hobu)

You can change the MIME header returned by MapServer for queries by using the
parameter QUERYFORMAT (in the WEB section). This works for query templates, but
not for normal ones (mode=browse). 

There would be more possibilities for AJAX applications if Mapserver CGI 
could return these templates as XML too, with the correct MIME-type and 
without the  comment header.

This would probably  require a BROWSEFORMAT option and supressing the comment.
There's a [version] tag to get at the build parameters anyway. 

And please add both keywords to the documentation.

Jan

Change History (4)

comment:1 by sdlime, 18 years ago

Cc: mapserver-bugs@… added
Milestone: 4.8 release
Status: newassigned
Someone also wanted this level of control for HTML legends. Dan, this is a new 
feature, but a small one. Any objection to trying to get this into 4.8?

Steve

comment:2 by dmorissette, 18 years ago

No problem. This sounds simple enough and we still have at least 2 betas before
the release.

comment:3 by sdlime, 18 years ago

Ok, I have committed the fix for this. There are two new parameters 
(browseformat and legendformat). Both, like for queryformat, default 
to "text/html".

Todo's: 

 1) PHP/MapScript probably needs to explicitly be able to set them
 2) Documentation

Since something like this is CGI specific 1) is not a high priority. 2) is and 
I'll take care of that on the new website.

Leaving bug "as is" until those happen.

Steve

comment:4 by hobu, 17 years ago

Description: modified (diff)

Can this one be closed now? Does it need to go in the doc bug bucket?

Note: See TracTickets for help on using tickets.