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

Ontoportal align: Set EcoPortal local example and placeholder texts #3

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1,811 changes: 905 additions & 906 deletions app/assets/javascripts/bp_annotatorplus.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions app/views/annotator/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
%h2.mt-3 Annotator
%p
= t('annotator.index.intro', site: $SITE).html_safe
= link_to(help_path(anchor: "Annotator_Tab"), id: "annotator-help", target: "_blank") do
%i.fa.fa-question-circle.fa-lg{"aria-hidden": "true"}
= link_to(Rails.configuration.settings.links[:help_annotator], target: '_blank') do
%i.fas.fa-question-circle.fa-lg


%div.row
%div.col
Expand Down
2 changes: 1 addition & 1 deletion app/views/mappings/_concept_mappings_selector.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%h2.mb-0
%button.btn.btn-link.btn-block.text-left.collapsed{"data-target" => "#collapseTwo", "data-toggle" => "collapse", :type => "button"}
Find mappings of a class/concept
= link_to(Rails.configuration.settings.links[:mappings], id: "mappings-help", "aria-label": "View mappings help") do
= link_to(Rails.configuration.settings.links[:help_mappings], target: '_blank') do
%i.fas.fa-question-circle.fa-lg{"aria-hidden": "true"}
#collapseTwo.collapse{"data-parent" => "#accordionExample"}
.card-body
Expand Down
2 changes: 1 addition & 1 deletion app/views/mappings/_ontology_mappings.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%h2.mb-0
%button.btn.btn-link.btn-block.text-left{"data-target" => "#collapseOne", "data-toggle" => "collapse", :type => "button"}
= t('mappings.intro').html_safe
= link_to(Rails.configuration.settings.links[:mappings], id: "mappings-help", "aria-label": "View mappings help") do
= link_to(Rails.configuration.settings.links[:help_mappings], target: '_blank') do
%i.fas.fa-question-circle.fa-lg{"aria-hidden": "true"}
#collapseOne.collapse{"data-parent" => "#accordionExample"}
.card-body
Expand Down
3 changes: 1 addition & 2 deletions app/views/ontologies/browse.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
<h1 style="font-size: 3em;">Browse</h1>
<p>
<%= t('ontologies.intro').html_safe %>
<%= link_to(Rails.configuration.settings.links[:help_ontology_browse], id: 'ontology-browse-help',
'aria-label': 'View ontology browse help') do %>
<%= link_to(Rails.configuration.settings.links[:help_ontology_browse], target: '_blank') do %>
<i class='fas fa-question-circle fa-lg' aria-hidden='true'></i>
<% end %>
</p>
Expand Down
11 changes: 5 additions & 6 deletions app/views/recommender/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
%h2.mt-5 Ontology Recommender
%p
= t('recommender.intro').html_safe
= link_to(Rails.configuration.settings.links[:help_recommender], id: "recommender-help",
"aria-label": "View ontology recommender help") do
%i.fas.fa-question-circle.fa-lg{"aria-hidden": "true"}
= link_to(Rails.configuration.settings.links[:help_annotator], target: '_blank') do
%i.fas.fa-question-circle.fa-lg

%form
= hidden_field_tag :recommender_sample_text, t('recommender.sample_text')
Expand All @@ -16,16 +15,16 @@
%input#radioItText.form-check-input{name: "input_type", type: "radio", value: "1", checked: "checked"}
%label.form-check-label{for: "radioItText"} Text
%div.form-check.form-check-inline
%input#radioItKeywords.form-check-input{name: "input_type", type: "radio", value: "2"}
%input#radioItKeywords.form-check-input{name: "input_type", type: "radio", value: "2"}
%label.form-check-label{for: "radioItKeywords"} Keywords (separated by commas)

-# Specify output format
%h5.pt-3 Output
%div.form-check.form-check-inline
%input#radioOtSingle.form-check-input{name: "output_type", type: "radio", value: "1", checked: "checked"}
%input#radioOtSingle.form-check-input{name: "output_type", type: "radio", value: "1", checked: "checked"}
%label.form-check-label{for: "radioOtSingle"} Ontologies
%div.form-check.form-check-inline
%input#radioOtSets.form-check-input{name: "output_type", type: "radio", value: "2"}
%input#radioOtSets.form-check-input{name: "output_type", type: "radio", value: "2"}
%label.form-check-label{for: "radioOtSets"} Ontology sets

