We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

View | Details | Raw Unified | Return to bug 6480 | Differences between
and this patch

Collapse All | Expand All

(-)a/plugins/citationFormats/abnt/citation.tpl (-1 / +1 lines)
 Lines 17-21    Link Here 
17
	{$author->getLastName()|escape|upper}, {$firstName[0]|escape}.{if $i<$authorCount-1}, {/if}{/foreach}.
17
	{$author->getLastName()|escape|upper}, {$firstName[0]|escape}.{if $i<$authorCount-1}, {/if}{/foreach}.
18
{$article->getLocalizedTitle()|strip_unsafe_html}.
18
{$article->getLocalizedTitle()|strip_unsafe_html}.
19
<strong>{$journal->getLocalizedTitle()|escape}</strong>, {translate key="plugins.citationFormat.abnt.location"}{if $issue}, {$issue->getVolume()|escape}{/if},
19
<strong>{$journal->getLocalizedTitle()|escape}</strong>, {translate key="plugins.citationFormat.abnt.location"}{if $issue}, {$issue->getVolume()|escape}{/if},
20
{$article->getDatePublished()|date_format:'%b. %Y'|lower}. {translate key="plugins.citationFormats.abnt.retrieved" retrievedDate=$smarty.now|date_format:'%d %b. %Y' url=$articleUrl}.
20
{if $article->getDatePublished()}{$article->getDatePublished()|date_format:'%b. %Y'|lower}{elseif $issue->getDatePublished()}{$issue->getDatePublished()|date_format:'%b. %Y'}{else}{$issue->getYear()|escape}{/if}. {translate key="plugins.citationFormats.abnt.retrieved" retrievedDate=$smarty.now|date_format:'%d %b. %Y' url=$articleUrl}.
21
</div>
21
</div>
(-)a/plugins/citationFormats/apa/citation.tpl (-1 / +1 lines)
 Lines 17-23    Link Here 
17
	{$author->getLastName()|escape}, {$firstName[0]|escape}.{if $i==$authorCount-2}, &amp; {elseif $i<$authorCount-1}, {/if}
17
	{$author->getLastName()|escape}, {$firstName[0]|escape}.{if $i==$authorCount-2}, &amp; {elseif $i<$authorCount-1}, {/if}
18
{/foreach}
18
{/foreach}
19
19
20
({$article->getDatePublished()|date_format:'%Y'}).
20
({if $article->getDatePublished()}{$article->getDatePublished()|date_format:'%Y'}{elseif $issue->getDatePublished()}{$issue->getDatePublished()|date_format:'%Y'}{else}{$issue->getYear()|escape}{/if}).
21
{$article->getLocalizedTitle()}.
21
{$article->getLocalizedTitle()}.
22
<em>{$journal->getLocalizedTitle()|capitalize}{if $issue}, {$issue->getVolume()|escape}</em>{if $issue->getNumber()}({$issue->getNumber()|escape}){/if}{else}</em>{/if}{if $article->getPages()}, {$article->getPages()}{/if}.
22
<em>{$journal->getLocalizedTitle()|capitalize}{if $issue}, {$issue->getVolume()|escape}</em>{if $issue->getNumber()}({$issue->getNumber()|escape}){/if}{else}</em>{/if}{if $article->getPages()}, {$article->getPages()}{/if}.
23
{if $article->getDOI()}doi:{$article->getDOI()}{else}{translate key="plugins.citationFormats.apa.retrieved" retrievedDate=$smarty.now|date_format:$dateFormatLong url=$articleUrl}{/if}
23
{if $article->getDOI()}doi:{$article->getDOI()}{else}{translate key="plugins.citationFormats.apa.retrieved" retrievedDate=$smarty.now|date_format:$dateFormatLong url=$articleUrl}{/if}
(-)a/plugins/citationFormats/bibtex/citation.tpl (-1 / +3 lines)
 Lines 17-23    Link Here 
17
	journal = {{/literal}{$journal->getLocalizedTitle()|bibtex_escape}{literal}},
17
	journal = {{/literal}{$journal->getLocalizedTitle()|bibtex_escape}{literal}},
18
{/literal}{if $issue}{literal}	volume = {{/literal}{$issue->getVolume()|bibtex_escape}{literal}},
18
{/literal}{if $issue}{literal}	volume = {{/literal}{$issue->getVolume()|bibtex_escape}{literal}},
19
	number = {{/literal}{$issue->getNumber()|bibtex_escape}{literal}},{/literal}{/if}{literal}
19
	number = {{/literal}{$issue->getNumber()|bibtex_escape}{literal}},{/literal}{/if}{literal}
20
	year = {{/literal}{$article->getDatePublished()|date_format:'%Y'}{literal}},
20
{if $article->getDatePublished() || $issue->getDatePublished()}
21
	year = {{/literal}{if $article->getDatePublished()}{$article->getDatePublished()|date_format:'%Y'}{else}{$issue->getDatePublished()|date_format:'%Y'}{/if}{literal}},
22
{/if}
21
	keywords = {{/literal}{$article->getLocalizedSubject()|bibtex_escape}{literal}},
23
	keywords = {{/literal}{$article->getLocalizedSubject()|bibtex_escape}{literal}},
22
	abstract = {{/literal}{$article->getLocalizedAbstract()|strip_tags:false|bibtex_escape}{literal}},
24
	abstract = {{/literal}{$article->getLocalizedAbstract()|strip_tags:false|bibtex_escape}{literal}},
23
{/literal}{assign var=onlineIssn value=$journal->getSetting('onlineIssn')}
25
{/literal}{assign var=onlineIssn value=$journal->getSetting('onlineIssn')}
(-)a/plugins/citationFormats/cbe/citation.tpl (-1 / +1 lines)
 Lines 18-22    Link Here 
18
	{$author->getLastName()|escape}, {$firstName[0]|escape}.{if $i==$authorCount-2}, &amp; {elseif $i<$authorCount-1}, {/if}
18
	{$author->getLastName()|escape}, {$firstName[0]|escape}.{if $i==$authorCount-2}, &amp; {elseif $i<$authorCount-1}, {/if}
19
{/foreach}
19
{/foreach}
20
20
21
{$article->getDatePublished()|date_format:'%Y %b %e'}. {$article->getLocalizedTitle()|strip_unsafe_html}. {$journal->getLocalizedTitle()|escape}. [{translate key="rt.captureCite.online"}] {if $issue}{$issue->getVolume()|escape}:{$issue->getNumber()|escape}{/if}
21
{if $article->getDatePublished()}{$article->getDatePublished()|date_format:'%Y %b %e'}{elseif $issue->getDatePublished()}{$issue->getDatePublished()|date_format:'%Y %b %e'}{else}{$issue->getYear()|escape}{/if}. {$article->getLocalizedTitle()|strip_unsafe_html}. {$journal->getLocalizedTitle()|escape}. [{translate key="rt.captureCite.online"}] {if $issue}{$issue->getVolume()|escape}:{$issue->getNumber()|escape}{/if}
22
</div>
22
</div>
(-)a/plugins/citationFormats/endNote/citation.tpl (+6 lines)
 Lines 16-22    Link Here 
16
{foreach from=$article->getAuthors() item=author}
16
{foreach from=$article->getAuthors() item=author}
17
%A {$author->getFullName(true)|escape}
17
%A {$author->getFullName(true)|escape}
18
{/foreach}
18
{/foreach}
19
{if $article->getDatePublished()}
19
%D {$article->getDatePublished()|date_format:"%Y"}
20
%D {$article->getDatePublished()|date_format:"%Y"}
21
{elseif $issue->getDatePublished()}
22
%D {$issue->getDatePublished()|date_format:"%Y"}
23
{else}
24
%D {$issue->getYear()|escape}
25
{/if}
20
%T {$article->getLocalizedTitle()|strip_tags}
26
%T {$article->getLocalizedTitle()|strip_tags}
21
%B {$article->getDatePublished()|date_format:"%Y"}
27
%B {$article->getDatePublished()|date_format:"%Y"}
22
%9 {$article->getLocalizedSubject()|escape}
28
%9 {$article->getLocalizedSubject()|escape}
(-)a/plugins/citationFormats/proCite/citation.tpl (-1 / +6 lines)
 Lines 17-27   TY - JOUR Link Here 
