-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmarc.properties
90 lines (76 loc) · 4.02 KB
/
marc.properties
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
###############################################################################
# marc.properties -- standard VuFind MARC mappings. If you wish to customize #
# these settings, it is recommended that you edit #
# marc_local.properties to make upgrades simpler. #
###############################################################################
id = 001, first
lccn = 010a, first
ctrlnum = 035a
collection = "Catalog"
institution = "MyInstitution"
building = "Library A"
fullrecord = FullRecordAsMarc
recordtype = "marc"
allfields = custom, getAllSearchableFieldsAsSet(100, 900)
language = 008[35-37]:041a:041d:041h:041j, language_map.properties
format = custom, getFormat, format_map.properties
author = custom, getAuthorsFilteredByRelator(100abcd:700abcd,100,firstAuthorRoles)
author_variant = custom, getAuthorInitialsFilteredByRelator(100a:700a,100,firstAuthorRoles)
author_fuller = custom, getAuthorsFilteredByRelator(100q:700q,100,firstAuthorRoles)
author_role = custom, getRelatorsFilteredByRelator(100abcd:700abcd,100,firstAuthorRoles)
author2 = custom, getAuthorsFilteredByRelator(700abcd,700,secondAuthorRoles)
author2_variant = custom, getAuthorInitialsFilteredByRelator(700a,700,secondAuthorRoles)
author2_fuller = custom, getAuthorsFilteredByRelator(700q,700,secondAuthorRoles)
author2_role = custom, getRelatorsFilteredByRelator(700abcd,700,secondAuthorRoles)
author_corporate = custom, getAuthorsFilteredByRelator(110ab:111abc:710ab:711ab,110:111:710:711,firstAuthorRoles|secondAuthorRoles)
author_corporate_role = custom, getRelatorsFilteredByRelator(110ab:111abc:710ab:711ab,110:111:710:711,firstAuthorRoles|secondAuthorRoles)
author_sort = custom, getFirstAuthorFilteredByRelator(100abcd:110ab:111abc:700abcd,100:110:111:700,firstAuthorRoles)
author_additional = 505r
title = 245ab, first
title_sub = 245b, first
title_short = 245a, first
title_full = custom, getAllAlphaSubfields(245, first)
title_auth = 245ab, first
title_alt = 100t:130adfgklnpst:240a:246a:505t:700t:710t:711t:730adfgklnpst:740a
title_old = 780ast
title_new = 785ast
title_sort = custom, getSortableTitle
series = 440ap:800abcdfpqt:830ap
series2 = 490a
publisher = custom, getPublishers
publishDate = custom, getDates
publishDateSort = custom, getFirstDate
physical = 300abcefg:530abcd
dateSpan = 362a
edition = 250a, first
#description =
contents = 505a:505t
isbn = 020a:773z
issn = 022a:440x:490x:730x:773x:776x:780x:785x
callnumber-first = 099a[0]:090a[0]:050a[0], callnumber_map.properties, first
callnumber-subject = custom, getCallNumberSubject(090a:050a), callnumber_subject_map.properties
callnumber-label = custom, getCallNumberLabel(090a:050a)
callnumber-sort = custom, getLCSortable(099ab:090ab:050ab)
callnumber-raw = 099ab:090ab:050ab
topic = custom, getAllSubfields(600:610:611:630:650:653:656, " ")
genre = custom, getAllSubfields(655, " ")
geographic = custom, getAllSubfields(651, " ")
era = custom, getAllSubfields(648, " ")
topic_facet = 600x:610x:611x:630x:648x:650a:650x:651x:655x
genre_facet = 600v:610v:611v:630v:648v:650v:651v:655a:655v
geographic_facet = 600z:610z:611z:630z:648z:650z:651a:651z:655z
era_facet = 600d:610y:611y:630y:648a:648y:650y:651y:655y
url = 856u:555u
illustrated = custom, isIllustrated
dewey-hundreds = custom, getDeweyNumber(082a:083a, 100), ddc22_map.properties(hundreds)
dewey-tens = custom, getDeweyNumber(082a:083a, 10), ddc22_map.properties(tens)
dewey-ones = custom, getDeweyNumber(082a:083a, 1), ddc22_map.properties(ones)
dewey-full = custom, getDeweySearchable(082a:083a)
dewey-sort = custom, getDeweySortable(082a:083a)
dewey-raw = 082a:083a
# Extract the numeric portion of the OCLC number using a pattern map:
oclc_num = 035a, (pattern_map.oclc_num)
pattern_map.oclc_num.pattern_0 = \\([Oo][Cc][Oo][Ll][Cc]\\)[^0-9]*[0]*([0-9]+)=>$1
pattern_map.oclc_num.pattern_1 = ocm[0]*([0-9]+)[ ]*[0-9]*=>$1
pattern_map.oclc_num.pattern_2 = ocn[0]*([0-9]+).*=>$1
pattern_map.oclc_num.pattern_3 = on[0]*([0-9]+).*=>$1