diff --git a/plugins/themes/default/styles/objects/monograph_full.less b/plugins/themes/default/styles/objects/monograph_full.less index 63c8faae048..d98995bed35 100644 --- a/plugins/themes/default/styles/objects/monograph_full.less +++ b/plugins/themes/default/styles/objects/monograph_full.less @@ -21,17 +21,33 @@ margin-bottom: @quadruple; } - .author_roles { - &:extend(.pkp_unstyled_list); + .main_entry { - .name { - display: block; + .item { + padding: 30px 0; + + &:first-child { + padding-top: 0; + } + } + + .sub_item { + margin-bottom: @double; + + &:last-child { + margin-bottom: 0; + } + } + + .label { + margin: 0 0 @double; + font-size: @font-base; font-weight: @bold; } } - h3 { - font-size: @font-base; + .authors .label { + margin-bottom: 0; } .entry_details { @@ -44,8 +60,15 @@ border-bottom: @bg-border; } + .sub_item { + margin-bottom: @double; + + &:last-child { + margin-bottom: 0; + } + } + .label { - display: block; font-size: @font-sml; font-weight: @normal; color: @text-light; @@ -61,14 +84,6 @@ margin: 0 auto; } - .format_detail { - margin-bottom: @base; - - &:last-child { - margin-bottom: 0; - } - } - .files { .pkp_helpers_clear; diff --git a/templates/frontend/objects/monograph_full.tpl b/templates/frontend/objects/monograph_full.tpl index 692a109c98e..bb731053fb7 100644 --- a/templates/frontend/objects/monograph_full.tpl +++ b/templates/frontend/objects/monograph_full.tpl @@ -8,6 +8,47 @@ * @brief Display a full view of a monograph. Expected to be primary object on * the page. * + * Many presses will need to add custom data to this object, either through + * plugins which attach to hooks on the page or by editing the template + * themselves. In order to facilitate this, a flexible layout markup pattern has + * been implemented. If followed, plugins and other content can provide markup + * in a way that will render consistently with other items on the page. This + * pattern is used in the .main_entry column and the .entry_details column. It + * consists of the following: + * + * + *
+ * + *
Abstract
+ *
Value
+ *
+ * + * All styling should be applied by class name, so that titles may use heading + * elements (eg,

) or any element required. + * + * + *
+ *
+ *
DOI
+ *
12345678
+ *
+ *
+ *
Published Date
+ *
2015-01-01
+ *
+ *
+ * + * + *
+ *
Whatever you'd like
+ *
+ * + * Core components are produced manually below, but can also be added via + * plugins using the hooks provided: + * + * Templates::Catalog::Book::Main + * Templates::Catalog::Book::Details + * * @uses $currentPress Press The press currently being viewed * @uses $monograph Monograph The monograph to be displayed * @uses $dateFormatShort string String defining date format that is passed to @@ -28,56 +69,65 @@
-
    +
    {foreach from=$publishedMonograph->getAuthors() item=author} {if $author->getIncludeInBrowse()} -
  • - +
    +
    {$author->getFullName()|escape} - - - {$author->getLocalizedUserGroupName()|escape} - - {assign var=biography value=$author->getLocalizedBiography()|strip_unsafe_html} - {if $biography} - - {$biography|strip_unsafe_html} - - {/if} -
  • +
    +
    +
    + {$author->getLocalizedUserGroupName()|escape} +
    + {assign var=biography value=$author->getLocalizedBiography()|strip_unsafe_html} + {if $biography} +
    + {$biography|strip_unsafe_html} +
    + {/if} +
    +
{/if} {/foreach} - +
-
-

+
+

{translate key="submission.synopsis"}

- {$publishedMonograph->getLocalizedAbstract()|strip_unsafe_html} +
+ {$publishedMonograph->getLocalizedAbstract()|strip_unsafe_html} +
{if $chapters|@count} -
    - {foreach from=$chapters item=chapter} -
  • - - {$chapter->getLocalizedTitle()} - {if $chapter->getLocalizedSubtitle() != ''} - - {$chapter->getLocalizedSubtitle()|escape} - +
    +
      + {foreach from=$chapters item=chapter} +
    • +
      + {$chapter->getLocalizedTitle()} + {if $chapter->getLocalizedSubtitle() != ''} +
      + {$chapter->getLocalizedSubtitle()|escape} +
      + {/if} +
      + {assign var=chapterAuthors value=$chapter->getAuthorNamesAsString()} + {if $publishedMonograph->getAuthorString() != $chapterAuthors} +
      + {$chapterAuthors|escape} +
      {/if} - - {assign var=chapterAuthors value=$chapter->getAuthorNamesAsString()} - {if $publishedMonograph->getAuthorString() != $chapterAuthors} - - {$chapterAuthors|escape} - - {/if} -
    • - {/foreach} -
    +
  • + {/foreach} +
+

{/if} + + {call_hook name="Templates::Catalog::Book::Main"} +
@@ -151,14 +201,14 @@ {* Series *} {if $series}
- +
{translate key="series.series"} - - +
+
{/if} @@ -166,10 +216,10 @@ {assign var=categories value=$publishedMonograph->getCategories()} {if !$categories->wasEmpty()}
- +
{translate key="catalog.categories"} - - +
+
    {iterate from=categories item=category}
  • @@ -179,7 +229,7 @@
  • {/iterate}
- +
{/if} @@ -215,13 +265,13 @@ {translate key="monograph.publicationFormatDetails"}

-
- +
+
{translate key="monograph.publicationFormat"} - - +
+
{$publicationFormat->getLocalizedName()|escape} - +
{* DOI's and other identification codes *} @@ -229,13 +279,13 @@ {assign var=identificationCodes value=$identificationCodes->toArray()} {if $identificationCodes} {foreach from=$identificationCodes item=identificationCode} -
- +
+
{$identificationCode->getNameForONIXCode()|escape} - - +
+
{$identificationCode->getValue()|escape} - +
{/foreach} {/if} @@ -245,11 +295,11 @@ {assign var=publicationDates value=$publicationDates->toArray()} {if $publicationDates} {foreach from=$publicationDates item=publicationDate} -
- +
+
{$publicationDate->getNameForONIXCode()|escape} - - +
+
{assign var=dates value=$publicationDate->getReadableDates()} {* note: these dates have dateFormatShort applied to them in getReadableDates() if they need it *} {if $publicationDate->isFreeText() || $dates|@count == 1} @@ -259,10 +309,11 @@ {$dates[0]|escape}—{$dates[1]|escape} {/if} {if $publicationDate->isHijriCalendar()} - +
{translate key="common.dateHijri"} - +
{/if} +
{/foreach} {/if} @@ -272,13 +323,13 @@ {foreach from=$enabledPubIdTypes item=pubIdType} {assign var=storedPubId value=$publicationFormat->getStoredPubId($pubIdType)} {if $storePubId != ''} -
- +
+
{$pubIdType} - - +
+
{$storedPubId|escape} - +
{/if} {/foreach} @@ -286,13 +337,13 @@ {* Physical dimensions *} {if $publicationFormat->getPhysicalFormat()} -
- +
+
{translate key="monograph.publicationFormat.productDimensions"} - - +
+
{$publicationFormat->getDimensions()|escape} - +
{/if}
@@ -300,6 +351,8 @@ {/foreach} {/if} + {call_hook name="Templates::Catalog::Book::Details"} +