Project

General

Profile

New Function #36

Updated by Deca Park over 1 year ago

<p>1.Steps</p> 

 <ul> 
	 <li>[USER] 표제어 검색 menu :&nbsp;https://folkency.nfm.go.kr/topic</li> 
	 <li>one item clicks &gt; details page :&nbsp;https://folkency.nfm.go.kr/topic/detail/6637</li> 
 </ul> 

 <p>2.Issue</p> <p>2.Issue (details page URL)</p> 

 <p>&nbsp; 2-1. <strong>URL (topic/:keyword)</strong><br /> 
 &nbsp; &nbsp; 1) As-Is<br /> AS-IS</p> 

 <ul> 
	 <li>https://folkency.nfm.go.kr/topic<strong>/detail/5490</strong></li> 
 &nbsp; &nbsp; &nbsp; a) ex) http://folkency.nfm.go.kr/topic/범어사<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; - get {topic_seq} from elasticsearch DB using filter<br /> 
 &nbsp; &nbsp; &nbsp; b) redirect to https://folkency.nfm.go.kr/topic/detail/5526<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; - the URL call API : https://folkency.nfm.go.kr/api/topic/detail)<br /> 
 &nbsp;&nbsp;<br /> 
 &nbsp; &nbsp; </ul> 

 <p>&nbsp; 2) To-Be<br /> 
 &nbsp; &nbsp; &nbsp; a) call new API (https://folkency.nfm.go.kr<strong>/api/topic/keyword</strong>)<br /> 
 &nbsp; &nbsp; &nbsp; b) new API Logic<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; b-1) get {topic_seq} from ORACLE DB (datasource.nfmw)<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DB: NFM_TOPIC<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; select: TOPIC_SEQ<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; condition:&nbsp;<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - if locale = &#39;ko&#39;, DIC_SUBJECT_KR = {keyword}<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - if locale = &#39;en&#39;, DIC_SUBJECT_EN = {keyword}<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - if locale = &#39;cn&#39;, DIC_SUBJECT_CN = {keyword}<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - if locale = &#39;sp&#39;, DIC_SUBJECT_SP = {keyword}<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; b-2) if can&#39;t get {topic_seq}, move TO-BE</p> 

 <ul> 
	 <li>https://folkency.nfm.go.kr/topic<strong>/{item title}</strong></li> 
	 <li><strong>{item title} is different according to error page<br /> selected language locale</strong></li> 
 &nbsp; &nbsp; &nbsp; &nbsp; b-3} if get {topic_seq}, it&#39;s same with /api/topic/detail<br /> 
 &nbsp;</p> </ul> 

Back