Skip to content

Commit

Permalink
Merge pull request #5 from kkthek/fix-for-user-pref-dialog
Browse files Browse the repository at this point in the history
Fix for user pref dialog
  • Loading branch information
kkthek authored May 31, 2024
2 parents e8d219d + f9d6739 commit f0eea82
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 562 deletions.
22 changes: 0 additions & 22 deletions .project

This file was deleted.

5 changes: 3 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ Enhanced Retrieval extension ChangeLog
======================================

VERSION 3.0
* updated extension.json for MW1.38
* updated extension.json for MW1.39
* renamed global config variable
* from $SOLRhost, $SOLRport, $SOLRuser, $SOLRpass, $SOLRcore
* to $fsgSolrHost, $fsgSolrPort, $fsgSolrUser, $fsgSolrPass, $fsgSolrCore
* removed $fsgCustomConstraint config variable
* removed unused config variables
** $fsgScriptPath
* $fsgScriptPath
* $fsgIP
* Enhanced Retrieval now has a user preference dialog

VERSION 2.3
- Got rid of separate proxy implementation. Instead, the proxy now is a REST endpoint of MW.
Expand Down
288 changes: 0 additions & 288 deletions DefaultSettings.php

This file was deleted.

8 changes: 4 additions & 4 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
== Enhanced Retrieval Extension 2.5 ==
== Enhanced Retrieval Extension 3.0 ==

=== Requirements ===
* PHP 7.x
* PHP 7.4.x
* Composer
* MediaWiki 1.38+
* SMW 3.x
* MediaWiki 1.39.x (LTS)
* SMW 3.x or 4.x
* Apache SOLR server v8.30+

You can setup your own Solr server. Please use the SOLR-schema given in:
Expand Down
4 changes: 2 additions & 2 deletions extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"descriptionmsg": "facetedsearch-desc",
"license-name": "GPL-2.0-or-later",
"type": "other",
"version": "2.5",
"version": "3.0.1",
"manifest_version": 2,
"requires": {
"MediaWiki": ">= 1.38",
"MediaWiki": ">= 1.39",
"platform": {
"php": ">= 7.4"
}
Expand Down
10 changes: 5 additions & 5 deletions scripts/FacetedSearch/FS_DateFacetClusterer.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,22 @@ FacetedSearch.classes.DateFacetClusterer = function (facetName, plainName) {
if (dateTimePropertyClusters['max']) {
var clusterMax = dateTimePropertyClusters['max'];
clusterMax = parseInt(clusterMax.replace(/-|:/g,''));
if (max > clusterMax) {
if (Number(max) > clusterMax) {
max = clusterMax;
}
}

if (dateTimePropertyClusters['min']) {
var clusterMin = dateTimePropertyClusters['min'];
clusterMin = parseInt(clusterMin.replace(/-|:/g,''));
if (min < clusterMin) {
if (Number(min) < clusterMin) {
min = clusterMin;
}
}

}

var incr = findIncrement(min, max);
var incr = findIncrement(Number(min), Number(max));

mIncrementField = incr.getIncrementField();

Expand All @@ -153,9 +153,9 @@ FacetedSearch.classes.DateFacetClusterer = function (facetName, plainName) {
/**
* Calculates a the best suited increment for ranges between the data/time
* values min and max that are given as strings that represent long values.
* @param {long} min
* @param {Number} min
* Lower bound of date/time
* @param {long} max
* @param {Number} max
* Upper bound of date/time
*
* @return {Object}
Expand Down
Loading

0 comments on commit f0eea82

Please sign in to comment.