Skip to content

Commit

Permalink
BibFormat: HB/HD people template improvement
Browse files Browse the repository at this point in the history
* Improves the bibformat HTML templates HB and HD for people.

Signed-off-by: Jochen Klein <[email protected]>
  • Loading branch information
jochenklein committed Feb 17, 2016
1 parent 3d5b05e commit 6042737
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 9 deletions.
24 changes: 23 additions & 1 deletion modules/bibformat/etc/format_templates/People_HTML_brief.bft
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
<name>Default HTML brief</name>
<description>Brief Authority HTML format.</description>

<BFE_AUTHORITY_AUTHOR detail="no"/>
<BFE_AUTHORITY_AUTHOR
prefix="<span style='font-size: 1.1em;'>"
suffix="</span>"
detail="no" />
<BFE_FIELD tag="371__0" prefix="(" suffix=")" />

<small>
<ul style="padding: 0; margin: 4px 0 4px 0;">
<BFE_AUTHORITY_DESCRIPTION
prefix="<li style='display: inline; list-style-type: none;'>"
suffix="</li>" />
<BFE_AUTHORITY_CONTACT
contact_type="email"
prefix="<li style='display: inline; list-style-type: none; padding-left: 10px;'>"
suffix="</li>"
icon="yes" />
<BFE_AUTHORITY_CONTACT
contact_type="phone"
prefix="<li style='display: inline; list-style-type: none; padding-left: 10px;'>"
suffix="</li>"
icon="yes" />
</ul>
</small>
131 changes: 123 additions & 8 deletions modules/bibformat/etc/format_templates/People_HTML_detailed.bft
Original file line number Diff line number Diff line change
@@ -1,14 +1,129 @@
<name>Authority HTML detailed</name>
<description>Detailed Authority HTML format.</description>

<h1><BFE_FIELD tag="100__a"/></h1>
<style>.inside{margin-left: 10px;}</style>
<div>
<style>
h1 {
font-weight: initial;
margin: 0 0 10px 0;
}
h2 {
font-size: initial;
font-weight: bold;
border-bottom: 2px solid #ccc;
padding: 4px;
margin: 0 0 10px 0;
}
h3 {
font-size: initial;
font-weight: normal;
font-variant: initial;
border: none;
margin: 0 0 4px 0;
padding: 4px;
width: auto;
border-bottom: 1px solid #ccc;
background-color: #eee;
color: #555;
}
.inside {
margin: 10px;
}
.row {
margin: 0 0 10px 0;
}
.row:after {
box-sizing: border-box;
content: "";
clear: both;
display: block;
}
.column {
box-sizing: border-box;
float: left;
padding: 0 10px 0 10px;
width: 33.33%;
}
.column ul {
margin: 0;
padding: 0;
}
.column ul li {
list-style: none;
padding: 4px;
}
.column ul li:hover {
background-color: #eee;
}
ol li {
padding: 4px;
}
table {
border-spacing: 0;
margin: 0;
width: 100%;
}
table tr {
display: table-row;
}
table tr:hover {
background-color: #eee;
}
table tr th {
text-align: left;
padding: 4px;
}
table tr td {
padding: 4px;
}
</style>

<BFE_AUTHORITY_AUTHOR main_name="no" detail="yes"/>

<BFE_AUTHORITY_PUBLICATIONS detail="yes"/>
<BFE_AUTHORITY_LINKS detail="yes"/>
<BFE_AUTHORITY_CONTROL_NO/>
<div class="row">
<BFE_FIELD tag="100__a" prefix='<h1>' suffix='</h1>' />
<BFE_FIELD tag="371__0" />
</div>

<h2>Personal Information</h2>
<div class="row">
<div class="column">
<h3>Workspace</h3>
<table>
<tbody>
<BFE_FIELD
prefix="<tr><th>Department</th><td>"
suffix="</td></tr>"
tag="371__i" />
<BFE_FIELD
prefix="<tr><th>Group</th><td>"
suffix="</td></tr>"
tag="371__g" />
<BFE_FIELD
prefix="<tr><th>Section</th><td>"
suffix="</td></tr>"
tag="371__j" />
<BFE_AUTHORITY_CONTROL_NO
prefix="<tr><th>Control numbers</th><td>"
suffix="</td></tr>"
print_title="no" />
</tbody>
</table>
</div>
<div class="column">
<h3>Contact</h3>
<BFE_AUTHORITY_CONTACT
prefix="<table><tbody>"
suffix="</tbody></table>"
default="<i>No contact information.</i>" />
</div>
<div class="column">
<h3>Profiles</h3>
<BFE_AUTHORITY_LINKS
print_title="no"
default="<i>No profiles.</i>"/>
</div>
</div>

<h2>Publications</h2>
<BFE_AUTHORITY_PUBLICATIONS
print_title="no"
detail="yes"
default="<i>No publications.</i>" />

0 comments on commit 6042737

Please sign in to comment.