diff options
author | Yaco <franco@reevo.org> | 2024-04-12 15:03:04 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2024-04-12 15:03:04 -0300 |
commit | 57657f58f7a4930b72d12af99164f5c45867f72d (patch) | |
tree | c77adb3244d6638a6dad7f027facb61b3d0d6a0b | |
parent | db20509ad6f6904abcd551a53c09d2d92d6f5cf2 (diff) |
changes to add Webinar support
-rw-r--r-- | LocalSettings.php | 21 | ||||
-rw-r--r-- | i18n/en.json | 18 | ||||
-rw-r--r-- | layout.xml | 3 | ||||
-rw-r--r-- | style.less | 23 |
4 files changed, 56 insertions, 9 deletions
diff --git a/LocalSettings.php b/LocalSettings.php index b9d4779..a42865d 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -132,6 +132,14 @@ $wgContentNamespaces[] = NS_REPORT; $smwgNamespacesWithSemanticLinks[NS_REPORT] = true; $wgNamespacesWithSubpages[NS_REPORT] = true; +define("NS_WEBINAR", 3010); // Este número DEBE ser par. +define("NS_WEBINAR_TALK", 3011); // Éste DEBE ser el siguiente entero impar. +$wgExtraNamespaces[NS_WEBINAR] = "Webinar"; +$wgExtraNamespaces[NS_WEBINAR_TALK] = "Webinar_talk"; +$wgContentNamespaces[] = NS_WEBINAR; +$smwgNamespacesWithSemanticLinks[NS_WEBINAR] = true; +$wgNamespacesWithSubpages[NS_WEBINAR] = true; + // define("NS_REVISAR", 3006); // Este número DEBE ser par. // define("NS_REVISAR_TALK", 3007); // Éste DEBE ser el siguiente entero impar. @@ -157,7 +165,7 @@ $wgNamespacesWithSubpages[NS_REPORT] = true; // $wgNamespaceProtection[NS_EVENTO] = // $wgNamespaceProtection[NS_PRENSA] = array( 'autoconfirmed' ); -$wgNamespaceProtection[NS_CASE] = $wgNamespaceProtection[NS_REPORT] = +$wgNamespaceProtection[NS_WEBINAR] = $wgNamespaceProtection[NS_CASE] = $wgNamespaceProtection[NS_REPORT] = $wgNamespaceProtection[NS_ENDORSER] = array( 'autoconfirmed' ); // $wgGroupPermissions['*']['revisar-edit'] = true; @@ -168,8 +176,8 @@ $wgNamespacesToBeSearchedDefault = [ // NS_CATEGORY => true, NS_REPORT => true, NS_ENDORSER => true, - NS_CASE => true - // NS_PRENSA => true, + NS_CASE => true, + NS_WEBINAR => true // NS_AUDIOVISUAL => true, // NS_EVENTO => true ]; @@ -178,7 +186,9 @@ $wgNamespaceAliases = array( // 'U' => NS_USER, 'C' => NS_CASE, 'R' => NS_REPORT, - 'E' => NS_ENDORSER + 'E' => NS_ENDORSER, + 'W' => NS_WEBINAR + // 'P' => NS_PRENSA, // 'A' => NS_AUDIOVISUAL, // 'V' => NS_EVENTO @@ -241,6 +251,7 @@ enableSemantics( $REEVO_URL ); wfLoadExtension( 'SemanticResultFormats' ); wfLoadExtension( 'SemanticFormsSelect' ); $smwgQMaxInlineLimit = 2000; +// wfLoadExtension( 'SemanticCompoundQueries' ); ## ModernTimeline wfLoadExtension( 'ModernTimeline' ); @@ -343,6 +354,8 @@ $wgHidensNamespaces = array( NS_CATEGORY, NS_ENDORSER, NS_CASE, + NS_WEBINAR, + ); ## CSS diff --git a/i18n/en.json b/i18n/en.json index b287030..19cba41 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -38,6 +38,8 @@ "rv-endorser:reply-ngo": "NGO", "rv-endorser:reply-proposal": "Proposal", "rv-endorser:reply-research": "Research", + + "rv-case:description": "Description", "rv-case:organization-name": "Organizacion name", "rv-case:organization-url": "Website", @@ -99,6 +101,8 @@ "rv-case:place-state": "State", "rv-case:place-city": "City", "rv-case:place-street": "Street", + + "rv-report:info-cover": "Cover Link", "rv-report:info-series": "Title of the series", "rv-report:info-volume": "Volume number", @@ -106,5 +110,17 @@ "rv-report:info-date": "Publication date", "rv-report:info-url": "Official link", "rv-report:info-pdf": "PDF Link", - "rv-report:info-cover": "Cover Link" + "rv-report:info-cover": "Cover Link", + + "rv-webinar:description": "Description", + "rv-webinar:info-topics": "Topics", + "rv-webinar:place": "Place", + "rv-webinar:info-image": "Webinar main image", + "rv-webinar:info-topics": "Topics", + "rv-webinar:info-participants": "Participants", + "rv-webinar:info-date": "Webinar date", + "rv-webinar:info-video": "Video IA codename", + "rv-webinar:info-url": "Official link", + "rv-webinar:info-video": "Video recording" + } @@ -77,6 +77,7 @@ This layout has Pagetools visible in body content as used in http://wiki.ead.puc </grid> </row> + <row class='footerwrapdiag hidden-print'></row> <row class='footerwrap hidden-print smwofootergrid-bottom'> <grid class="smwofootergrid"> <row class="smwofooterrow"> @@ -92,7 +93,7 @@ This layout has Pagetools visible in body content as used in http://wiki.ead.puc <!-- footer links --> <ul class="footer-legal-info list-unstyled small" id="footer-legal-info"> <!-- info --> - <li>This platform is in beta stage. <i>Version 0.4.5</i></li> + <li>GTAMap - development instance - <i>Version 0.5.8</i></li> </ul> ]]> @@ -64,12 +64,25 @@ button#mw-searchButton { // We change the color of the marker using filter. The base color must be black. Color generator: https://codepen.io/sosuke/pen/Pjoqqp // Map tiles: http://leaflet-extras.github.io/leaflet-providers/preview/ -.page-Index .leaflet-marker-icon img, img.leaflet-marker-icon.leaflet-zoom-animated.leaflet-interactive { +.leaflet-marker-icon img, img.leaflet-marker-icon.leaflet-zoom-animated.leaflet-interactive:hover { + +} + +.leaflet-marker-icon img, img.leaflet-marker-icon.leaflet-zoom-animated.leaflet-interactive { // filter: invert(18%) sepia(67%) saturate(3680%) hue-rotate(93deg) brightness(95%) contrast(103%) drop-shadow(2px 4px 6px lightgrey); filter: invert(80%) sepia(0%) saturate(5000%) hue-rotate(16deg) brightness(150%) contrast(100%); } -.page-Index .leaflet-tile-pane { +.mapicon-Case { + filter: brightness(1.4) contrast(1.2) !important; +} + +.mapicon-Webinar { + filter: brightness(1.5) contrast(2) !important; +} + + +.leaflet-tile-pane { z-index: 200; filter: invert(4%) sepia(11%) saturate(6000%) hue-rotate(342deg) brightness(160%) contrast(150%) !important; // filter: invert(100%) sepia(100%) saturate(6000%) hue-rotate(19deg) brightness(80%) contrast(150%) !important; // Good for light tile @@ -80,7 +93,7 @@ section#map > div { } -.page-Index .leaflet-marker-icon span { +.leaflet-marker-icon span { color: white; } @@ -116,3 +129,7 @@ section#map > div { table.wikitable { margin: 0; } + +p.mw-empty-elt { + display: none; +} |