-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsettings.py
41 lines (31 loc) · 1.77 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Configuration variables
#-------------------------
# You'll need this to use Alma's API, you can create API keys by creating an
# account at https://developers.exlibrisgroup.com/ and going to your account's
# 'Applications' page
api_key=''
# This is simply the seperator for ranges for issues (or bound volumes) that cover
# multiple seasons, issues, years, etc. Currently supported options are: '-' or '/'.
range_seperator = '/'
# This is the ID of the bib record for which you want to update item information.
# You'll need to change it for each bib record.
mms_id = ''
# The location of the output file for the records that can be automatically updated.
# Whenever you start a new bib record, you'll want to make sure this file is empty.
# On Windows, this path will look something like 'C::\\Users\\username\\path\\to\\folder'.
# On Mac OS X and Linux, it will look something like '/Users/username/path/to/directory'
# or '/home/username/path/to/directory/'.
output_file = ''
# The location of the output file for records you'll need to update by hand.
error_file = ''
# The location of the input file for the records that can be automatically updated. Unless
# you want to edit the output file and save it to with a new name, setting the input file to
# match the output file for ae_fetch is probably what you'll want.
input_file = output_file
#--- end configuration variables -------
# Base URL for requests. This shouldn't need to be changed if you're in the United States.
# For users outside of the US, check here https://developers.exlibrisgroup.com/alma/apis#calling
# to see if there's a specific API for your country or region.
base_url = 'https://api-na.hosted.exlibrisgroup.com/almaws/v1/'