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.
Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.
Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
Forum rules
What to do if you have a technical problem with OJS:1.
Search the forum. You can do this from the
Advanced Search Page or from our
Google Custom Search, which will search the entire PKP site. If you are encountering an error, we
especially recommend searching the forum for said error.
2.
Check the FAQ to see if your question or error has already been resolved.
3.
Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the
OJS Editorial Support and Discussion subforum; if you have a development question, try the
OJS Development subforum.
by klbr » Wed Jun 20, 2012 5:35 am
Hi Alec
is it possible to fix a default CrossRef export XML file target path on server without file dialog ?
we use for cronjobing the submission to crossref.
thx Klaus
-
klbr
-
- Posts: 9
- Joined: Tue Apr 27, 2010 12:06 am
by asmecher » Thu Jun 21, 2012 10:01 am
Hi Klaus,
Try using the import/export tool from the command line. Run:
- Code: Select all
php tools/importexport.php
Regards,
Alec Smecher
Public Knowledge Project Team
-
asmecher
-
- Posts: 5747
- Joined: Wed Aug 10, 2005 12:56 pm
-
by klbr » Wed Aug 08, 2012 1:44 am
Hi Alec
here our changes in CrossRefExportPlugin.inc.php.
1.
// dump out the results
//if (!empty($outputFile)) {
// if (($h = fopen($outputFile, 'w'))===false) return false;
// fwrite($h, XMLCustomWriter::getXML($doc));
// fclose($h);
//} else {
// header("Content-Type: application/xml");
// header("Cache-Control: private");
// header("Content-Disposition: attachment; filename=\"article.xml\"");
// XMLCustomWriter::printXML($doc);
//}
//return true;
// 20120808
// Bypass file selector dialog for export
$crpath = "D:/httpdocs/ojs/files/export/crossref/";
$crfile = "SMI-" . $article->getId() . ".xml";
if (($h = fopen($crpath . $crfile, 'w'))===false) return false;
fwrite($h, XMLCustomWriter::getXML($doc));
fclose($h);
exec("java -jar ".$crpath."doUpload.jar -h test.crossref.org -u myuser -p mypassword -f ".$crpath.$crfile, $output);
$message = "Crossref File Transfer erfolgreich: ".$crpath.$crfile . "\\n".$output[11];
echo "<script type=\"text/javascript\">\n";
echo " alert(\"$message\");\n";
echo "</script>\n\n";
return true;
2.
case 'exportArticle':
$articleIds = array(array_shift($args));
$result = ArticleSearch::formatResults($articleIds);
$this->exportArticles($journal, $result);
//20120808
// Display Index.tpl after Crossref Export
$this->setBreadcrumbs();
$templateMgr->assign_by_ref('journal', $journal);
$templateMgr->display($this->getTemplatePath() . 'index.tpl');
regards
Klaus
-
klbr
-
- Posts: 9
- Joined: Tue Apr 27, 2010 12:06 am
Return to OJS Technical Support
Who is online
Users browsing this forum: No registered users and 0 guests