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.

Bug 6119 - "References" header appears when there are no references
"References" header appears when there are no references
Status: RESOLVED FIXED
Product: OJS
Classification: Unclassified
Component: Submissions and Publishing
2.3.4
PC Mac OS X 10.6
: P5 normal
Assigned To: jerico
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-02 21:12 PDT by James MacGregor
Modified: 2011-01-31 12:13 PST (History)
4 users (show)

See Also:
Version Reported In:
Also Affects:


Attachments
patch against OJS 2.3.3-3 (940 bytes, patch)
2010-11-15 19:59 PST, jerico
Details | Diff
Patch against lib-pkp (tagged for OJS version 2.3.3-3) (1.96 KB, patch)
2010-11-15 20:01 PST, jerico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James MacGregor 2010-11-02 21:12:43 PDT
The "References" header (message key submission.citation) appears on the article abstract regardless of whether or not there are any references to list. The display code in templates/article/article.tpl is: 

	{if $citationFactory}
		<h4>{translate key="submission.citations"}</h4>
		<br />
		<div>
			{iterate from=citationFactory item=citation}
				<p>{$citation->getRawCitation()|strip_unsafe_html}</p>
			{/iterate}
		</div>
		<br />
	{/if}

... I'm guessing there needs to be some sort of if citationsExists check, but I'm not sure how to do this.
Comment 2 jerico 2010-11-15 19:59:20 PST
Created attachment 3331 [details]
patch against OJS 2.3.3-3
Comment 3 jerico 2010-11-15 20:01:07 PST
Created attachment 3332 [details]
Patch against lib-pkp (tagged for OJS version 2.3.3-3)