썸네일 처리 보완
This commit is contained in:
parent
23d7a25842
commit
3967f56587
@ -55,7 +55,7 @@ public interface CollectionService {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<CollectionVO> setDetailInfoForList(List<CollectionVO> list, String mbInfoId, String defaultThumbnailUrl) throws Exception;
|
||||
public List<CollectionVO> setDetailInfoForList(List<CollectionVO> list, String mbInfoId) throws Exception;
|
||||
|
||||
/**
|
||||
* 목록의 자료정보에 상세정보를 조회하여 설정한 후 리턴한다.
|
||||
@ -66,7 +66,7 @@ public interface CollectionService {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<CollectionVO> setDetailInfoForHashList(List<HashMap<String, String>> list, String mbInfoId, String defaultThumbnailUrl) throws Exception;
|
||||
public List<CollectionVO> setDetailInfoForHashList(List<HashMap<String, String>> list, String mbInfoId) throws Exception;
|
||||
|
||||
/**
|
||||
* 자료 마스터ID 목록 문자열을 받아 CollectionVO 리스트 생성하여 리턴한다.
|
||||
@ -82,7 +82,7 @@ public interface CollectionService {
|
||||
* @param masterIds
|
||||
* @return
|
||||
*/
|
||||
public List<CollectionVO> makeInfoListOfCollectionVO(String masterIds, String mbInfoId, String defaultThumbnailUrl) throws Exception;
|
||||
public List<CollectionVO> makeInfoListOfCollectionVO(String masterIds, String mbInfoId) throws Exception;
|
||||
|
||||
/**
|
||||
* 자료상세조회 및 원문보기시에 로그
|
||||
|
||||
@ -103,7 +103,7 @@ public class CollectionServiceImpl implements CollectionService {
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<CollectionVO> setDetailInfoForList(List<CollectionVO> list) throws Exception {
|
||||
return setDetailInfoForList(list, null, null);
|
||||
return setDetailInfoForList(list, null);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -115,7 +115,7 @@ public class CollectionServiceImpl implements CollectionService {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<CollectionVO> setDetailInfoForList(List<CollectionVO> list, String mbInfoId, String defaultThumbnailUrl) throws Exception {
|
||||
public List<CollectionVO> setDetailInfoForList(List<CollectionVO> list, String mbInfoId) throws Exception {
|
||||
|
||||
if(list == null || list.size() < 1) return list;
|
||||
|
||||
@ -215,7 +215,7 @@ public class CollectionServiceImpl implements CollectionService {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<CollectionVO> setDetailInfoForHashList(List<HashMap<String, String>> list, String mbInfoId, String defaultThumbnailUrl) throws Exception {
|
||||
public List<CollectionVO> setDetailInfoForHashList(List<HashMap<String, String>> list, String mbInfoId) throws Exception {
|
||||
|
||||
List<CollectionVO> listObj = new ArrayList<CollectionVO>();
|
||||
|
||||
@ -228,7 +228,7 @@ public class CollectionServiceImpl implements CollectionService {
|
||||
}
|
||||
}
|
||||
|
||||
return setDetailInfoForList(listObj, mbInfoId, defaultThumbnailUrl);
|
||||
return setDetailInfoForList(listObj, mbInfoId);
|
||||
}
|
||||
|
||||
|
||||
@ -267,13 +267,13 @@ public class CollectionServiceImpl implements CollectionService {
|
||||
* @param masterIds
|
||||
* @return
|
||||
*/
|
||||
public List<CollectionVO> makeInfoListOfCollectionVO(String masterIds, String mbInfoId, String defaultThumbnailUrl) throws Exception {
|
||||
public List<CollectionVO> makeInfoListOfCollectionVO(String masterIds, String mbInfoId) throws Exception {
|
||||
|
||||
List<CollectionVO> retList = makeListOfCollectionVO(masterIds);
|
||||
|
||||
if(retList == null || retList.size() < 1) return null;
|
||||
|
||||
return setDetailInfoForList(retList, mbInfoId, defaultThumbnailUrl);
|
||||
return setDetailInfoForList(retList, mbInfoId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -89,7 +89,7 @@ public class ReadController extends NlibCommonController {
|
||||
|
||||
String selItems = readVO.getSelItems();
|
||||
|
||||
List<CollectionVO> list = collectionService.makeInfoListOfCollectionVO(selItems, mbInfoId, NlibProperty.getString("thumbnail.image.url.small"));
|
||||
List<CollectionVO> list = collectionService.makeInfoListOfCollectionVO(selItems, mbInfoId);
|
||||
List<HashMap<String, String>> listDates = readService.listDates();
|
||||
|
||||
model.addAttribute("readVO", readVO);
|
||||
@ -153,7 +153,7 @@ public class ReadController extends NlibCommonController {
|
||||
List<CollectionVO> list = collectionService.makeListOfCollectionVO(selItems);
|
||||
|
||||
list = readService.insertReadItems(list, mbInfoId, readVO, fromCart);
|
||||
list = collectionService.setDetailInfoForList(list, mbInfoId, NlibProperty.getString("thumbnail.image.url.small"));
|
||||
list = collectionService.setDetailInfoForList(list, mbInfoId);
|
||||
|
||||
model.addAttribute("readVO", readVO);
|
||||
model.addAttribute("list", list);
|
||||
|
||||
@ -236,7 +236,7 @@ public class RentController extends NlibCommonController
|
||||
|
||||
String selItems = rentVO.getSelItems();
|
||||
|
||||
List<CollectionVO> list = collectionService.makeInfoListOfCollectionVO(selItems, mbInfoId, NlibProperty.getString("thumbnail.image.url.small"));
|
||||
List<CollectionVO> list = collectionService.makeInfoListOfCollectionVO(selItems, mbInfoId);
|
||||
|
||||
model.addAttribute("rentVO", rentVO);
|
||||
model.addAttribute("list", list);
|
||||
@ -273,7 +273,7 @@ public class RentController extends NlibCommonController
|
||||
List<CollectionVO> list = collectionService.makeListOfCollectionVO(selItems);
|
||||
|
||||
list = rentService.insertRentItems(list, mbInfoId, rentVO.getMngOrgCd(), fromCart);
|
||||
list = collectionService.setDetailInfoForList(list, mbInfoId, NlibProperty.getString("thumbnail.image.url.small"));
|
||||
list = collectionService.setDetailInfoForList(list, mbInfoId);
|
||||
|
||||
model.addAttribute("rentVO", rentVO);
|
||||
model.addAttribute("list", list);
|
||||
|
||||
@ -249,7 +249,7 @@ $(document).ready(function() {
|
||||
|
||||
<div class="list">
|
||||
<div class="t-data">
|
||||
<div class="img"><a href="javascript:void(0)"><img src="${rent.rprsThumbUrl }" alt="썸네일" width="60" height="91" title="상세보기" onclick="fn_gotoDetail('${rent.masterId }')"></a>
|
||||
<div class="img"><a href="javascript:void(0)"><img src="${rent.rprsThumbUrlWithDefaultSmall }" alt="썸네일" width="60" height="91" title="상세보기" onclick="fn_gotoDetail('${rent.masterId }')"></a>
|
||||
<c:if test='${cart.MUseYn == "Y"}'>
|
||||
<span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다.">
|
||||
<img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘">
|
||||
|
||||
@ -196,7 +196,7 @@ $(document).ready(function() {
|
||||
<!-- 행 : 시작 -->
|
||||
<div class="list">
|
||||
<div class="t-data">
|
||||
<div class="img"><a href="javascript:void(0)"><img src="${rent.rprsThumbUrl }" alt="썸네일" width="60" height="91" title="상세보기" onclick="fn_gotoDetail('${rent.masterId }')"></a>
|
||||
<div class="img"><a href="javascript:void(0)"><img src="${rent.rprsThumbUrlWithDefaultSmall }" alt="썸네일" width="60" height="91" title="상세보기" onclick="fn_gotoDetail('${rent.masterId }')"></a>
|
||||
<c:if test='${cart.MUseYn == "Y"}'>
|
||||
<span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다.">
|
||||
<img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘">
|
||||
|
||||
@ -243,7 +243,7 @@ $(document).ready(function() {
|
||||
|
||||
<div class="list">
|
||||
<div class="t-data">
|
||||
<div class="img"><a href="javascript:void(0)"><img src="${rent.rprsThumbUrl }" alt="썸네일" width="60" height="91" title="상세보기" onclick="fn_gotoDetail('${rent.masterId }')"></a>
|
||||
<div class="img"><a href="javascript:void(0)"><img src="${rent.rprsThumbUrlWithDefaultSmall }" alt="썸네일" width="60" height="91" title="상세보기" onclick="fn_gotoDetail('${rent.masterId }')"></a>
|
||||
<c:if test='${cart.MUseYn == "Y"}'>
|
||||
<span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다.">
|
||||
<img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘">
|
||||
|
||||
@ -194,7 +194,7 @@ $(document).ready(function() {
|
||||
<!-- 행 : 시작 -->
|
||||
<div class="list">
|
||||
<div class="t-data">
|
||||
<div class="img"><a href="javascript:void(0)"><img src="${rent.rprsThumbUrl }" alt="썸네일" width="60" height="91" title="상세보기" onclick="fn_gotoDetail('${rent.masterId }')"></a>
|
||||
<div class="img"><a href="javascript:void(0)"><img src="${rent.rprsThumbUrlWithDefaultSmall }" alt="썸네일" width="60" height="91" title="상세보기" onclick="fn_gotoDetail('${rent.masterId }')"></a>
|
||||
<c:if test='${cart.MUseYn == "Y"}'>
|
||||
<span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다.">
|
||||
<img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user