metadata fields
This commit is contained in:
parent
eb96ec3677
commit
19a25529e2
25
zimmer.js
25
zimmer.js
|
@ -1003,18 +1003,25 @@ class RawFile extends File {
|
||||||
|
|
||||||
// Keys
|
// Keys
|
||||||
// Key Mandatory Description Example
|
// Key Mandatory Description Example
|
||||||
// Title yes title of zim file English Wikipedia
|
//
|
||||||
// Creator yes creator(s) of the ZIM file content English speaking Wikipedia contributors
|
// Name yes A human readable identifier for the resource. It's the same across versions (should be stable across time). MUST be prefixed by the packager name. kiwix.wikipedia_en.nopics
|
||||||
// Publisher yes creator of the ZIM file itself Wikipedia user Foobar
|
// Title yes title of zim file English Wikipedia
|
||||||
// Date yes create date (ISO - YYYY-MM-DD) 2009-11-21
|
// Creator yes creator(s) of the ZIM file content English speaking Wikipedia contributors
|
||||||
// Description yes description of content This ZIM file contains all articles (without images) from the english Wikipedia by 2009-11-10.
|
// Publisher yes creator of the ZIM file itself Wikipedia user Foobar
|
||||||
// Language yes ISO639-3 language identifier (if many, comma separated) eng
|
// Date yes create date (ISO - YYYY-MM-DD) 2009-11-21
|
||||||
// Relation no URI of external related ressources
|
// Description yes description of content This ZIM file contains all articles (without images) from the english Wikipedia by 2009-11-10.
|
||||||
// Source no URI of the original source http://en.wikipedia.org/
|
// Language yes ISO639-3 language identifier (if many, comma separated) eng
|
||||||
// Counter no Number of non-redirect entries per mime-type image/jpeg=5;image/gif=3;image/png=2;...
|
// Tags no A list of tags nopic;wikipedia
|
||||||
|
// Relation no URI of external related ressources
|
||||||
|
// Source no URI of the original source http://en.wikipedia.org/
|
||||||
|
// Counter no Number of non-redirect entries per mime-type image/jpeg=5;image/gif=3;image/png=2;...
|
||||||
|
//
|
||||||
|
// Favicon a favicon (48x48) is also mandatory and should be located at /-/favicon
|
||||||
|
|
||||||
function loadMetadata () {
|
function loadMetadata () {
|
||||||
|
const outParsed = osPath.parse( outPath )
|
||||||
const metadata = [
|
const metadata = [
|
||||||
|
[ 'Name', outParsed.base ],
|
||||||
[ 'Title', argv.title ],
|
[ 'Title', argv.title ],
|
||||||
[ 'Creator', argv.creator ],
|
[ 'Creator', argv.creator ],
|
||||||
[ 'Publisher', argv.publisher ],
|
[ 'Publisher', argv.publisher ],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user