Difference between revisions of "NaviKey sample data"

From Biowikifarm Metawiki
Jump to: navigation, search
Line 1: Line 1:
==Test of EFG==
+
==Test of NaviKey==
  
'''An EFG key running inside the wiki'''  
+
'''An interactive key using NaviKey.'''  
  
In contrast to the [[FlexKey_sample_data|FlexKey]] or [[NaviKey_sample_data|NaviKey]] samples this keys directly connects to code and data stored on the [http://efg.cs.umb.edu/ EFG website]. It can still be highly useful to be embedded in various learning systems.
+
This test uses the DELTA example dataset delivered with [[NaviKey]]5. All files are directly editable inside the Wiki, no special upload functionality is necessary.
  
 
----
 
----
  
 
<IdentificationTool>
 
<IdentificationTool>
   tool=EFG-Key2
+
   tool=NaviKey5
   width=100%
+
   config=../../MetaWiki/index.php?title=NaviKey_sample_data/NavikeyConfig.xml&action=raw
  height=820
+
  config=Ithomids
+
 
</IdentificationTool>
 
</IdentificationTool>
 
   
 
   
 
----
 
----
  
The key above is 100% width and fixed height (820). The key below is the same key narrower and embedded in a table.
+
==Notes==
  
{|
+
* ''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
|<IdentificationTool>
+
 
   tool=EFG-Key2
+
The key uses DELTA data which reside in the following wiki pages:
   width=600
+
* [[NaviKey sample data/DeltaChars]], [[NaviKey sample data/DeltaItems]], [[NaviKey sample data/DeltaSpecs]], [[NaviKey sample data/DeltaTImages]]
   height=820
+
* [[NaviKey sample data/NavikeyConfig.xml]]
   config=Ithomids
+
 
</IdentificationTool>
+
Using the links above you can edit the files (or update by simply overwrite with updated content using the clipboard).
| You can layout your key freely, include it in a table and surround it with images.
+
 
|-
+
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:10, 15 September 2008

Test of NaviKey

An interactive key using NaviKey.

This test uses the DELTA example dataset delivered with NaviKey5. All files are directly editable inside the Wiki, no special upload functionality is necessary.



Powered by: NaviKey. Do you have problems viewing the key? Try This.


Notes

  • 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:

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 ../../MetaWiki/index.php?title=YOURPAGENAME&action=raw, where YOURPAGENAME is the page name (you cannot use short-url-paths like ../../meta/YOURPAGENAME&action=raw). 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 "&"!).

  • For testing purposes, the key is also running in conventional Navikey mode (static file upload, without using the wiki) 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:

<IdentificationTool> tool=NaviKey5 DeltaChars=NameOfYourDeltaCharsPage DeltaItems=NameOfYourDeltaItemsPage DeltaSpecs=NameOfYourDeltaSpecsPage DeltaTImages=NameOfYourDeltaTaxonImagesPage </IdentificationTool>

2. All DELTA directives can be passed in fewer files:

<IdentificationTool> tool=NaviKey5 Delta1=NameOfPageWithAllDeltaData </IdentificationTool>

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.