-o / --output : The name of the output MARC file.
+ -a / --authorization: The name of the online platorm to be inserted in each
+ 506$e access restriction note.
+
-c / --consortium : The name of the consortial license to be inserted in
each 506$b access restriction note.
- -p / --publisher : The name of the publisher to be inserted in a 710 field
- and each 506$e access restriction note.
+ -p / --publisher : The name of the publisher to be inserted in a 710 field.
-A / --algoma: Add an 856 for Algoma University
_options['--input'] = val
elif key == '-o':
_options['--output'] = val
+ elif key == '-a':
+ _options['--authorization'] = val
elif key == '-c':
_options['--consortium'] = val
elif key == '-p':
print "* Missing -c / --consortium argument!"
_help = True
+ if '--restriction' not in options:
+ print "* Missing -a / --authorization argument!"
+ _help = True
+
if '--publisher' not in options:
print "* Missing -p / --publisher argument!"
_help = True
clean_opts = dict()
clean_opts['publisher'] = options['--publisher']
clean_opts['consortium'] = options['--consortium']
+ clean_opts['authorization'] = options['--authorization']
if '--sample' in options:
clean_opts['sample'] = options['--sample']
The 506 field includes the following subfields:
* $a - Standard text to display
* $b - Jurisdiction (identifies the consortial license)
- * $e - Authorization (online publisher that enforces authorization)
+ * $e - Authorization (online platform that enforces authorization)
* $5 - Institutional code to which this note applies
"""
subfields = [
'a', libopts['access_note'],
'b', options['consortium'],
- 'e', options['publisher'],
+ 'e', options['authorization'],
'5', libopts['code']
]
)