Merge branch 'ezn' of XPUB/special-issue-11-wiki2html into master

populat_orgs
E.zn 5 years ago committed by Gitea
commit 084fb640ac

@ -1,14 +1,15 @@
#!/bin/sh
python3 upload_imgs_dir.py \
--title 'Ang Bayan December 1984' \
--creator 'Central Committee of the Communist Party of the Philippines' \
--date '1984/12/01' \
--org 'Communist Party of the Philippines' \
--format 'Bulletin' \
--topic 'Communism, Armed Struggle' \
--dir '/full/path/to/2020_bantayog/Folder name' \
# --dry
--title 'Nassa News: Vol. 21 No. 7' \
--creator 'The National Secretariat of Social Action Justice and Peace' \
--date '1984/07/01' \
--org 'Nationalist Alliance for Justice, Freedom and Democracy (NAJFD)' \
--format 'Statement' \
--event 'The ARTEX Strike' \
--topic 'Workers rights' \
--language 'English' \
--dir '/full/path/to/2020_bantayog/Folder name' # --dry
# Note:
# * Add this values to you upload specific upload.
@ -19,3 +20,6 @@ python3 upload_imgs_dir.py \
# Get help: python3 upload_imgs_dir.py --help

@ -8,5 +8,6 @@
|Format={{ format }}
|Event={{ event }}
|Topic={{ topic }}
|Language={{ language }}
{{ '}}' }}
[[Template:ImageMetadata]]

@ -36,6 +36,8 @@ p.add_argument('--event', required=False, action='append', default=[''],
help='Multiple values should be SEPARATED BY COMMA')
p.add_argument('--topic', required=False, action='append', default=[''],
help='Multiple values should be SEPARATED BY COMMA')
p.add_argument('--language', required=False, action='append', default=[''],
help='Multiple values should be SEPARATED BY COMMA')
# TODO ADD NEW PROPS
args = p.parse_args()
@ -89,7 +91,8 @@ for n, _file in enumerate(lsimgs):
organization=(', ').join(args.org[1:]),
format=(', ').join(args.format[1:]),
event=(', ').join(args.event[1:]),
topic=(', ').join(args.topic[1:])
topic=(', ').join(args.topic[1:]),
language=(', ').join(args.language[1:])
)
_file_path = os.path.join(args.dir, _file)

Loading…
Cancel
Save