Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pubDate in EML points to the 'true' entity publication date -- in EML we need that of the form #160

Open
isangil opened this issue Aug 10, 2017 · 1 comment

Comments

@isangil
Copy link
Member

isangil commented Aug 10, 2017

But we really need the publication date chosen in the data set field.

Instead of using $variables['pubDate'] = format_date($entity->created, 'eml_yeardate');
We would render the pubdate in the field "field_publication_date".

@jlaundre
Copy link
Contributor

jlaundre commented Sep 14, 2018

Instead of modifying eml.module I think it may be clearer to change template eml--node--data-set.tpl.php
From: <pubDate><?php print $pubDate; ?></pubDate>
to:
<pubDate><?php print format_date(strtotime($content['field_publication_date']['#items'][0]['value']), 'custom', 'Y'); ?> </pubDate>

The field_publication_date also has to be enabled in the eml display. I did it as plain and it works.

Jim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants