Difference between revisions of "NaviKey sample data"

From Biowikifarm Metawiki
Jump to: navigation, search
Line 9: Line 9:
 
<IdentificationTool>
 
<IdentificationTool>
 
   tool=EFG-Key2
 
   tool=EFG-Key2
   width=820
+
   width=100%
 
   height=820
 
   height=820
 
   config=Ithomids
 
   config=Ithomids
Line 15: Line 15:
 
   
 
   
 
----
 
----
 +
 +
The key above is 100% width and fixed height (820). The key below is the same key narrower and embedded in a table.
  
 
{|
 
{|
Line 20: Line 22:
 
|<IdentificationTool>
 
|<IdentificationTool>
 
   tool=EFG-Key2
 
   tool=EFG-Key2
   width=820
+
   width=600
 
   height=820
 
   height=820
 
   config=Ithomids
 
   config=Ithomids
 
</IdentificationTool>
 
</IdentificationTool>
| You can layout your key freely, include it in a table and surround it with images  
+
| You can layout your key freely, include it in a table and surround it with images.
 
|-
 
|-
 
|}
 
|}
 
 
 
 
 
==Notes==
 
 
* The parameters ''Optional parameters are:'' height=600px, width=100%, align=center; the value shown will be used if the parameters are omitted.
 
* ''Future parameters  are:'' (in planning to avoid creating config.xml for each identification tool) are: DeltaChars=NameOfYourDeltaCharsPage, DeltaItems=NameOfYourDeltaItemsPage, DeltaSpecs=NameOfYourDeltaSpecsPage, DeltaTImages=NameOfYourDeltaTaxonImagesPage
 
 
The key uses DELTA data which reside in the following wiki pages:
 
* [[NaviKey sample data/DeltaChars]], [[NaviKey sample data/DeltaItems]], [[NaviKey sample data/DeltaSpecs]], [[NaviKey sample data/DeltaTImages]]
 
* [[NaviKey sample data/NavikeyConfig.xml]]
 
 
Using the links above you can edit the files (or update by simply overwrite with updated content using the clipboard).
 
 
Technical notes: To access the content in raw data mode (e.g. for the config-file), use <code>../../MetaWiki/index.php?title=YOURPAGENAME&action=raw</code>, where YOURPAGENAME is the page name (you cannot use short-url-paths like <code>../../meta/YOURPAGENAME&action=raw</code>). See the content of the config.xml for an example (note that the Navikey config is an xml file, so that the the "&"-character must be escaped as "<nowiki>&amp;</nowiki>"!).
 
 
* For testing purposes, the key is also running in conventional Navikey mode (static file upload, without using the wiki) [http://www.phytopathology.net/Tools/Navikey/DeltaSampleData/index.html here].
 
 
===Further simplification ideas===
 
 
1. Config parameter defaults to a data-independent standard config file, the DELTA data files can be passed directly in parameters:
 
 
<nowiki><IdentificationTool>
 
  tool=NaviKey5
 
  DeltaChars=NameOfYourDeltaCharsPage
 
  DeltaItems=NameOfYourDeltaItemsPage
 
  DeltaSpecs=NameOfYourDeltaSpecsPage
 
  DeltaTImages=NameOfYourDeltaTaxonImagesPage
 
</IdentificationTool></nowiki>
 
 
2. All DELTA directives can be passed in fewer files:
 
 
<nowiki><IdentificationTool>
 
  tool=NaviKey5
 
  Delta1=NameOfPageWithAllDeltaData
 
</IdentificationTool></nowiki>
 
 
Optionally, multiple parts can be given, using parameters like "Delta2=NameOfSecondPart".
 
 
----
 
 
See http://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Raw for more information on raw. Problem: the result is always considered a php file and titled "index.php". The extension http://www.mediawiki.org/wiki/Extension:RawFile adds the ability to download portions and give a different filename.
 

Revision as of 23:08, 15 September 2008

Test of EFG

An EFG key running inside the wiki

In contrast to the FlexKey or NaviKey samples this keys directly connects to code and data stored on the EFG website. It can still be highly useful to be embedded in various learning systems.


<p>Unable to start java plugin.</p>

Data and application provided by UMass Boston, Electronic Field Guide Project, used by permission.


The key above is 100% width and fixed height (820). The key below is the same key narrower and embedded in a table.

<p>Unable to start java plugin.</p>

Data and application provided by UMass Boston, Electronic Field Guide Project, used by permission.

You can layout your key freely, include it in a table and surround it with images.