fix: DT ve arşiv kayıtları sektör alanına ihale türü yazıyordu — sektör filtresi bu kayıtları bulamıyordu

This commit is contained in:
2026-08-30 00:28:32 +03:00
parent fd78b6e7d9
commit 62d1b8844e
4 changed files with 88 additions and 58 deletions
+3 -1
View File
@@ -4,6 +4,7 @@
*/
import fs from 'node:fs';
import { sektorBul } from './siniflandir.mjs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { titleCaseTr } from './tr-text.mjs';
@@ -73,7 +74,8 @@ function mapDtRow(row) {
saat: '',
alimTuru: 'Doğrudan Temin',
usul: det.yasaMaddesi ? `Doğrudan Temin (4734 ${det.yasaMaddesi})` : 'Doğrudan Temin (4734 22/d)',
sektor: row.turu || 'Genel',
// Sektör ihale TÜRÜ değildir; başlık + kalem adlarından çıkarılır.
sektor: sektorBul(row.isin_adi || '', (det.bransKodlari || []).join(' '), row.turu || ''),
brans: (det.bransKodlari || []).join(', ') || row.turu || 'Genel',
kurumTipi: classifyKurum(kurum),
eklenmeZamani: row.yayim_tarihi ? `Yayım: ${row.yayim_tarihi}` : '',