Commit 799fc94a authored by Alexandros Georgantas's avatar Alexandros Georgantas
Browse files

Merge branch 'new-file-upload-conventions' into 'master'

Updated upload .docx naming conventions

See merge request editoria/editoria!101
parents 12580914 08791117
......@@ -272,4 +272,15 @@ Yes, currently however it is not available via the user interface. This is on ou
It can. The first conversion is from .docx to HTML, and from there, it’s up to presses to decide what to do with the highly structured, source HTML.
### Can I use Editoria for journals workflow?
It’s possible, but would not be ideal. Coko has developed an open-source tool that is optimized for journals workflow, called xPub. xPub, like Editoria, is modular, so that organizations can develop their own non-hardcoded workflows, mixing and matching modules that other organizations have developed and shared, or create and integrate their own. More at https://coko.foundation/use-cases/
\ No newline at end of file
It’s possible, but would not be ideal. Coko has developed an open-source tool that is optimized for journals workflow, called xPub. xPub, like Editoria, is modular, so that organizations can develop their own non-hardcoded workflows, mixing and matching modules that other organizations have developed and shared, or create and integrate their own. More at https://coko.foundation/use-cases/
### How do my .docx filenames affect how they upload?
Using the "Upload Word Files" button, you can upload multiple .docx files with one click. A few file naming conventions provide useful controls for how the Word files are uploaded:
* .docx files that begin with "a" go into Frontmatter
* .docx files that beegin with "w" go into Backmatter
* files that start with any other letters go into the Body
Additionally:
* By default, files in the Body are regular, numbered chapters. Frontmatter and backmatter components are always unnumbered.
* a "00" anywhere in filename will make it an unnumbered chapter (only in Body)
* "pt0" anywhere in filename will upload the .docx as a Part (only in Body)
\ No newline at end of file
......@@ -56,7 +56,7 @@ class FileUploader extends React.Component {
let division
if (nameSpecifier === 'a') {
division = 'front'
} else if (nameSpecifier === 'c') {
} else if (nameSpecifier === 'w') {
division = 'back'
} else {
division = 'body'
......@@ -65,7 +65,9 @@ class FileUploader extends React.Component {
let subCategory
if (division !== 'body') {
subCategory = 'component'
} else if (fileName.slice(5, 9) === 'Part') {
} else if (fileName.includes('00')) {
subCategory = 'un-numbered'
} else if (fileName.includes('pt0')) {
subCategory = 'part'
} else {
subCategory = 'chapter'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment