feat: PDF 매칭 필터링 및 서적 정보 UI 개선
- 서적 편집 페이지에서 PDF 매칭 드롭다운이 현재 서적의 PDF만 표시하도록 수정 - PDF 관리 페이지에 서적 정보 표시 UI 추가 - 타입 안전한 비교로 book_id 필터링 개선 - PDF 통계 카드에 서적별 분류 추가 - 필터 기능에 '서적 포함' 옵션 추가 - 디버깅 로그 추가로 문제 추적 개선 주요 변경사항: - book-editor.js: String() 타입 변환으로 안전한 book_id 비교 - pdf-manager.html/js: 서적 정보 배지 및 통계 카드 추가 - book-documents.js: HTML 문서 필터링 로직 개선
This commit is contained in:
@@ -8,7 +8,7 @@ class DocumentServerAPI {
|
||||
this.token = localStorage.getItem('access_token');
|
||||
|
||||
console.log('🐳 API Base URL (DOCKER BACKEND):', this.baseURL);
|
||||
console.log('🔧 도커 환경 설정 완료 - 버전 2025012384');
|
||||
console.log('🔧 도커 환경 설정 완료 - 버전 2025012415');
|
||||
}
|
||||
|
||||
// 토큰 설정
|
||||
@@ -387,6 +387,11 @@ class DocumentServerAPI {
|
||||
return await this.put(`/books/${bookId}`, bookData);
|
||||
}
|
||||
|
||||
// 문서 네비게이션 정보 조회
|
||||
async getDocumentNavigation(documentId) {
|
||||
return await this.get(`/documents/${documentId}/navigation`);
|
||||
}
|
||||
|
||||
async searchBooks(query, limit = 10) {
|
||||
const params = new URLSearchParams({ q: query, limit });
|
||||
return await this.get(`/books/search/?${params}`);
|
||||
@@ -518,6 +523,36 @@ class DocumentServerAPI {
|
||||
async exportMemoTree(exportData) {
|
||||
return await this.post('/memo-trees/export', exportData);
|
||||
}
|
||||
|
||||
// 문서 링크 관련 API
|
||||
async createDocumentLink(documentId, linkData) {
|
||||
return await this.post(`/documents/${documentId}/links`, linkData);
|
||||
}
|
||||
|
||||
async getDocumentLinks(documentId) {
|
||||
return await this.get(`/documents/${documentId}/links`);
|
||||
}
|
||||
|
||||
async getLinkableDocuments(documentId) {
|
||||
return await this.get(`/documents/${documentId}/linkable-documents`);
|
||||
}
|
||||
|
||||
async updateDocumentLink(linkId, linkData) {
|
||||
return await this.put(`/documents/links/${linkId}`, linkData);
|
||||
}
|
||||
|
||||
async deleteDocumentLink(linkId) {
|
||||
return await this.delete(`/documents/links/${linkId}`);
|
||||
}
|
||||
|
||||
// 백링크 관련 API
|
||||
async getDocumentBacklinks(documentId) {
|
||||
return await this.get(`/documents/${documentId}/backlinks`);
|
||||
}
|
||||
|
||||
async getDocumentLinkFragments(documentId) {
|
||||
return await this.get(`/documents/${documentId}/link-fragments`);
|
||||
}
|
||||
}
|
||||
|
||||
// 전역 API 인스턴스
|
||||
|
||||
Reference in New Issue
Block a user