From 7ecd4bdd40e65e86a390d5e2bce467ff35fbe6b2 Mon Sep 17 00:00:00 2001 From: ivis-kikuchi Date: Tue, 9 Jun 2026 11:07:28 +0900 Subject: [PATCH 1/2] fix show list bibliographic --- modules/weko-records/weko_records/utils.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/modules/weko-records/weko_records/utils.py b/modules/weko-records/weko_records/utils.py index 7b1a3e060b..317ed410e8 100644 --- a/modules/weko-records/weko_records/utils.py +++ b/modules/weko-records/weko_records/utils.py @@ -904,6 +904,11 @@ def data_comment(result, data_result, stt_key, is_specify_newline_array): result = get_author_comment( data_result, key, result, is_specify_newline_array ) + elif "is_biographic_prop" in data_result[key] \ + and data_result[key].pop("is_biographic_prop"): + for k, v in data_result[key].items(): + if "value" in v: + result.append(v["value"]) else: if "lang_id" in data_result[key]: lang_id = ( @@ -2085,7 +2090,7 @@ def check_info_in_metadata(str_key_lang, str_key_val, str_lang, metadata): for x in save: if x.get(ob): save = x.get(ob) - + if isinstance(save, list): for s in save: if s is not None and str_lang is None: @@ -2094,7 +2099,7 @@ def check_info_in_metadata(str_key_lang, str_key_val, str_lang, metadata): value = s.get(str_key_val[len(str_key_val) - 1]).strip() if len(value) > 0: return value - + if ( s and isinstance(s, dict) @@ -2501,7 +2506,12 @@ def add_biographic( ) stt_key.append(bibliographic_key) is_specify_newline_array.append({s["key"]: True}) - data_result.update({bibliographic_key: {s["key"]: {"value": [bibliographic]}}}) + data_result.update({ + bibliographic_key: { + s["key"]: {"value": bibliographic}, + "is_biographic_prop": True + } + }) return stt_key, data_result, is_specify_newline_array From a43c60396535aa2826d429bb7ac3aa01a02c2387 Mon Sep 17 00:00:00 2001 From: kanon-yoneji Date: Thu, 11 Jun 2026 15:35:47 +0900 Subject: [PATCH 2/2] fix-W2025-33-903 --- .../weko_records_ui/static/js/weko_records_ui/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/weko-records-ui/weko_records_ui/static/js/weko_records_ui/app.js b/modules/weko-records-ui/weko_records_ui/static/js/weko_records_ui/app.js index 0ff5202076..093343a46c 100644 --- a/modules/weko-records-ui/weko_records_ui/static/js/weko_records_ui/app.js +++ b/modules/weko-records-ui/weko_records_ui/static/js/weko_records_ui/app.js @@ -498,6 +498,9 @@ function handleChargeBillingFile() { } function handleConfirmBillingFile() { + if (!document.getElementById('current_user_email')) { + return; + } const email = document.getElementById('current_user_email').value; const charge_key = 'charge_' + email; let charge_item = JSON.parse(window.sessionStorage.getItem(charge_key));