17
{foreach from=$article->getAuthors() item=author}
17
{foreach from=$article->getAuthors() item=author}
18
AU  - {$author->getFullName(true)|escape}
18
AU  - {$author->getFullName(true)|escape}
19
{/foreach}
19
{/foreach}
20
{if $article->getDatePublished()}
20
PY  - {$article->getDatePublished()|date_format:"%Y"}
21
PY  - {$article->getDatePublished()|date_format:"%Y"}
22
{elseif $issue->getDatePublished()}
23
PY  - {$issue->getDatePublished()|date_format:"%Y"}
24
{else}
25
PY  - {$issue->getYear()|escape}
26
{/if}
21
TI  - {$article->getLocalizedTitle()|strip_tags}
27
TI  - {$article->getLocalizedTitle()|strip_tags}
22
JF  - {$journal->getLocalizedTitle()}{if $issue}; {$issue->getIssueIdentification()|strip_tags}{/if}
28
JF  - {$journal->getLocalizedTitle()}{if $issue}; {$issue->getIssueIdentification()|strip_tags}{/if}
23
29
24
Y2  - {$article->getDatePublished()|date_format:"%Y"}
25
KW  - {$article->getLocalizedSubject()|escape}
30
KW  - {$article->getLocalizedSubject()|escape}
26
N2  - {$article->getLocalizedAbstract()|strip_tags|replace:"\n":" "|replace:"\r":" "}
31
N2  - {$article->getLocalizedAbstract()|strip_tags|replace:"\n":" "|replace:"\r":" "}
27
UR  - {$articleUrl}
32
UR  - {$articleUrl}
(-)a/plugins/citationFormats/refMan/citation.tpl (-2 / +3 lines)
 Lines 17-27   TY - JOUR Link Here 
17
{foreach from=$article->getAuthors() item=author}
17
{foreach from=$article->getAuthors() item=author}
18
AU  - {$author->getFullName(true)|escape}
18
AU  - {$author->getFullName(true)|escape}
19
{/foreach}
19
{/foreach}
20
PY  - {$article->getDatePublished()|date_format:"%Y"}
20
{if $article->getDatePublished()}
21
PY  - {$article->getDatePublished()|date_format:"%Y/%m/%d/"}
22
{/if}
21
TI  - {$article->getLocalizedTitle()|strip_tags}
23
TI  - {$article->getLocalizedTitle()|strip_tags}
22
JF  - {$journal->getLocalizedTitle()|escape}{if $issue}; {$issue->getIssueIdentification()|escape|strip_tags}{/if}
24
JF  - {$journal->getLocalizedTitle()|escape}{if $issue}; {$issue->getIssueIdentification()|escape|strip_tags}{/if}
23
25
24
Y2  - {$article->getDatePublished()|date_format:"%Y"}
25
KW  - {$article->getLocalizedSubject()|replace:';':','|escape}
26
KW  - {$article->getLocalizedSubject()|replace:';':','|escape}
26
N2  - {$article->getLocalizedAbstract()|strip_tags|replace:"\n":" "|replace:"\r":" "}
27
N2  - {$article->getLocalizedAbstract()|strip_tags|replace:"\n":" "|replace:"\r":" "}
27
UR  - {$articleUrl}
28
UR  - {$articleUrl}
(-)a/plugins/citationFormats/refWorks/citation.tpl (-2 / +2 lines)
 Lines 17-23    Link Here 
17
	journal = {{/literal}{$journal->getLocalizedTitle()|escape}{literal}},
17
	journal = {{/literal}{$journal->getLocalizedTitle()|escape}{literal}},
18
{/literal}{if $issue}{literal}	volume = {{/literal}{$issue->getVolume()|escape}{literal}},
18
{/literal}{if $issue}{literal}	volume = {{/literal}{$issue->getVolume()|escape}{literal}},
19
	number = {{/literal}{$issue->getNumber()|escape}{literal}},{/literal}{/if}{literal}
19
	number = {{/literal}{$issue->getNumber()|escape}{literal}},{/literal}{/if}{literal}
20
	year = {{/literal}{$article->getDatePublished()|date_format:'%Y'}{literal}},
20
	year = {{/literal}{if $article->getDatePublished()}{$article->getDatePublished()|date_format:'%Y'}{elseif $issue->getDatePublished()}{$issue->getDatePublished()|date_format:'%Y'}{else}{$issue->getYear()|escape}{/if}{literal}},
21
{/literal}{assign var=issn value=$journal->getSetting('issn')|escape}{if $issn}{literal}	issn = {{/literal}{$issn|escape}{literal}},{/literal}{/if}
21
{/literal}{assign var=issn value=$journal->getSetting('issn')|escape}{if $issn}{literal}	issn = {{/literal}{$issn|escape}{literal}},{/literal}{/if}
22
22
23
{literal}	url = {{/literal}{$articleUrl}{literal}}
23
{literal}	url = {{/literal}{$articleUrl}{literal}}
 Lines 25-28    Link Here 
25
	<br />
25
	<br />
26
	<input type="submit" class="button defaultButton" name="Submit" value="{translate key="plugins.citationFormats.refWorks.export"}" />
26
	<input type="submit" class="button defaultButton" name="Submit" value="{translate key="plugins.citationFormats.refWorks.export"}" />
27
</form>
27
</form>
28
</div>
28
</div>
(-)a/plugins/citationFormats/turabian/citation.tpl (-1 / +1 lines)
 Lines 18-22    Link Here 
18
	{$author->getLastName()|escape}, {$firstName|escape}{if $i==$authorCount-2}, {translate key="rt.context.and"} {elseif $i<$authorCount-1}, {else}.{/if}
18
	{$author->getLastName()|escape}, {$firstName|escape}{if $i==$authorCount-2}, {translate key="rt.context.and"} {elseif $i<$authorCount-1}, {else}.{/if}
19
{/foreach}
19
{/foreach}
20
20
21
"{$article->getLocalizedTitle()|strip_unsafe_html}" <em>{$journal->getLocalizedTitle()|escape}</em> [{translate key="rt.captureCite.online"}], {if $issue && $issue->getVolume()}{translate key="issue.volume"} {$issue->getVolume()|escape}{/if}{if $issue && $issue->getNumber()} {translate key="issue.number"} {$issue->getNumber()|escape} {/if}({$article->getDatePublished()|date_format:'%e %B %Y'|trim})
21
"{$article->getLocalizedTitle()|strip_unsafe_html}" <em>{$journal->getLocalizedTitle()|escape}</em> [{translate key="rt.captureCite.online"}], {if $issue && $issue->getVolume()}{translate key="issue.volume"} {$issue->getVolume()|escape}{/if}{if $issue && $issue->getNumber()} {translate key="issue.number"} {$issue->getNumber()|escape} {/if}({if $article->getDatePublished()}{$article->getDatePublished()|date_format:'%e %B %Y'|trim}{elseif $issue->getDatePublished()}{$issue->getDatePublished()|date_format:'%e %B %Y'|trim}{else}{$issue->getYear()|escape}{/if})
22
</div>
22
</div>
(-)a/plugins/gateways/metsGateway/MetsExportDom.inc.php (-4 / +8 lines)
 Lines 175-182   class MetsExportDom { Link Here 
175
		$modsIdentifier = XMLCustomWriter::createChildWithText($doc, $mods, 'mods:identifier', $url);
175
		$modsIdentifier = XMLCustomWriter::createChildWithText($doc, $mods, 'mods:identifier', $url);
176
		XMLCustomWriter::setAttribute($modsIdentifier, 'type', 'uri');
176
		XMLCustomWriter::setAttribute($modsIdentifier, 'type', 'uri');
177
		$modsOriginInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
177
		$modsOriginInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
178
		$timeIssued = date(DATE_W3C, strtotime($issue->getDatePublished()));
178
179
		$modsDateIssued = XMLCustomWriter::createChildWithText($doc, $modsOriginInfo, 'mods:dateIssued', $timeIssued);
179
		if ($issue->getDatePublished()) {
180
			$timeIssued = date(DATE_W3C, strtotime($issue->getDatePublished()));
181
			$modsDateIssued = XMLCustomWriter::createChildWithText($doc, $modsOriginInfo, 'mods:dateIssued', $timeIssued);
182
		}
183
180
		XMLCustomWriter::appendChild($mods, $modsOriginInfo);
184
		XMLCustomWriter::appendChild($mods, $modsOriginInfo);
181
		$modsRelatedItem =& XMLCustomWriter::createElement($doc, 'mods:relatedItem');
185
		$modsRelatedItem =& XMLCustomWriter::createElement($doc, 'mods:relatedItem');
182
		XMLCustomWriter::setAttribute($modsRelatedItem, 'type', 'host');
186
		XMLCustomWriter::setAttribute($modsRelatedItem, 'type', 'host');
 Lines 271-277   class MetsExportDom { Link Here 
271
			$i++;
275
			$i++;
272
		}
276
		}
