diff options
author | Sashi20 | 2020-01-10 14:01:36 +0530 |
---|---|---|
committer | Sashi20 | 2020-01-10 14:01:36 +0530 |
commit | 96fa3195ca3e86c739c2907f85360bc4dcd95a95 (patch) | |
tree | 8f246c25ce5502eacc4f1b9c0e8fdc27f571e3e8 | |
parent | fecb424fa4f20814d663e48ae668552381678509 (diff) | |
download | r_textbook_companion-96fa3195ca3e86c739c2907f85360bc4dcd95a95.tar.gz r_textbook_companion-96fa3195ca3e86c739c2907f85360bc4dcd95a95.tar.bz2 r_textbook_companion-96fa3195ca3e86c739c2907f85360bc4dcd95a95.zip |
Update project details in info and update text in completed books page
-rwxr-xr-x | display_books.inc | 4 | ||||
-rwxr-xr-x | latex/bck_latex_test.sh | 10 | ||||
-rwxr-xr-x | latex/latex_test.sh | 2 | ||||
-rwxr-xr-x | textbook_companion.info | 2 | ||||
-rwxr-xr-x | textbook_run.inc | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/display_books.inc b/display_books.inc index 3448347..829b681 100755 --- a/display_books.inc +++ b/display_books.inc @@ -140,7 +140,7 @@ function tbc_completed_books_all() $output .= "</h4></div>"; $result_count = db_query("SELECT pe.book FROM {textbook_companion_preference} pe LEFT JOIN textbook_companion_proposal po ON pe.proposal_id = po.id WHERE po.proposal_status =3 AND pe.approval_status =1"); $row_count = $result_count->rowCount(); - $output .= "<p style='clear: both;'>Total number of completed books : " . $row_count . " </p>"; + $output .= "<p style='clear: both;'>Total number of completed books : " . $row_count . " </p><br><span style='color:red;'>The list below is not the books as named but only are the solved example for R</span>"; $output .= "<hr style='background-color: #abb2b8;' />"; $result_category = db_query("SELECT * FROM {list_of_category} WHERE category_id !=0"); $row_category_count = $result_category->rowCount(); @@ -174,7 +174,7 @@ function tbc_books_display_new_category_form($form, &$form_state) $book_count = $count_row->c; $form['completed_book_count'] = array( '#type' => 'item', - '#markup' => "Total number of completed books: " . $book_count, + '#markup' => "Total number of completed books: " . $book_count . "<br><span style='color:red;'>The list below is not the books as named but only are the solved example for R</span>", ); $form['category'] = array( '#type' => 'select', diff --git a/latex/bck_latex_test.sh b/latex/bck_latex_test.sh index b7c0513..902be7d 100755 --- a/latex/bck_latex_test.sh +++ b/latex/bck_latex_test.sh @@ -26,7 +26,7 @@ fi IFS_old="$IFS" IFS=# read col1 col2 col3 col4 col5 col6 col7 col8 < $Contrib_details; IFS=# read colB1 colB2 colB3 colB4 colB5 colB6 colB7 < $Bk_details -echo \\title\{Scilab Textbook Companion \for "\\\\"$colB1"\\\\"by $colB2"\\footnote{Funded by a grant from the National Mission on Education through ICT, http://spoken-tutorial.org/NMEICT-Intro. This Textbook Companion and Scilab codes written in it can be downloaded from the \"Textbook Companion Project\" section at the website http://scilab.in}}" >>$CURDIR/TEX +echo \\title\{R Textbook Companion \for "\\\\"$colB1"\\\\"by $colB2"\\footnote{Funded by a grant from the National Mission on Education through ICT, http://spoken-tutorial.org/NMEICT-Intro. This Textbook Companion and R codes written in it can be downloaded from the \"Textbook Companion Project\" section at the website http://R.in}}" >>$CURDIR/TEX echo \\author\{ Created by \\\\$col1\\\\$col2\\\\$col3\\\\$col4\\\\ College Teacher\\\\$col5\\\\Cross\-Checked by \\\\$col6\\\\$col8}>>$CURDIR/TEX @@ -51,13 +51,13 @@ echo >> $CURDIR/TEX echo \\newpage >> $CURDIR/TEX echo \\vspace*{3cm}>>$CURDIR/TEX -echo Scilab numbering policy used in this document and the relation to the above book.>>$CURDIR/TEX +echo R numbering policy used in this document and the relation to the above book.>>$CURDIR/TEX echo \\begin{description}>>$CURDIR/TEX echo \\item[Exa] Example \(Solved example\)>>$CURDIR/TEX echo \\item[Eqn] Equation \(Particular equation of the above book\)>>$CURDIR/TEX -echo \\item[AP] Appendix to Example\(Scilab Code that is an Appednix to a particular Example of the above book\)>>$CURDIR/TEX +echo \\item[AP] Appendix to Example\(R Code that is an Appednix to a particular Example of the above book\)>>$CURDIR/TEX echo \\end{description}>>$CURDIR/TEX -echo "For example, Exa~3.51 means solved example 3.51 of this book. Sec~2.3 means a scilab code whose theory is explained in Section 2.3 of the book.">>$CURDIR/TEX +echo "For example, Exa~3.51 means solved example 3.51 of this book. Sec~2.3 means a R code whose theory is explained in Section 2.3 of the book.">>$CURDIR/TEX echo>>$CURDIR/TEX echo \\tableofcontents >>$CURDIR/TEX @@ -114,7 +114,7 @@ fi if [ $col7 = X ] then -echo This code can be downloaded from the website wwww.scilab.in >> $CURDIR/TEX +echo This code can be downloaded from the website wwww.R.in >> $CURDIR/TEX fi if [ $col7 = R ] diff --git a/latex/latex_test.sh b/latex/latex_test.sh index 4e88d63..9197ab4 100755 --- a/latex/latex_test.sh +++ b/latex/latex_test.sh @@ -41,7 +41,7 @@ colB4=${colB4/&/\\&}; colB5=${colB5/&/\\&}; colB6=${colB6/&/\\&}; colB7=${colB7/&/\\&}; -echo \\title\{R Textbook Companion \for "\\\\"$colB1"\\\\"by $colB2"\\footnote{Funded by a grant from the National Mission on Education through ICT, http://spoken-tutorial.org/NMEICT-Intro. This Textbook Companion and R codes written in it can be downloaded from the \"Textbook Companion Project\" section at the website http://R.in}}" >>$CURDIR/TEX +echo \\title\{R Textbook Companion \for "\\\\"$colB1"\\\\"by $colB2"\\footnote{Funded by a grant from the National Mission on Education through ICT, http://spoken-tutorial.org/NMEICT-Intro. This Textbook Companion and R codes written in it can be downloaded from the \"Textbook Companion Project\" section at the website https://r.fossee.in}}" >>$CURDIR/TEX echo \\author\{ Created by \\\\$col1\\\\$col2\\\\$col3\\\\$col4\\\\ College Teacher\\\\$col5\\\\Cross\-Checked by \\\\$col6\\\\$col8}>>$CURDIR/TEX diff --git a/textbook_companion.info b/textbook_companion.info index cdc1948..0d5559e 100755 --- a/textbook_companion.info +++ b/textbook_companion.info @@ -3,4 +3,4 @@ description = IIT Bombay Textbook Companion project package = IITB version = 7.1 core = 7.x - +project = "textbook_companion"
\ No newline at end of file diff --git a/textbook_run.inc b/textbook_run.inc index 9eb3cca..99a0619 100755 --- a/textbook_run.inc +++ b/textbook_run.inc @@ -81,7 +81,7 @@ function textbook_companion_book_run_form($form, &$form_state) ); $form['download_pdf'] = array( '#type' => 'item', - '#markup' => '<div id="ajax-download-book-pdf-replace">' . l('Download PDF', 'textbook-companion/generate-book/' . $book_default_value) . ' ' . t('(Download the PDF file containing R codes for all the solved examples)') . '</div>' + '#markup' => '<div id="ajax-download-book-pdf-replace">' . l('Download PDF', 'textbook-companion/generate-book/' . $book_default_value) . ' ' . t('(Download the PDF file containing R codes for all the solved examples)') . '<br><span style="color:red;">The generated PDF is not the PDF of the book as named but only is the PDF of the solved example for R</span></div>' ); $form['chapter'] = array( '#type' => 'select', @@ -334,7 +334,7 @@ function ajax_chapter_list_callback($form, $form_state) $commands[] = ajax_command_html("#ajax-book-details-replace", _html_book_info($book_list_default_value)); $form['chapter']['#options'] = _list_of_chapters($book_list_default_value); $commands[] = ajax_command_html("#ajax-download-book-replace", l('Download', 'textbook-companion/download/book/' . $book_list_default_value) . ' ' . t('(Download the R codes for all the solved examples)')); - $commands[] = ajax_command_html("#ajax-download-book-pdf-replace", l('Download PDF', 'textbook-companion/generate-book/' . $book_list_default_value) . ' ' . t('(Download the PDF file containing R codes for all the solved examples)')); + $commands[] = ajax_command_html("#ajax-download-book-pdf-replace", l('Download PDF', 'textbook-companion/generate-book/' . $book_list_default_value) . ' ' . t('(Download the PDF file containing R codes for all the solved examples)')) . '<br><span style="color:red;">The generated PDF is not the PDF of the book as named but only is the PDF of the solved example for R</span>'; $commands[] = ajax_command_replace("#ajax-chapter-list-replace", drupal_render($form['chapter'])); $commands[] = ajax_command_html("#ajax-example-list-replace", ''); $commands[] = ajax_command_html("#ajax-download-example-code-replace", ''); |