File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 4242 */
4343class LidoSkosmosEnrichment extends SkosmosEnrichment
4444{
45+ /**
46+ * Default fields to enrich. Key is the method in driver and value is array
47+ * - pref, preferred field in solr
48+ * - alt, alternative field in solr
49+ * - check, check field for existing values
50+ *
51+ * @var array<string, array>
52+ */
53+ protected $ defaultFields = [
54+ 'getRawTopicIds ' => [
55+ 'pref ' => 'topic_add_txt_mv ' ,
56+ 'alt ' => 'topic_alt_txt_mv ' ,
57+ 'check ' => 'topic ' ,
58+ ],
59+ 'getRawGeographicTopicIds ' => [
60+ 'pref ' => 'geographic_add_txt_mv ' ,
61+ 'alt ' => 'geographic_alt_txt_mv ' ,
62+ 'check ' => 'geographic ' ,
63+ ],
64+ 'getAuthorIds ' => [
65+ 'pref ' => 'author ' ,
66+ 'alt ' => 'author_variant ' ,
67+ 'check ' => 'author ' ,
68+ ],
69+ 'getSecondaryAuthorIds ' => [
70+ 'pref ' => 'author2 ' ,
71+ 'alt ' => 'author2_variant ' ,
72+ 'check ' => 'author2 ' ,
73+ ],
74+ ];
75+
4576 /**
4677 * Enrich the record and return any additions in solrArray
4778 *
Original file line number Diff line number Diff line change @@ -432,6 +432,26 @@ public function getRawGeographicTopicIds(): array
432432 return [];
433433 }
434434
435+ /**
436+ * Get author identifiers
437+ *
438+ * @return array<int, string>
439+ */
440+ public function getAuthorIds (): array
441+ {
442+ return [];
443+ }
444+
445+ /**
446+ * Get secondary author identifiers
447+ *
448+ * @return array<int, string>
449+ */
450+ public function getSecondaryAuthorIds (): array
451+ {
452+ return [];
453+ }
454+
435455 /**
436456 * Return subject identifiers associated with object.
437457 *
You can’t perform that action at this time.
0 commit comments