|
@@ -3,21 +3,15 @@
|
|
class="node-view-header-ref" :class="'node-view-header-' + mode"
|
|
class="node-view-header-ref" :class="'node-view-header-' + mode"
|
|
>
|
|
>
|
|
<div class="d-flex w-100">
|
|
<div class="d-flex w-100">
|
|
- <h4 class="mr-auto">
|
|
|
|
- <strong class="d-block">
|
|
|
|
- {{ toCommaList(node.authors) }},
|
|
|
|
- </strong>
|
|
|
|
- <span v-if="node.preTitle" v-html="trim(node.preTitle) + ', '" />
|
|
|
|
- <em v-html="(trim(node.title) || 'pas de titre ital') + ','" />
|
|
|
|
- <div v-if="node.edition" class="edition">
|
|
|
|
- {{ node.edition.map(ed => ed.name).join(' ') }}
|
|
|
|
- </div>
|
|
|
|
- </h4>
|
|
|
|
|
|
+ <node-view-title
|
|
|
|
+ :node="node" tag="h4"
|
|
|
|
+ block edition
|
|
|
|
+ class="mr-auto"
|
|
|
|
+ />
|
|
|
|
|
|
<node-view-child-list
|
|
<node-view-child-list
|
|
v-if="mode === 'view'"
|
|
v-if="mode === 'view'"
|
|
:children="node.children"
|
|
:children="node.children"
|
|
- :parent-id="node.id"
|
|
|
|
@open-child="$parent.$emit('open-child', $event)"
|
|
@open-child="$parent.$emit('open-child', $event)"
|
|
/>
|
|
/>
|
|
<button-close v-if="mode === 'view'" @click="onClose()" />
|
|
<button-close v-if="mode === 'view'" @click="onClose()" />
|
|
@@ -27,14 +21,15 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { trim, toCommaList } from '@/helpers/common'
|
|
import { trim, toCommaList } from '@/helpers/common'
|
|
-import { NodeViewChildList } from '@/components/nodes'
|
|
|
|
|
|
+import { NodeViewChildList, NodeViewTitle } from '@/components/nodes'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'NodeViewHeaderRef',
|
|
name: 'NodeViewHeaderRef',
|
|
|
|
|
|
components: {
|
|
components: {
|
|
- NodeViewChildList
|
|
|
|
|
|
+ NodeViewChildList,
|
|
|
|
+ NodeViewTitle
|
|
},
|
|
},
|
|
|
|
|
|
props: {
|
|
props: {
|
|
@@ -53,23 +48,10 @@ export default {
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
|
|
|
+<style lang="scss">
|
|
.node-view-header {
|
|
.node-view-header {
|
|
&-ref {
|
|
&-ref {
|
|
- font: {
|
|
|
|
- family: $font-family-text;
|
|
|
|
- size: inherit;
|
|
|
|
- line-height: inherit;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- h4 {
|
|
|
|
- font-weight: $font-weight-base;
|
|
|
|
- font-size: 32px;
|
|
|
|
-
|
|
|
|
- .authors {
|
|
|
|
- font-weight: $font-weight-bold;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ font-family: $font-family-text;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|