Software Hosting and Development Services available at PKP Publishing Services
As the developers of Open Journal Systems, Open Conference Systems, Open Harvester Systems, and Open Monograph Press, the PKP team are experts in helping journal managers and conference organizers make the most of their online publishing projects. PKP Publishing Services offers support for:
As a customer of PKP Publishing Services, you will not only receive direct, personalized support from the PKP Development Team, but will be contributing to the ongoing development of the PKP applications. All funds raised by PKP Publishing Services go directly toward enhancing our free, open source software. For more information, please contact us.
OJS development discussion, enhancement requests, third-party patches and plug-ins.
Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
Forum rules
Developer Resources:Documentation: The
OJS Technical Reference and the OJS
API Reference are both available from the
OJS Documentation page.
Git: You can access our public Git Repository
here. Comprehensive Git usage instructions are available on the
wiki.
Bugzilla: You can access our Bugzilla report tracker
here.
Search: You can use our
Google Custom Search to search across our main website, the support forum, and Bugzilla.
Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the
OJS Editorial Support and Discussion subforum; if you have a technical support question, try the
OJS Technical Support subforum.
by ams.jour » Wed Aug 25, 2010 8:20 pm
Hi Micheal
Is your current "Year based subscription code" will work for OJS 2.3.2-1 OR next version OJS 2.3.3 ?
-AMS
-
ams.jour
-
- Posts: 19
- Joined: Sun Jun 29, 2008 10:57 pm
by michael » Thu Aug 26, 2010 8:58 am
Hi AMS,
It should work in both versions (i.e. 2.3.x).
Cheers,
Michael
-
michael
-
- Posts: 370
- Joined: Thu Mar 29, 2007 2:09 pm
-
by dcamp » Thu Dec 23, 2010 10:43 am
While the previously given code still appears to work fine when pasted into the latest version of OJS, for peace of mind I rebased it. Here are the modded functions in classes/issue/IssueAction.inc.php rebased against OJS 2.3.3-3:
- Code: Select all
function subscribedUser(&$journal, $issueId = null, $articleId = null) {
$user =& Request::getUser();
$subscriptionDao =& DAORegistry::getDAO('IndividualSubscriptionDAO');
$publishedArticleDao =& DAORegistry::getDAO('PublishedArticleDAO');
$publishedArticle =& $publishedArticleDao->getPublishedArticleByArticleId($articleId, null, true);
$result = false;
if (isset($user) && isset($journal)) {
if (IssueAction::allowedPrePublicationAccess($journal, $publishedArticle)) {
$result = true;
} else {
if (isset($articleId)) {
if (isset($publishedArticle)) {
import('classes.subscription.SubscriptionDAO');
$result = $subscriptionDao->isValidIndividualSubscription($user->getId(), $journal->getId(), SUBSCRIPTION_DATE_BOTH, $publishedArticle->getDatePublished());
}
} else if (isset($issueId)) {
$issueDao =& DAORegistry::getDAO('IssueDAO');
$issue =& $issueDao->getIssueById($issueId);
if (isset($issue) && $issue->getPublished()) {
import('classes.subscription.SubscriptionDAO');
$result = $subscriptionDao->isValidIndividualSubscription($user->getId(), $journal->getId(), SUBSCRIPTION_DATE_BOTH, $issue->getDatePublished());
}
}
}
}
HookRegistry::call('IssueAction::subscribedUser', array(&$journal, &$result));
return $result;
}
- Code: Select all
function subscribedDomain(&$journal, $issueId = null, $articleId = null) {
$subscriptionDao =& DAORegistry::getDAO('InstitutionalSubscriptionDAO');
$result = false;
if (isset($journal)) {
if (isset($articleId)) {
$publishedArticleDao =& DAORegistry::getDAO('PublishedArticleDAO');
$publishedArticle =& $publishedArticleDao->getPublishedArticleByArticleId($articleId, null, true);
if (isset($publishedArticle)) {
import('classes.subscription.SubscriptionDAO');
$result = $subscriptionDao->isValidInstitutionalSubscription(Request::getRemoteDomain(), Request::getRemoteAddr(), $journal->getId(), SUBSCRIPTION_DATE_BOTH, $publishedArticle->getDatePublished());
}
} else if (isset($issueId)) {
$issueDao =& DAORegistry::getDAO('IssueDAO');
$issue =& $issueDao->getIssueById($issueId);
if (isset($issue) && $issue->getPublished()) {
import('classes.subscription.SubscriptionDAO');
$result = $subscriptionDao->isValidInstitutionalSubscription(Request::getRemoteDomain(), Request::getRemoteAddr(), $journal->getId(), SUBSCRIPTION_DATE_BOTH, $issue->getDatePublished());
}
}
}
HookRegistry::call('IssueAction::subscribedDomain', array(&$journal, &$result));
return $result;
}
-
dcamp
-
- Posts: 15
- Joined: Wed Oct 27, 2010 3:05 pm
by ams.jour » Thu Dec 23, 2010 11:22 pm
Thanks DECAMP,
It seems that people are using this utility, so I again request to OJS to to reconsider to incorate in next version of OJS.
-AMS
-
ams.jour
-
- Posts: 19
- Joined: Sun Jun 29, 2008 10:57 pm
by risehigh » Fri Feb 04, 2011 11:53 pm
Dear OJS Team
Can we use Michael's "Year based subscription access code" for OJS-2.3.4 ?
-Rise
-
risehigh
-
- Posts: 12
- Joined: Fri Feb 04, 2011 11:38 pm
by risehigh » Mon Feb 07, 2011 8:58 pm
Hi OJS Team
The "Year based subscription code" will work for OJS 2.3.4 ?
-Rise
-
risehigh
-
- Posts: 12
- Joined: Fri Feb 04, 2011 11:38 pm
by jaik_70 » Mon Feb 21, 2011 12:21 am
Yes, "Year based subscription code" is working fine for OJS 2.3.4.
-
jaik_70
-
- Posts: 41
- Joined: Tue Jun 02, 2009 5:49 am
by jaik_70 » Mon May 14, 2012 9:41 pm
Dear Michael
Can we use the Year based subscription access CODE for OJS 2.3.7 version ?
-Jaik
-
jaik_70
-
- Posts: 41
- Joined: Tue Jun 02, 2009 5:49 am
by michael » Wed May 16, 2012 8:16 am
Hi Jaik,
Yes, it should continue to work with OJS 2.3.7.
Cheers,
Michael
-
michael
-
- Posts: 370
- Joined: Thu Mar 29, 2007 2:09 pm
-
by risehigh » Mon Jul 30, 2012 6:57 am
Dear Michael
We are using the Year based subscription access CODE for OJS 2.3.7 .
Everything are fine.
But there are some minor problem when we Login as an "EDITOR" (or play editor role) for any modification or alloting the reviewer (or opening the back issue), we find "
Internal Server Error 500"
Looking for your valuable solution.
-Rise
-
risehigh
-
- Posts: 12
- Joined: Fri Feb 04, 2011 11:38 pm
by risehigh » Mon Jul 30, 2012 7:06 am
Again:
When we replaced the original "classes/issue/IssueAction.inc.php" then everything are OK.
And when we using the modified (with year base subscription code) "classes/issue/IssueAction.inc.php" then we find " Internal Server Error 500"
-
risehigh
-
- Posts: 12
- Joined: Fri Feb 04, 2011 11:38 pm
by michael » Mon Jul 30, 2012 6:44 pm
Hi Rise,
Assuming that you're making a copy of the original file and then adding the custom changes, please double-check that the ownership and file permissions are correct for the modified copy.
Cheers,
Michael
-
michael
-
- Posts: 370
- Joined: Thu Mar 29, 2007 2:09 pm
-
by risehigh » Tue Jul 31, 2012 5:48 am
Dear Michael
Thanks for reply.
I am in travel so I will come to you on Monday.
-Rise
-
risehigh
-
- Posts: 12
- Joined: Fri Feb 04, 2011 11:38 pm
by risehigh » Mon Aug 06, 2012 8:36 pm
Dear Michael
Your suggestions about " ownership and file permissions" working.
Thanks again for timely help.
-Rise
-
risehigh
-
- Posts: 12
- Joined: Fri Feb 04, 2011 11:38 pm
by risehigh » Tue Feb 05, 2013 9:48 pm
Dear Michael

(OJS Team)
Is there any updates for
OJS 2.4.1 regarding "
Year based subscription access " ?
Or erlier one your given
code will work for this.
-Rise
-
risehigh
-
- Posts: 12
- Joined: Fri Feb 04, 2011 11:38 pm
Return to OJS Development
Who is online
Users browsing this forum: No registered users and 0 guests