New Function #36
open표제어 검색 Detail 페이지 URL을 키워드명으로 변경
Description
1.Steps
- [USER] 표제어 검색 menu : https://folkency.nfm.go.kr/topic
- one item clicks > details page : https://folkency.nfm.go.kr/topic/detail/6637
2.Issue
2-1. URL (topic/:keyword)
1) As-Is
a) ex) http://folkency.nfm.go.kr/topic/범어사
- get {topic_seq} from elasticsearch DB using filter
b) redirect to https://folkency.nfm.go.kr/topic/detail/5526
- the URL call API : https://folkency.nfm.go.kr/api/topic/detail)
2) To-Be
a) call new API (https://folkency.nfm.go.kr/api/topic/keyword)
b) new API Logic
b-1) get {topic_seq} from ORACLE DB (datasource.nfmw)
DB: NFM_TOPIC
select: TOPIC_SEQ
condition:
- if locale = 'ko', DIC_SUBJECT_KR = {keyword}
- if locale = 'en', DIC_SUBJECT_EN = {keyword}
- if locale = 'cn', DIC_SUBJECT_CN = {keyword}
- if locale = 'sp', DIC_SUBJECT_SP = {keyword}
b-2) if can't get {topic_seq}, move to error page
b-3} if get {topic_seq}, it's same with /api/topic/detail
Updated by Deca Park almost 2 years ago
- Description updated (diff)
- Assignee set to Toby Pham
Updated by Toby Pham almost 2 years ago
- Status changed from In Progress to Resolved
- Assignee changed from Toby Pham to Deca Park