Page MenuHomePhabricator

Patch to add user pref for links from titles to related search-term clusters
Closed, InvalidPublic

Description

Changes to Skin.php and Language.php, adding a new user pref
("relatedterms") and adding a link next to each article title if the
pref is turned on.


Skin.php diff:

616,625c616
< # OCL: here to end of if/else: add relatedterms link
if pref selected.
< $a = htmlspecialchars( $wgOut->getPageTitle() );
<
< if($wgUser->getOption("relatedterms")) {
< $ol = '<a
href="http://inventory.overture.com/d/searchinventory/suggestion/?
term=' . $a . '">related terms</a>';
< $s = '<font size=5 class="pagetitle"><b>' .
$a . '</b></font> <font size=-2>' . $ol . '</font>';
< } else {
< $s = '<h1 class="pagetitle">' . $a . '</h1>';
< }

<

$s = '<h1 class="pagetitle">' . htmlspecialchars(

$wgOut->getPageTitle() ) . '</h1>';


Language.php diff

61,63c61
< 'date' => 0, 'imagesize' => 2,
< #OCL: add relatedterms option

< 'relatedterms' => 0

'date' => 0, 'imagesize' => 2

132,133d129
< # OCL: addition of relatedterms
< 'relatedterms',
248,250d243
< # OCL: add relatedterms
< 'tog-relatedterms' => 'Add link to the most popular related search
terms, next to each article title',
<


Version: unspecified
Severity: enhancement

Details

Reference
bz945

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 7:05 PM
bzimport set Reference to bz945.
bzimport added a subscriber: Unknown Object (MLST).

Restored bug from flood attack.

robchur wrote:

What's this attempting to fix?

no longer works, at any rate... this was attempting to help people find search terms related to the article topic, back when overture provided this cleanly as a service.

Diffusion changed the task status from Invalid to Resolved by committing Unknown Object (Diffusion Commit).Mar 4 2015, 8:15 AM
Diffusion added a commit: Unknown Object (Diffusion Commit).
Aklapper changed the task status from Resolved to Invalid.Mar 4 2015, 5:47 PM
Aklapper claimed this task.