Add year after authors in publication

Request Type: 
General Assistance
Author: 
Nilofar Vafaie
Issue/Request: 

Hello, 

I’m trying to change the publication display so that the year shows up after the authors. Currently, the year is only used to goup the publications, and doesn’t show up inline. How can I change that so it also shows up inline in the following format:

Author (date) Title Journal

Thanks in advance. 

Hi Nilofar,

I’ve edited the view - can you please confirm if this is OK?

Best,
Alyssa

Perfect, thank you so much!

On more question, is it possible to add publication entries without adding the pdf (for in press publications)? Currently it won’t let me add a new entry if I don’t have the pdf for it. Thanks again!

I’ve made it so that the PDF field isn’t required, that should do it.

Thank you so much! However, now it will add 2019 after author’s name when I would need it to say in press.

Is it possible to add an “In Press” option to the Year field? Ideally, in this way, in press papers would show up at the top when there are any, and it would follow the other publication formats with the difference that it says in press instead of publication year, and when there are no in press papers the section would not show up. 

Thank you again very much for your help!

We’d have to add another field to do that since the date field will only allow for years and not text. I’ll play around with some options to see what will be easiest.

Thank you so much! Right now it says [field_publication_in_press] after the year for all the papers. That can be removed, right? 

Thanks agian. 

I’m going to try some things on the dev site and then have you review it before we put it on the live site.

Hi Nilofar,

I noticed on the dev site you have a separate block for the In Press publications https://dev.canlab.yale.edu/Publications. Did you want the “In Press” option to be available when selecting the publication year? If so, that won’t create an “in press” section on the view, it will just be another field to show up in the list like the (year).

If I create a new field to include that option I might be able to create a block to filter when that field is set to “in press” and if it isn’t filled in then that section wouldn’t display.

Thank you.  With the new field option, would that mean it would show up exactly like the dev site when we have papers that have the in press option selected? If so, that would be ideal! 

Maybe not exactly, but close enough. I’ll test it out!

Thank you so much!

I’ve added a new checkbox field under the year field - you will have to Not select a year for this option otherwise the publication will appear in both views. I’ve created a view block and placed it above the year listings - you can view it here: https://dev.canlab.yale.edu/Publications#

Looks perfect thank you so much! 

Is it okay for me to do this on the live site now?

Yes, that would be amazing. Thanks again!

Okay should be all set going forward.

Thank you! However it won’t let me add in press papers without putting in the year as well, shouldn’t that requirement be removed?

I can make it not required, but it should work if you leave it on the default empty year setting.

You’re right , it’s working great. Thank you!

One last request if at all possible, could we have the same bulleted format for the In Press block that the rest of the papers have in their respective year blocks? Thank you again so much for all your help!

All set.