Skip to content

Commit ee5ba86

Browse files
commented out code
1 parent 532abb8 commit ee5ba86

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

sde_indexing_helper/static/js/candidate_url_list.js

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var newExcludePatternsCount = 0;
99
var newTitlePatternsCount = 0;
1010
var newDocumentTypePatternsCount = 0;
1111
var newDivisionPatternsCount = 0;
12-
// var is_multi_division = "{{ is_multi_division|lower }}";
1312
var currentTab = ""; //blank for the first tab
1413
var matchPatternTypeMap = {
1514
"Individual URL Pattern": 1,
@@ -257,38 +256,40 @@ function initializeDataTable() {
257256
getScrapedTitleColumn(),
258257
getGeneratedTitleColumn(),
259258
getDocumentTypeColumn(),
260-
getDivisionColumn(),
259+
//getDivisionColumn(),
261260
{ data: "id", visible: false, searchable: false },
262261
{ data: "generated_title_id", visible: false, searchable: false },
263262
{ data: "match_pattern_type", visible: false, searchable: false },
264263
{ data: "candidate_urls_count", visible: false, searchable: false },
265264
{ data: "excluded", visible: false, searchable: false },
266-
{
267-
data: null,
268-
render: function (data, type, row) {
269-
if (!row.document_type) return "Select";
270-
return dict[row.document_type];
271-
},
272-
visible: false,
273-
},
274-
{
275-
data: null,
276-
render: function (data, type, row) {
277-
const excludedDict = {
278-
true: "Yes",
279-
false: "No",
280-
};
281-
return excludedDict[row.excluded];
282-
},
283-
visible: false,
284-
},
285-
{
286-
data: null,
287-
render: function (data, type, row) {
288-
return row.generated_title;
289-
},
290-
visible: false,
291-
},
265+
// {
266+
// data: null,
267+
// render: function (data, type, row) {
268+
// if (!row.document_type) return "Select";
269+
// return dict[row.document_type];
270+
// },
271+
// visible: false,
272+
// },
273+
// {
274+
// data: null,
275+
// render: function (data, type, row) {
276+
// const excludedDict = {
277+
// true: "Yes",
278+
// false: "No",
279+
// };
280+
// return excludedDict[row.excluded];
281+
// },
282+
// visible: false,
283+
// },
284+
// {
285+
// data: null,
286+
// render: function (data, type, row) {
287+
// return row.generated_title;
288+
// },
289+
// visible: false,
290+
// },
291+
// ...(is_multi_division === 'true' ? [getDivisionColumn()] : []),
292+
// getDivisionColumn(),
292293
],
293294
createdRow: function (row, data, dataIndex) {
294295
if (data["excluded"]) {

0 commit comments

Comments
 (0)