From c49005412afefd898075825fd64835b84e35bd9b Mon Sep 17 00:00:00 2001 From: Karsten Hoffmeyer Date: Sat, 22 Sep 2018 17:22:53 +0200 Subject: [PATCH] Make 1.5.0 release (#55) * Update RELEASE-NOTES.md * Update README.md * Update 00-configurations.md * Update composer.json * Update SemanticBreadcrumbLinks.php ** Bump version number --- README.md | 4 ++-- RELEASE-NOTES.md | 19 ++++++++++++++----- SemanticBreadcrumbLinks.php | 4 ++-- composer.json | 3 +-- docs/00-configurations.md | 5 ++++- 5 files changed, 23 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 9821dc3..1f36b2c 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,12 @@ The recommended way to install Semantic Breadcrumb Links is by using [Composer][ ```json { "require": { - "mediawiki/semantic-breadcrumb-links": "~1.4" + "mediawiki/semantic-breadcrumb-links": "~1.5" } } ``` 1. From your MediaWiki installation directory, execute - `composer require mediawiki/semantic-breadcrumb-links:~1.4` + `composer require mediawiki/semantic-breadcrumb-links:~1.5` 2. Navigate to _Special:Version_ on your wiki and verify that the package have been successfully installed. diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 2a61cac..ab505fd 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,5 +1,14 @@ This file contains the RELEASE-NOTES of the Semantic Breadcrumb Links (a.k.a. SBL) extension. +### 1.5.0 + +Released on September 22, 2018. + +* Requires PHP 5.6 or later +* #47/#49 Fixed integration with MediaWiki 1.30+ by using `subtitle` to show redirect, revision and display title information +* #50 Added `$egSBLDisableTranslationSubpageAnnotation` to allow for disabling translation subpage annotation +* Localization updates from https://translatewiki.net + ### 1.4.0 Released on June 10, 2017. @@ -25,9 +34,9 @@ Released on July 9, 2016. * Requires Semantic MediaWiki 2.4 or later * Added `onoi/shared-resources` dependency * Support for `Display title of` provided by SMW 2.4.0 -* Added `$GLOBALS['egSBLEnabledSubpageParentAnnotation']` to allow for subpage +* Added `$egSBLEnabledSubpageParentAnnotation` to allow for subpage parents to be annotated automatically if no other `Has parent page` exists -* Recognize `egSBLPageTitleToHideSubpageParent` / `wgNamespacesWithSubpages` +* Recognize `$egSBLPageTitleToHideSubpageParent` / `$wgNamespacesWithSubpages` when building the breadcrumb title * Apply italic styles for "hasChildren" early to avoid JS async display clutter @@ -45,7 +54,7 @@ Released on December 19, 2015. Released on June 2, 2015. * Fixed unstyled content flashing observed in MW 1.25 -* Added `$GLOBALS['egSBLBreadcrumbDividerStyleClass']` to assign styling options such as `sbl-breadcrumb-pipe` or `sbl-breadcrumb-arrow` +* Added `$egSBLBreadcrumbDividerStyleClass` to assign styling options such as `sbl-breadcrumb-pipe` or `sbl-breadcrumb-arrow` * Localization updates from https://translatewiki.net ### 1.0.0 @@ -53,5 +62,5 @@ Released on June 2, 2015. Released on Februray 14, 2015. * Initial release -* `ByPropertyHierarchicalLinksFinder` to match a property hierarchy defined by `egSBLPropertySearchPatternByNamespace` -* `BySubpageLinksFinder` to find a subpage hierarchy if `egSBLUseSubpageFinderFallback` is enabled +* `ByPropertyHierarchicalLinksFinder` to match a property hierarchy defined by `$egSBLPropertySearchPatternByNamespace` +* `BySubpageLinksFinder` to find a subpage hierarchy if `$egSBLUseSubpageFinderFallback` is enabled diff --git a/SemanticBreadcrumbLinks.php b/SemanticBreadcrumbLinks.php index ec28318..86e5819 100644 --- a/SemanticBreadcrumbLinks.php +++ b/SemanticBreadcrumbLinks.php @@ -10,7 +10,7 @@ * @defgroup SBL Semantic Breadcrumb Links */ if ( !defined( 'MEDIAWIKI' ) ) { - die( 'This file is part of the Semantic Breadcrumb Links extension, it is not a valid entry point.' ); + die( 'This file is part of the Semantic Breadcrumb Links extension. It is not a valid entry point.' ); } if ( defined( 'SBL_VERSION' ) ) { @@ -51,7 +51,7 @@ public static function load() { */ public static function initExtension() { - define( 'SBL_VERSION', '1.5.0-alpha' ); + define( 'SBL_VERSION', '1.5.0' ); define( 'SBL_PROP_PARENTPAGE', 'Has parent page' ); // Register the extension diff --git a/composer.json b/composer.json index c644d78..1125792 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "mediawiki/semantic-breadcrumb-links", "type": "mediawiki-extension", - "description": "A Semantic MediaWiki extension to build breadcrumb links from an attributive property filter.", + "description": "An extension to Semantic MediaWiki allowing to build breadcrumb links from an attributive property filter", "keywords": [ "smw", "semantic mediawiki", @@ -21,7 +21,6 @@ "support": { "email": "semediawiki-user@lists.sourceforge.net", "issues": "https://github.com/SemanticMediaWiki/SemanticBreadcrumbLinks/issues", - "irc": "irc://irc.freenode.net/semantic-mediawiki", "forum": "https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org_talk:Community_portal", "wiki": "https://www.semantic-mediawiki.org/wiki/", "source": "https://github.com/SemanticMediaWiki/SemanticBreadcrumbLinks" diff --git a/docs/00-configurations.md b/docs/00-configurations.md index ab48cf1..051fe6c 100644 --- a/docs/00-configurations.md +++ b/docs/00-configurations.md @@ -37,10 +37,12 @@ enabled then SBL will not try to resolve a possible subpage hierarchy. - `$GLOBALS['egSBLPageTitleToHideSubpageParent']` if enabled SBL will try to hide the parent part of a subpage title from display when a corresponding namespace entry is found in the [`wgNamespacesWithSubpages`][mw-nssubp] setting. - - `$GLOBALS['egSBLEnabledSubpageParentAnnotation']` supports the auto-generation of `Has parent page` annotations for subpages. Yet, it will not create any additional assignment if `Has parent page` is already part of the `SemanticData`. +- `$GLOBALS['egSBLDisableTranslationSubpageAnnotation']` supports avoiding to create annotations for +pages like e.g. "Example/en" where "en" is identified as translation page by the "Translate" extension. Note +that this works only for any new translation revision but not for revisions in retrospect. ## Default settings @@ -50,6 +52,7 @@ $GLOBALS['egSBLBreadcrumbDividerStyleClass'] = 'sbl-breadcrumb-arrow'; $GLOBALS['egSBLPageTitleToHideSubpageParent'] = true; $GLOBALS['egSBLEnabledSubpageParentAnnotation'] = true; +$GLOBALS['egSBLDisableTranslationSubpageAnnotation'] = true; $GLOBALS['egSBLTryToFindClosestDescendant'] = true; $GLOBALS['egSBLUseSubpageFinderFallback'] = true;