273
		XMLCustomWriter::createChildWithText($doc, $mods, 'mods:genre', 'article');
277
		XMLCustomWriter::createChildWithText($doc, $mods, 'mods:genre', 'article');
274
		if($issue->getDatePublished() != '') {
278
		if($issue->getDatePublished()) {
275
			$timeIssued = date(DATE_W3C, strtotime($issue->getDatePublished()));
279
			$timeIssued = date(DATE_W3C, strtotime($issue->getDatePublished()));
276
			$originInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
280
			$originInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
277
			$sDate = XMLCustomWriter::createChildWithText($doc, $originInfo, 'mods:dateIssued', $timeIssued);
281
			$sDate = XMLCustomWriter::createChildWithText($doc, $originInfo, 'mods:dateIssued', $timeIssued);
 Lines 368-374   class MetsExportDom { Link Here 
368
			XMLCustomWriter::appendChild($mods, $creatorNode);
372
			XMLCustomWriter::appendChild($mods, $creatorNode);
369
		}
373
		}
370
		if($suppFile->getDescription() != '') XMLCustomWriter::createChildWithText($doc, $mods, 'mods:abstract', $suppFile->getDescription());
374
		if($suppFile->getDescription() != '') XMLCustomWriter::createChildWithText($doc, $mods, 'mods:abstract', $suppFile->getDescription());
371
		if($suppFile->getDateCreated() != '') {
375
		if($suppFile->getDateCreated()) {
372
			$originInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
376
			$originInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
373
			$timeIssued = date(DATE_W3C, strtotime($suppFile->getDateCreated()));
377
			$timeIssued = date(DATE_W3C, strtotime($suppFile->getDateCreated()));
374
			$sDate = XMLCustomWriter::createChildWithText($doc, $originInfo, 'mods:dateCreated', $timeIssued);
378
			$sDate = XMLCustomWriter::createChildWithText($doc, $originInfo, 'mods:dateCreated', $timeIssued);
(-)a/plugins/generic/coins/CoinsPlugin.inc.php (-1 / +6 lines)
 Lines 73-79   class CoinsPlugin extends GenericPlugin { Link Here 
73
				array('rft.jtitle', $journal->getLocalizedTitle()),
73
				array('rft.jtitle', $journal->getLocalizedTitle()),
74
				array('rft.atitle', $article->getLocalizedTitle()),
74
				array('rft.atitle', $article->getLocalizedTitle()),
75
				array('rft.artnum', $article->getBestArticleId()),
75
				array('rft.artnum', $article->getBestArticleId()),
76
				array('rft.date', date('Y-m-d', strtotime($article->getDatePublished()))),
77
				array('rft.stitle', $journal->getLocalizedSetting('abbreviation')),
76
				array('rft.stitle', $journal->getLocalizedSetting('abbreviation')),
78
				array('rft.volume', $issue->getVolume()),
77
				array('rft.volume', $issue->getVolume()),
79
				array('rft.issue', $issue->getNumber()),
78
				array('rft.issue', $issue->getNumber()),
 Lines 82-87   class CoinsPlugin extends GenericPlugin { Link Here 
82
				array('rft.auinit', $firstAuthor->getMiddleName())
81
				array('rft.auinit', $firstAuthor->getMiddleName())
83
			);
82
			);
84
83
84
			$datePublished = $article->getDatePublished();
85
			if (!$datePublished) $datePublished = $issue->getDatePublished();
86
			if ($datePublished) {
87
				$vars[] = array('rft.date', date('Y-m-d', strtotime($datePublished)));
88
			}
89
85
			foreach ($authors as $author) {
90
			foreach ($authors as $author) {
86
				$vars[] = array('rft.au', $author->getFullName());
91
				$vars[] = array('rft.au', $author->getFullName());
87
			}
92
			}
(-)a/plugins/generic/webFeed/templates/atom.tpl (-2 / +14 lines)
 Lines 13-19    Link Here 
13
	{* required elements *}
13
	{* required elements *}
14
	<id>{url page="issue" op="feed"}</id>
14
	<id>{url page="issue" op="feed"}</id>
15
	<title>{$journal->getLocalizedTitle()|escape:"html"|strip}</title>
15
	<title>{$journal->getLocalizedTitle()|escape:"html"|strip}</title>
16
	<updated>{$issue->getDatePublished()|date_format:"%Y-%m-%dT%T%z"|regex_replace:"/00$/":":00"}</updated>
16
17
	{* Figure out feed updated date *}
18
	{assign var=latestDate value=$issue->getDatePublished()}
19
	{foreach name=sections from=$publishedArticles item=section}
20
		{foreach from=$section.articles item=article}
21
			{if $article->getDateModified() > $latestDate}
22
				{assign var=latestDate value=$article->getDateModified()}
23
			{/if}
24
		{/foreach}
25
	{/foreach}
26
	<updated>{$latestDate|date_format:"%Y-%m-%dT%T%z"|regex_replace:"/00$/":":00"}</updated>
17
27
18
	{* recommended elements *}
28
	{* recommended elements *}
19
	{if $journal->getSetting('contactName')}
29
	{if $journal->getSetting('contactName')}
 Lines 75-81    Link Here 
75
				{* <category/> *}
85
				{* <category/> *}
76
				{* <contributor/> *}
86
				{* <contributor/> *}
77
87
78
				<published>{$article->getDatePublished()|date_format:"%Y-%m-%dT%T%z"|regex_replace:"/00$/":":00"}</published>
88
				{if $article->getDatePublished()}
89
					<published>{$article->getDatePublished()|date_format:"%Y-%m-%dT%T%z"|regex_replace:"/00$/":":00"}</published>
90
				{/if}
79
91
80
				{* <source/> *}
92
				{* <source/> *}
81
				{* <rights/> *}
93
				{* <rights/> *}
(-)a/plugins/generic/webFeed/templates/rss.tpl (-2 / +4 lines)
 Lines 82-90    Link Here 
82
				<dc:creator>{$author->getFullName()|strip|escape:"html"}</dc:creator>
82
				<dc:creator>{$author->getFullName()|strip|escape:"html"}</dc:creator>
83
			{/foreach}
83
			{/foreach}
84
84
85
			<dc:date>{$article->getDatePublished()|date_format:"%Y-%m-%d"}</dc:date>
85
			{if $article->getDatePublished()}
86
				<dc:date>{$article->getDatePublished()|date_format:"%Y-%m-%d"}</dc:date>
87
				<prism:publicationDate>{$article->getDatePublished()|date_format:"%Y-%m-%d"}</prism:publicationDate>
88
			{/if}
86
			<prism:volume>{$issue->getVolume()|escape}</prism:volume>
89
			<prism:volume>{$issue->getVolume()|escape}</prism:volume>
87
			<prism:publicationDate>{$article->getDatePublished()|date_format:"%Y-%m-%d"}</prism:publicationDate>
88
		</item>
90
		</item>
89
	{/foreach}{* articles *}
91
	{/foreach}{* articles *}
90
{/foreach}{* sections *}
92
{/foreach}{* sections *}
(-)a/plugins/generic/webFeed/templates/rss2.tpl (-2 / +6 lines)
 Lines 40-46    Link Here 
40
			<webMaster>{$journal->getSetting('supportEmail')|strip|escape:"html"}{if $journal->getSetting('contactName')} ({$journal->getSetting('supportName')|strip|escape:"html"}){/if}</webMaster>
40
			<webMaster>{$journal->getSetting('supportEmail')|strip|escape:"html"}{if $journal->getSetting('contactName')} ({$journal->getSetting('supportName')|strip|escape:"html"}){/if}</webMaster>
41
		{/if}
41
		{/if}
42
42
43
		<pubDate>{$issue->getDatePublished()|date_format:"%a, %d %b %Y %T %z"}</pubDate>
43
		{if $issue->getDatePublished()}
44
			<pubDate>{$issue->getDatePublished()|date_format:"%a, %d %b %Y %T %z"}</pubDate>
45
		{/if}
44
46
45
		{* <lastBuildDate/> *}
47
		{* <lastBuildDate/> *}
46
		{* <category/> *}
48
		{* <category/> *}
 Lines 65-71    Link Here 
65
					{* <source/> *}
67
					{* <source/> *}
66
68
67
					<guid isPermaLink="true">{url page="article" op="view" path=$article->getBestArticleId($currentJournal)}</guid>
69
					<guid isPermaLink="true">{url page="article" op="view" path=$article->getBestArticleId($currentJournal)}</guid>
68
					<pubDate>{$article->getDatePublished()|date_format:"%a, %d %b %Y %T %z"}</pubDate>
70
					{if $article->getDatePublished()}
71
						<pubDate>{$article->getDatePublished()|date_format:"%a, %d %b %Y %T %z"}</pubDate>
72
					{/if}
69
				</item>
73
				</item>
70
			{/foreach}{* articles *}
74
			{/foreach}{* articles *}
71
		{/foreach}{* sections *}
75
		{/foreach}{* sections *}
(-)a/plugins/importexport/crossref/CrossRefExportDom.inc.php (-4 / +8 lines)
 Lines 142-149   class CrossRefExportDom { Link Here 
142
	function &generateJournalIssueDom(&$doc, &$journal, &$issue, &$section, &$article) {
142
	function &generateJournalIssueDom(&$doc, &$journal, &$issue, &$section, &$article) {
143
		$journalIssueNode =& XMLCustomWriter::createElement($doc, 'journal_issue');
143
		$journalIssueNode =& XMLCustomWriter::createElement($doc, 'journal_issue');
144
144
145
		$publicationDateNode =& CrossRefExportDom::generatePublisherDateDom($doc, $issue->getDatePublished());
145
		if ($issue->getDatePublished()) {
146
		XMLCustomWriter::appendChild($journalIssueNode, $publicationDateNode);
146
			$publicationDateNode =& CrossRefExportDom::generatePublisherDateDom($doc, $issue->getDatePublished());
147
			XMLCustomWriter::appendChild($journalIssueNode, $publicationDateNode);
148
		}
147
149
148
		$journalVolumeNode =& XMLCustomWriter::createElement($doc, 'journal_volume');
150
		$journalVolumeNode =& XMLCustomWriter::createElement($doc, 'journal_volume');
149
		XMLCustomWriter::appendChild($journalIssueNode, $journalVolumeNode);
151
		XMLCustomWriter::appendChild($journalIssueNode, $journalVolumeNode);
 Lines 184-191   class CrossRefExportDom { Link Here 
184
		XMLCustomWriter::appendChild($journalArticleNode, $contributorsNode);
186
		XMLCustomWriter::appendChild($journalArticleNode, $contributorsNode);
185
187
186
		/* publication date of issue */
188
		/* publication date of issue */
187
		$publicationDateNode =& CrossRefExportDom::generatePublisherDateDom($doc, $issue->getDatePublished());
189
		if ($issue->getDatePublished()) {
188
		XMLCustomWriter::appendChild($journalArticleNode, $publicationDateNode);
190
			$publicationDateNode =& CrossRefExportDom::generatePublisherDateDom($doc, $issue->getDatePublished());
191
			XMLCustomWriter::appendChild($journalArticleNode, $publicationDateNode);
192
		}
189
193
190
		/* publisher_item is the article pages */
194
		/* publisher_item is the article pages */
191
		if ($article->getPages() != '') {
195
		if ($article->getPages() != '') {
(-)a/plugins/importexport/crossref/issues.tpl (-1 / +1 lines)
 Lines 52-58   function toggleChecked() { Link Here 
52
	<tr valign="top">
52
	<tr valign="top">
53
		<td><input type="checkbox" name="issueId[]" value="{$issue->getId()}"/></td>
53
		<td><input type="checkbox" name="issueId[]" value="{$issue->getId()}"/></td>
54
		<td><a href="{url page="issue" op="view" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
54
		<td><a href="{url page="issue" op="view" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
55
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"}</td>
55
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"|default:"&mdash;"}</td>
56
		<td>{$issue->getNumArticles()|escape}</td>
56
		<td>{$issue->getNumArticles()|escape}</td>
57
		<td align="right"><a href="{plugin_url path="exportIssue"|to_array:$issue->getId()}" class="action">{translate key="common.export"}</a></td>
57
		<td align="right"><a href="{plugin_url path="exportIssue"|to_array:$issue->getId()}" class="action">{translate key="common.export"}</a></td>
58
	</tr>
58
	</tr>
(-)a/plugins/importexport/erudit/EruditExportDom.inc.php (-1 / +1 lines)
 Lines 74-80   class EruditExportDom { Link Here 
74
74
75
		$digPubNode =& XMLCustomWriter::createElement($doc, 'digpub');
75
		$digPubNode =& XMLCustomWriter::createElement($doc, 'digpub');
76
		XMLCustomWriter::appendChild($issueNode, $digPubNode);
76
		XMLCustomWriter::appendChild($issueNode, $digPubNode);
77
		XMLCustomWriter::createChildWithText($doc, $digPubNode, 'date', EruditExportDom::formatDate($issue->getDatePublished()));
77
		if ($issue->getDatePublished()) XMLCustomWriter::createChildWithText($doc, $digPubNode, 'date', EruditExportDom::formatDate($issue->getDatePublished()));
78
78
79
		/* --- Publisher & DTD --- */
79
		/* --- Publisher & DTD --- */
80
80
(-)a/plugins/importexport/mets/MetsExportDom.inc.php (-4 / +6 lines)
 Lines 171-178   class MetsExportDom { Link Here 
171
		$modsIdentifier = XMLCustomWriter::createChildWithText($doc, $mods, 'mods:identifier', $url);
171
		$modsIdentifier = XMLCustomWriter::createChildWithText($doc, $mods, 'mods:identifier', $url);
172
		XMLCustomWriter::setAttribute($modsIdentifier, 'type', 'uri');
172
		XMLCustomWriter::setAttribute($modsIdentifier, 'type', 'uri');
173
		$modsOriginInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
173
		$modsOriginInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
174
		$timeIssued = date("Y-m-dTH:i:sP", strtotime($issue->getDatePublished()));
174
		if ($issue->getDatePublished()) {
175
		$modsDateIssued = XMLCustomWriter::createChildWithText($doc, $modsOriginInfo, 'mods:dateIssued', $timeIssued);
175
			$timeIssued = date("Y-m-dTH:i:sP", strtotime($issue->getDatePublished()));
176
			$modsDateIssued = XMLCustomWriter::createChildWithText($doc, $modsOriginInfo, 'mods:dateIssued', $timeIssued);
177
		}
176
		XMLCustomWriter::appendChild($mods, $modsOriginInfo);
178
		XMLCustomWriter::appendChild($mods, $modsOriginInfo);
177
		$modsRelatedItem =& XMLCustomWriter::createElement($doc, 'mods:relatedItem');
179
		$modsRelatedItem =& XMLCustomWriter::createElement($doc, 'mods:relatedItem');
178
		XMLCustomWriter::setAttribute($modsRelatedItem, 'type', 'host');
180
		XMLCustomWriter::setAttribute($modsRelatedItem, 'type', 'host');
 Lines 278-284   class MetsExportDom { Link Here 
278
			$i++;
280
			$i++;
279
		}
281
		}
280
		XMLCustomWriter::createChildWithText($doc, $mods, 'mods:genre', 'article');
282
		XMLCustomWriter::createChildWithText($doc, $mods, 'mods:genre', 'article');
281
		if($issue->getDatePublished() != ''){
283
		if ($issue->getDatePublished()) {
282
			$timeIssued = date("Y-m-dTH:i:sP", strtotime($issue->getDatePublished()));
284
			$timeIssued = date("Y-m-dTH:i:sP", strtotime($issue->getDatePublished()));
283
			$originInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
285
			$originInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
284
			$sDate = XMLCustomWriter::createChildWithText($doc, $originInfo, 'mods:dateIssued', $timeIssued);
286
			$sDate = XMLCustomWriter::createChildWithText($doc, $originInfo, 'mods:dateIssued', $timeIssued);
 Lines 383-389   class MetsExportDom { Link Here 
383
		foreach ($suppFile->getDescription(null) as $locale => $description) {
385
		foreach ($suppFile->getDescription(null) as $locale => $description) {
384
			XMLCustomWriter::createChildWithText($doc, $mods, 'mods:abstract', $description);
386
			XMLCustomWriter::createChildWithText($doc, $mods, 'mods:abstract', $description);
385
		}
387
		}
386
		if($suppFile->getDateCreated() != ''){
388
		if($suppFile->getDateCreated()){
387
			$originInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
389
			$originInfo =& XMLCustomWriter::createElement($doc, 'mods:originInfo');
388
			$timeIssued = date("Y-m-dTH:i:sP", strtotime($suppFile->getDateCreated()));
390
			$timeIssued = date("Y-m-dTH:i:sP", strtotime($suppFile->getDateCreated()));
389
			$sDate = XMLCustomWriter::createChildWithText($doc, $originInfo, 'mods:dateCreated', $timeIssued);
391
			$sDate = XMLCustomWriter::createChildWithText($doc, $originInfo, 'mods:dateCreated', $timeIssued);
(-)a/plugins/importexport/mets/issues.tpl (-1 / +1 lines)
 Lines 108-114   function SubmitIfAnyIsChecked() { Link Here 
108
	<tr valign="top">
108
	<tr valign="top">
109
		<td><input type="checkbox" name="issueId[]" value="{$issue->getId()}"/></td>
109
		<td><input type="checkbox" name="issueId[]" value="{$issue->getId()}"/></td>
110
		<td>{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</td>
110
		<td>{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</td>
111
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"}</td>
111
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"|default:"&mdash;"}</td>
112
		<td>{$issue->getNumArticles()|escape}</td>
112
		<td>{$issue->getNumArticles()|escape}</td>
113
		<td align="right"><a href="{plugin_url path="exportIssue"|to_array:$issue->getId()}" class="action">{translate key="common.export"}</a></td>
113
		<td align="right"><a href="{plugin_url path="exportIssue"|to_array:$issue->getId()}" class="action">{translate key="common.export"}</a></td>
114
	</tr>
114
	</tr>
(-)a/plugins/importexport/native/NativeExportDom.inc.php (+6 lines)
 Lines 277-282   class NativeExportDom { Link Here 
277
277
278
		XMLCustomWriter::createChildWithText($doc, $root, 'pages', $article->getPages(), false);
278
		XMLCustomWriter::createChildWithText($doc, $root, 'pages', $article->getPages(), false);
279
279
280
		// NOTE that this is a required field for import, but it's
281
		// possible here to generate nonconforming XML via export b/c
282
		// of the potentially missing date_published node. This is due
283
		// to legacy data issues WRT an earlier lack of ability to
284
		// define article pub dates. Some legacy data will be missing
285
		// this date.
280
		XMLCustomWriter::createChildWithText($doc, $root, 'date_published', NativeExportDom::formatDate($article->getDatePublished()), false);
286
		XMLCustomWriter::createChildWithText($doc, $root, 'date_published', NativeExportDom::formatDate($article->getDatePublished()), false);
281
287
282
		if ($article->getAccessStatus() == ARTICLE_ACCESS_OPEN) {
288
		if ($article->getAccessStatus() == ARTICLE_ACCESS_OPEN) {
(-)a/plugins/importexport/native/articleContext.tpl (-1 / +1 lines)
 Lines 44-50    Link Here 
44
		<td><input {if !$notFirst}checked="checked" {/if}name="issueId" type="radio" value="{$issue->getId()}"/></td>
44
		<td><input {if !$notFirst}checked="checked" {/if}name="issueId" type="radio" value="{$issue->getId()}"/></td>
45
		{assign var=notFirst value=1}
45
		{assign var=notFirst value=1}
46
		<td><a href="{url page="issue" op="view" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
46
		<td><a href="{url page="issue" op="view" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
47
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"}</td>
47
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"|default:"&mdash;"}</td>
48
		<td>{$issue->getNumArticles()|escape}</td>
48
		<td>{$issue->getNumArticles()|escape}</td>
49
	</tr>
49
	</tr>
50
	<tr>
50
	<tr>
(-)a/plugins/importexport/native/issues.tpl (-1 / +1 lines)
 Lines 50-56   function toggleChecked() { Link Here 
50
	<tr valign="top">
50
	<tr valign="top">
51
		<td><input type="checkbox" name="issueId[]" value="{$issue->getId()}"/></td>
51
		<td><input type="checkbox" name="issueId[]" value="{$issue->getId()}"/></td>
52
		<td><a href="{url page="issue" op="view" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
52
		<td><a href="{url page="issue" op="view" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
53
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"}</td>
53
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"|default:"&mdash;"}</td>
54
		<td>{$issue->getNumArticles()|escape}</td>
54
		<td>{$issue->getNumArticles()|escape}</td>
55
		<td align="right"><a href="{plugin_url path="exportIssue"|to_array:$issue->getId()}" class="action">{translate key="common.export"}</a></td>
55
		<td align="right"><a href="{plugin_url path="exportIssue"|to_array:$issue->getId()}" class="action">{translate key="common.export"}</a></td>
56
	</tr>
56
	</tr>
(-)a/plugins/importexport/pubmed/PubMedExportDom.inc.php (-2 / +6 lines)
 Lines 73-80   class PubMedExportDom { Link Here 
73
		XMLCustomWriter::createChildWithText($doc, $journalNode, 'Volume', $issue->getVolume());
73
		XMLCustomWriter::createChildWithText($doc, $journalNode, 'Volume', $issue->getVolume());
74
		XMLCustomWriter::createChildWithText($doc, $journalNode, 'Issue', $issue->getNumber(), false);
74
		XMLCustomWriter::createChildWithText($doc, $journalNode, 'Issue', $issue->getNumber(), false);
75
75
76
		$pubDateNode =& PubMedExportDom::generatePubDateDom($doc, $article->getDatePublished(), 'epublish');
76
		$datePublished = $article->getDatePublished();
77
		XMLCustomWriter::appendChild($journalNode, $pubDateNode);
77
		if (!$datePublished) $datePublished = $issue->getDatePublished();
78
		if ($datePublished) {
79
			$pubDateNode =& PubMedExportDom::generatePubDateDom($doc, $datePublished, 'epublish');
80
			XMLCustomWriter::appendChild($journalNode, $pubDateNode);
81
		}
78
82
79
		/* --- Replaces --- */
83
		/* --- Replaces --- */
80
		// this creates a blank replaces tag since OJS doesn't contain PMID metadata
84
		// this creates a blank replaces tag since OJS doesn't contain PMID metadata
(-)a/plugins/importexport/pubmed/issues.tpl (-1 / +1 lines)
 Lines 52-58   function toggleChecked() { Link Here 
52
	<tr valign="top">
52
	<tr valign="top">
53
		<td><input type="checkbox" name="issueId[]" value="{$issue->getId()}"/></td>
53
		<td><input type="checkbox" name="issueId[]" value="{$issue->getId()}"/></td>
54
		<td><a href="{url page="issue" op="view" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
54
		<td><a href="{url page="issue" op="view" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
55
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"}</td>
55
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"|default:"&mdash;"}</td>
56
		<td>{$issue->getNumArticles()|escape}</td>
56
		<td>{$issue->getNumArticles()|escape}</td>
57
		<td align="right"><a href="{plugin_url path="exportIssue"|to_array:$issue->getId()}" class="action">{translate key="common.export"}</a></td>
57
		<td align="right"><a href="{plugin_url path="exportIssue"|to_array:$issue->getId()}" class="action">{translate key="common.export"}</a></td>
58
	</tr>
58
	</tr>
(-)a/plugins/importexport/sample/issues.tpl (-1 / +1 lines)
 Lines 34-40    Link Here 
34
	{iterate from=issues item=issue}
34
	{iterate from=issues item=issue}
35
	<tr valign="top">
35
	<tr valign="top">
36
		<td><a href="{url page="issue" op="view" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
36
		<td><a href="{url page="issue" op="view" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
37
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"}</td>
37
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"|default:"&mdash;"}</td>
38
		<td>{$issue->getNumArticles()|escape}</td>
38
		<td>{$issue->getNumArticles()|escape}</td>
39
		<td align="right"><a href="{plugin_url path="exportIssue"|to_array:$issue->getId()}" class="action">{translate key="common.export"}</a></td>
39
		<td align="right"><a href="{plugin_url path="exportIssue"|to_array:$issue->getId()}" class="action">{translate key="common.export"}</a></td>
40
	</tr>
40
	</tr>
(-)a/plugins/oaiMetadataFormats/marc/OAIMetadataFormat_MARC.inc.php (-2 / +2 lines)
 Lines 80-86   class OAIMetadataFormat_MARC extends OAIMetadataFormat { Link Here 
80
			"\txmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" .
80
			"\txmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" .
81
			"\txsi:schemaLocation=\"http://www.openarchives.org/OAI/1.1/oai_marc\n" .
81
			"\txsi:schemaLocation=\"http://www.openarchives.org/OAI/1.1/oai_marc\n" .
82
			"\thttp://www.openarchives.org/OAI/1.1/oai_marc.xsd\">\n" .
82
			"\thttp://www.openarchives.org/OAI/1.1/oai_marc.xsd\">\n" .
83
			"\t<fixfield id=\"008\">\"" . date('ymd Y', strtotime($issue->getDatePublished())) . '												eng  "</fixfield>' . "\n" .
83
			($article->getDatePublished()?"\t<fixfield id=\"008\">\"" . date('ymd Y', strtotime($article->getDatePublished())) . '												eng  "</fixfield>' . "\n":'') .
84
			$this->formatElement('042', ' ', ' ', 'a', 'dc') .
84
			$this->formatElement('042', ' ', ' ', 'a', 'dc') .
85
			$this->formatElement('245', '0', '0', 'a', $article->getTitle($journal->getPrimaryLocale())) .
85
			$this->formatElement('245', '0', '0', 'a', $article->getTitle($journal->getPrimaryLocale())) .
86
			$this->formatElement('720', ' ', ' ', 'a', $creators) .
86
			$this->formatElement('720', ' ', ' ', 'a', $creators) .
 Lines 88-94   class OAIMetadataFormat_MARC extends OAIMetadataFormat { Link Here 
88
			$this->formatElement('520', ' ', ' ', 'a', $article->getLocalizedAbstract()) .
88
			$this->formatElement('520', ' ', ' ', 'a', $article->getLocalizedAbstract()) .
89
			$this->formatElement('260', ' ', ' ', 'b', $publisher) .
89
			$this->formatElement('260', ' ', ' ', 'b', $publisher) .
90
			$this->formatElement('720', ' ', ' ', 'a', strip_tags($article->getLocalizedSponsor())) .
90
			$this->formatElement('720', ' ', ' ', 'a', strip_tags($article->getLocalizedSponsor())) .
91
			$this->formatElement('260', ' ', ' ', 'c', $issue->getDatePublished()) .
91
			($issue->getDatePublished()?$this->formatElement('260', ' ', ' ', 'c', $issue->getDatePublished()):'') .
92
			$this->formatElement('655', ' ', '7', 'a', $section->getLocalizedIdentifyType()) .
92
			$this->formatElement('655', ' ', '7', 'a', $section->getLocalizedIdentifyType()) .
93
			$this->formatElement('856', ' ', ' ', 'q', $format) .
93
			$this->formatElement('856', ' ', ' ', 'q', $format) .
94
			$this->formatElement('856', '4', '0', 'u', Request::url($journal->getPath(), 'article', 'view', array($article->getBestArticleId()))) .
94
			$this->formatElement('856', '4', '0', 'u', Request::url($journal->getPath(), 'article', 'view', array($article->getBestArticleId()))) .
(-)a/plugins/oaiMetadataFormats/marcxml/OAIMetadataFormat_MARC21.inc.php (-2 / +2 lines)
 Lines 81-87   class OAIMetadataFormat_MARC21 extends OAIMetadataFormat { Link Here 
81
			"\txsi:schemaLocation=\"http://www.loc.gov/MARC21/slim\n" .
81
			"\txsi:schemaLocation=\"http://www.loc.gov/MARC21/slim\n" .
82
			"\thttp://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd\">\n" .
82
			"\thttp://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd\">\n" .
83
			"\t<leader>     cam         3u     </leader>\n" .
83
			"\t<leader>     cam         3u     </leader>\n" .
84
			"\t<controlfield tag=\"008\">\"" . date('ymd Y', strtotime($issue->getDatePublished())) . "                        eng  \"</controlfield>\n" .
84
			($article->getDatePublished()?"\t<controlfield tag=\"008\">\"" . date('ymd Y', strtotime($article->getDatePublished())) . "                        eng  \"</controlfield>\n":'') .
85
			$this->formatElement('042', ' ', ' ', 'a', 'dc') .
85
			$this->formatElement('042', ' ', ' ', 'a', 'dc') .
86
			$this->formatElement('245', '0', '0', 'a', $article->getTitle($journal->getPrimaryLocale())) .
86
			$this->formatElement('245', '0', '0', 'a', $article->getTitle($journal->getPrimaryLocale())) .
87
			$this->formatElement('720', ' ', ' ', 'a', $creators) .
87
			$this->formatElement('720', ' ', ' ', 'a', $creators) .
 Lines 89-95   class OAIMetadataFormat_MARC21 extends OAIMetadataFormat { Link Here 
89
			$this->formatElement('520', ' ', ' ', 'a', $article->getLocalizedAbstract()) .
89
			$this->formatElement('520', ' ', ' ', 'a', $article->getLocalizedAbstract()) .
90
			$this->formatElement('260', ' ', ' ', 'b', $publisher) .
90
			$this->formatElement('260', ' ', ' ', 'b', $publisher) .
91
			$this->formatElement('720', ' ', ' ', 'a', strip_tags($article->getLocalizedSponsor())) .
91
			$this->formatElement('720', ' ', ' ', 'a', strip_tags($article->getLocalizedSponsor())) .
92
			$this->formatElement('260', ' ', ' ', 'c', $issue->getDatePublished()) .
92
			($issue->getDatePublished()?$this->formatElement('260', ' ', ' ', 'c', $issue->getDatePublished()):'') .
93
			$this->formatElement('655', ' ', '7', 'a', $section->getLocalizedIdentifyType()) .
93
			$this->formatElement('655', ' ', '7', 'a', $section->getLocalizedIdentifyType()) .
94
			$this->formatElement('856', ' ', ' ', 'q', $format) .
94
			$this->formatElement('856', ' ', ' ', 'q', $format) .
95
			$this->formatElement('856', '4', '0', 'u', Request::url($journal->getPath(), 'article', 'view', array($article->getBestArticleId()))) .
95
			$this->formatElement('856', '4', '0', 'u', Request::url($journal->getPath(), 'article', 'view', array($article->getBestArticleId()))) .
(-)a/plugins/oaiMetadataFormats/nlm/OAIMetadataFormat_NLM.inc.php (-5 / +9 lines)
 Lines 55-61   class OAIMetadataFormat_NLM extends OAIMetadataFormat { Link Here 
55
		$onlineIssn = $journal->getSetting('onlineIssn');
55
		$onlineIssn = $journal->getSetting('onlineIssn');
56
		$primaryLocale = $journal->getPrimaryLocale();
56
		$primaryLocale = $journal->getPrimaryLocale();
57
		$publisherInstitution = $journal->getSetting('publisherInstitution');
57
		$publisherInstitution = $journal->getSetting('publisherInstitution');
58
		$datePublished = strtotime($article->getDatePublished());
58
		$datePublished = $article->getDatePublished();
59
		if (!$datePublished) $datePublished = $issue->getDatePublished();
60
		if ($datePublished) $datePublished = strtotime($datePublished);
59
61
60
		$response = "<article\n" .
62
		$response = "<article\n" .
61
			"\txmlns=\"http://dtd.nlm.nih.gov/publishing/2.3\"\n" .
63
			"\txmlns=\"http://dtd.nlm.nih.gov/publishing/2.3\"\n" .
 Lines 116-128   class OAIMetadataFormat_NLM extends OAIMetadataFormat { Link Here 
116
		// Include editorships (optimized)
118
		// Include editorships (optimized)
117
		$response .= $this->getEditorialInfo($journal->getId());
119
		$response .= $this->getEditorialInfo($journal->getId());
118
120
119
		$response .=
121
		$response .= "\t\t\t</contrib-group>\n";
120
			"\t\t\t</contrib-group>\n" .
122
		if ($datePublished) $response .=
121
			"\t\t\t<pub-date pub-type=\"epub\">\n" .
123
			"\t\t\t<pub-date pub-type=\"epub\">\n" .
122
			"\t\t\t\t<day>" . strftime('%d', $datePublished) . "</day>\n" .
124
			"\t\t\t\t<day>" . strftime('%d', $datePublished) . "</day>\n" .
123
			"\t\t\t\t<month>" . strftime('%m', $datePublished) . "</month>\n" .
125
			"\t\t\t\t<month>" . strftime('%m', $datePublished) . "</month>\n" .
124
			"\t\t\t\t<year>" . strftime('%Y', $datePublished) . "</year>\n" .
126
			"\t\t\t\t<year>" . strftime('%Y', $datePublished) . "</year>\n" .
125
			"\t\t\t</pub-date>\n" .
127
			"\t\t\t</pub-date>\n";
128
129
		$response .=
126
			($issue->getShowYear()?"\t\t\t<pub-date pub-type=\"collection\"><year>" . htmlspecialchars(Core::cleanVar($issue->getYear())) . "</year></pub-date>\n":'') .
130
			($issue->getShowYear()?"\t\t\t<pub-date pub-type=\"collection\"><year>" . htmlspecialchars(Core::cleanVar($issue->getYear())) . "</year></pub-date>\n":'') .
127
			($issue->getShowVolume()?"\t\t\t<volume>" . htmlspecialchars(Core::cleanVar($issue->getVolume())) . "</volume>\n":'') .
131
			($issue->getShowVolume()?"\t\t\t<volume>" . htmlspecialchars(Core::cleanVar($issue->getVolume())) . "</volume>\n":'') .
128
			($issue->getShowNumber()?"\t\t\t<issue seq=\"" . htmlspecialchars(Core::cleanVar(($sectionSeq[$section->getId()]*100) + $article->getSeq())) . "\">" . htmlspecialchars(Core::cleanVar($issue->getNumber())) . "</issue>\n":'') .
132
			($issue->getShowNumber()?"\t\t\t<issue seq=\"" . htmlspecialchars(Core::cleanVar(($sectionSeq[$section->getId()]*100) + $article->getSeq())) . "\">" . htmlspecialchars(Core::cleanVar($issue->getNumber())) . "</issue>\n":'') .
 Lines 147-153   class OAIMetadataFormat_NLM extends OAIMetadataFormat { Link Here 
147
		$response .=
151
		$response .=
148
			"\t\t\t<permissions>\n" .
152
			"\t\t\t<permissions>\n" .
149
			((($s = $journal->getLocalizedSetting('copyrightNotice')) != '')?"\t\t\t\t<copyright-statement>" . htmlspecialchars(Core::cleanVar($s)) . "</copyright-statement>\n":'') .
153
			((($s = $journal->getLocalizedSetting('copyrightNotice')) != '')?"\t\t\t\t<copyright-statement>" . htmlspecialchars(Core::cleanVar($s)) . "</copyright-statement>\n":'') .
150
			"\t\t\t\t<copyright-year>" . strftime('%Y', $datePublished) . "</copyright-year>\n" .
154
			($datePublished?"\t\t\t\t<copyright-year>" . strftime('%Y', $datePublished) . "</copyright-year>\n":'') .
151
			"\t\t\t</permissions>\n" .
155
			"\t\t\t</permissions>\n" .
152
			"\t\t\t<self-uri xlink:href=\"" . htmlspecialchars(Core::cleanVar(Request::url($journal->getPath(), 'article', 'view', $article->getBestArticleId()))) . "\" />\n";
156
			"\t\t\t<self-uri xlink:href=\"" . htmlspecialchars(Core::cleanVar(Request::url($journal->getPath(), 'article', 'view', $article->getBestArticleId()))) . "\" />\n";
153
157
(-)a/plugins/oaiMetadataFormats/rfc1807/OAIMetadataFormat_RFC1807.inc.php (-1 / +1 lines)
 Lines 88-94   class OAIMetadataFormat_RFC1807 extends OAIMetadataFormat { Link Here 
88
88
89
			$this->formatElement('type', $relation) .
89
			$this->formatElement('type', $relation) .
90
			$this->formatElement('author', $creators) .
90
			$this->formatElement('author', $creators) .
91
			$this->formatElement('date', $issue->getDatePublished()) .
91
			($article->getDatePublished()?$this->formatElement('date', $article->getDatePublished()):'') .
92
			$this->formatElement('copyright', strip_tags($journal->getLocalizedSetting('copyrightNotice'))) .
92
			$this->formatElement('copyright', strip_tags($journal->getLocalizedSetting('copyrightNotice'))) .
93
			$this->formatElement('other_access', "url:$url") .
93
			$this->formatElement('other_access', "url:$url") .
94
			$this->formatElement('keyword', $subject) .
94
			$this->formatElement('keyword', $subject) .
(-)a/templates/article/dublincore.tpl (+4 lines)
 Lines 29-40    Link Here 
29
{if $issue->getOpenAccessDate()}
29
{if $issue->getOpenAccessDate()}
30
	<meta name="DC.Date.available" scheme="ISO8601" content="{$issue->getOpenAccessDate()|date_format:"%Y-%m-%d"}"/>
30
	<meta name="DC.Date.available" scheme="ISO8601" content="{$issue->getOpenAccessDate()|date_format:"%Y-%m-%d"}"/>
31
{/if}
31
{/if}
32
{if $article->getDatePublished()}
32
	<meta name="DC.Date.created" scheme="ISO8601" content="{$article->getDatePublished()|date_format:"%Y-%m-%d"}"/>
33
	<meta name="DC.Date.created" scheme="ISO8601" content="{$article->getDatePublished()|date_format:"%Y-%m-%d"}"/>
34
{/if}
33
{* DC.Date.dateAccepted (editor submission DAO) *}
35
{* DC.Date.dateAccepted (editor submission DAO) *}
34
{* DC.Date.dateCopyrighted *}
36
{* DC.Date.dateCopyrighted *}
35
{* DC.Date.dateReveiwed (revised file DAO) *}
37
{* DC.Date.dateReveiwed (revised file DAO) *}
36
	<meta name="DC.Date.dateSubmitted" scheme="ISO8601" content="{$article->getDateSubmitted()|date_format:"%Y-%m-%d"}"/>
38
	<meta name="DC.Date.dateSubmitted" scheme="ISO8601" content="{$article->getDateSubmitted()|date_format:"%Y-%m-%d"}"/>
39
{if $issue->getDatePublished()}
37
	<meta name="DC.Date.issued" scheme="ISO8601" content="{$issue->getDatePublished()|date_format:"%Y-%m-%d"}"/>
40
	<meta name="DC.Date.issued" scheme="ISO8601" content="{$issue->getDatePublished()|date_format:"%Y-%m-%d"}"/>
41
{/if}
38
	<meta name="DC.Date.modified" scheme="ISO8601" content="{$article->getDateStatusModified()|date_format:"%Y-%m-%d"}"/>
42
	<meta name="DC.Date.modified" scheme="ISO8601" content="{$article->getDateStatusModified()|date_format:"%Y-%m-%d"}"/>
39
{if $article->getAbstract(null)}{foreach from=$article->getAbstract(null) key=metaLocale item=metaValue}
43
{if $article->getAbstract(null)}{foreach from=$article->getAbstract(null) key=metaLocale item=metaValue}
40
	<meta name="DC.Description" xml:lang="{$metaLocale|String_substr:0:2|escape}" content="{$metaValue|strip_tags|escape}"/>
44
	<meta name="DC.Description" xml:lang="{$metaLocale|String_substr:0:2|escape}" content="{$metaValue|strip_tags|escape}"/>
(-)a/templates/article/googlescholar.tpl (+12 lines)
 Lines 19-25    Link Here 
19
{/if}
19
{/if}
20
	<meta name="citation_authors" content="{foreach name="authors" from=$article->getAuthors() item=author}{$author->getLastName()|escape}, {$author->getFirstName()|escape}{if $author->getMiddleName() != ""} {$author->getMiddleName()|escape}{/if}{if !$smarty.foreach.authors.last}; {/if}{/foreach}"/>
20
	<meta name="citation_authors" content="{foreach name="authors" from=$article->getAuthors() item=author}{$author->getLastName()|escape}, {$author->getFirstName()|escape}{if $author->getMiddleName() != ""} {$author->getMiddleName()|escape}{/if}{if !$smarty.foreach.authors.last}; {/if}{/foreach}"/>
21
	<meta name="citation_title" content="{$article->getLocalizedTitle()|strip_tags|escape}"/>
21
	<meta name="citation_title" content="{$article->getLocalizedTitle()|strip_tags|escape}"/>
22
23
{**
24
 * Google Scholar date: Use article publication date, falling back on issue
25
 * publication date and issue year in sequence.
26
 *}
27
{if $article->getDatePublished()}
22
	<meta name="citation_date" content="{$article->getDatePublished()|date_format:"%d/%m/%Y"}"/>
28
	<meta name="citation_date" content="{$article->getDatePublished()|date_format:"%d/%m/%Y"}"/>
29
{elseif $issue->getDatePublished()}
30
	<meta name="citation_date" content="{$issue->getDatePublished()|date_format:"%d/%m/%Y"}"/>
31
{elseif $issue->getYear()}
32
	<meta name="citation_date" content="{$issue->getYear()|escape}"/>
33
{/if}
34
23
	<meta name="citation_volume" content="{$issue->getVolume()|strip_tags|escape}"/>
35
	<meta name="citation_volume" content="{$issue->getVolume()|strip_tags|escape}"/>
24
	<meta name="citation_issue" content="{$issue->getNumber()|strip_tags|escape}"/>
36
	<meta name="citation_issue" content="{$issue->getNumber()|strip_tags|escape}"/>
25
{if $article->getPages()}
37
{if $article->getPages()}
(-)a/templates/editor/issues/backIssues.tpl (-1 / +1 lines)
 Lines 53-59   $(document).ready(function() { setupTableDND("#dragTable", "moveIssue"); }); Link Here 
53
	{iterate from=issues item=issue}
53
	{iterate from=issues item=issue}
54
	<tr valign="top" class="data" id="issue-{$issue->getId()}">
54
	<tr valign="top" class="data" id="issue-{$issue->getId()}">
55
		<td class="drag"><a href="{url op="issueToc" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
55
		<td class="drag"><a href="{url op="issueToc" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></td>
56
		<td class="drag">{$issue->getDatePublished()|date_format:"$dateFormatShort"}</td>
56
		<td class="drag">{$issue->getDatePublished()|date_format:"$dateFormatShort"|default:"&mdash;"}</td>
57
		<td class="drag">{$issue->getNumArticles()|escape}</td>
57
		<td class="drag">{$issue->getNumArticles()|escape}</td>
58
		<td><a href="{url op="moveIssue" d=u id=$issue->getId() issuesPage=$page }">&uarr;</a>	<a href="{url op="moveIssue" d=d id=$issue->getId() issuesPage=$page }">&darr;</a></td>
58
		<td><a href="{url op="moveIssue" d=u id=$issue->getId() issuesPage=$page }">&uarr;</a>	<a href="{url op="moveIssue" d=d id=$issue->getId() issuesPage=$page }">&darr;</a></td>
59
		<td align="right"><a href="{url op="removeIssue" path=$issue->getId() issuesPage=$page }" onclick="return confirm('{translate|escape:"jsparam" key="editor.issues.confirmDelete"}')" class="action">{translate key="common.delete"}</a></td>
59
		<td align="right"><a href="{url op="removeIssue" path=$issue->getId() issuesPage=$page }" onclick="return confirm('{translate|escape:"jsparam" key="editor.issues.confirmDelete"}')" class="action">{translate key="common.delete"}</a></td>
(-)a/templates/layoutEditor/backIssues.tpl (-1 / +1 lines)
 Lines 37-43    Link Here 
37
	{iterate from=issues item=issue}
37
	{iterate from=issues item=issue}
38
	<tr valign="top">
38
	<tr valign="top">
39
		<td><a href="{url op="issueToc" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|escape}</a></td>
39
		<td><a href="{url op="issueToc" path=$issue->getId()}" class="action">{$issue->getIssueIdentification()|escape}</a></td>
40
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"}</td>
40
		<td>{$issue->getDatePublished()|date_format:"$dateFormatShort"|default:"&mdash;"}</td>
41
		<td>{$issue->getNumArticles()|escape}</td>
41
		<td>{$issue->getNumArticles()|escape}</td>
42
	</tr>
42
	</tr>
43
	<tr>
43
	<tr>
(-)a/templates/rt/metadata.tpl (-1 / +1 lines)
 Lines 93-99    Link Here 
93
	<td>7.</td>
93
	<td>7.</td>
94
	<td>{translate key="rt.metadata.dublinCore.date"}</td>
94
	<td>{translate key="rt.metadata.dublinCore.date"}</td>
95
	<td>{translate key="rt.metadata.pkp.date"}</td>
95
	<td>{translate key="rt.metadata.pkp.date"}</td>
96
	<td>{$article->getDatePublished()|date_format:$dateFormatShort}</td>
96
	<td>{$article->getDatePublished()|date_format:$dateFormatShort|default:"&mdash;"}</td>
97
</tr>
97
</tr>
98
<tr><td colspan="4" class="separator">&nbsp;</td></tr>
98
<tr><td colspan="4" class="separator">&nbsp;</td></tr>
99
<tr valign="top">
99
<tr valign="top">

Return to bug 6480