-
Notifications
You must be signed in to change notification settings - Fork 447
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
Can't set the publication date of an issue before it is published #7165
Comments
Thanks @AhemNason. I don't think it will be too difficult to do this. Here's a list of things that need to be considered:
|
For your first point I think you mean...
|
Another option could be an option to push issue-level publication dates to all the articles within it. So, at the very least, if you have to fix a back issue, you can just update all the article-level metadata to match issue-level metadata. |
We should avoid modifying article metadata after it is published. |
ojs: pkp/ojs#3500
I am not touching article pub dates here at all. Is this something we want to handle here as well? |
Noticed that I did not add the That is basically the "Leave this empty and it will be set automatically when the issue is published." notification mentioned above. Let me know if you want something else there. |
Thanks @ajnyga, I left a couple comments.
Can you try to reproduce the problem that @AhemNason described in the original issue? I had a quick look through the code and didn't see anything that sets the submission's |
So yes, something fishy going on here and these changes do not fix it. |
When the issue is published, this is called: https://github.com/pkp/ojs/blob/main/classes/controllers/grid/issues/IssueGridHandler.php#L592 With the set pubDate being just NULL in these cases, I guess you just end up setting it to the current date. |
It seems like what's outlined in this comment is still relevant: #7165 (comment). Does something more need to be done? |
I think quicksubmit too needs fixing. It seems that it does not respect the publication date given by the user at all |
I think we need to think about the whole palette before doing any more changes. |
This is probably the source of the problem: https://github.com/pkp/ojs/blob/main/classes/publication/Repository.php#L157-L166
If the issue is not published when you add new articles with quicksubmit, that will set the article pubdate to NULL. |
🤔 if the issue is not published, the quicksubmit plugin shouldn't be trying to publish a publication, right? |
Quicksubmit has two options:
If you choose 2, then this happens https://github.com/pkp/quickSubmit/blob/main/QuickSubmitForm.inc.php#L378 |
I would be inclined to do something like this:
|
So So with the old code https://github.com/pkp/ojs/blob/main/classes/publication/Repository.php#L157-L166 When you scheduled the Then when you went on to publish the issue, you would always get the articles dates set to the current date because Only if the |
@asmecher this fairly important small feature did not get into OJS 3.4. I have rebased everything and there is an old code review from Nate that I have taken into account. Could you/someone else recheck this and maybe do a merge? OJS: pkp/ojs#3500 This will help journals adding back issues a lot. |
@defstat, could you have a look at this? Thanks! |
@ajnyga @AhemNason @asmecher I am working on the following scenario:
Steps 4, 5 and 6 leaves the "date published" of the publication "2018-03-29" (even if I unpublish the publication, so that it's metadata can be "edited") In this scenario I am noticing the following:
Other than that, the other scenarios that I checked do what the issue wants to fix. |
So do you think that upon unpublishing an issue, we should not reset the datePublished of the issue to NULL? I think at some point in the conversation it was suggested that we should have an option of stamping the current issue datePublished to all the articles inside the issue. This should not be automatic so changing the the datePublished should not probably directly affect all articles, but maybe we could have an additional issue action for doing this "Reset article published dates" |
I wouldn't suggest to not reset the Regarding the I am not sure statistically if such a functionality is "needed". |
For Crossref and other similar services we would require some sort of "edited" flag to publications in general, not just when the published date changes. Meaning that when metadata changes in a publication, Crossref plugin will pick up the publication again and redeposit with new metadata. But this is of course not something to be dealt with here. I think in the example you have the new code is now behaving according to the basic assumption we have made in OJS, meaning that issue date published and article date published are separate. Once the article date published is set to something, editing the issue date published does not change it. This is the case in the current code in 3.4 as well. I am maybe not sure how you would prefer the functionality work like when you unpublish and publish an issue again with a new date? |
Yes we agree regarding the publications
The scenario's main concern is the issue's |
It would be great to store the information about date modifications somewhere, e.g., in the |
Hi all, I would have two questions:
|
Hi, Sorry for missing your comments earlier.
Are you talking about this part of the code https://github.com/pkp/ojs/blob/main/classes/controllers/grid/issues/IssueGridHandler.php#L679-L689 That is the current functionality in OJS. I am not sure why it is written that way, but it could make sense to leave the datePublished intact when unpublishing. Do you want me to add that to the pr? We have to of course check that issue's datePublished is not used as a check in the code of whether the issue is published or not.
This is mentioned also in one of the original comments: @AhemNason do you recall if this was one of the original requests? For me the most important fix here is that we have a transparent and solid way of adding back content. This means that we can define a date for a future issue before publishing and then when articles are added to that issue, they get the same date when the issue is published. From this point of view, I do not see any clear problem for having the logic be:
@Vitaliy-1 which date modifications do you have in mind? Do you mean if we change the issue publishedDate of an existing issue afterwards? Also, do we want to consider the scenario @defstat raised above. In short, if you unpublish an issue and change the issue datePublished, this does not affect the articles. Should it affect it, and if so, should there be a separate selection in the form for this? This could be done for example with an issue form selection "Match all article publication dates with the issue publication date". |
Describe the problem you would like to solve
It is not possible to create a publication date for an issue before it is published. This creates problems when using QuickSubmit to upload back content because it is not possible to set a submission's publication date in QuickSubmit (see #5418).
Describe the solution you'd like
It should be possible to set the published date of an issue before it is published, in order to support uploading back content. When the issue is published, it's publication date should not be overridden and it should be used to set the publication date of any assigned submissions without a date.
Who is asking for this feature?
Journal managers and assistants performing migrations of back content.
Additional information
Just off the top I'd like to note that this came to me specifically in relation to the QuickSubmit plugin but I've determined that it doesn't actually matter how you've uploaded the file. There are, I'd argue, sensible use cases for additional date metadata within QuickSubmit (or elsewhere) that will not be overwritten or ignored on publication of an issue. Those include:
So the problem is as follows.
Let's say I'm uploading an older issue of my journal to OJS from before my adoption of the platform. We'll say the issue was originally published on the first of January, 2010 (2010-01-01). I create a "future issue" in which to assign these articles I'll be uploading. Issue metadata for a future issue does not include a publication date with the volume, issue, and year metadata.
I hop over to QuickSubmit and start working on all my uploads. When I get to the portion of QuickSubmit where I flag the status of the work, I'll select "published" and I choose which issue it was published in. I select my future issue. A date field appears. I can input when the article was published. I do this for the whole issue I'm uploading so I can preview it and make any changes before making it public.
I publish it, and I see that all the dates I entered are gone! The dates have all been overwritten by today's date, the day that I made a back issue live. I've written a guide for folks on how to avoid this (https://www.notion.so/ahemnason/Uploading-Back-Issues-in-OJS-that-Respect-Publication-Dates-2cd0fa628fe94f0888ed630c5cf8b6d5), but TL;DR the only way to avoid it is to publish your empty back issue, edit it's publication date after you hit publish, and then add your articles to it.
This doesn't change the fact that your submission dates will be wrong, but at least your publication dates will be right.
I'd make a general recommendation that "submission date" and "publication date" be accessible fields for users to input values to as metadata when needed. There are a few down-stream effects of these publication date issues. If someone doesn't catch it, citations for this back-content will be way off. Also, registration agencies like Crossref charge different fees based on the age of the content uploaded. If a journal is working on a long backrun, this could be the difference between a $1 USD fee per article deposited and a $0.15 USD fee per article deposited.
The only way to remedy this mistake with the OJS UI for users who have done this is to, article-by-article, unpublish the work, add the publication date to the "issue" section of the production workflow, and republish it.
Oh, and I confirm all this behaviour in 3.3.0.6
The text was updated successfully, but these errors were encountered: