#6477 closed enhancement (fixed)
Open a link on a ref:*=* tag
Reported by: | FrViPofm | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin | Version: | |
Keywords: | Cc: |
Description (last modified by )
An idea of improvment. For the core or for a plugin...
A lot of elements have tags like ref:*=*, wikipedia=*, that could be linked to a web page.
On mapping those links could be useful to get information on the element and improve it.
It should be interesting to have a way to store strings with a template of the link where a patern (e.g. $1) would be replaced by the value of the tag. When such an element is active, the link is available to open the coresponding page on the browser.
For each service, tree values would be sotred :
- the name of the tag
- the name for the GUI
- the template of the url
Some examples :
- wikipedia -> http://wikipedia.org/wiki/$1
- ref:sandre -> http://services.sandre.eaufrance.fr/Courdo/Fiche/client/fiche_courdo.php?CdSandre=$1 (example of value : J3--0180)
- ref:whc -> http://whc.unesco.org/fr/list/ (example of value : 660)
- url : $1
- website : $1
I'm unable to develop this kind of stuff. But it would not be too difficult to reuse the code of the information, or history buttons.
Attachments (0)
Change History (4)
comment:1 by , 13 years ago
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 13 years ago
There is also such fuctionality (without context menu) in UtilsPlugin2 (More tools - Open custom URL), links are configurable via panel in F12 preferences.
comment:3 by , 13 years ago
Indeed, we created tag2link on the basis of these ideas :) Sorry for not having closed the ticket at the same time :)
comment:4 by , 13 years ago
Sorry for not creating a ticket or even editing wiki when I implemented the same - started in [o26603] :)
You can use any code or ideas (configuration table and storing prefernces, for example) if needed. Sometimes context menu is really more convenient than single shortcut and your data-retrieving functionality is really more functional.
The plugin Tag2Link appears to provide this suggested enhancement.
http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Tag2Link