-
Notifications
You must be signed in to change notification settings - Fork 54
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
pkp/pkp-lib/issues/6201 Adapt to support OMP #79
base: stable-3_3_0
Are you sure you want to change the base?
Changes from 5 commits
b237fd7
1d7f5fe
b756515
5b68c41
9bcab49
ed120eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
.citation_display .csl-left-margin | ||
{ | ||
display: none; | ||
} | ||
|
||
.citation_display [aria-hidden="true"] | ||
{ | ||
display: none; | ||
} | ||
|
||
.citation_display .citation_formats | ||
{ | ||
margin-top: 1em; | ||
border: 1px solid rgba(0, 0, 0, 0.4); | ||
border-radius: 2px; | ||
} | ||
|
||
.citation_display .citation_formats_button | ||
{ | ||
position: relative; | ||
background: transparent; | ||
border: none; | ||
border-bottom-left-radius: 0; | ||
border-bottom-right-radius: 0; | ||
box-shadow: none; | ||
padding: 0 1em; | ||
width: 100%; | ||
min-height: 2.5em; | ||
text-align: left; | ||
} | ||
|
||
.citation_display .citation_formats_button:after | ||
{ | ||
display: inline-block; | ||
font: normal normal normal 14px/1 FontAwesome; | ||
font-size: inherit; | ||
text-rendering: auto; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
content: "\f0d7"; | ||
position: absolute; | ||
top: 50%; | ||
right: 1em; | ||
transform: translate(0, -50%); | ||
} | ||
.citation_display .citation_formats_button[aria-expanded="true"]:after | ||
{ | ||
content: "\f0d8"; | ||
} | ||
|
||
.citation_display .citation_formats_button:focus | ||
{ | ||
outline: 0; | ||
} | ||
|
||
.citation_display .citation_formats_styles | ||
{ | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
|
||
.citation_display .citation_formats_styles a | ||
{ | ||
display: block; | ||
padding: 0.5em 1em; | ||
border-bottom: 1px solid #bbb; | ||
text-decoration: none; | ||
font-size: 0.75rem; | ||
} | ||
|
||
.citation_display .citation_formats_styles a:focus | ||
{ | ||
outline: 0; | ||
} | ||
|
||
.citation_display .citation_formats_styles li:last-child a | ||
{ | ||
border-bottom: none; | ||
} | ||
|
||
.citation_display .citation_formats_list .label | ||
{ | ||
padding: 1em 1em 0.25em 1em; | ||
} | ||
|
||
.citation_display .citation_formats_styles + .label | ||
{ | ||
border-top: 1px solid #bbb; | ||
} | ||
|
||
.citation_display span | ||
{ | ||
margin-right: 0.5em; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,9 @@ msgstr "Citation Style Language" | |
msgid "plugins.generic.citationStyleLanguage.description" | ||
msgstr "Ermöglicht es Leser/innen, die bibliografischen Angaben für einen veröffentlichten Artikel in einem von mehreren Formaten in der Citation Style Language zu erhalten." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.description.omp" | ||
msgstr "Ermöglicht es Leser/innen, die bibliografischen Angaben für ein veröffentlichtes Buch in einem von mehreren Formaten in der Citation Style Language zu erhalten." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.style.acm-sig-proceedings" | ||
msgstr "ACM" | ||
|
||
|
@@ -74,10 +77,50 @@ msgstr "Primäres Format für bibliographische Angaben" | |
msgid "plugins.generic.citationStyleLanguage.settings.citationFormatsPrimaryDescription" | ||
msgstr "Wählen Sie aus, in welchem Format Sie bibliografische Angaben standardmäßig auf der Artikelseite anzeigen möchten." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationFormatsPrimaryDescription.omp" | ||
msgstr "Wählen Sie aus, in welchem Format Sie bibliografische Angaben standardmäßig auf der Buchseite anzeigen möchten." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.publisherLocation.description" | ||
msgstr "" | ||
"Einige Zitierstile erfordern die Angabe des geografischen Standortes des " | ||
"Verlags, wie zum Beispiel \"London, U.K.\"." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.publisherLocation" | ||
msgstr "Standort des Verlags" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationUserGroups" | ||
msgstr "Autoren und Übersetzer" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationUserGroupsDescription" | ||
msgstr "In manchen Fällen gibt es neben den Autoren noch Übersetzer. Wählen Sie bitte je eine Rolle für Autoren und Übersetzer." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationUserGroups.omp" | ||
msgstr "Autoren, Herausgeber und Übersetzer" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationUserGroupsDescription.omp" | ||
msgstr "In manchen Fällen gibt es neben den Autoren noch Herausgeber oder Übersetzer. Wählen Sie bitte je eine Rolle für Autoren, Herausgeber und Übersetzer." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationChooseAuthor" | ||
msgstr "Autor:" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationChooseEditor" | ||
msgstr "Herausgeber:" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationChooseTranslator" | ||
msgstr "Übersetzer:" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationChooseChapterAuthor" | ||
msgstr "Kapitelautor:" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationOptionChooseAuthor" | ||
msgstr "Bitte wählen Sie eine Rolle für die Autoren" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationOptionChooseEditor" | ||
msgstr "Bitte wählen Sie eine Rolle für die Herausgeber" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationOptionChooseTranslator" | ||
msgstr "Bitte wählen Sie eine Rolle für die Übersetzer" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationOptionChooseChapterAuthor" | ||
msgstr "Bitte wählen Sie eine Rolle für die Kapitelautoren" | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't modify any locales except |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ msgstr "Citation Style Language" | |
msgid "plugins.generic.citationStyleLanguage.description" | ||
msgstr "Allow readers to get a published article's citation in one of several formats supported by the Citation Style Language." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.description.omp" | ||
msgstr "Allow readers to get a published book's citation in one of several formats supported by the Citation Style Language." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.style.acm-sig-proceedings" | ||
msgstr "ACM" | ||
|
||
|
@@ -71,8 +74,47 @@ msgstr "Primary Citation Format" | |
msgid "plugins.generic.citationStyleLanguage.settings.citationFormatsPrimaryDescription" | ||
msgstr "Select which citation format you would like to display by default on your article landing page." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationFormatsPrimaryDescription.omp" | ||
msgstr "Select which citation format you would like to display by default on your book landing page." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.publisherLocation" | ||
msgstr "Publisher Location" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.publisherLocation.description" | ||
msgstr "Some citation formats request the geographic location of the publisher, such as \"London, U.K.\"." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationUserGroups" | ||
msgstr "Author and Translator" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's combine this and the OMP one into a single string that works for both:
|
||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationUserGroupsDescription" | ||
msgstr "In some cases beside authors there also exists translators. Please choose a role for authors and translators." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationUserGroups.omp" | ||
msgstr "Author, Editor and Translator" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationUserGroupsDescription.omp" | ||
msgstr "In some cases beside authors there also exist editors or translators. Please choose a role for authors, editors and translators." | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationChooseAuthor" | ||
msgstr "Author:" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationChooseEditor" | ||
msgstr "Editor:" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationChooseTranslator" | ||
msgstr "Translator:" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationChooseChapterAuthor" | ||
msgstr "Chapter Author:" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the
|
||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationOptionChooseAuthor" | ||
msgstr "Please choose a role for authors" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationOptionChooseEditor" | ||
msgstr "Please choose a role for editors" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationOptionChooseTranslator" | ||
msgstr "Please choose a role for translators" | ||
|
||
msgid "plugins.generic.citationStyleLanguage.settings.citationOptionChooseChapterAuthor" | ||
msgstr "Please choose a role for chapter authors" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is possible for for multiple user groups to be configured for each of these roles. I think we're going to need to adjust this to allow journals/presses to select multiple user groups for each role. Once changed, you can use the following text for each:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying to remember, but I think you might run into timing issues here, because I think the order that plugins are registered can change. So you may run into cases where the CSL plugin is running its constructor before the chapter frontend plugin has been registered.