diff options
| author | rsudev <rasch@munin-soft.de> | 2013-12-04 20:49:11 +0100 |
|---|---|---|
| committer | rsudev <rasch@munin-soft.de> | 2013-12-04 20:49:11 +0100 |
| commit | 61b757939f09f2dd99afb87473c09d31bcde060f (patch) | |
| tree | d97e437b63e169cf9887282a5ef5f7078d87cfba /main/project/attributes_okapi/readme.txt | |
| parent | 0fa683cd287cac981c5a76995e2dcc470234e29f (diff) | |
| download | cgeo-61b757939f09f2dd99afb87473c09d31bcde060f.zip cgeo-61b757939f09f2dd99afb87473c09d31bcde060f.tar.gz cgeo-61b757939f09f2dd99afb87473c09d31bcde060f.tar.bz2 | |
Move attributes from opencaching.de ids to okapi acodes
Diffstat (limited to 'main/project/attributes_okapi/readme.txt')
| -rw-r--r-- | main/project/attributes_okapi/readme.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/main/project/attributes_okapi/readme.txt b/main/project/attributes_okapi/readme.txt index 5382ebe..f3e812c 100644 --- a/main/project/attributes_okapi/readme.txt +++ b/main/project/attributes_okapi/readme.txt @@ -1,10 +1,10 @@ -In the current version of OKAPI (rev. 798) are attributes not returned with a unified id but only with the localized text. -Luckily a metadata file to prepare the unification of these attributes has already been prepared by the OKAPI project -(http://code.google.com/p/opencaching-api/source/browse/trunk/etc/attributes.xml), which do not officially publish as a stable definition, -but which can serve as an easier starting point for the generation of a parser class. -To allow the representation with icons we need to map these localized texts to our internal ids which is done with a parser -generated from the aforementioned file. Soo the AttrGen project for more details. +In the current version of OKAPI (roughly rev. 890 and onwards) are attributes returned with a unified id, the acode. +The metadata file to define the unified attributed is available under: +http://opencaching-api.googlecode.com/svn/trunk/okapi/services/attrs/attribute-definitions.xml +which do not officially publish as a stable definition, but which can serve as a starting point for the generation of an attribute list. +In the future we can get an updated list also from okapi, but this does not contain references between the local oc ids and the acodes. If attributes.xml will be updated, we need of course to check first if it is structurally compatible to the previous version. If present it seems to be necessary to remove the BOM at the beginning of the file. Then you can run genattr.sh -and copy the generated AttributeParser.java to the appropriate location (connector.oc). +and copy new lines from attrlist.txt to the iconlist.txt in the attributes folder and continue there with the proper generation +of icons and enumerations and such. |
