mfelczak / bepress Goto Github PK
View Code? Open in Web Editor NEWPlugin to import bepress Digital Commons journal to OJS 3.1.1 or newer
Plugin to import bepress Digital Commons journal to OJS 3.1.1 or newer
Text in import XML files will include escaped &, <, >, etc.
Via an 'article-id' tag and 'pub-id-type' property set to "doi", e.g.
<article-id pub-id-type="doi">10.1002/0470841559</article-id>
Hi PKP team,
I ran an import from the latest in the stable-3_1_2 branch and am encountering an issue with the volume and issue numbers not being picked up correctly. I have a directory with folders as vol1/iss1, vol2/iss1, etc, but they are all being entered as vol1/iss1. We haven't changed our directory structure since we began using the plugin a couple of years ago. Any ideas what the issue is?
Below is an example of the output, where the second issue should be volume 2. I also confirmed in the UI that all of the issues were entered under vol. 1.
Import starting ...====== Vol 1 No 1 (2011) ======
---Article---
'Front Pages' successfully imported
'Consuming Otherness: Loblaws and Specular Consumption' successfully imported
'Balancing the Scales of Legitimacy: The Sulawesi Regional Development Project' successfully imported
'The Church of Elvis' successfully imported
'Baseball. Magic, and Performance' successfully imported
'Nationalism, Ethnicity, and the Cultural Politics of Identity' successfully imported
'Native Education: In the Best Interest of the Children' successfully imported
'Hunter-gatherers and the Ethnographic Analogy: Theoretical Perspectives' successfully imported
'Hunger Pains In a Cold Forest: A Reexamination of the Disappearence of the Beothuk' successfully imported
'Lewis Binford and the New Archaeology' successfully imported
'"Achey-breaky heart:" A Labovian Approach to the Structural Analysis of the Personal Narrative' successfully imported
'Morphological Analysis of the Story, Ne'e Thiyoriwa Ne' Yah Nonwa Onen Teshatahsehs Ne Ohkwari'' successfully imported
'Sex Stereotypes as a Function of Genderlect' successfully imported
'Male Homosexual Speech Patterns in Spontaneous Conversation' successfully imported
'The Development of Hand and Foot in Hominoidea' successfully imported
'Coca Chewing and High Altitude Adaptation' successfully imported
'Neanderthal Speech' successfully imported
'Postcript' successfully imported
====== Vol 1 No 1 (2011) ======
---Article---
'Front Pages' successfully imported
'The Girl Who Cried Wolf /fiction' successfully imported
'Human-like Traits in Early Hominids: Misplaced Analogies in the Interpretation the African Archaeological Record' successfully imported
'Different Worlds: Looking at Jehovah's Witnesses' successfully imported
'HIV: Its Development Within the Human Population' successfully imported
'Sexual Selection in Humans: An Evolutionary and Anthropological Perspective' successfully imported
'Social and Biological Consequences of Nutritional Adaptation: Do the Costs Outweigh the Gains?' successfully imported
'Topic Shift in Casual Conversation' successfully imported
'Advertising Strategies of the Ontario Milk Marketing Board: Milking the Cow for All It's Worth' successfully imported
'Indian Christians: Definition of Identity' successfully imported
'The Neandertal Pelvis with Attention to It's Obstetrical SignifIcance' successfully imported
'TB or not TB: The New World Question' successfully imported
'Syncretism in Two African Cultures' successfully imported
'Carnival: Fighting Oppression with Celebration' successfully imported
'Abura- Dunkwas, Ghana: Impressions of a Secondary School' successfully imported
'Spatial Metaphors as Linguistic Primitives: A Comparison of UP-DOWN Metaphors in Three Languages' successfully imported
'Back Pages' successfully imported
<h1>DB Error: Duplicate entry '980-423' for key 'custom_section_orders_pkey'</h1>ojs2: DB Error: Duplicate entry '980-423' for key 'custom_section_orders_pkey'
The plugin previously did not handle a preferred name provided directly.
Will be updated to use the following XML format. The preferredname
field can also be localized.
<preferrednames>
<preferredname>Preferred Name Here</preferredname>
</preferrednames>
Includes support for localized article subtitle in addition to titles.
Based on the bugs Clinton found in the JATS article importer plugin, I've identified the following issues in the bepress plugin:
Add the ability to import multi-locale article galleys. This will cover the following cases:
Article has a single galley with the file name fulltext.pdf
and no <galley>
tags
Import single fulltext.pdf
and assign it to the current primary locale.
Article has singlefulltext.pdf
file and a <galley locale="en_US">
tag
Import the galley using the locale specified in the <galley>
tag
Article has multiple galley files and uses the <galleys>
tag
Article galley file names will be appended with locale that corresponds to the locale in the <galley>
tag.
<galleys>
<galley locale="en_US">fulltext.en_US.pdf</galley>
<galley locale="de_DE">fulltext.de_DE.pdf</galley>
</galleys>
The files fulltext.en_US.pdf
and fulltext.de_DE.pdf
will be included in the same directory.
Add support for "locale" attribute in institution
, fname
, mname
, and lname
to allow import of multi-lingual metadata.
If "locale" attribute is not specified, import text using the journal's primary locale (current default).
Hi,
has this plugin ever been tested on OJS 3.3?
Add support for "locale" attribute in title, keyword, and subject-area tags to allow import of multi-lingual metadata, e.g. <title locale="en_US">Full article title</title>
Use existing OJS locale abbreviations as valid attribute values, e.g. "en_US", "de_DE", see https://github.com/pkp/ojs/tree/stable-3_2_0/locale
If "locale" attribute is not specified, import text using the journal's primary locale (current default).
The following examples would be considered valid:
<title>Full article title</title>
<title locale="en_US">Full article title</title>
<keywords>
<keyword locale="en_US">Keyword</keyword>
<keyword locale="fr_CA">Mot-clé</keyword>
</keywords>
Via 'fpage' and 'lpage' tags, e.g.
<fpage>1</fpage>
<lpage>20</lpage>
Hi @mfelczak, I tried to run an import today and got the following error:
Import starting ...PHP Fatal error: Uncaught Error: Call to undefined method Request::cleanUserVar() in /data/apache-html/western/plugins/importexport/bepress/BepressImportDom.inc.php:573
Stack trace:
#0 /data/apache-html/western/plugins/importexport/bepress/BepressImportDom.inc.php(67): BepressImportDom->_getArticleTitle()
#1 /data/apache-html/western/plugins/importexport/bepress/BepressImportPlugin.inc.php(179): BepressImportDom->importArticle()
#2 /data/apache-html/western/tools/importExport.php(63): BepressImportPlugin->executeCLI('tools/importExp...', Array)
#3 /data/apache-html/western/tools/importExport.php(69): importExport->execute()
#4 {main}
thrown in /data/apache-html/western/plugins/importexport/bepress/BepressImportDom.inc.php on line 573
Could you confirm that the plugin still works with version 3.1.2.1 (last updated June 13, 2019)? We've had no issues with the plugin in the recent past, but haven't done any imports since our most recent upgrade. I also reinstalled the plugin to make sure we had all of the most up-to-date code.
Thank you!
For example,
<fields>
<field name="doi" type="string">
<value>10.5555/12345678</value>
</field>
</fields>
Use "locale" attribute in abstract tag, i.e. <abstract locale="en_US">abstract text</abstract>
Use existing OJS locale abbreviations as valid attribute values, e.g. "en_US", "de_DE", see https://github.com/pkp/ojs/tree/ojs-stable-3_1_0/locale
If "locale" attribute is not specified, import the abstract text using the journal's primary locale (current default)
pkp/pkp-lib#3122 (comment) was not back-ported to OJS 3.1.0-1
Need to adjust call params to $submissionFileManager->copySubmissionFile in BepressImportDom
Article versioning was introduced in OJS 3.2 with corresponding data object updates.
See https://docs.pkp.sfu.ca/dev/release-notebooks/en/3.2-release-notebook
At the moment we have an updated sample-metadata.xml that provides a multi-locale example of valid import data. Let's rename this to sample-metadata-multiple-locales.xml and create a new sample file for single locale import, sample-metadata-single-locale.xml to illustrate the difference between both import modes.
Output import issue identification before output for imported articles
Hi We are running OJS 3.2.3.0
I have installed the Bepress plugin and it’s on the stable-3_2 branch
When running an import I am getting an error:
PHP Fatal error: Uncaught Error: Call to a member function getFileId() on null in /var/www/sites/publishing.bceln.ca/plugins/importexport/bepress/BepressImportDom.inc.php:717
It appears that the line:
$submissionFile = $submissionFileManager->copySubmissionFile(
$pdfPath,
SUBMISSION_FILE_PROOF,
$this->_editor->getId(),
null,
$genre->getId(),
ASSOC_TYPE_REPRESENTATION,
$articleGalley->getId()
);
is returning null.
I can see that the article/submission is set in the database properly and appears in the archives submission tab, however the pdf file hasn’t been copied over.
All the parameters sent to the $submissionFileManager->copySubmissionFile function seem to be fine.
Did something change in the latest OJS release to cause the error?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.