X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0327b33c1e7816f8a30269f8798bff5e216ccd7c..63b561ced6cafa40d50fa15d7098548970db3f85:/apps/catalogue/management/commands/make_master.py diff --git a/apps/catalogue/management/commands/make_master.py b/apps/catalogue/management/commands/make_master.py index fcd4c036..821def6e 100644 --- a/apps/catalogue/management/commands/make_master.py +++ b/apps/catalogue/management/commands/make_master.py @@ -22,8 +22,8 @@ dc_namespaces = { "dc": "http://purl.org/dc/elements/1.1/" } class Command(BaseCommand): option_list = BaseCommand.option_list + ( - make_option('-s', '--slug', dest='slug', help="Slug for master module"), - make_option('-F', '--file', dest='slugs_file', help="file with child module slugs per line"), + make_option('-s', '--slug', dest='slug', help="Slug for master module (if empty will be generated from title)"), + make_option('-F', '--file', dest='slugs_file', help="file with child module titles per line"), make_option('-t', '--title', dest='title', default='', help="title of master module"), make_option('-l', '--level', dest='audience', default='', help='Audience level'), ) @@ -111,9 +111,8 @@ class Command(BaseCommand): dc(u'rights', dc_fixed['rights']) dc(u'rights.license', dc_fixed['rights_license']) dc(u'format', u'xml') - dc(u'type', u'text') + dc(u'type', u'section') dc(u'date', date.strftime(date.today(), "%Y-%m-%d")) - dc(u'audience', options['audience']) dc(u'language', u'pol') p(u'') p(u'')