Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge to master: Release 2.8.0 - Search everywhere anything, Visualize mappings cloud and OntoPortal URIs #564

Merged
merged 34 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e9839ed
Fix: Annotator fast context special chars issues & statistics page sy…
Bilelkihal Apr 4, 2024
06a73eb
Feature: Add json button to search page (#562)
Bilelkihal Apr 5, 2024
0e57aaa
Feature: Adding Content Finder Page (#511)
imadbourouche Apr 7, 2024
8d38f6d
Feature: Add ontology concepts exporters to diffrent formats (xml, nt…
imadbourouche Apr 7, 2024
1e5332e
Feature: update admin page UI to use vertical tabs (#566)
syphax-bouazzouni Apr 9, 2024
b18f6a1
Feature: Add indexation admin page (#567)
syphax-bouazzouni Apr 9, 2024
067bb7e
Feature: Update search input in homepage and topnav to use the indexe…
syphax-bouazzouni Apr 10, 2024
11f9fe1
Feature: Improve Browse page performance (#572)
syphax-bouazzouni Apr 10, 2024
4b85d9b
Feature: Add OntoPortal tools age (#559)
syphax-bouazzouni Apr 11, 2024
44bb10b
Feature: Add concepts mappings button in search page results (#569)
Bilelkihal Apr 11, 2024
7dfbefc
Feature: Add search bars for the instances, properties, collections a…
syphax-bouazzouni Apr 11, 2024
2f7f453
Feature: Update concept mappings table style (#574)
Bilelkihal Apr 12, 2024
7f26a68
Fix: submission date and summary not ready (#576)
syphax-bouazzouni Apr 15, 2024
b7837a7
Feature: Improve browse page search ranking and performance (#575)
syphax-bouazzouni Apr 15, 2024
3937498
Feature: Add terms and conditions to signup and footer links (#579)
Bilelkihal Apr 18, 2024
e68ab1c
Fix: new instance search feature to filter strictly only NamedIndivid…
syphax-bouazzouni Apr 19, 2024
cbbbdd5
Feature: Dynamic routes for ontologies content dereferencement (#568)
imadbourouche Apr 21, 2024
6707357
Feature: Update mappings page (#538)
Bilelkihal Apr 22, 2024
d643bba
fix search page results broken links (#583)
Bilelkihal Apr 22, 2024
285b28e
Fix: admin delete submission route (#585)
Bilelkihal Apr 22, 2024
e6e8146
Fix: Restore the new sample text of the annotator and recommender (#593)
Bilelkihal Apr 25, 2024
83da8be
Fix: search results selected language (#595)
Bilelkihal Apr 25, 2024
c3ea67c
Fix: new instance details page, properties selected property display …
syphax-bouazzouni Apr 25, 2024
cc058df
Feature: add a script to import or export CSV of the i18n locals (#597)
syphax-bouazzouni Apr 26, 2024
2360d29
Fix: Remove duplicated ontology scheme rows (#584)
Bilelkihal Apr 26, 2024
b4eb6e0
fix: summary page for ontologies with no submissions
syphax-bouazzouni Apr 26, 2024
08d5b86
Fix: Note thread show action (#606)
syphax-bouazzouni Apr 29, 2024
8f209f9
Fix: user reset password internationalisation issue (#605)
syphax-bouazzouni Apr 29, 2024
5de66c7
fix: trim the copied text in the clipboard stimulus controller (#611)
imadbourouche May 2, 2024
1fdc64f
Feature: Add recommender system tests (#599)
Bilelkihal May 8, 2024
96cb0a0
Feature: add htaccess URIs redirection modal help (#580)
imadbourouche May 13, 2024
c82e4e6
Fix: Release 2.8.0 grouped issues - Summary, Concept, Notes, Mappings…
Bilelkihal May 20, 2024
6d27190
fix data tables warning issue (#624)
Bilelkihal May 21, 2024
d42baf1
Merge branch 'master' into development
syphax-bouazzouni May 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions app/assets/images/icons/json-ld-file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions app/assets/images/icons/ntriples-file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions app/assets/images/icons/rdf-xml-file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions app/assets/images/icons/turtle-file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.css.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
@import "bootstrap";
@import "bootstrap_overrides";
@import "agent_tooltip";
@import "content_finder";

<% if (ui_theme = $UI_THEME.to_s.parameterize).present? && File.exists?(Rails.root.join('app', 'assets', 'stylesheets', 'themes', ui_theme)) %>
@import "themes/<%= ui_theme %>/main";
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/concepts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ div.synonym-change-request button {
justify-content: center;
color: var(--gray-color);
margin-top: 10px;
}
}
42 changes: 42 additions & 0 deletions app/assets/stylesheets/content_finder.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.content-finder-container{
display: flex;
justify-content: center;
margin-bottom: 6px;
}

.content-finder-container .inputs > div{
margin:10px 0;
text-align: center;
}

.content-finder-result{
text-align: left;
width: 95%;
margin-left: auto;
margin-right: auto;
background-color: #fff;
}

.content-finder-html-result{
max-width: 95%;
margin-left: auto;
margin-right: auto;
}
.hljs-custom-prefixes{
color: grey;
}
.hljs-custom-symbol{
color: red;
}

.hljs-custom-concepts{
color: #770088;
}

.hljs-subject{
color: green;
}

.hljs-predicate{
color: #770088;
}
1 change: 1 addition & 0 deletions app/assets/stylesheets/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
}
.search-page-advanced-button{
display: flex;
align-items: center;
}
.search-page-advanced-button :hover{
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class extends Controller {
this.#copied()
})
}

#copied () {
if (this.timeout) {
clearTimeout(this.timeout)
Expand Down
10 changes: 9 additions & 1 deletion app/components/concept_details_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@

class ConceptDetailsComponent < ViewComponent::Base
include ApplicationHelper
include OntologiesHelper
include MultiLanguagesHelper

renders_one :header, TableComponent
renders_many :sections, TableRowComponent

attr_reader :concept_properties

def initialize(id:, acronym:, properties:, top_keys:, bottom_keys:, exclude_keys:)
def initialize(id:, acronym:, concept_id: nil , properties: nil, top_keys: [], bottom_keys: [], exclude_keys: [])
@acronym = acronym
@properties = properties
@top_keys = top_keys
@bottom_keys = bottom_keys
@exclude_keys = exclude_keys
@id = id
@concept_id=concept_id

@concept_properties = concept_properties2hash(@properties) if @properties
end
Expand Down Expand Up @@ -77,6 +79,12 @@ def filter_properties(top_keys, bottom_keys, exclude_keys, concept_properties)

private

def link_to_format_modal(format, icon)
link_to_modal(nil, "/ontologies/#{@acronym}/#{escape(@concept_id)}/serialize/#{format}", data: {show_modal_title_value: @concept_id, show_modal_size_value: 'modal-xl'}) do
inline_svg("icons/#{icon}.svg", width: '50px', height: '50px')
end
end

def concept_properties2hash(properties)
# NOTE: example properties
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
= header
%div.my-3
%div.raw-table
- if @bottom_keys.present?
= render DropdownContainerComponent.new(title: 'Raw data', id: "accordion-#{@id}") do
- top_set, leftover_set, bottom_set = filter_properties(@top_keys, @bottom_keys, @exclude_keys, prefix_properties(@concept_properties))
- leftover_set = convert_dates(leftover_set)
= render TableComponent.new(stripped: true) do |t|

= render DropdownContainerComponent.new(title: 'Raw data', id: "accordion-#{@id}") do
= render TableComponent.new(stripped: true) do |t|
- if @bottom_keys.present?
- top_set, leftover_set, bottom_set = filter_properties(@top_keys, @bottom_keys, @exclude_keys, prefix_properties(@concept_properties))
- leftover_set = convert_dates(leftover_set)
- row_hash_properties(top_set, @acronym).each do |row|
- t.add_row(*row)

Expand All @@ -23,3 +22,11 @@

- row_hash_properties(bottom_set, @acronym).each do |row|
- t.add_row(*row)

- if @concept_id
- t.row do |r|
- r.td(colspan: 2) do
%div.d-flex.justify-content-center.p-2
- [["json","json-ld-file"], ["xml","rdf-xml-file"] , ["ntriples","ntriples-file"], ["turtle","turtle-file"]].each do |format, icon|
%div.mx-4{data: {controller: "tooltip"}, title: "Export in #{format.upcase}"}
= link_to_format_modal(format, icon)
9 changes: 9 additions & 0 deletions app/components/display/rdf_highlighter_component.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

class Display::RdfHighlighterComponent < ViewComponent::Base

def initialize(format: , text: )
@format = format
@content = text
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.clipboard-component-resource-content{style: 'position: absolute; right: 2%; top: 5px;'}
= render ClipboardComponent.new(message: @content, show_content: false)
.content-finder-result{data: {controller: 'rdf-highlighter', 'rdf-highlighter-format-value': @format }}
%pre.mb-0
%code.d-block{style: 'text-wrap: pretty; word-break: break-all', data: {'rdf-highlighter-target': 'content'}}
#{@content}
Loading
Loading