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

Issue 768 rtl #879

Closed
wants to merge 7 commits into from
Closed

Conversation

Experiencis-Aurelien
Copy link

Fix #768
Contribution to support RTL mode in Skosmos.

tfrancart and others added 7 commits November 22, 2018 10:38
* adding limited support for showing skosxl:prefLabels

* Added SPARQL query to query for super properties of a property

* Used graph-agnostic queries through default endpoint to retrieve label
and superproperty of a property.

* Fixed call to Namespace.shorten(). Added types to property declarations
in test files.

* Issue 666 - squash commits (#8)

* Added preferredVocabUri parameter to Model::guessVocabularyFromURI()

* Added preferredVocabUri parameter to Model::guessVocabularyFromURI()

* Comment just to have one additionnal commit

* Compared vocab on IDs rather than URIs

* Add the preferred vocabulary parameter when calling
guessVocabularyFromURI

* Comments

* 1. Ability to fetch and return dct:subject of ConceptSchemes in the list
of Concept schemes.
2. Ability to fetch and return multiple concept schemes for which a
concept is a top concept in the parent hierarchy (new 'tops' key in the
JSON-LD result)

* skos-xl labels should now work

* fixing the preflabel right pad

* fixing the unit tests

* fixing the skosxl qtips not appearing after ajaxing content, related to NatLibFi#533

* removing unused ?member variable, fixes NatLibFi#655

* moving mapping concept notations inside the a element, related to NatLibFi#623

* Read property label from current vocabulary before querying the default
graph

* updating the composer dependencies before 1.10 release

* Look for property label and superproperties in the current EasyRdf Model
rather than making another SPARQL query.

* Use locale-based sort to sort values in concept page

* initializing the superprops variable as an empty array

* pulled files from master

* Issue NatLibFi#665 Remove SERVICE_LOGO old constant and related code

* Add Jena Fuseki to gitignore

* updating composer packages, related to NatLibFi#684

* running travis with php 7.0, related to NatLibFi#684

* migrating to phpunit 6, related to NatLibFi#684

* moving to new codeclimate reporter

* removing copypaste error

* updating the mockery package, related to NatLibFi#684

* moving old dependencies to composer, related to NatLibFi#684

* loading the remaining dependencies that were not managed by composer as a composer package, related to NatLibFi#684

* Fix hard crash on missng skosxl:literalForm

If skosxl:literalForm is missing on a label resource the $label variable remains uninitialzed and causes a hard crash

* finished jsonld augmentation

* cleaned code and added phpdoc

* Implements CBD solution for blank nodes and adds reification nodes

* refactored duplicate code

* adding a configurable property that enables defining a priority for label fallback languages, related to NatLibFi#688

* improving the fallback language order feature, related to NatLibFi#688

* fixing the missing prefLabel language tag when showing a fallback label, related to NatLibFi#688

* adding a few tests for getLanguageOrder(), related to NatLibFi#688

* using the configurable fallback languages for the concept property value labels as well, related to NatLibFi#688

* using the skosmos:feedbackLanguages for the rest api hierarchy fallback, related to NatLibFi#688

* fixing missing lang parameter from a getLanguageOrder-call, related to NatLibFi#688

* code style cleanup: removing trailing whitespaces

* whoops

* Cleaned for PR and made tests

* add build/ directory to .gitignore

* fixes NatLibFi#690

* using the configurable fallback language for the REST API children function as well

* filtering out hiddenLabels always when the concept has been found earlier, related to NatLibFi#690

* fixes NatLibFi#692

* applying a band aid for the broken mobile screen vocabulary info layout, related to NatLibFi#691

* recoded long URIs as shortened versions as requested

* only querying for concept info when the search has found some results, related to NatLibFi#696

* fix NatLibFi#701 updates embedded json-ld data correctly

* add language ordering to passed through variables to javascript

* fixing wrong translations

* using a more specific selector for the sidebar custom scrollbar

* fixing a bug with displaying language codes for fallback labels

* using the configured languages as fallbacks too

* fixing false language tags sometimes appearing with mapping concepts

* Issue NatLibFi#661 add a copy to clipboard button

* Add Dutch translations by @mrvdries and @ismakutl. Fixes NatLibFi#710

* css for the copy button

* fixes hard crash when collection doesnt return a label

* adding a random fallback for the guessLanguage so the negotiator wont crash when the accept header has not been set

* run Travis tests with newer Fuseki 3.6.0

* define Code Climate variable as global, separating it from matrix vars

* Remove support for obsolete APC caching functions. Fixes NatLibFi#728

* Issue NatLibFi#712: display the concepts of the first letter available

* Default to the first letter of the alphabet when no letter is selected. Fixes NatLibFi#712

* Add Dockerfile and a docker-compose to run SKOSMOS with Fuseki

* Add Dockerfile container_name's

* Add volume binding example in comments for Fuseki

* Rename Skosmos docker-compose created container name to skosmos

* Fixes NatLibFi#638

* fix constructor call due to previously done refactoring(?)

* Run Travis tests also under PHP 7.1 and 7.2

* add checks to prevent sizeof() related warnings in PHP 7.2

* fix PHP 7.1+ build test by changing the name for error raised

* Changed test fuseki port to 13030; upgraded test fuseki to 3.7.0; fixed PHP 7.2+ build test

* allow tests to fail on PHP 7.2 due to JsonLD compatibility problems

* expect different exceptions depending on PHP version (7.0 vs 7.1+)

* adjust build matrix: test fuseki SNAPSHOT only on php 7.1, allow failures on 7.2 & fuseki SNAPSHOT

* further adjust build matrix

* specify PHP versions without quotes

* adjust build matrix: only test fuseki SNAPSHOT on php 7.1

* bump Fuseki version to 3.7.0 also on Travis tests

* move notifications to new NatLibFi Slack instance

* Allow request input to be mocked

* Refactor getQueryParamArray to always return array

* Add additional fields to JSON-LD context for search endpoint

If additional fields are requested using the 'fields' parameter,
add them to the JSON-LD context.

Note: This will break any implementation that relies on the 'skos:'
prefix being part of the keys.

* Add mapping relations to JSON-LD context

* Add unit test for NatLibFi#744 / PR NatLibFi#756. Fixes NatLibFi#744

* Open all hierarchies when a concept is in multiple schemes. Fixes NatLibFi#765

* fix layout issue due to having a <p> element instead of <span> in skosxl display

* Change feedback message headers to use Reply-To and make name and e-mail optional. Fixes NatLibFi#761

* Set the feedback email sender address properly when a vocabulary-specific recipient has been set. Fixes NatLibFi#761

* Add Arabic translation from Transifex. Fixes NatLibFi#767

* Fix Dockerfile by automatically answering yes to apt-get install locales

* Issue NatLibFi#738 replace .inc configuration files by .ttl (turtle) files.

The cache that was created in the Model instance, now was moved to the
GlobalConfig, but is still accessed from Model to add entries looked up.

There is no more need of a separate .ttl file for vocabularies, as it is
now part of the configuration file. Old files were removed.

In order to maintain backward compatibility, most methods of GlobalConfig
and of VocabularyConfig were maintained as-is. With internal changes to
re-route requests to the right RDF objects.

Tests were minor updates in tests, but only to replace .inc by .ttl or fix
coverage annotations.

* Fix scrutinizer issues

* Remove unused graph variable from Model

* Use a list for skosmos:languages

* add skosmos:globalPlugins example which was forgotten in PR NatLibFi#769

* Use RDFS properties for language settings. Fixes NatLibFi#772

* Fix test config for NatLibFi#772

* Replace PHP explode function call by a Turtle list for globalPlugins

* Include unit test for new globalPlugins with list, and update distributed configuration file

* Issue NatLibFi#771 config migrate tool

* Replace exit() by exceptions, and fail earlier if invalid mode

* Leave values not defined as comments

* Fix search with double quotes

* Upgrade Travis config to use newest Fuseki 3.8.0

* Use Fuseki 3.8.0 by default for tests

* fix getVersion when on a branch with no tags available in recent history

* use the dev.finto.fi SPARQL endpoint as default endpoint, to match vocab config

* Disable Travis tests for Fuseki snapshot. There is no longer a Fuseki1 distribution snapshot we could use, after building it was disabled in JENA-1573.

* updated German translations. Credit: Jonas Waeber

* updated French translations. Credit: Thomas Francart

* updated Polish translations. Credit: Łukasz Szeremeta

* update translation files to match latest template; no actual changes in translations

* Add translations for Farsi, by Omid Ghiasvand and Reza Ghiasvand. Still missing true RTL support (NatLibFi#768)

* fixes NatLibFi#714

* sorting concept property values with natural case sort when sortByNotation is true, fixes NatLibFi#737

* Fixed the variable name notsort for a clearer sort_by_notation

* Avoid double encoding of search query string. Fixes NatLibFi#763

* fix issue regarding updating the json-ld data

* Specify skosmos:defaultEndpoint as a resource, not literal. Fixes NatLibFi#786

* updated German translations for 100% coverage. Credit: Jonas Waeber

* Fix PHP syntax when calling a method

* Set a value for variable when declaring it

* Avoid type coercion in JS when comparing values

* Avoid declaring a variable twice

* Remove unused variable

* Remove duplicated semicolon

* Add Vagrantfile and Ansible Playbook setup for deploying and running Skosmos in virtual environment

* Add .vagrant and .DS_Store to .gitignore

* Remove unnecessary installation of Python 2.7 and configure to use python3

* Removed old config files and added references to eclipse project file to .gitignore

* Remove Fuseki deployment

* Fix apt not installing php-mbstring by updating cache before apt install

* Turn off verbose/debug mode for Ansible provisioner

* Delete .DS_Store

* Delete second .DS_Store

* Remove unnecessary, duplicate configuration file

* Add Vagrantfile and Ansible Playbook setup for deploying and running Skosmos in virtual environment

* Add .vagrant and .DS_Store to .gitignore

* Remove unnecessary installation of Python 2.7 and configure to use python3

* Removed old config files and added references to eclipse project file to .gitignore

* Remove Fuseki deployment

* Fix apt not installing php-mbstring by updating cache before apt install

* Turn off verbose/debug mode for Ansible provisioner

* Delete .DS_Store

* Delete second .DS_Store

* Remove unnecessary, duplicate configuration file

* reorder .gitignore

* Use correct value when retrieving settings

* Add tests for GlobalConfig

* Add more tests for VoacabularyConfig

* Use array in the test for GlobalConfig::getGlobalPlugins

* Fix parameter order for jena-text queries - MAX_N setting was being ignored. Fixes NatLibFi#794

* Loosen the check for port numbers in guessBaseHref. Fixes NatLibFi#796

* removed references to old configuration files

* Choose feedback recipient based on selection on feedback form, not the URL from which the feedback page was invoked. Fixes NatLibFi#808

* Fix unit test that broke after the fix to NatLibFi#808

(cherry picked from commit 1a55e8b)

* Fix fragile unit test (may break if /tmp/skosmos-template-cache exists but is owned by another user)

* Fix config migration of LOG_FILE_NAME=null

Fixes NatLibFi#801

* fixes NatLibFi#804

* fix some css; addresses issue NatLibFi#799

* #fixes NatLibFi#791; also update fuseki to 3.9.0

* Reenable Fuseki snapshot builds on Travis; use Fuseki2 3.9.0 on Travis instead of 3.8.0

* Don't allow Travis builds with PHP 7.2 to fail; run Fuseki snapshot builds with PHP 7.2. Related to NatLibFi#758

* check which locales are installed in Travis environment

* Try to break unit tests by setting LANGUAGE=fr. Part of NatLibFi#816

* Always set LANGUAGE environment variable when setting LC_ALL. Fixes NatLibFi#816
Creation of specific css stylesheets for RTL mode.
@osma
Copy link
Member

osma commented Jul 3, 2019

Thanks for the PR!

Looking at the diff, it seems that this PR contains a lot of commits unrelated to the RTL support. Could you please rebase it on top of current master branch so that only the actual RTL changes are included?

(edited: changed LTR to RTL as it should be...)

@Experiencis-Aurelien
Copy link
Author

Experiencis-Aurelien commented Jul 4, 2019 via email

@osma
Copy link
Member

osma commented Jul 5, 2019

Thanks for your reply, yes we look that and that's the reason we created a new "clean" branch to avoïd this problem, I will make a new pull request when I finish to transfer all modification on this branch.

You can do a new PR if you really want, but it's also possible to do a forced push to the branch issue-768-rtl connected to this PR.

Just a little question, we made a draft pull request, to see if everything was good (and that wasn't :)), but on your side, is this pull request appear differently that a normal one ?

The problem is that the Files changed tab lists a huge number of changes and the great majority of them are unrelated changes done in recents months on the master branch, so it's really difficult to see what your actual RTL changes have been. I believe this happens because your branch split off from master some time ago, and later you merged some changes from master to your branch to make it more up to date, but now your actual changes are mixed up with the many unrelated changes from master.

The fix is to rebase your branch on top of current upstream (NatLibFi/Skosmos) master, then do a forced push. Here are some tutorials on how to do that:

@osma
Copy link
Member

osma commented Aug 9, 2019

Superseded by #881, closing this one.

@osma osma closed this Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support right-to-left languages
3 participants