-# Input text or keywords
Expand Down
2 changes: 1 addition & 1 deletion app/views/search/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
= text_field_tag("search_keywords", nil, class: "form-control", aria: {describedby: "classSearchHelpBlock"})
%small#classSearchHelpBlock.form-text.text-muted
= t(".search_keywords_placeholder")
= link_to("help", Rails.configuration.settings.links[:help_search], id: "search-help",
= link_to("help", Rails.configuration.settings.links[:help_search], target: '_blank',
aria: {label: "View search documentation"}, class: "float-right")
%div.form-group
= link_to("Show advanced options", "javascript:void(0)", id: "advanced_options", data: {text_swap: "Hide advanced options"}, class: "form-text")
Expand Down
44 changes: 26 additions & 18 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,30 +91,37 @@ en:

home:
index:
find_ontology_placeholder: Start typing ontology name, then choose from list
query_placeholder: Enter a class, e.g. Melanoma
tagline: the world's most comprehensive repository of biomedical ontologies
find_ontology_placeholder: Start typing resource name, then choose from list
query_placeholder: Enter a class, e.g. Shape
tagline: the LifeWatch ERIC repository of semantic resources for ecology and related domains
title: Welcome to the %{organization}
welcome: Welcome to %{site},
help:
welcome: Welcome to the National Center for Biomedical Ontology’s %{site}. %{site} is a web-based application for accessing and sharing biomedical ontologies.
welcome: Welcome to the LifeWatch ERIC’s %{site}. %{site} is a repository of semantic resources for ecology and related domains.
getting_started: >
%{site} allows users to browse, upload, download, search, comment on, and create mappings for ontologies.
%{site} supports the community in the creation, management, mapping and alignment of its semantic resources and subsequently also of its data.
browse: >
Users can browse and explore individual ontologies by navigating either a tree structure or an animated graphical view. Users can also view mappings and
ontology metadata, and download ontologies. Additionally, users who are signed in may submit a new ontology to the library.
rest_examples_html: View documentation and examples of the <a href="http://data.bioontology.org/documentation" target="_blank">%{site} REST API</a>.
Users can browse and explore individual semantic resources by navigating either a tree structure or
an animated graphical view. Users can also view mappings and semantic resource metadata, and download
semantic resources. Additionally, users who are signed in may also submit a new semantic resource to the
library. All submissions to the library are reviewed.
documentation_html: >
General documentation is available on <a href="https://github.com/lifewatch-eric/documentation/wiki" target="_blank">GitHub</a>
rest_examples_html: View documentation and examples of the <a href="https://data.ecoportal.lifewatch.eu/documentation" target="_blank">%{site} REST API</a>.
announce_list_html: >
To receive notices of new releases or site outages, please subscribe to the
<a href="https://mailman.stanford.edu/mailman/listinfo/bioontology-support" target="_blank">bioontology-support list</a>.

contact_html: >
If you have any comment or need for support, please email <b>[email protected]</b>.
If you are interested and would like to join our information mailing list, please subscribe to our user mailing
list.
annotator:
index:
intro: Get annotations for biomedical text with classes from the ontologies
intro: Get annotations for ecological text with classes from the semantic resources
annotatorplus_html: <em>Check out <a href="%{annotatorplus_href}">AnnotatorPlus</a> beta; a new version of the Annotator with added support for negation, and more!</em>
fast_context:
tooltip: "Enable FastContext to detect : if a concept has been negated (affirmed, negated), who experienced the found concept (patient, other), when the annotated concept occurred (recent, historical, hypothetical), and/or if the annotated concept is uncertain (certain, uncertain)."
sample_text: Melanoma is a malignant tumor of melanocytes which are found predominantly in skin but also in the bowel and the eye.
sample_text: Invasive alien species are plants, animals, pathogens and other organisms that are non-native to an ecosystem, and which may cause economic or environmental harm or adversely affect human health.

nbco_annotatosplus:
index:
Expand All @@ -125,15 +132,16 @@ en:
</br><br/>
If using the API, please provide a valid NCBO BioPortal apikey and hit the service at <a href="http://services.bioportal.lirmm.fr/ncbo_annotatorplus">http://services.bioportal.lirmm.fr/ncbo_annotatorplus</a></br>
Text submitted to the NCBO Annotator+ must be in English.
sample_text: Melanoma is a malignant tumor of melanocytes which are found predominantly in skin but also in the bowel and the eye.
sample_text: Invasive alien species are plants, animals, pathogens and other organisms that are non-native to an ecosystem, and which may cause economic or environmental harm or adversely affect human health.

recommender:
intro: Get recommendations for the most relevant ontologies based on an excerpt from a biomedical text or a list of keywords

intro: Get recommendations for the most relevant semantic resources based on an excerpt from a ecological text or a list of keywords
sample_text: Ecological attributes (=ecological characteristics) are features of a taxon such as its range size, life history, geographical distribution, climatic tolerances, habitat types, environmental indicator values, edaphic preferences, and so on, that describe the overall ecology of the taxon.
sample_keywords: Ecological attributes (=ecological characteristics) are features of a taxon such as its range size, life history, geographical distribution, climatic tolerances, habitat types, environmental indicator values, edaphic preferences, and so on, that describe the overall ecology of the taxon.
search:
index:
intro: Search for a class in multiple ontologies
search_keywords_placeholder: Enter a class, e.g. Melanoma
intro: Search for a class in multiple semantic resources
search_keywords_placeholder: Enter a class, e.g. Shape
categories_placeholder: Start typing to select categories or leave blank to use all
property_definition: Named association between two entities. Examples are "definition" (a relation between a class and some text) and "part-of" (a relation between two classes).
obsolete_definition: >
Expand All @@ -145,7 +153,7 @@ en:
intro: Browse a selection of projects that use %{site} resources

ontologies:
intro: Browse the library of ontologies
intro: Browse the library of semantic resources

concepts:
request_term:
Expand All @@ -167,5 +175,5 @@ en:
<p>Justification (optional)<br>Provide any additional information about the requested term here.</p>
</blockquote>
mappings:
intro: Browse mappings between classes in different ontologies
intro: Browse mappings between classes in different semantic resources

6 changes: 6 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
shared:
links:
help_annotator: 'https://github.com/lifewatch-eric/documentation/wiki/EcoTools#annotator'
help_mappings: 'https://github.com/lifewatch-eric/documentation/wiki/EcoTools#mappings'
help_ontology_browse: 'https://github.com/lifewatch-eric/documentation/wiki/EcoTools#browse'
help_recommender: 'https://github.com/lifewatch-eric/documentation/wiki/EcoTools#recommender'
help_search: 'https://github.com/lifewatch-eric/documentation/wiki/EcoTools#search'
metrics: 'https://www.bioontology.org/wiki/Ontology_Metrics'
about: '/about'
cite: '/citeus'
facebook: 'https://www.facebook.com/LifeWatch-ERIC-245225669516847'
Expand Down