PageSourceSearch

https://www.recruit-ms.co.jp/assets/js/sitesearch/custom/research.js

js recruit-ms.co.jp collected 2026-10-02 04:47:23 UTC 3,160 bytes, 91 lines download raw bytes

1// 本番環境
2let uid = "5b1c120a690e4f3aaf294ce6c9a40dfau";
3let additionalAttributePrefix = "www.recruit-ms.co.jp";
4
5// 検証環境
6// let uid = "58184ab5ce6246f78d3f33200d59e099u";
7// let additionalAttributePrefix = "stg.recruit-ms.co.jp";
8
9var popfindConf = popfindConf || {};
10popfindConf['data-research'] = {
11  uid: uid,
12  mode: 'sitesearch',
13  resultCountList: [12],
14  inputId: 'q',
15  screenId: 'research',
16  asyncUpdate: true,
17  styleSheetAutoLoading: false,
18  pagenationType: 1,
19  pagenationCount: 2,
20  additionalAttribute: [
21    [
22      'PF_ADDR:' + additionalAttributePrefix + '/research/inquiry',
23      'PF_ADDR:' + additionalAttributePrefix + '/research/conference_report',
24      'PF_ADDR:' + additionalAttributePrefix + '/research/study_report',
25      'PF_ADDR:' + additionalAttributePrefix + '/research/thesis',
26    ],
27  ],
28  additionalNotAttribute: [
29    'PF_ADDR:' + additionalAttributePrefix + '/research/',
30    'PF_ADDR:' + additionalAttributePrefix + '/research/thesis/pdf',
31    'PF_ADDR:' + additionalAttributePrefix + '/research/study_report/',
32    'PF_ADDR:' + additionalAttributePrefix + '/research/inquiry/',
33    'PF_ADDR:' + additionalAttributePrefix + '/research/conference_report/',
34    'PF_ADDR:' + additionalAttributePrefix + '/research/thesis/',
35    'PF_ADDR:' + additionalAttributePrefix + '/research/journal',
36    'PF_FILETYPE:pdf',
37  ],
38  layoutOrder: [
39    ['thumbnail', 'display_text4'],
40    ['display_text2', 'additional_text1'],
41    'text',
42    'title',
43    'display_text3',
44  ],
45  allAsyncUpdateHook: function () {
46    setCurrentSearchQuery();
47  },
48  itemDisplayText2Filter: function (field, item, filter_option) {
49    filter_option['use_html'] = true;
50    const labelRegex = new RegExp(/(label--[\S]+):([\S]+)/);
51    if (!labelRegex.test(field)) return;
52    const [className, text] = field.match(labelRegex).slice(1);
53    if (
54      typeof text === 'undefined' ||
55      className.search(/:/) !== -1 ||
56      text.search(/:/) !== -1
57    )
58      return;
59    return `<span class="label ${className}">${text}</span>`;
60  },
61  itemDisplayText3Filter: function (field, item, filter_option) {
62    filter_option['use_html'] = true;
63    const text3 = item['additional_text6'] || item['display_text3'] || '';
64    return generateAttributeLink(text3);
65  },
66  itemDisplayText4Filter: function (field, item, filter_option) {
67    filter_option['use_html'] = true;
68    if (!field) return;
69    const [dataType, dataId] = makeRecommendButton(field);
70    if (!dataType || !dataId) return;
71    return `<button class="like" data-type="${dataType}" data-id="${dataId}"><svg><use xlink:href="#heart"></use></svg></button>`;
72  },
73  itemDisplayText40Filter: function (field, item, filter_option) {
74    filter_option['use_html'] = true;
75    field = item['keywords_exact'];
76    return generateKeywordLink(field);
77  },
78  sortOrderResource: [
79    {
80      label: "",
81      order: "wordscore1:desc, wordweight:desc, last_modified:desc, item_score1:desc, wordscore9:desc",
82    },
83  ],
84  resetResource: [
85    {
86      name: "group1",
87      label: "検索をリセットする",
88      resets: ["searchKeyword", "attributes", "resultPage"],
89    },
90  ],
91};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.