Skip to content

Commit 75cf898

Browse files
authored
Merge pull request #5 from ulsdevteam/ojs33
Ojs33
2 parents d10cc31 + bf065bf commit 75cf898

File tree

5 files changed

+124
-0
lines changed

5 files changed

+124
-0
lines changed

InlineHtmlGalleyPlugin.inc.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ function register($category, $path, $mainContextId = null) {
5252
new InlineHtmlGalleyCoverImageSidebarBlockPlugin($this->getName(), $this->getPluginPath()),
5353
$this->getPluginPath()
5454
);
55+
PluginRegistry::register(
56+
'blocks',
57+
new InlineHtmlGalleyDetailsSidebarBlockPlugin($this->getName(), $this->getPluginPath()),
58+
$this->getPluginPath()
59+
);
5560
PluginRegistry::register(
5661
'blocks',
5762
new InlineHtmlGalleyPublishedDateSidebarBlockPlugin($this->getName(), $this->getPluginPath()),

InlineHtmlGalleySidebarBlockPlugin.inc.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ function blockName() {
8686
}
8787
}
8888

89+
class InlineHtmlGalleyDetailsSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
90+
function blockName() {
91+
return "details";
92+
}
93+
}
94+
8995
class InlineHtmlGalleyPublishedDateSidebarBlockPlugin extends InlineHtmlGalleySidebarBlockPlugin {
9096
function blockName() {
9197
return "publishedDate";

locale/en_US/locale.po

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
msgid ""
2+
msgstr ""
3+
"Project-Id-Version: \n"
4+
"Report-Msgid-Bugs-To: \n"
5+
"Last-Translator: \n"
6+
"Language-Team: \n"
7+
"MIME-Version: 1.0\n"
8+
"Content-Type: text/plain; charset=UTF-8\n"
9+
"Content-Transfer-Encoding: 8bit\n"
10+
"POT-Creation-Date: 2021-10-06T11:07:43-04:00\n"
11+
"PO-Revision-Date: 2021-10-06T11:07:43-04:00\n"
12+
"Language: \n"
13+
14+
msgid "plugins.generic.inlineHtmlGalley.displayName"
15+
msgstr "Inline HTML Galley for Bootstrap"
16+
17+
msgid "plugins.generic.inlineHtmlGalley.description"
18+
msgstr "This plugin provides inline rendering support for HTML Galleys."
19+
20+
msgid "plugins.generic.inlineHtmlGalley.block.download.displayName"
21+
msgstr "HTML Galley Download Link"
22+
23+
msgid "plugins.generic.inlineHtmlGalley.block.download.description"
24+
msgstr "This block provides a link to download the HTML Galley directly."
25+
26+
msgid "plugins.generic.inlineHtmlGalley.block.keywords.displayName"
27+
msgstr "Inline HTML Galley Sidebar: Keywords"
28+
29+
msgid "plugins.generic.inlineHtmlGalley.block.keywords.description"
30+
msgstr "This block displays the article's keywords."
31+
32+
msgid "plugins.generic.inlineHtmlGalley.block.authors.displayName"
33+
msgstr "Inline HTML Galley Sidebar: Authors"
34+
35+
msgid "plugins.generic.inlineHtmlGalley.block.authors.description"
36+
msgstr "This block displays the article's authors."
37+
38+
msgid "plugins.generic.inlineHtmlGalley.block.doi.displayName"
39+
msgstr "Inline HTML Galley Sidebar: DOI"
40+
41+
msgid "plugins.generic.inlineHtmlGalley.block.doi.description"
42+
msgstr "This block provides a DOI link."
43+
44+
msgid "plugins.generic.inlineHtmlGalley.block.coverImage.displayName"
45+
msgstr "Inline HTML Galley Sidebar: Article/Issue Cover Image"
46+
47+
msgid "plugins.generic.inlineHtmlGalley.block.coverImage.description"
48+
msgstr "This block shows the article/issue cover image."
49+
50+
msgid "plugins.generic.inlineHtmlGalley.block.details.displayName"
51+
msgstr "Inline HTML Galley Sidebar: Article Details"
52+
53+
msgid "plugins.generic.inlineHtmlGalley.block.article.description"
54+
msgstr "This block provides a location for content formerly shown in the Article Details section in non-inlineHtmlGalley sites."
55+
56+
msgid "plugins.generic.inlineHtmlGalley.block.publishedDate.displayName"
57+
msgstr "Inline HTML Galley Sidebar: Published Date"
58+
59+
msgid "plugins.generic.inlineHtmlGalley.block.publishedDate.description"
60+
msgstr "This block shows the publishing date of the article."
61+
62+
msgid "plugins.generic.inlineHtmlGalley.block.howToCite.displayName"
63+
msgstr "Inline HTML Galley Sidebar: How To Cite"
64+
65+
msgid "plugins.generic.inlineHtmlGalley.block.howToCite.description"
66+
msgstr "This block shows citation information for the article."
67+
68+
msgid "plugins.generic.inlineHtmlGalley.block.license.displayName"
69+
msgstr "Inline HTML Galley Sidebar: License"
70+
71+
msgid "plugins.generic.inlineHtmlGalley.block.license.description"
72+
msgstr "This block shows license information for the article."
73+
74+
msgid "plugins.generic.inlineHtmlGalley.block.references.displayName"
75+
msgstr "Inline HTML Galley Sidebar: References"
76+
77+
msgid "plugins.generic.inlineHtmlGalley.block.references.description"
78+
msgstr "This block shows article references."
79+
80+
msgid "plugins.generic.inlineHtmlGalley.block.galleys.displayName"
81+
msgstr "Inline HTML Galley Sidebar: Galleys"
82+
83+
msgid "plugins.generic.inlineHtmlGalley.block.galleys.description"
84+
msgstr "This block shows download links for any article galleys."
85+
86+
msgid "plugins.generic.inlineHtmlGalley.settings.xpath"
87+
msgstr "XPath"
88+
89+
msgid "plugins.generic.inlineHtmlGalley.settings.xpath.description"
90+
msgstr "This XPath expression will be used to select which elements in the HTML galley will be displayed on the article landing page. If this is left blank, the default behavior is to display the contents of the body tag."
91+
92+
msgid "plugins.generic.inlineHtmlGalley.backToTop"
93+
msgstr "Back to Top"

templates/blockDetails.tpl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{**
2+
* plugins/generic/inlineHtmlGalley/blockDetails.tpl
3+
*
4+
* Copyright (c) University of Pittsburgh
5+
* Distributed under the GNU GPL v2 or later. For full terms see the file docs/COPYING.
6+
*
7+
* Inline HTML Galley download block
8+
*
9+
*}
10+
{capture name='detailsBlockContent'}{call_hook name="Templates::Article::Details"}{/capture}
11+
{if $smarty.capture.detailsBlockContent ne ""}
12+
<div class="pkp_block block_inline_html_details">
13+
<h2 class="title">{translate key="article.details"}</h2>
14+
<div class="content">
15+
{$smarty.capture.detailsBlockContent}
16+
</div>
17+
</div>
18+
{/if}
19+

templates/displayInline.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
{$article->getLocalizedAbstract()|strip_unsafe_html|nl2br}
7171
</div>
7272
</div>
73+
{call_hook name="Templates::Article::Main"}
7374
{/if}
7475
</div>
7576

0 commit comments

Comments
 (0)