|
26 | 26 | <div> |
27 | 27 | <h5 class="mb-1">{{ job.displayNameKey|trans(job.displayNameParams) }} - {{ job.formattedTimestamp }}</h5> |
28 | 28 | <small class="text-muted"> |
29 | | - {{ job.partCount }} {% trans %}info_providers.bulk_import.parts{% endtrans %} • |
30 | | - {{ job.resultCount }} {% trans %}info_providers.bulk_import.results{% endtrans %} • |
| 29 | + {{ job.partCount }} {% trans %}info_providers.bulk_import.parts{% endtrans %} • |
| 30 | + {{ job.resultCount }} {% trans %}info_providers.bulk_import.results{% endtrans %} • |
31 | 31 | {% trans %}info_providers.bulk_import.created_at{% endtrans %}: {{ job.createdAt|date('Y-m-d H:i') }} |
32 | 32 | </small> |
33 | 33 | </div> |
|
52 | 52 | <span data-bulk-import-target="progressText">{{ job.completedPartsCount }} / {{ job.partCount }} completed</span> |
53 | 53 | </div> |
54 | 54 | <div class="progress" style="height: 8px;"> |
55 | | - <div data-bulk-import-target="progressBar" class="progress-bar" role="progressbar" |
56 | | - style="width: {{ job.progressPercentage }}%" |
| 55 | + <div data-bulk-import-target="progressBar" class="progress-bar" role="progressbar" |
| 56 | + style="width: {{ job.progressPercentage }}%" |
57 | 57 | aria-valuenow="{{ job.progressPercentage }}" aria-valuemin="0" aria-valuemax="100"> |
58 | 58 | </div> |
59 | 59 | </div> |
60 | 60 | <div class="d-flex justify-content-between mt-2"> |
61 | 61 | <small class="text-muted"> |
62 | | - <span id="completed-count">{{ job.completedPartsCount }}</span> {% trans %}info_providers.bulk_import.completed{% endtrans %} • |
| 62 | + <span id="completed-count">{{ job.completedPartsCount }}</span> {% trans %}info_providers.bulk_import.completed{% endtrans %} • |
63 | 63 | <span id="skipped-count">{{ job.skippedPartsCount }}</span> {% trans %}info_providers.bulk_import.skipped{% endtrans %} |
64 | 64 | </small> |
65 | 65 | <small class="text-muted"><span id="progress-percentage">{{ job.progressPercentage }}%</span></small> |
|
89 | 89 | <small class="text-muted">{% trans %}info_providers.bulk_import.research.description{% endtrans %}</small> |
90 | 90 | </div> |
91 | 91 | <div> |
92 | | - <button type="button" class="btn btn-outline-primary btn-sm me-2" |
| 92 | + <button type="button" class="btn btn-outline-primary btn-sm me-2" |
93 | 93 | data-action="click->bulk-import#researchAllParts" |
94 | 94 | id="research-all-btn"> |
95 | 95 | <span class="spinner-border spinner-border-sm me-1" style="display: none;" id="research-all-spinner"></span> |
|
101 | 101 | </div> |
102 | 102 |
|
103 | 103 | {% for part_result in search_results %} |
| 104 | + {# @var part_result \App\Services\InfoProviderSystem\DTOs\BulkSearchPartResultsDTO #} |
| 105 | + |
104 | 106 | {% set part = part_result.part %} |
105 | 107 | {% set isCompleted = job.isPartCompleted(part.id) %} |
106 | 108 | {% set isSkipped = job.isPartSkipped(part.id) %} |
107 | | - <div class="card mb-3 {% if isCompleted %}border-success{% elseif isSkipped %}border-warning{% endif %}" |
108 | | - data-part-id="{{ part.id }}" |
| 109 | + <div class="card mb-3 {% if isCompleted %}border-success{% elseif isSkipped %}border-warning{% endif %}" |
| 110 | + data-part-id="{{ part.id }}" |
109 | 111 | {% if isCompleted %}style="background-color: rgba(25, 135, 84, 0.1);"{% endif %}> |
110 | 112 | <div class="card-header d-flex justify-content-between align-items-center"> |
111 | 113 | <div> |
|
125 | 127 | {% if part_result.errors is not empty %} |
126 | 128 | <span class="badge bg-danger">{% trans with {'%count%': part_result.errors|length} %}info_providers.bulk_import.errors{% endtrans %}</span> |
127 | 129 | {% endif %} |
128 | | - <span class="badge bg-info">{% trans with {'%count%': part_result.search_results|length} %}info_providers.bulk_import.results_found{% endtrans %}</span> |
| 130 | + <span class="badge bg-info">{% trans with {'%count%': part_result.searchResults|length} %}info_providers.bulk_import.results_found{% endtrans %}</span> |
129 | 131 | </h5> |
130 | 132 | </div> |
131 | 133 | <div class="btn-group" role="group"> |
132 | | - <button type="button" class="btn btn-outline-info btn-sm" |
133 | | - data-action="click->bulk-import#researchPart" |
| 134 | + <button type="button" class="btn btn-outline-info btn-sm" |
| 135 | + data-action="click->bulk-import#researchPart" |
134 | 136 | data-part-id="{{ part.id }}" |
135 | 137 | title="{% trans %}info_providers.bulk_import.research.part_tooltip{% endtrans %}"> |
136 | 138 | <span class="spinner-border spinner-border-sm me-1" style="display: none;" data-research-spinner="{{ part.id }}"></span> |
|
163 | 165 | </div> |
164 | 166 | {% endfor %} |
165 | 167 | {% endif %} |
166 | | - |
167 | | - {% if part_result.search_results|length > 0 %} |
| 168 | + |
| 169 | + {% if part_result.searchResults|length > 0 %} |
168 | 170 | <div class="table-responsive"> |
169 | 171 | <table class="table table-sm"> |
170 | 172 | <thead> |
|
179 | 181 | </tr> |
180 | 182 | </thead> |
181 | 183 | <tbody> |
182 | | - {% for result in part_result.search_results %} |
183 | | - {% set dto = result.dto %} |
| 184 | + {% for result in part_result.searchResults %} |
| 185 | + {# @var result \App\Services\InfoProviderSystem\DTOs\BulkSearchPartResultDTO #} |
| 186 | + {% set dto = result.searchResult %} |
184 | 187 | {% set localPart = result.localPart %} |
185 | 188 | <tr> |
186 | 189 | <td> |
187 | 190 | <img src="{{ dto.preview_image_url }}" data-thumbnail="{{ dto.preview_image_url }}" |
188 | | - class="hoverpic" style="max-width: 30px;" {{ stimulus_controller('elements/hoverpic') }}> |
| 191 | + class="hoverpic" style="max-width: 35px;" {{ stimulus_controller('elements/hoverpic') }}> |
189 | 192 | </td> |
190 | 193 | <td> |
191 | 194 | {% if dto.provider_url is not null %} |
|
204 | 207 | <br><small class="text-muted">{{ dto.provider_id }}</small> |
205 | 208 | </td> |
206 | 209 | <td> |
207 | | - <span class="badge bg-info">{{ result.source_field ?? 'unknown' }}</span> |
208 | | - {% if result.source_keyword %} |
209 | | - <br><small class="text-muted">{{ result.source_keyword }}</small> |
| 210 | + <span class="badge bg-info">{{ result.sourceField ?? 'unknown' }}</span> |
| 211 | + {% if result.sourceKeyword %} |
| 212 | + <br><small class="text-muted">{{ result.sourceKeyword }}</small> |
210 | 213 | {% endif %} |
211 | 214 | </td> |
212 | 215 | <td> |
|
0 commit comments