Skip to content

Commit bbf5418

Browse files
author
Weko dev team
committed
update
1 parent 689a21f commit bbf5418

16 files changed

Lines changed: 29 additions & 17 deletions

File tree

docker-compose2.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ services:
6969
- INVENIO_ROLE_CONTRIBUTOR=Contributor
7070
- INVENIO_ROLE_COMMUNITY=Community Administrator
7171
# production or development
72-
- FLASK_ENV=development
73-
# - FLASK_ENV=production
72+
# - FLASK_ENV=development
73+
- FLASK_ENV=production
7474
# - FLASK_DEBUG=True
7575
- SEARCH_INDEX_PREFIX=tenant1
7676
#- INVENIO_DB_POOL_CLASS=QueuePool
@@ -381,6 +381,8 @@ services:
381381
resources:
382382
limits:
383383
memory: 300m
384+
environment:
385+
- NODE_TLS_REJECT_UNAUTHORIZED=0
384386
extra_hosts:
385387
- ams.ir.rcos.nii.ac.jp:127.0.0.1
386388

modules/invenio-oauth2server/invenio_oauth2server/views/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def access_token():
120120
# Return None or a dictionary. Dictionary will be merged with token
121121
# returned to the client requesting the access token.
122122
# Response is in application/json
123+
123124
return None
124125

125126

modules/weko-search-ui/weko_search_ui/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,10 +921,14 @@ def check_jsonld_import_items(
921921
.format(item_type.item_type_name.name)
922922
)
923923

924+
_json_ld = {}
924925
with open(f"{data_path}/{json_name}", "r") as f:
925-
json_ld = json.load(f)
926+
_json_ld = json.load(f)
926927
mapper.data_path = data_path
928+
# Temporary fix for pipe character
929+
json_ld = json.loads((json.dumps(_json_ld, ensure_ascii=False)).replace("|", "|"))
927930
item_metadatas, _ = mapper.to_item_metadata(json_ld)
931+
928932
list_record = [
929933
{
930934
"$schema": f"/items/jsonschema/{item_type.id}",

modules/weko-swordserver/weko_swordserver/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def process_item(item, request_info):
467467
@oauth2.require_oauth()
468468
@limiter.limit("")
469469
@require_oauth_scopes(write_scope.id, actions_scope.id)
470-
@require_oauth_scopes(item_update_scope.id)
470+
# @require_oauth_scopes(item_update_scope.id)
471471
@roles_required(WEKO_SWORDSERVER_DEPOSIT_ROLE_ENABLE)
472472
@check_on_behalf_of()
473473
@check_package_contents()

nginx/ams/weko-frontend/components/common/Footer.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
<span>FAQ</span>
2424
</NuxtLink>
2525
</li> -->
26+
<!--
2627
<li class="cursor-pointer">
2728
<NuxtLink class="underline" to="" event="" @click="throughDblClick(`${appConf.amsPath ?? ''}/contact`)">
2829
<span>CONTACT</span>
2930
</NuxtLink>
3031
</li>
32+
-->
3133
</ul>
3234
<ul class="text-white text-sm">
3335
<!-- <li class="mb-1.5">

nginx/ams/weko-frontend/nuxt.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default defineNuxtConfig({
2020
buildAssetsDir: '/ams/_nuxt/',
2121
head: {
2222
htmlAttrs: { lang: 'ja' },
23-
title: 'AMS-alpha',
23+
title: 'Mebyo Data Catalog DB',
2424
meta: [
2525
{ charset: 'utf-8' },
2626
{ name: 'keywords', content: '' },
@@ -45,7 +45,7 @@ export default defineNuxtConfig({
4545
runtimeConfig: {
4646
public: {
4747
clientId: 'KVKymVW0sVb8nFSXqCgS96UjbZ9ZhreyT0Nt2VxB',
48-
redirectURI: 'http://ams.ir.rcos.nii.ac.jp/',
48+
redirectURI: 'https://ams.ir.rcos.nii.ac.jp/',
4949
apiTimeout: 10000, // api response timeout (ms)
5050
tokenRefreshLimit: 600, // refresh access token before time (s)
5151
contact: {

nginx/ams/weko-frontend/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nginx/ams/weko-frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ams-alpha",
2+
"name": "mebyo-data-catalog-db",
33
"private": true,
44
"scripts": {
55
"dev": "nuxt dev",

nginx/ams/weko-frontend/pages/ams/login.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
<div class="relative flex flex-col justify-center h-screen bg-miby-dark-blue">
33
<div class="w-full m-auto mb-5 flex justify-center cursor-pointer">
44
<NuxtLink to="" event="" @click="throughDblClick">
5+
<!--
56
<img class="scale-150" :src="`${appConf.amsImage ?? '/img'}/logo/logo_w.svg`" alt="AMS Logo" />
7+
-->
8+
<h1 class="text-5xl text-center font-medium text-white">Mebyo Data Catalog DB</h1>
69
</NuxtLink>
710
</div>
811
<div

nginx/ams/weko-frontend/pages/ams/logout.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
<div class="relative flex flex-col justify-center h-screen bg-miby-dark-blue">
33
<div class="w-full m-auto mb-5 flex justify-center cursor-pointer">
44
<NuxtLink to="" event="" @click="throughDblClick">
5+
<!--
56
<img class="scale-150" :src="`${appConf.amsImage ?? '/img'}/logo/logo_w.svg`" alt="AMS Logo" />
7+
-->
8+
<h1 class="text-5xl text-center font-medium text-white">Mebyo Data Catalog DB</h1>
69
</NuxtLink>
710
</div>
811
<div

0 commit comments

Comments
 (0)