MediaWiKi

Develop a Laboratory Information Management System Using Mediawiki, PHP and Perl

No GoodNeed ImprovementOKGoodExcellent (No Ratings Yet)
Loading ... Loading ...

LIMS for Freezer Sample Tracking

Software: Mediawiki.

Components: Perlwikipedia, CMS::MediaWiki.

Programming languages: PHP, Perl, SPARQL.

Example Code


#!/usr/bin/perl
use strict;

use Perlwikipedia;

my $user = ‘admin’; my $pass = ‘xxx’;
my $hostname=”xxx.com”;
my $directory=”LIMS”;
my $editor=Perlwikipedia->new($user);
$editor ->set_wiki($hostname, $directory);
$editor->{debug} = 1;

$editor->login($user, $pass);

my $article = “Wikipedia:Freezer”;
my $text=$editor->get_text($article);

$text = $text . “Run a PCR reaction on June, 7 2007 <br />”;

my $edit_summary=’PCR Enhancer Protein’;

my $is_minor = 0;

$editor->edit($article, $text, $edit_summary, $is_minor);

Popularity: 1%

Comments

A better way to make very short URL for MediaWiki

No GoodNeed ImprovementOKGoodExcellent (No Ratings Yet)
Loading ... Loading ...

There are many articles on various web sites talking about shortening URL for mediawiki, but most of time, it does not work if you follow their instruction. Hours have passed by and you got so frustrated: we just need something simple and work. Afer hours of trials, I got the following to work:

1, In your http.conf file, under virtual host section add the following:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]

2, In your LocalSettings.php file change

$wgArticlePath = "$wgScript?title=$1";

to

$wgArticlePath = "/$1";

So it will be:

$wgScriptPath = "";
$wgScript = “$wgScriptPath/index.php”;
$wgArticlePath = “/$1″;

3, Restart apache:

apachectl restart

Popularity: 2%

Comments

A better way to make very short URL for MediaWiki

No GoodNeed ImprovementOKGoodExcellent (No Ratings Yet)
Loading ... Loading ...

There are many articles on various web sites talking about shortening URL for mediawiki, but most of time, it does not work if you follow their instruction. Hours have passed by and you got so frustrated: we just need something simple and work. Afer hours of trials, I got the following to work:

1, In your http.conf file, under virtual host section add the following:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]

2, In your LocalSettings.php file change

$wgArticlePath = "$wgScript?title=$1";

to

$wgArticlePath = "/$1";

So it will be:

$wgScriptPath = "";
$wgScript = “$wgScriptPath/index.php”;
$wgArticlePath = “/$1″;

3, Restart apache:

apachectl restart

Popularity: 1%

Comments

Next »