Difference between revisions of "TitleKey"

From Biowikifarm Metawiki
Jump to: navigation, search
(Created page with '==What does the TitleKey extension do?== When you start typing into the search box the system provides below this box the names of the nearest matching names of pages which alrea...')
 
(Extensions -> MediaWiki Extensions)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==What does the TitleKey extension do?==
+
== What does the TitleKey extension do? ==
 
When you start typing into the search box the system provides below this box the names of the nearest matching names of pages which already exist. These "search suggestions" are a very useful tool and you can simply click on one of the search suggestions to jump to that page. However, except for the first letter these search suggestions are normally case sensitive. This means if you type "fed" you will get only the pages starting with "Fedora ..." and not those starting with "FEDORA ...". This is normally not wanted and the TitleKey extension makes the search suggestion case insensitive.
 
When you start typing into the search box the system provides below this box the names of the nearest matching names of pages which already exist. These "search suggestions" are a very useful tool and you can simply click on one of the search suggestions to jump to that page. However, except for the first letter these search suggestions are normally case sensitive. This means if you type "fed" you will get only the pages starting with "Fedora ..." and not those starting with "FEDORA ...". This is normally not wanted and the TitleKey extension makes the search suggestion case insensitive.
  
==Installation==
+
== Installation ==
 
Installation of the TitleKey extension requires command line operations on the server. Use the following steps:
 
Installation of the TitleKey extension requires command line operations on the server. Use the following steps:
*Change to the directory of the TitleKey extension for your wiki, e.g.
+
* Change to the directory of the TitleKey extension for your wiki, e.g.
<pre>
+
cd /var/www/metawiki/extensions/TitleKey/
cd /var/www/metawiki/extensions/TitleKey/
+
 
</pre>
+
* Create the table "titlekey" using the titlekey.sql file (replace "metawiki" by the name of your wiki)
*Create the table "titlekey" using the titlekey.sql file (replace "metawiki" by the name of your wiki)
+
mysql -u root -p --database=metawiki < titlekey.sql
<pre>
+
 
mysql -u root -p --database=metawiki < titlekey.sql
+
</pre>
+
 
Use "-p" instead of entering the password, you will get a prompt for the password.
 
Use "-p" instead of entering the password, you will get a prompt for the password.
*Check in mySQL if the table has been created.
+
* Check in mySQL if the table has been created.
*Fill the table with the names of the pages which exist already using the rebuildTitleKeys.php file and by providing a link to the respective LocalSettings.php file as described in [[Mediawiki_installation#Maintenance_scripts]], e.g.
+
* Fill the table with the names of the pages which exist already using the rebuildTitleKeys.php file and by providing a link to the respective LocalSettings.php file as described in [[Mediawiki_installation#Maintenance_scripts]], e.g.
<pre>
+
php rebuildTitleKeys.php --conf /var/www/metawiki/LocalSettings.php
php rebuildTitleKeys.php --conf /var/www/metawiki/LocalSettings.php
+
 
</pre>
+
* Check again in mySQL if the table has been filled.
*Check again in mySQL if the table has been filled.
+
* Add the following 2 lines to the end of the LocalSettings.php file
*Add the following 2 lines to the end of the LocalSettings.php file
+
require_once("$IP/extensions/TitleKey/TitleKey.php");
<pre>
+
$wgEnableMWSuggest = true;
require_once("$IP/extensions/TitleKey/TitleKey.php");
+
 
$wgEnableMWSuggest = true;
+
* Verify that the extension has been installed by opening the page [[Special:Version]].
</pre>
+
* Test the appearance of the search suggestions.
*Verfy that the extension has been installed by opening the page [[Special:Version]].
+
 
*Test the apearance of the search suggestions.
+
== Maintenance after Page Import ==
==Current Status==
+
 
The TitleKey extension has been installed on the '''[http://biowikifarm.net/test/ Test Wiki]''' and on this '''Meta Wiki''' (Mar. 2010).
+
After importing pages it may be necessary to reindex all titles:
 +
cd /var/www/virtual-wikipath; sudo -u www-data php ./extensions/TitleKey/rebuildTitleKeys.php --conf ./LocalSettings.php
 +
 
 +
== Current Status ==
 +
The TitleKey extension has been installed on this '''Meta Wiki''' and on the following wikis of the biowikifarm (March 2010):
 +
# [http://biowikifarm.net/test Test Wiki]
 +
# [http://www.keytonature.eu/ KeyToNature]
 +
# [http://offene-naturfuehrer.de/ Offene-Naturführer.de]
 +
# [http://www.species-id.net/ species-id]
 +
#* [http://www.species-id.net/openmedia Open Media shared repository]
 +
#* [http://www.species-id.net/openmedia Special Media shared repository]
 +
#* [http://www.species-id.net/fr/ French species-id instance]
 +
# [http://www.diversityworkbench.net/ diversityworkbench]
 +
# [http://glossary.lias.net/ LIAS glossary]
 +
# [http://wiki.pestinfo.org/ Pest Information Wiki]
 +
# [http://wiki.phytomedizin.org/ phytomedizin wiki]
 +
# [http://www.phytopathology.net/ phytopathology.net]
 +
# [http://www.rosaceae.net/wiki/ Rosaceae.net]
 +
 
 
[[Category:Software documentation]]
 
[[Category:Software documentation]]
[[Category:Extensions]]
+
[[Category: MediaWiki Extensions]]

Latest revision as of 21:25, 13 November 2017

What does the TitleKey extension do?

When you start typing into the search box the system provides below this box the names of the nearest matching names of pages which already exist. These "search suggestions" are a very useful tool and you can simply click on one of the search suggestions to jump to that page. However, except for the first letter these search suggestions are normally case sensitive. This means if you type "fed" you will get only the pages starting with "Fedora ..." and not those starting with "FEDORA ...". This is normally not wanted and the TitleKey extension makes the search suggestion case insensitive.

Installation

Installation of the TitleKey extension requires command line operations on the server. Use the following steps:

  • Change to the directory of the TitleKey extension for your wiki, e.g.
cd /var/www/metawiki/extensions/TitleKey/
  • Create the table "titlekey" using the titlekey.sql file (replace "metawiki" by the name of your wiki)
mysql -u root -p --database=metawiki < titlekey.sql

Use "-p" instead of entering the password, you will get a prompt for the password.

  • Check in mySQL if the table has been created.
  • Fill the table with the names of the pages which exist already using the rebuildTitleKeys.php file and by providing a link to the respective LocalSettings.php file as described in Mediawiki_installation#Maintenance_scripts, e.g.
php rebuildTitleKeys.php --conf /var/www/metawiki/LocalSettings.php
  • Check again in mySQL if the table has been filled.
  • Add the following 2 lines to the end of the LocalSettings.php file
require_once("$IP/extensions/TitleKey/TitleKey.php");
$wgEnableMWSuggest = true;
  • Verify that the extension has been installed by opening the page Special:Version.
  • Test the appearance of the search suggestions.

Maintenance after Page Import

After importing pages it may be necessary to reindex all titles:

cd /var/www/virtual-wikipath; sudo -u www-data php ./extensions/TitleKey/rebuildTitleKeys.php --conf ./LocalSettings.php

Current Status

The TitleKey extension has been installed on this Meta Wiki and on the following wikis of the biowikifarm (March 2010):

  1. Test Wiki
  2. KeyToNature
  3. Offene-Naturführer.de
  4. species-id
  5. diversityworkbench
  6. LIAS glossary
  7. Pest Information Wiki
  8. phytomedizin wiki
  9. phytopathology.net
  10. Rosaceae.net