썸네일 처리 보완

This commit is contained in:
KNKIM 2021-11-19 17:28:11 +09:00
parent 23d7a25842
commit 3967f56587
8 changed files with 18 additions and 18 deletions

View File

@ -55,7 +55,7 @@ public interface CollectionService {
* @return * @return
* @throws Exception * @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 * @return
* @throws Exception * @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 리스트 생성하여 리턴한다. * 자료 마스터ID 목록 문자열을 받아 CollectionVO 리스트 생성하여 리턴한다.
@ -82,7 +82,7 @@ public interface CollectionService {
* @param masterIds * @param masterIds
* @return * @return
*/ */
public List<CollectionVO> makeInfoListOfCollectionVO(String masterIds, String mbInfoId, String defaultThumbnailUrl) throws Exception; public List<CollectionVO> makeInfoListOfCollectionVO(String masterIds, String mbInfoId) throws Exception;
/** /**
* 자료상세조회 원문보기시에 로그 * 자료상세조회 원문보기시에 로그

View File

@ -103,7 +103,7 @@ public class CollectionServiceImpl implements CollectionService {
* @throws Exception * @throws Exception
*/ */
public List<CollectionVO> setDetailInfoForList(List<CollectionVO> list) 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 * @return
* @throws Exception * @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; if(list == null || list.size() < 1) return list;
@ -215,7 +215,7 @@ public class CollectionServiceImpl implements CollectionService {
* @return * @return
* @throws Exception * @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>(); 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 * @param masterIds
* @return * @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); List<CollectionVO> retList = makeListOfCollectionVO(masterIds);
if(retList == null || retList.size() < 1) return null; if(retList == null || retList.size() < 1) return null;
return setDetailInfoForList(retList, mbInfoId, defaultThumbnailUrl); return setDetailInfoForList(retList, mbInfoId);
} }
/** /**
@ -305,5 +305,5 @@ public class CollectionServiceImpl implements CollectionService {
public List<CollectionVO> selectSimilarList(CollectionVO vo) throws Exception { public List<CollectionVO> selectSimilarList(CollectionVO vo) throws Exception {
return collectionDAO.selectSimilarList(vo); return collectionDAO.selectSimilarList(vo);
} }
} }

View File

@ -89,7 +89,7 @@ public class ReadController extends NlibCommonController {
String selItems = readVO.getSelItems(); 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(); List<HashMap<String, String>> listDates = readService.listDates();
model.addAttribute("readVO", readVO); model.addAttribute("readVO", readVO);
@ -153,7 +153,7 @@ public class ReadController extends NlibCommonController {
List<CollectionVO> list = collectionService.makeListOfCollectionVO(selItems); List<CollectionVO> list = collectionService.makeListOfCollectionVO(selItems);
list = readService.insertReadItems(list, mbInfoId, readVO, fromCart); 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("readVO", readVO);
model.addAttribute("list", list); model.addAttribute("list", list);

View File

@ -236,7 +236,7 @@ public class RentController extends NlibCommonController
String selItems = rentVO.getSelItems(); 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("rentVO", rentVO);
model.addAttribute("list", list); model.addAttribute("list", list);
@ -273,7 +273,7 @@ public class RentController extends NlibCommonController
List<CollectionVO> list = collectionService.makeListOfCollectionVO(selItems); List<CollectionVO> list = collectionService.makeListOfCollectionVO(selItems);
list = rentService.insertRentItems(list, mbInfoId, rentVO.getMngOrgCd(), fromCart); 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("rentVO", rentVO);
model.addAttribute("list", list); model.addAttribute("list", list);

View File

@ -249,7 +249,7 @@ $(document).ready(function() {
<div class="list"> <div class="list">
<div class="t-data"> <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"}'> <c:if test='${cart.MUseYn == "Y"}'>
<span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다."> <span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다.">
<img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘"> <img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘">

View File

@ -196,7 +196,7 @@ $(document).ready(function() {
<!-- 행 : 시작 --> <!-- 행 : 시작 -->
<div class="list"> <div class="list">
<div class="t-data"> <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"}'> <c:if test='${cart.MUseYn == "Y"}'>
<span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다."> <span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다.">
<img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘"> <img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘">

View File

@ -243,7 +243,7 @@ $(document).ready(function() {
<div class="list"> <div class="list">
<div class="t-data"> <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"}'> <c:if test='${cart.MUseYn == "Y"}'>
<span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다."> <span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다.">
<img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘"> <img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘">

View File

@ -194,7 +194,7 @@ $(document).ready(function() {
<!-- 행 : 시작 --> <!-- 행 : 시작 -->
<div class="list"> <div class="list">
<div class="t-data"> <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"}'> <c:if test='${cart.MUseYn == "Y"}'>
<span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다."> <span class="favorites" onclick="fn_changeInterest('${rent.masterId }', 'off')" title="관심자료에서 삭제합니다.">
<img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘"> <img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘">