-
Notifications
You must be signed in to change notification settings - Fork 1
/
article-index.php
executable file
·170 lines (169 loc) · 7.16 KB
/
article-index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?php
get_header();
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
?>
<table class="listing" width="100%">
<tr><td colspan="4" class="headseparator"> </td></tr>
<tr valign="top">
<td class="heading" width="25%" colspan="2">Dublin Core</td>
<td class="heading" width="25%">PKP Metadata Items</td>
<td class="heading" width="50%">Metadata for this Document</td>
</tr>
<tr><td colspan="4" class="headseparator"> </td></tr>
<tr valign="top">
<td>1.</td>
<td>Title</td>
<td>Title of document</td>
<td><?php echo get_the_title(); ?></td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>2.</td>
<td width="25%">Creator</td>
<td>Author's name, affiliation, country</td>
<td><?php
$authors = get_post_meta(get_the_ID(), 'authors', true);
if(!empty($authors)){
foreach($authors as $author) {
if($author['primary_contact']) {
echo $author['first_name'].' '.$author['middle_name'].' '.$author['last_name'];
if(!empty($author['affiliation']))
echo '; '.$author['affiliation'];
if(!empty($author['country']))
echo '; '.$author['country'];
break;
}
}
}else{
echo "";
}
?></td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>3.</td>
<td>Subject</td>
<td>Discipline(s)</td>
<td></td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>3.</td>
<td>Subject</td>
<td>Keyword(s)</td>
<td></td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>4.</td>
<td>Description</td>
<td>Abstract</td>
<td><?php echo get_the_excerpt(); ?></td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>5.</td>
<td>Publisher</td>
<td>Organizing agency, location</td>
<td>Forum for Medical Ethics Society</td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>6.</td>
<td>Contributor</td>
<td>Sponsor(s)</td>
<td></td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>7.</td>
<td>Date</td>
<td>(YYYY-MM-DD)</td>
<td><?php echo get_the_date('Y-m-d'); ?></td><!--FIXME-->
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>8.</td>
<td>Type</td>
<td>Status & genre</td>
<td></td><!--FIXME-->
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>8.</td>
<td>Type</td>
<td>Type</td>
<td></td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>9.</td>
<td>Format</td>
<td>File format</td>
<td>HTML <?php if(get_post_meta(get_the_ID(),'pdf_file',true)) { ?>, PDF<?php } ?></td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>10.</td>
<td>Identifier</td>
<td>Uniform Resource Identifier</td>
<td><a target="_new" href="<?php echo get_permalink(); ?>"><?php echo get_permalink(); ?></a></td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>11.</td>
<td>Source</td>
<td>Title; vol., no. (year)</td>
<td>
<?php
echo get_bloginfo('name').";";
$volume = get_post_meta(get_the_ID(),'volume', true);
$number = get_post_meta(get_the_ID(),'number', true);
$year = get_post_meta(get_the_ID(),'year', true);
if($volume || $number || $year) { ?> , <?php }
if($volume) { echo "Vol ".$volume.","; }
if($number) { ?>No <?php echo $number; ?> <?php }
if($year) { ?>(<?php echo $year; ?>) <?php }
echo ": ".get_the_title(get_post_meta(get_the_ID(),'issue_post_id',true));
?>
</td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>12.</td>
<td>Language</td>
<td>English=en</td>
<td>en</td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>13.</td>
<td>Relation</td>
<td>Supp. Files</td>
<td></td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>14.</td>
<td>Coverage</td>
<td>Geo-spatial location, chronological period, research sample (gender, age, etc.)</td>
<td></td>
</tr>
<tr><td colspan="4" class="separator"> </td></tr>
<tr valign="top">
<td>15.</td>
<td>Rights</td>
<td>Copyright and permissions</td>
<td><p>All articles published in <em>IJME</em> are available on its website free of charge. The copyright for published material belongs to <em>IJME</em>/FMES. <em>IJME</em> freely permits the reprint (or reproduction on a website) of articles from the journal, as long as this is for non-commercial use and appropriate credit is given to the author and the journal and publication details are mentioned. The commercial use of our content can be made only after obtaining permission from and on payment to<em> IJME</em>. This is intended to support production of the journal.</p></td>
</tr>
</table>
<?php
}
}
else {
?>
Unknown article
<?php
}