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

Show volume info only when checkbox selected #1907

Closed
asmecher opened this issue Oct 21, 2016 · 17 comments
Closed

Show volume info only when checkbox selected #1907

asmecher opened this issue Oct 21, 2016 · 17 comments
Assignees
Milestone

Comments

@asmecher
Copy link
Member

See http://forum.pkp.sfu.ca/t/eliminating-0-volume-variable-when-not-using-volumes/22965

@asmecher asmecher added this to the OJS 3.0.1 milestone Oct 21, 2016
@asmecher asmecher self-assigned this Oct 21, 2016
asmecher added a commit to pkp/ojs that referenced this issue Oct 21, 2016
asmecher added a commit to pkp/ojs that referenced this issue Oct 21, 2016
@asmecher
Copy link
Member Author

Leaving open pending feedback from the forum.

@asmecher
Copy link
Member Author

Closing!

@mpbraendle
Copy link
Contributor

We see the same problem for the year of publication - was this fixed, too? I do not see an indication in the code.

asmecher pushed a commit to pkp/ojs that referenced this issue Nov 10, 2016
asmecher pushed a commit to pkp/ojs that referenced this issue Nov 10, 2016
@asmecher
Copy link
Member Author

@mpbraendle, I've just surveyed the year and it's overall covered. I added a tweak to improve this (see just above). But depending on how e.g. citation formats work, they may expect the year to be entered regardless. If you do see it somewhere you don't wish it to appear, please post details here.

jprk pushed a commit to jprk/ojs that referenced this issue Dec 15, 2016
jprk pushed a commit to jprk/ojs that referenced this issue Dec 15, 2016
jprk pushed a commit to jprk/ojs that referenced this issue Dec 15, 2016
@ajnyga
Copy link
Collaborator

ajnyga commented May 17, 2017

@bozana
Copy link
Collaborator

bozana commented May 18, 2017

PR for the last comment:
ojs-stable-3_0_2: pkp/ojs#1389
master: pkp/ojs#1390

@bozana
Copy link
Collaborator

bozana commented May 18, 2017

@ajnyga, may I ask you to take a look at the PR, if so OK?

@ajnyga
Copy link
Collaborator

ajnyga commented May 18, 2017

This does solve it, but the bug still remains in the getIssueSeries / getIssueIdentification functions.
If getIssueSeries gets called and the journal has disabled all other identification than the title, the function will still return the three zeros. I am thinking of a situation where the same function gets used somewhere else later?

@bozana
Copy link
Collaborator

bozana commented May 18, 2017

Yes, I will leave this decisions to @asmecher. -- I am not sure how this function is meant to be used, but I think that it could be only used in the case one of the option (showVolume, showNumber or showYear) is available, like in that issue_summary.tpl -- else it does not make any sense...

@bozana
Copy link
Collaborator

bozana commented May 18, 2017

Thanks a lot @ajnyga! I will then merge and cherry-pick it to master...

bozana added a commit to pkp/ojs that referenced this issue May 18, 2017
pkp/pkp-lib#1907 consider issue identification on the issue archive page
@bozana
Copy link
Collaborator

bozana commented May 18, 2017

maybe to also take this issue into account -- that would change all these approaches: #2190

@ajnyga
Copy link
Collaborator

ajnyga commented May 18, 2017

I was thinking that it could be solved here: https://github.com/pkp/ojs/blob/master/classes/issue/Issue.inc.php#L506

	function getIssueSeries() {
		if ($this->getShowVolume() || $this->getShowNumber() || $this->getShowYear())
		{
			return $this->getIssueIdentification(array('showTitle' => false));
		} else {
			return null;
		}
	}

With the current template solution, you also have to worry about other themes, like https://github.com/NateWr/bootstrap3/blob/master/templates/frontend/objects/issue_summary.tpl

But if this is due to change with #2190 anyway, then I guess it does not matter that much.

@bozana
Copy link
Collaborator

bozana commented May 18, 2017

Yes @ajnyga, that makes much more sense for now -- me crazy, how haven't I thought on that :-\ I'll change it like this for now, till #2190 comes... THANKS!!!

@bozana
Copy link
Collaborator

bozana commented May 18, 2017

PR for pdfJsViewer:
pkp/pdfJsViewer#16
pkp/ojs#1392 (submodule update)
PR for lensGalley:
asmecher/lensGalley#13

bozana added a commit to pkp/pdfJsViewer that referenced this issue May 18, 2017
pkp/pkp-lib#1907 use the correct issue identification
bozana added a commit to bozana/lensGalley that referenced this issue May 18, 2017
@ajnyga
Copy link
Collaborator

ajnyga commented May 18, 2017

Ok, great!

bozana added a commit to bozana/ojs that referenced this issue May 18, 2017
bozana added a commit to pkp/ojs that referenced this issue May 18, 2017
bozana added a commit to pkp/ojs that referenced this issue May 19, 2017
pkp/pkp-lib#1907 consider issue identification on the issue archive page
@bozana
Copy link
Collaborator

bozana commented May 19, 2017

@ajnyga, I made the changes as you suggested, but only in the master branch...

@ajnyga
Copy link
Collaborator

ajnyga commented May 19, 2017

Ok, thanks! This is not an issue with our journals, I think. All of them use volume or number to my knowledge.

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

4 participants