-
Notifications
You must be signed in to change notification settings - Fork 447
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
Enable simultaneous display of multilingual metadata #7272
Comments
I'd like to see this implemented on a per-theme basis. We can implement it as a theme option in the default theme and some of the others without too much difficulty. |
the simultaneous display of multilingual metadata might ensure that all languages are indexable by crawlers #699 |
a solution has been reported in the forum: https://forum.pkp.sfu.ca/t/option-to-have-article-abstracts-and-titles-in-multiple-languages/33220/3 see a live example: https://digitcult.lim.di.unimi.it/index.php/dc/article/view/191 |
Just noting that the |
Multilingual DC tags could also be used, e.g.,:
Although not used by Google Scholar, they could be useful for general Google Search. |
Dear all, here is the code we wrote for DigitCult. Basically, you have to modify two files:
The references to $article->getLocalizedTitle() and ->getLocalizedAbstract() have to be modified into loops on the data structures resulting from article->getTitle() and ->getAbstract(), which are arrays. You can iterate over them through foreach statements, e.g. if you don't know how many languages you have to manage, or simply target the languages you are interested in, as in our scenario. In our case, the first file - article_summary.tpl - has been transformed into:
In the second file - article_details.tpl - please note that the code lines reported below are not continuous, there is a gap where you see the sequence "..."
|
Attaching the modified .tpl files for download: |
I just realized CrossRef already supports multiple titles in different languages, e.g.:
background: https://community.crossref.org/t/multi-language-support/3054/9 support for exporting multilingual metadata, even for single-language articles, is a frequent discussion forum topic, e.g.: edit: actually, crossref doesn't fully support titles in multiple languages; it does support additional titles, but their language is undefined: |
…he Article Landing Page
Issue descriptionOne of the most frequent issues with metadata is that editors will enter content with more than one language into a single field because they want all the data visible for the reader without the need to switch the UI language. For smaller languages, it is for example very common to write an English abstract for the article. It is likely common to see two languages in a single abstract field because the editor wants to show both abstracts on an article landing page. This example could be equally true for other metadata fields such as title and keywords. ChangesThe suggested solution is to build a set of theme options in the Default theme in OJS/OMP/OPS that enable the simultaneous display of specified metadata fields in the Landing page by simply defining those fields and editing the theme settings. The implementation in the Default theme can then be used as an example in theme development. If required, additions to the core ThemePlugin functionality are added. The attached PR's includes the following code changes:
PRs: OJS: pkp/ojs#4050 |
…he Article Landing Page
…he Article Landing Page
Separate title groups for primary language (UI or submission language) and other languages. Aria attributes are for screen readers. The example is just a suggestion that may need to be changed.
Other choices: The titles are as in the default theme. Titles in other languages are in their own section either directly under the titles or directly above keywords.
Then:
OR
|
…he Article Landing Page
…he Article Landing Page
…he Article Landing Page
…he Article Landing Page
…he Article Landing Page
…he Article Landing Page
…he Article Landing Page
…he Article Landing Page
Describe the problem you would like to solve
From the Coalition Publica metadata working group:
Describe the solution you'd like
Rather than displaying only the current language's metadata, with a fallback on the primary language, permit the display of metadata in both languages on the same page.
This might need to be treated differently depending on the context. For example, it's common for an article landing page to present information in two languages at once (e.g. French and English) for titles and abstracts. For other fields (e.g. keywords) it might be better to introduce a visual indication that other languages may be available, with a way to toggle that display.
Who is asking for this feature?
Coalition Publica metadata working group
Additional information
From the recommenation: "Simultaneous Display of Multilingual Metadata"
The text was updated successfully, but these errors were encountered: