diff --git a/Web/app.py b/Web/app.py index 1f7004d..9b45e95 100755 --- a/Web/app.py +++ b/Web/app.py @@ -3605,6 +3605,10 @@ def api_item_detail(item_id): detail_html = f"""
ISBN: {html.escape(item.get('ISBN', item.get('Code4', '-')))}
+Anzahl: {html.escape(item.get('SeriesCount', '-'))}
+Ort: {html.escape(item.get('Ort', '-'))}
+Typ: {html.escape(item.get('ItemType', '-'))}
+Kategorie: {html.escape(item.get('library_category', item.get('Author', '-')))}
Beschreibung: {html.escape(item.get('Beschreibung', '-'))}
Status: {html.escape(status_label)}
{f'Ausgeliehen von: {html.escape(str(borrower_value))}
' if borrower_value and status_label == 'Ausgeliehen' else ''} @@ -5143,6 +5147,7 @@ def upload_item(): individual_codes_raw = sanitize_form_value(request.form.get('individual_codes', '')) item_count_raw = sanitize_form_value(request.form.get('item_count', '1')) item_type_input = sanitize_form_value(request.form.get('item_type_input', '')) + library_category = sanitize_form_value(request.form.get('library_category', '')) app.logger.info(f"Upload attempt by {encrypt_text(username)}: name={name!r}, ort={ort!r}, beschreibung length={len(beschreibung)}, images count={len(images)}, filters={filter_upload}, filters2={filter_upload2}, filters3={filter_upload3}, anschaffungs_jahr={anschaffungs_jahr}, anschaffungs_kosten={anschaffungs_kosten}, code_4={code_4}, isbn={isbn_raw!r}, upload_mode={upload_mode!r}, item_count={item_count_raw!r}, item_type_input={item_type_input!r}, individual_codes={individual_codes_raw!r}") try: @@ -6039,7 +6044,8 @@ def upload_item(): is_grouped_sub_item=(position > 1), parent_item_id=parent_item_id, isbn=item_isbn, - item_type=item_type + item_type=item_type, + library_category=library_category ) if not item_id: break