Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Dynamic routes for ontologies content dereferencement (#568)
* Add uri redirection for /ontologies/:acronym/:id to the appropriate page * small fixes: remove binding.pry and return resource_id in find_type_by_search * Add copy agroportal link functionality - this functionality is using the ClipboardComponent because it works the same but differ only in the content and icon - the clipboard component has been changed to accept title and icon * redirect to content finder page when no type is valid * Updated route to use redirect action instead of show_redirection * Use default icon and title arguments in the Clipboard Component * rename and internationalize clipboard component titles * small fix: remove % from svg icon * Add the copy title to the components section in en.yml and fr.yml * Show the generated uri when user hover over the copy link icon * Make the dynamic route content negotiable - based on the accept header we will - if "text/html" we will redirect to the agroportal page - else we will call the api and get the content serialized in the format specified and return it * update serialize content to return accept_header * translate copy_original_uri and copy_portal_uri to french * reuse search content concern in uri redirection concern * remove duplicate link_last_part method * update the ontology redirection action to use ontology URI if resource_id nil * update the content serializer to translate ntriples to an html table if asked for html format * in the ontology redirection by default redirect to content finder with in html format * remove the ":" from the copy the portal URI tooltip text * change the order of the icons in the link_with_action component --------- Co-authored-by: Syphax bouazzouni <[email protected]>
- Loading branch information