edit-task
Home
Up
Delete
Task Name:
Task Description:
NEW PAGE VERSION -
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">PG import/articles -v-002</h1> <h2>[previously]</h2> <div><ol> <li>] <a href="/view/task?id=5617" target="_blank">PAGE - import/articles</a> - description and history of page, versions list</li> </ol></div> <h2>[currently]</h2> <div><ol> <li>[2015-09-21] NEW PAGE VERSON - </li> <ol> <li>] review existing </li> </ol></ol></div> <h2>[next]</h2> <ol> <li><strong>[00:00] HAVE = </strong></li> <ol> <li>] exisiting methods import book, import chapter IN sospep </li> </ol> <li><strong>[00:00] TRY = </strong></li> <ol> <li>] write method to CALL existing add book,</li> <li>] execute on 'AccountConfirm' OR initial login OR </li> </ol> <li><strong>[00:00]</strong></li> <ol> <li>] </li> </ol> <li><strong>[00:00] NEW task IN PAGES</strong></li> <ol> <li>] NEW PAGE /api/add-default-data.cshtml - </li> <li>] contains call to add Book </li> </ol> <li><strong>[00:00] NEW chapter in BK-Templates-by-Type</strong></li> <ol> <li>x] # # - default-chapter</li> </ol> <li><strong>[00:00] MOVE article </strong></li> <ol> <li>x] # 2844-default-article FROM ch= type-overview TO ch= default-chapter</li> <li>x] search 'default-article, res=1(2844), art 1 = overview template</li> </ol> <li><strong>[00:00] PUSH</strong></li> <ol> <li>x] # # - upload PAGE api/</li> <li>x] # # - deprecate PAGE -import-subjects-v-001 </li> </ol> <li><strong>[00:00] TEST</strong></li> <ol> <li>x] # # - RUN runs, no errors, sucessfully imports records into current db(19)</li> <li>] # # - ADD NEW - Error, looking for chapter 'index-my-book' </li> </ol> <li><strong>[00:00] NEW task </strong></li> <ol> <li>*] TRY - add chapters 'index-my-book', 'contents-my-book' to ...</li> <li>x] OR TRY - rename AS default-book, TEST = add new, r=PASS</li> <li>x] TRY - importBook(default-Book), r=PASS ( Edited add-default-data)</li> <li>x] TEST = add/new r=PASS, </li> </ol> <li><strong>[00:00] NEW task IN</strong> </li> <ol> <li>] run add-default-data IN db20 - </li> </ol> <li><strong>[00:00] ALIGN DATA</strong></li> <ol> <li>] O Templates - default-warehouse</li> <li>] OR importWarehouse </li> </ol> <li>[]</li> </ol> <div><hr /></div> <div> <pre style="font-family: Consolas; font-size: 10pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span style="color: #1e7c70;">sospep</span><span style="color: #222222;">.</span><span style="color: #222222;">importBook</span><span style="color: #222222;">(</span><span style="color: #222222;">source_sospep</span><span style="color: #222222;">,</span> <span style="color: #222222;">destination_sospep</span><span style="color: #222222;">,</span> <span style="color: #222222;">srcBookId</span><span style="color: #222222;">.</span><span style="color: #222222;">AsInt</span><span style="color: #222222;">(),</span> <span style="color: #222222;">destLibraryId</span><span style="color: #222222;">.</span><span style="color: #222222;">AsInt</span><span style="color: #222222;">());</span> </pre> <pre style="font-family: Consolas; font-size: 10pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span style="color: #1e7c70;">sospep</span><span style="color: #222222;">.</span><span style="color: #222222;">importChapter</span><span style="color: #222222;">(</span><span style="color: #222222;">source_sospep</span><span style="color: #222222;">,</span> <span style="color: #222222;">destination_sospep</span><span style="color: #222222;">,</span> <span style="color: #222222;">srcChapterId</span><span style="color: #222222;">.</span><span style="color: #222222;">AsInt</span><span style="color: #222222;">(),</span> <span style="color: #222222;">destBookId</span><span style="color: #222222;">.</span><span style="color: #222222;">AsInt</span><span style="color: #222222;">());</span> </pre> <pre style="font-family: Consolas; font-size: 10pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span style="color: #222222;"> </span></pre> <pre style="font-family: Consolas; font-size: 10pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span style="color: #1e7c70;">sospep</span><span style="color: #222222;">.</span><span style="color: #222222;">importBook</span><span style="color: #222222;">(</span><span style="color: #222222; font-size: 10pt;">"public"</span><span style="font-size: 10pt; color: #222222;">,</span><span style="font-size: 10pt;"> {"cur_sospep_name"}</span><span style="font-size: 10pt; color: #222222;">, 123</span><span style="font-size: 10pt; color: #222222;">, 1</span><span style="font-size: 10pt; color: #222222;">);</span></pre> <pre style="font-family: Consolas; font-size: 10pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span style="color: #1e7c70;">sospep</span><span style="color: #222222;">.</span><span style="color: #222222;">importChapter</span><span style="color: #222222;">("public"</span><span style="color: #222222;">,</span><span style="color: #222222;">"cur_sospep_name"</span><span style="color: #222222;">,</span><span style="color: #222222;">srcChapterId</span><span style="color: #222222;">.</span><span style="color: #222222;">AsInt</span><span style="color: #222222;">(),</span><span style="color: #222222;">destBookId</span><span style="color: #222222;">.</span><span style="color: #222222;">AsInt</span><span style="color: #222222;">());</span></pre> <pre style="font-family: Consolas; font-size: 10pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"> </pre> <hr /> <pre>] STRUCTURE </pre> <pre>Templates</pre> <pre> Templates-articles-by-type</pre> <pre> Templates by project</pre> <pre> My-Book</pre> <pre> </pre> <pre>] </pre> <pre>'MY-Book' is SEPERATE from templates, it is part of the optional 'default data set' </pre> <pre>- MY-Book is default-book, used to create default content when new book is generated </pre> <pre> </pre> <pre>'Templates by type' is/should be MANADATORY Book, it includes 'default-chapter' </pre> <pre> </pre> <pre>] ? where currently does 'default book' pull records from</pre> <pre>- generates the , BUT used article_id(1) to create </pre> <pre>- <span style="font-family: Consolas; font-size: 10pt; color: #222222;">add_default_chapters</span><span style="font-family: Consolas; font-size: 10pt; color: #222222;">(</span><span style="font-family: Consolas; font-size: 10pt; color: #4f76ac;">int</span><span style="font-family: Consolas; font-size: 10pt; color: #222222;">id_book</span><span style="font-family: Consolas; font-size: 10pt; color: #222222;">,</span><span style="font-family: Consolas; font-size: 10pt; color: #4f76ac;">string</span><span style="font-family: Consolas; font-size: 10pt; color: #222222;">name_book</span><span style="font-family: Consolas; font-size: 10pt; color: #222222;">)<br /></span></pre> <pre style="font-family: Consolas; font-size: 10pt; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span style="color: #222222;"><br /></span></pre> </div>