PageRenderTime 54ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/app/models/response.rb

https://github.com/MythriNagaraju/expertiza
Ruby | 1326 lines | 1131 code | 170 blank | 25 comment | 376 complexity | 79c64d8273a4987f5df9e340e3c108b9 MD5 | raw file
Possible License(s): GPL-2.0

Large files files are truncated, but you can click here to view the full file

  1. class Response < ActiveRecord::Base
  2. belongs_to :map, :class_name => 'ResponseMap', :foreign_key => 'map_id'
  3. has_many :scores, :class_name => 'Score', :foreign_key => 'response_id', :dependent => :destroy
  4. def display_as_html(prefix = nil, count = nil, file_url = nil)
  5. identifier = ""
  6. # The following three lines print out the type of rubric before displaying
  7. # feedback. Currently this is only done if the rubric is Author Feedback.
  8. # It doesn't seem necessary to print out the rubric type in the case of
  9. # a ReviewResponseMap. Also, I'm not sure if that would have to be
  10. # TeamResponseMap for a team assignment. Someone who understands the
  11. # situation better could add to the code later.
  12. if self.map.type.to_s == 'FeedbackResponseMap'
  13. identifier += "<H2>Feedback from author</H2>"
  14. end
  15. if prefix
  16. identifier += "<B>Reviewer:</B> "+self.map.reviewer.fullname
  17. str = prefix+"_"+self.id.to_s
  18. else
  19. identifier += '<B>'+self.map.get_title+'</B> '+count.to_s+'</B>'
  20. str = self.id.to_s
  21. end
  22. code = identifier+'&nbsp;&nbsp;&nbsp;<a href="#" name= "review_'+str+'Link" onClick="toggleElement('+"'review_"+str+"','review'"+');return false;">hide review</a><BR/>'
  23. code += "<B>Last reviewed:</B> "
  24. if self.updated_at.nil?
  25. code += "Not available"
  26. else
  27. code += self.updated_at.strftime('%A %B %d %Y, %I:%M%p')
  28. end
  29. code += '<div id="review_'+str+'" style=""><BR/><BR/>'
  30. # Test for whether Jen's custom rubric needs to be used
  31. if ((self.map.assignment.instructor_id == User.find_by_name("jkidd").id) && (self.map.type.to_s != 'FeedbackResponseMap'))
  32. if self.map.assignment.id < 469
  33. return custom_display_as_html(code, file_url) + "</div>"
  34. else
  35. return custom_display_as_html_2011(code, file_url) + "</div>"
  36. end
  37. end
  38. # End of custom code
  39. count = 0
  40. self.scores.each{
  41. | reviewScore |
  42. count += 1
  43. code += '<big><b>Question '+count.to_s+":</b> <I>"+Question.find_by_id(reviewScore.question_id).txt+"</I></big><BR/><BR/>"
  44. code += '<TABLE CELLPADDING="5"><TR><TD valign="top"><B>Score:</B></TD><TD><FONT style="BACKGROUND-COLOR:gold">'+reviewScore.score.to_s+"</FONT> out of <B>"+Question.find_by_id(reviewScore.question_id).questionnaire.max_question_score.to_s+"</B></TD></TR>"
  45. if reviewScore.comments != nil
  46. code += '<TR><TD valign="top"><B>Response:</B></TD><TD>' + reviewScore.comments.gsub("<","&lt;").gsub(">","&gt;").gsub(/\n/,'<BR/>')
  47. end
  48. code += '</TD></TR></TABLE><BR/>'
  49. }
  50. if self.additional_comment != nil
  51. comment = self.additional_comment.gsub('^p','').gsub(/\n/,'<BR/>&nbsp;&nbsp;&nbsp;')
  52. else
  53. comment = ''
  54. end
  55. code += "<B>Additional Comment:</B><BR/>"+comment+"</div>"
  56. return code
  57. end
  58. # Computes the total score awarded for a review
  59. def get_total_score
  60. total_score = 0
  61. self.map.questionnaire.questions.each{
  62. | question |
  63. item = Score.find_by_response_id_and_question_id(self.id, question.id)
  64. if(item != nil)
  65. total_score += item.score
  66. end
  67. }
  68. return total_score
  69. end
  70. #Generate an email to the instructor when a new review exceeds the allowed difference
  71. #ajbudlon, nov 18, 2008
  72. def notify_on_difference(new_pct,avg_pct,limit)
  73. mapping = self.map
  74. instructor = mapping.assignment.instructor
  75. Mailer.deliver_message(
  76. {:recipients => instructor.email,
  77. :subject => "Expertiza Notification: A review score is outside the acceptable range",
  78. :body => {
  79. :first_name => ApplicationHelper::get_user_first_name(instructor),
  80. :reviewer_name => mapping.reviewer.fullname,
  81. :type => "review",
  82. :reviewee_name => mapping.reviewee.fullname,
  83. :limit => limit,
  84. :new_pct => new_pct,
  85. :avg_pct => avg_pct,
  86. :types => "reviews",
  87. :performer => "reviewer",
  88. :assignment => mapping.assignment,
  89. :partial_name => 'limit_notify'
  90. }
  91. }
  92. )
  93. end
  94. def delete
  95. self.scores.each {|score| score.destroy}
  96. self.destroy
  97. end
  98. end
  99. #This is an example of how to *not* write code.
  100. #I hope our grandchildren will forgive us for our actions.
  101. def custom_display_as_html(code, file_url)
  102. begin
  103. review_scores = self.scores
  104. #********************Learning Targets******************
  105. code = code + "<h2>Learning Targets</h2><hr>"
  106. if review_scores[0].comments == "1"
  107. code = code + "<img src=\"/images/Check-icon.png\"> They state what the reader should know or be able to do after reading the lesson<br/>"
  108. else
  109. code = code + "<img src=\"/images/delete_icon.png\"> They state what the reader should know or be able to do after reading the lesson<br/>"
  110. end
  111. if review_scores[1].comments == "1"
  112. code = code + "<img src=\"/images/Check-icon.png\"> They are specific<br/>"
  113. else
  114. code = code + "<img src=\"/images/delete_icon.png\"> They are specific<br/>"
  115. end
  116. if review_scores[2].comments == "1"
  117. code = code + "<img src=\"/images/Check-icon.png\"> They are appropriate and reasonable i.e. not too easy or too difficult for TLED 301 students<br/>"
  118. else
  119. code = code + "<img src=\"/images/delete_icon.png\"> They are appropriate and reasonable i.e. not too easy or too difficult for TLED 301 students<br/>"
  120. end
  121. if review_scores[3].comments == "1"
  122. code = code + "<img src=\"/images/Check-icon.png\"> They are observable i.e. you wouldn't have to look inside the readers' head to know if they met this target<br/>"
  123. else
  124. code = code + "<img src=\"/images/delete_icon.png\"> They are observable i.e. you wouldn't have to look inside the readers' head to know if they met this target<br/>"
  125. end
  126. code = code + "<br/><i>Number of Learning Targets: </i>#{review_scores[4].comments.gsub(/\"/,'&quot;').to_s}<br/>"
  127. code = code + "<br/><i>Grade: </i>#{review_scores[5].comments.gsub(/\"/,'&quot;').to_s}<br/>"
  128. code = code + "<br/><i>Comment: </i> <dl><dd>#{review_scores[6].comments.gsub(/\"/,'&quot;').to_s}</dl></dd>"
  129. #*******************Content************************
  130. code = code + "<h2>Content</h2><hr>"
  131. code = code + "<i>File:</i>"
  132. if file_url.nil?
  133. code = code + "File has not been uploaded<br/>"
  134. else
  135. code = code + file_url.to_s + "<br/>"
  136. end
  137. code = code + "<i>Compliment:</i>"
  138. code = code + "<ul><li>#{review_scores[8].comments.gsub(/\"/,'&quot;').to_s}</li><li>#{review_scores[9].comments.gsub(/\"/,'&quot;').to_s}</li></ul>"
  139. code = code + "<i>Suggestion:</i>"
  140. code = code + "<ul><li>#{review_scores[10].comments.gsub(/\"/,'&quot;').to_s}</li><li>#{review_scores[11].comments.gsub(/\"/,'&quot;').to_s}</li></ul>"
  141. #*******************Sources and Use of Source Material************************
  142. code = code + "<h2>Sources and Use of Source Material</h2><hr>"
  143. code = code + "<br/>How many sources are in the references list?: #{review_scores[12].comments.gsub(/\"/,'&quot;').to_s}<br/>"
  144. code = code + "<br/>List the range of publication years for all sources, e.g. 1998-2006: <b>#{review_scores[13].comments.gsub(/\"/,'&quot;').to_s} - #{review_scores[14].comments.gsub(/\"/,'&quot;').to_s}</b><br/><br/>"
  145. if review_scores[15].comments == "1"
  146. code = code + "<img src=\"/images/Check-icon.png\"> It lists all the sources in a section labeled \"References\"<br/>"
  147. else
  148. code = code + "<img src=\"/images/delete_icon.png\"> It lists all the sources in a section labeled \"References\"<br/>"
  149. end
  150. if review_scores[16].comments == "1"
  151. code = code + "<img src=\"/images/Check-icon.png\"> The author cites each of these sources in the lesson<br/>"
  152. else
  153. code = code + "<img src=\"/images/delete_icon.png\"> The author cites each of these sources in the lesson<br/>"
  154. end
  155. if review_scores[17].comments == "1"
  156. code = code + "<img src=\"/images/Check-icon.png\"> The citations are in APA format<br/>"
  157. else
  158. code = code + "<img src=\"/images/delete_icon.png\"> The citations are in APA format<br/>"
  159. end
  160. if review_scores[18].comments == "1"
  161. code = code + "<img src=\"/images/Check-icon.png\"> The author cites at least 2 scholarly sources<br/>"
  162. else
  163. code = code + "<img src=\"/images/delete_icon.png\"> The author cites at least 2 scholarly sources<br/>"
  164. end
  165. if review_scores[19].comments == "1"
  166. code = code + "<img src=\"/images/Check-icon.png\"> Most of the sources are current (less than 5 years old)<br/>"
  167. else
  168. code = code + "<img src=\"/images/delete_icon.png\"> Most of the sources are current (less than 5 years old)<br/>"
  169. end
  170. if review_scores[20].comments == "1"
  171. code = code + "<img src=\"/images/Check-icon.png\"> Taken together the sources represent a good balance of potential references for this topic<br/>"
  172. else
  173. code = code + "<img src=\"/images/delete_icon.png\"> Taken together the sources represent a good balance of potential references for this topic<br/>"
  174. end
  175. if review_scores[21].comments == "1"
  176. code = code + "<img src=\"/images/Check-icon.png\"> The sources represent different viewpoints<br/>"
  177. else
  178. code = code + "<img src=\"/images/delete_icon.png\"> The sources represent different viewpoints<br/>"
  179. end
  180. code = code + "<br/><b>What other sources or perspectives might the author want to consider?</b><br/>"
  181. code = code + "<dl><dd>#{review_scores[22].comments.gsub(/\"/,'&quot;').to_s}</dl></dd>"
  182. if review_scores[23].comments == "1"
  183. code = code + "<img src=\"/images/Check-icon.png\"> All materials (such as tables, graphs, images or videos created by other people or organizations) posted are in the lesson in accordance with the Attribution-Noncommercial-Share Alike 3.0 Unported license, or compatible. <br/>"
  184. else
  185. code = code + "<img src=\"/images/delete_icon.png\"> All materials (such as tables, graphs, images or videos created by other people or organizations) posted are in the lesson in accordance with the Attribution-Noncommercial-Share Alike 3.0 Unported license, or compatible<br/>"
  186. end
  187. code = code + "<br/><b>If not, which one(s) may infringe copyrights, or what areas of text may need citations, revisions or elaboration?</b><br/>"
  188. code = code + "<dl><dd>#{review_scores[24].comments.gsub(/\"/,'&quot;').to_s}</dl></dd>"
  189. code = code + "<br/>Please make a comment about the sources. Explain how the author can improve the use of sources in the lesson.<br/>"
  190. code = code + "<dl><dd>#{review_scores[25].comments.gsub(/\"/,'&quot;').to_s}</dl></dd>"
  191. #*******************Multiple Choice Questions************************
  192. code = code + "<h2>Multiple Choice Questions</h2><hr>"
  193. if review_scores[26].comments == "1"
  194. code = code + "<img src=\"/images/Check-icon.png\"> There are 4 multiple-choice questions<br/>"
  195. else
  196. code = code + "<img src=\"/images/delete_icon.png\"> There are 4 multiple-choice questions<br/>"
  197. end
  198. if review_scores[27].comments == "1"
  199. code = code + "<img src=\"/images/Check-icon.png\"> They each have four answer choices (A-D)<br/>"
  200. else
  201. code = code + "<img src=\"/images/delete_icon.png\"> They each have four answer choices (A-D)<br/>"
  202. end
  203. if review_scores[28].comments == "1"
  204. code = code + "<img src=\"/images/Check-icon.png\"> There is a single correct (aka: not opinion-based) answer for each question<br/>"
  205. else
  206. code = code + "<img src=\"/images/delete_icon.png\"> There is a single correct (aka: not opinion-based) answer for each question<br/>"
  207. end
  208. if review_scores[29].comments == "1"
  209. code = code + "<img src=\"/images/Check-icon.png\"> The questions assess the learning target(s)<br/>"
  210. else
  211. code = code + "<img src=\"/images/delete_icon.png\"> The questions assess the learning target(s)<br/>"
  212. end
  213. if review_scores[30].comments == "1"
  214. code = code + "<img src=\"/images/Check-icon.png\"> The questions are appropriate and reasonable (not too easy and not too difficult)<br/>"
  215. else
  216. code = code + "<img src=\"/images/delete_icon.png\"> The questions are appropriate and reasonable (not too easy and not too difficult)<br/>"
  217. end
  218. if review_scores[31].comments == "1"
  219. code = code + "<img src=\"/images/Check-icon.png\"> The foils (the response options that are NOT the answer) are reasonable i.e. they are not very obviously incorrect answers<br/>"
  220. else
  221. code = code + "<img src=\"/images/delete_icon.png\"> The foils (the response options that are NOT the answer) are reasonable i.e. they are not very obviously incorrect answers<br/>"
  222. end
  223. if review_scores[32].comments == "1"
  224. code = code + "<img src=\"/images/Check-icon.png\"> The response options are listed in alphabetical order<br/>"
  225. else
  226. code = code + "<img src=\"/images/delete_icon.png\"> The response options are listed in alphabetical order<br/>"
  227. end
  228. if review_scores[33].comments == "1"
  229. code = code + "<img src=\"/images/Check-icon.png\"> The correct answers are provided and listed BELOW all the questions<br/>"
  230. else
  231. code = code + "<img src=\"/images/delete_icon.png\"> The correct answers are provided and listed BELOW all the questions<br/>"
  232. end
  233. code = code + "<br/><h3>Questions</h3>"
  234. code = code + "<i>Type: </i><b>#{review_scores[34].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  235. code = code + "<i>Grade: </i><b>#{review_scores[35].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  236. code = code + "<i>Comment: </i><dl><dd>#{review_scores[36].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  237. code = code + "<i>Type: </i><b>#{review_scores[37].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  238. code = code + "<i>Grade: </i><b>#{review_scores[38].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  239. code = code + "<i>Comment: </i><dl><dd>#{review_scores[39].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  240. code = code + "<i>Type: </i><b>#{review_scores[40].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  241. code = code + "<i>Grade: </i><b>#{review_scores[41].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  242. code = code + "<i>Comment: </i><dl><dd>#{review_scores[42].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  243. code = code + "<i>Type: </i><b>#{review_scores[43].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  244. code = code + "<i>Grade: </i><b>#{review_scores[44].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  245. code = code + "<i>Comment: </i><dl><dd>#{review_scores[45].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  246. #*******************Rubric************************
  247. code = code + "<h2>Rubric</h2><hr>"
  248. code = code + "<h3>Importance</h3>"
  249. code = code +
  250. "<div align=\"center\">The information selected by the author:</div><table class='general'>
  251. <tr>
  252. <th>5 - Very Important </th>
  253. <th>4 - Quite Important </th>
  254. <th>3 - Some Importance </th>
  255. <th>2 - Little Importance</th>
  256. <th>1 - No Importance </th>
  257. </tr>
  258. <tr>"
  259. code = code + "<td><ul>"
  260. if review_scores[46].comments == "1"
  261. code = code + "<li>Is very important for future teachers to know</li>"
  262. end
  263. if review_scores[47].comments == "1"
  264. code = code + "<li>Is based on researched information</li>"
  265. end
  266. if review_scores[48].comments == "1"
  267. code = code + "<li>Is highly relevant to current educational practice</li>"
  268. end
  269. if review_scores[49].comments == "1"
  270. code = code + "<li>Provides an excellent overview and in-depth discussion of key issues</li>"
  271. end
  272. code = code + "</ul></td>"
  273. code = code + "<td><ul>"
  274. if review_scores[50].comments == "1"
  275. code = code + "<li>Is relevant to future teachers</li>"
  276. end
  277. if review_scores[51].comments == "1"
  278. code = code + "<li>Is mostly based on researched information</li>"
  279. end
  280. if review_scores[52].comments == "1"
  281. code = code + "<li>Is applicable to today's schools</li>"
  282. end
  283. if review_scores[53].comments == "1"
  284. code = code + "<li>Provides a good overview and explores a few key ideas</li>"
  285. end
  286. code = code + "</ul></td>"
  287. code = code + "<td><ul>"
  288. if review_scores[54].comments == "1"
  289. code = code + "<li>Has useful points but some irrelevant information</li>"
  290. end
  291. if review_scores[55].comments == "1"
  292. code = code + "<li>Is half research; half the author's opinion</li>"
  293. end
  294. if review_scores[56].comments == "1"
  295. code = code + "<li>Is partially out-dated or may not reflect current practice</li>"
  296. end
  297. if review_scores[57].comments == "1"
  298. code = code + "<li>Contains good information but yields an incomplete understanding</li>"
  299. end
  300. code = code + "</ul></td>"
  301. code = code + "<td><ul>"
  302. if review_scores[58].comments == "1"
  303. code = code + "<li>Has one useful point</li>"
  304. end
  305. if review_scores[59].comments == "1"
  306. code = code + "<li>Is mostly the author's opinion.</li>"
  307. end
  308. if review_scores[60].comments == "1"
  309. code = code + "<li>Is mostly irrelevant in today's schools</li>"
  310. end
  311. if review_scores[61].comments == "1"
  312. code = code + "<li>Focused on unimportant subtopics OR is overly general</li>"
  313. end
  314. code = code + "</ul></td>"
  315. code = code + "<td><ul>"
  316. if review_scores[62].comments == "1"
  317. code = code + "<li>Is not relevant to future teachers</li>"
  318. end
  319. if review_scores[63].comments == "1"
  320. code = code + "<li>Is entirely the author's opinion</li>"
  321. end
  322. if review_scores[64].comments == "1"
  323. code = code + "<li>Is obsolete</li>"
  324. end
  325. if review_scores[65].comments == "1"
  326. code = code + "<li>Lacks any substantive information</li>"
  327. end
  328. code = code + "</ul></td></tr>"
  329. code = code + "</table>"
  330. code = code + "<h3>Interest</h3>"
  331. code = code +
  332. "<div align=\"center\">To attract and maintain attention, the lesson has:</div><table class='general'>
  333. <tr>
  334. <th>5 - Extremely Interesting </th>
  335. <th>4 - Quite Interesting </th>
  336. <th>3 - Reasonably Interesting </th>
  337. <th>2 - Little Interest</th>
  338. <th>1 - No Interest </th>
  339. </tr>
  340. <tr>"
  341. code = code + "<td><ul>"
  342. if review_scores[66].comments == "1"
  343. code = code + "<li>A sidebar with new information that was motivating to read/view</li>"
  344. end
  345. if review_scores[67].comments == "1"
  346. code = code + "<li>Many creative, attractive visuals and engaging, interactive elements</li>"
  347. end
  348. if review_scores[68].comments == "1"
  349. code = code + "<li>Multiple perspectives</li>"
  350. end
  351. if review_scores[69].comments == "1"
  352. code = code + "<li>Insightful interpretation & analysis throughout</li>"
  353. end
  354. if review_scores[70].comments == "1"
  355. code = code + "<li>Many compelling examples that support the main points (it \"shows\" not just \"tells\")</li>"
  356. end
  357. code = code + "</ul></td>"
  358. code = code + "<td><ul>"
  359. if review_scores[71].comments == "1"
  360. code = code + "<li>A sidebar that adds something new to the lesson</li>"
  361. end
  362. if review_scores[72].comments == "1"
  363. code = code + "<li>A few effective visuals or interactive elements</li>"
  364. end
  365. if review_scores[73].comments == "1"
  366. code = code + "<li>At least one interesting, fresh perspective</li>"
  367. end
  368. if review_scores[74].comments == "1"
  369. code = code + "<li>Frequent interpretation and analysis</li>"
  370. end
  371. if review_scores[75].comments == "1"
  372. code = code + "<li>Clearly explained and well supported points</li>"
  373. end
  374. code = code + "</ul></td>"
  375. code = code + "<td><ul>"
  376. if review_scores[76].comments == "1"
  377. code = code + "<li>A sidebar that repeats what is in the lesson</li>"
  378. end
  379. if review_scores[77].comments == "1"
  380. code = code + "<li>An effective visual or interactive element</li>"
  381. end
  382. if review_scores[78].comments == "1"
  383. code = code + "<li>One reasonable (possibly typical) perspective</li>"
  384. end
  385. if review_scores[79].comments == "1"
  386. code = code + "<li>Some interpretation and analysis</li>"
  387. end
  388. if review_scores[80].comments == "1"
  389. code = code + "<li>Supported points</li>"
  390. end
  391. code = code + "</ul></td>"
  392. code = code + "<td><ul>"
  393. if review_scores[81].comments == "1"
  394. code = code + "<li>A quote, link, etc. included as a sidebar, but that is not in a textbox</li>"
  395. end
  396. if review_scores[82].comments == "1"
  397. code = code + "<li>Visuals or interactive elements that are distracting</li>"
  398. end
  399. if review_scores[83].comments == "1"
  400. code = code + "<li>Only a biased perspective</li>"
  401. end
  402. if review_scores[84].comments == "1"
  403. code = code + "<li>Minimal analysis or interpretation</li>"
  404. end
  405. if review_scores[85].comments == "1"
  406. code = code + "<li>At least one clear and supported point</li>"
  407. end
  408. code = code + "</ul></td>"
  409. code = code + "<td><ul>"
  410. if review_scores[86].comments == "1"
  411. code = code + "<li>No side bar included</li>"
  412. end
  413. if review_scores[87].comments == "1"
  414. code = code + "<li>No visuals or interactive elements</li>"
  415. end
  416. if review_scores[88].comments == "1"
  417. code = code + "<li>No perspective is acknowledged</li>"
  418. end
  419. if review_scores[89].comments == "1"
  420. code = code + "<li>No analysis or interpretation</li>"
  421. end
  422. if review_scores[90].comments == "1"
  423. code = code + "<li>No well-supported points</li>"
  424. end
  425. code = code + "</ul></td></tr>"
  426. code = code + "</table>"
  427. code = code + "<h3>Credibility</h3>"
  428. code = code +
  429. "<div align=\"center\">To demonstrate its credibility the lesson:</div><table class='general'>
  430. <tr>
  431. <th>5 - Completely Credible </th>
  432. <th>4 - Substantial Credibility </th>
  433. <th>3 - Reasonable Credibility </th>
  434. <th>2 - Limited Credibility</th>
  435. <th>1 - Not Credible </th>
  436. </tr>
  437. <tr>"
  438. code = code + "<td><ul>"
  439. if review_scores[91].comments == "1"
  440. code = code + "<li>Cites 5 or more diverse, reputable sources in proper APA format</li>"
  441. end
  442. if review_scores[92].comments == "1"
  443. code = code + "<li>Provides citations for all presented information</li>"
  444. end
  445. if review_scores[93].comments == "1"
  446. code = code + "<li>Readily identifies bias: both the author's own and others</li>"
  447. end
  448. code = code + "</ul></td>"
  449. code = code + "<td><ul>"
  450. if review_scores[94].comments == "1"
  451. code = code + "<li>Cites 5 or more diverse, reputable sources with few APA errors</li>"
  452. end
  453. if review_scores[95].comments == "1"
  454. code = code + "<li>Provides citations for most information</li>"
  455. end
  456. if review_scores[96].comments == "1"
  457. code = code + "<li>Clearly differentiates between opinion and fact</li>"
  458. end
  459. code = code + "</ul></td>"
  460. code = code + "<td><ul>"
  461. if review_scores[97].comments == "1"
  462. code = code + "<li>Cites 5 or more reputable sources</li>"
  463. end
  464. if review_scores[98].comments == "1"
  465. code = code + "<li>Supports some claims with citation</li>"
  466. end
  467. if review_scores[99].comments == "1"
  468. code = code + "<li>Occasionally states opinion as fact</li>"
  469. end
  470. code = code + "</ul></td>"
  471. code = code + "<td><ul>"
  472. if review_scores[100].comments == "1"
  473. code = code + "<li>Cites 4 or more reputable sources</li>"
  474. end
  475. if review_scores[101].comments == "1"
  476. code = code + "<li>Has several unsupported claims</li>"
  477. end
  478. if review_scores[102].comments == "1"
  479. code = code + "<li>Routinely states opinion as fact and fails to acknowledge bias</li>"
  480. end
  481. code = code + "</ul></td>"
  482. code = code + "<td><ul>"
  483. if review_scores[103].comments == "1"
  484. code = code + "<li>Cites 3 or fewer reputable sources</li>"
  485. end
  486. if review_scores[104].comments == "1"
  487. code = code + "<li>Has mostly unsupported claims</li>"
  488. end
  489. if review_scores[105].comments == "1"
  490. code = code + "<li>Is very biased and contains almost entirely opinions</li>"
  491. end
  492. code = code + "</ul></td></tr>"
  493. code = code + "</table>"
  494. code = code + "<h3>Pedagogy</h3>"
  495. code = code +
  496. "<div align=\"center\">To help guide the reader:</div><table class='general'>
  497. <tr>
  498. <th>5 - Superior </th>
  499. <th>4 - Effective </th>
  500. <th>3 - Acceptable </th>
  501. <th>2 - Deficient</th>
  502. <th>1 - Absent </th>
  503. </tr>
  504. <tr>"
  505. code = code + "<td><ul>"
  506. if review_scores[106].comments == "1"
  507. code = code + "<li>Specific, appropriate, observable learning targets establish the purpose of the lesson</li>"
  508. end
  509. if review_scores[107].comments == "1"
  510. code = code + "<li>The lesson accomplishes its established goals</li>"
  511. end
  512. if review_scores[108].comments == "1"
  513. code = code + "<li>Excellent knowledge and application MC questions align with learning targets and assess important content</li>"
  514. end
  515. code = code + "</ul></td>"
  516. code = code + "<td><ul>"
  517. if review_scores[109].comments == "1"
  518. code = code + "<li>Specific and reasonable learning targets are stated</li>"
  519. end
  520. if review_scores[110].comments == "1"
  521. code = code + "<li>The lesson partially meets its established goals</li>"
  522. end
  523. if review_scores[111].comments == "1"
  524. code = code + "<li>Well constructed MC questions assess important content</li>"
  525. end
  526. code = code + "</ul></td>"
  527. code = code + "<td><ul>"
  528. if review_scores[112].comments == "1"
  529. code = code + "<li>Reasonable learning targets are stated</li>"
  530. end
  531. if review_scores[113].comments == "1"
  532. code = code + "<li>The content relates to its goals</li>"
  533. end
  534. if review_scores[114].comments == "1"
  535. code = code + "<li>MC questions assess important content</li>"
  536. end
  537. code = code + "</ul></td>"
  538. code = code + "<td><ul>"
  539. if review_scores[115].comments == "1"
  540. code = code + "<li>A learning target is included</li>"
  541. end
  542. if review_scores[116].comments == "1"
  543. code = code + "<li>Content does not achieve its goal, or goal is unclear</li>"
  544. end
  545. if review_scores[117].comments == "1"
  546. code = code + "<li>4 questions are included</li>"
  547. end
  548. code = code + "</ul></td>"
  549. code = code + "<td><ul>"
  550. if review_scores[118].comments == "1"
  551. code = code + "<li>Learning target is missing/ not actually a learning target</li>"
  552. end
  553. if review_scores[119].comments == "1"
  554. code = code + "<li>Lesson has no goal/ content is unfocused</li>"
  555. end
  556. if review_scores[120].comments == "1"
  557. code = code + "<li>Questions are missing</li>"
  558. end
  559. code = code + "</ul></td></tr>"
  560. code = code + "</table>"
  561. code = code + "<h3>Writing Quality</h3>"
  562. code = code +
  563. "<div align=\"center\">The writing:</div><table class='general'>
  564. <tr>
  565. <th>5 - Excellently Written </th>
  566. <th>4 - Well Written </th>
  567. <th>3 - Reasonably Written </th>
  568. <th>2 - Fairly Written</th>
  569. <th>1 - Poorly Written </th>
  570. </tr>
  571. <tr>"
  572. code = code + "<td><ul>"
  573. if review_scores[121].comments == "1"
  574. code = code + "<li>Is focused, organized, and easy to read throughout</li>"
  575. end
  576. if review_scores[122].comments == "1"
  577. code = code + "<li>Uses rich, descriptive vocabulary and a variety of effective sentence structures</li>"
  578. end
  579. if review_scores[123].comments == "1"
  580. code = code + "<li>Contains few to no mechanical errors</li>"
  581. end
  582. if review_scores[124].comments == "1"
  583. code = code + "<li>Has an effective introduction and a conclusion that synthesizes all of the material presented</li>"
  584. end
  585. code = code + "</ul></td>"
  586. code = code + "<td><ul>"
  587. if review_scores[125].comments == "1"
  588. code = code + "<li>Is organized and flows well</li>"
  589. end
  590. if review_scores[126].comments == "1"
  591. code = code + "<li>Uses effective vocabulary and sentence structures</li>"
  592. end
  593. if review_scores[127].comments == "1"
  594. code = code + "<li>Contains a few minor mechanical errors</li>"
  595. end
  596. if review_scores[128].comments == "1"
  597. code = code + "<li>Has an effective introduction and conclusion based on included information</li>"
  598. end
  599. code = code + "</ul></td>"
  600. code = code + "<td><ul>"
  601. if review_scores[129].comments == "1"
  602. code = code + "<li>Is mostly organized</li>"
  603. end
  604. if review_scores[130].comments == "1"
  605. code = code + "<li>Uses properly constructed sentences</li>"
  606. end
  607. if review_scores[131].comments == "1"
  608. code = code + "<li>Has a few distracting errors</li>"
  609. end
  610. if review_scores[132].comments == "1"
  611. code = code + "<li>Includes an introduction and a conclusion</li>"
  612. end
  613. code = code + "</ul></td>"
  614. code = code + "<td><ul>"
  615. if review_scores[133].comments == "1"
  616. code = code + "<li>Can be difficult to follow</li>"
  617. end
  618. if review_scores[134].comments == "1"
  619. code = code + "<li>Contains several awkward sentences</li>"
  620. end
  621. if review_scores[135].comments == "1"
  622. code = code + "<li>Has several distracting errors</li>"
  623. end
  624. if review_scores[136].comments == "1"
  625. code = code + "<li>Lacks either an introduction or a conclusion</li>"
  626. end
  627. code = code + "</ul></td>"
  628. code = code + "<td><ul>"
  629. if review_scores[137].comments == "1"
  630. code = code + "<li>Has minimal organization</li>"
  631. end
  632. if review_scores[138].comments == "1"
  633. code = code + "<li>Has many poorly constructed sentences</li>"
  634. end
  635. if review_scores[139].comments == "1"
  636. code = code + "<li>Has many mechanical errors that inhibit comprehension</li>"
  637. end
  638. if review_scores[140].comments == "1"
  639. code = code + "<li>Has neither a clear introduction nor a conclusion</li>"
  640. end
  641. code = code + "</ul></td></tr>"
  642. code = code + "</table>"
  643. #*******************Ratings************************
  644. code = code + "<h2>Ratings</h2><hr>"
  645. code = code + "<h3>Importance</h3>"
  646. code = code + "<i>Grade: </i><b>#{review_scores[141].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  647. code = code + "<i>Comment: </i><dl><dd>#{review_scores[142].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  648. code = code + "<h3>Interest</h3>"
  649. code = code + "<i>Grade: </i><b>#{review_scores[143].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  650. code = code + "<i>Comment: </i><dl><dd>#{review_scores[144].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  651. code = code + "<h3>Credibility</h3>"
  652. code = code + "<i>Grade: </i><b>#{review_scores[145].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  653. code = code + "<i>Comment: </i><dl><dd>#{review_scores[146].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  654. code = code + "<h3>Pedagogy</h3>"
  655. code = code + "<i>Grade: </i><b>#{review_scores[147].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  656. code = code + "<i>Comment: </i><dl><dd>#{review_scores[148].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  657. code = code + "<h3>Writing Quality</h3>"
  658. code = code + "<i>Grade: </i><b>#{review_scores[149].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  659. code = code + "<i>Comment: </i><dl><dd>#{review_scores[150].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  660. rescue
  661. code += "Error " + $!
  662. end
  663. code
  664. end
  665. def custom_display_as_html_2011(code, file_url)
  666. begin
  667. review_scores = self.scores
  668. #********************Learning Targets******************
  669. code = code + "<h2>Learning Targets</h2><hr>"
  670. if review_scores[0].comments == "1"
  671. code = code + "<img src=\"/images/Check-icon.png\"> They state what the reader should know or be able to do after reading the lesson<br/>"
  672. else
  673. code = code + "<img src=\"/images/delete_icon.png\"> They state what the reader should know or be able to do after reading the lesson<br/>"
  674. end
  675. if review_scores[1].comments == "1"
  676. code = code + "<img src=\"/images/Check-icon.png\"> They are specific<br/>"
  677. else
  678. code = code + "<img src=\"/images/delete_icon.png\"> They are specific<br/>"
  679. end
  680. if review_scores[2].comments == "1"
  681. code = code + "<img src=\"/images/Check-icon.png\"> They are appropriate and reasonable i.e. not too easy or too difficult for TLED 301 students<br/>"
  682. else
  683. code = code + "<img src=\"/images/delete_icon.png\"> They are appropriate and reasonable i.e. not too easy or too difficult for TLED 301 students<br/>"
  684. end
  685. if review_scores[3].comments == "1"
  686. code = code + "<img src=\"/images/Check-icon.png\"> They are observable i.e. you wouldn't have to look inside the readers' head to know if they met this target<br/>"
  687. else
  688. code = code + "<img src=\"/images/delete_icon.png\"> They are observable i.e. you wouldn't have to look inside the readers' head to know if they met this target<br/>"
  689. end
  690. code = code + "<br/><i>Number of Learning Targets: </i>#{review_scores[4].comments.gsub(/\"/,'&quot;').to_s}<br/>"
  691. code = code + "<br/><i>Grade: </i>#{review_scores[5].comments.gsub(/\"/,'&quot;').to_s}<br/>"
  692. code = code + "<br/><i>Comment: </i> <dl><dd>#{review_scores[6].comments.gsub(/\"/,'&quot;').to_s}</dl></dd>"
  693. #*******************Content************************
  694. code = code + "<h2>Content</h2><hr>"
  695. code = code + "<i>File:</i>"
  696. if file_url.nil?
  697. code = code + "File has not been uploaded<br/>"
  698. else
  699. code = code + file_url.to_s + "<br/>"
  700. end
  701. code = code + "<i>Compliment:</i>"
  702. code = code + "<ul><li>#{review_scores[8].comments.gsub(/\"/,'&quot;').to_s}</li><li>#{review_scores[9].comments.gsub(/\"/,'&quot;').to_s}</li></ul>"
  703. code = code + "<i>Suggestion:</i>"
  704. code = code + "<ul><li>#{review_scores[10].comments.gsub(/\"/,'&quot;').to_s}</li><li>#{review_scores[11].comments.gsub(/\"/,'&quot;').to_s}</li></ul>"
  705. #*******************Sources and Use of Source Material************************
  706. code = code + "<h2>Sources and Use of Source Material</h2><hr>"
  707. code = code + "<br/>How many sources are in the references list?: #{review_scores[12].comments.gsub(/\"/,'&quot;').to_s}<br/>"
  708. code = code + "<br/>List the range of publication years for all sources, e.g. 1998-2006: <b>#{review_scores[13].comments.gsub(/\"/,'&quot;').to_s} - #{review_scores[14].comments.gsub(/\"/,'&quot;').to_s}</b><br/><br/>"
  709. if review_scores[15].comments == "1"
  710. code = code + "<img src=\"/images/Check-icon.png\"> It lists all the sources in a section labeled \"References\"<br/>"
  711. else
  712. code = code + "<img src=\"/images/delete_icon.png\"> It lists all the sources in a section labeled \"References\"<br/>"
  713. end
  714. if review_scores[16].comments == "1"
  715. code = code + "<img src=\"/images/Check-icon.png\"> The author cites each of these sources in the lesson<br/>"
  716. else
  717. code = code + "<img src=\"/images/delete_icon.png\"> The author cites each of these sources in the lesson<br/>"
  718. end
  719. if review_scores[17].comments == "1"
  720. code = code + "<img src=\"/images/Check-icon.png\"> The citations are in APA format<br/>"
  721. else
  722. code = code + "<img src=\"/images/delete_icon.png\"> The citations are in APA format<br/>"
  723. end
  724. if review_scores[18].comments == "1"
  725. code = code + "<img src=\"/images/Check-icon.png\"> The author cites at least 2 scholarly sources<br/>"
  726. else
  727. code = code + "<img src=\"/images/delete_icon.png\"> The author cites at least 2 scholarly sources<br/>"
  728. end
  729. if review_scores[19].comments == "1"
  730. code = code + "<img src=\"/images/Check-icon.png\"> Most of the sources are current (less than 5 years old)<br/>"
  731. else
  732. code = code + "<img src=\"/images/delete_icon.png\"> Most of the sources are current (less than 5 years old)<br/>"
  733. end
  734. if review_scores[20].comments == "1"
  735. code = code + "<img src=\"/images/Check-icon.png\"> Taken together the sources represent a good balance of potential references for this topic<br/>"
  736. else
  737. code = code + "<img src=\"/images/delete_icon.png\"> Taken together the sources represent a good balance of potential references for this topic<br/>"
  738. end
  739. if review_scores[21].comments == "1"
  740. code = code + "<img src=\"/images/Check-icon.png\"> The sources represent different viewpoints<br/>"
  741. else
  742. code = code + "<img src=\"/images/delete_icon.png\"> The sources represent different viewpoints<br/>"
  743. end
  744. code = code + "<br/><b>What other sources or perspectives might the author want to consider?</b><br/>"
  745. code = code + "<dl><dd>#{review_scores[22].comments.gsub(/\"/,'&quot;').to_s}</dl></dd>"
  746. if review_scores[23].comments == "1"
  747. code = code + "<img src=\"/images/Check-icon.png\"> All materials (such as tables, graphs, images or videos created by other people or organizations) posted are in the lesson in accordance with the Attribution-Noncommercial-Share Alike 3.0 Unported license, or compatible <b>and</b> all information quoted or paraphrased from other sources is properly cited and commented on so there is no evidence of plagiarism. There are no large sections of text copied from (or closely resembling) other sources.<br/>"
  748. else
  749. code = code + "<img src=\"/images/delete_icon.png\"> All materials (such as tables, graphs, images or videos created by other people or organizations) posted are in the lesson in accordance with the Attribution-Noncommercial-Share Alike 3.0 Unported license, or compatible<b>and</b> all information quoted or paraphrased from other sources is properly cited and commented on so there is no evidence of plagiarism. There are no large sections of text copied from (or closely resembling) other sources.<br/>"
  750. end
  751. code = code + "<br/><b>If not, which one(s) may infringe copyrights, or what areas of text may need citations, revisions or elaboration?</b><br/>"
  752. code = code + "<dl><dd>#{review_scores[24].comments.gsub(/\"/,'&quot;').to_s}</dl></dd>"
  753. code = code + "<br/>Please make a comment about the sources. Explain how the author can improve the use of sources in the lesson.<br/>"
  754. code = code + "<dl><dd>#{review_scores[25].comments.gsub(/\"/,'&quot;').to_s}</dl></dd>"
  755. #*******************Multiple Choice Questions************************
  756. code = code + "<h2>Multiple Choice Questions</h2><hr>"
  757. if review_scores[26].comments == "1"
  758. code = code + "<img src=\"/images/Check-icon.png\"> There are 4 multiple-choice questions<br/>"
  759. else
  760. code = code + "<img src=\"/images/delete_icon.png\"> There are 4 multiple-choice questions<br/>"
  761. end
  762. if review_scores[27].comments == "1"
  763. code = code + "<img src=\"/images/Check-icon.png\"> They each have four answer choices (A-D)<br/>"
  764. else
  765. code = code + "<img src=\"/images/delete_icon.png\"> They each have four answer choices (A-D)<br/>"
  766. end
  767. if review_scores[28].comments == "1"
  768. code = code + "<img src=\"/images/Check-icon.png\"> There is a single correct (aka: not opinion-based) answer for each question<br/>"
  769. else
  770. code = code + "<img src=\"/images/delete_icon.png\"> There is a single correct (aka: not opinion-based) answer for each question<br/>"
  771. end
  772. if review_scores[29].comments == "1"
  773. code = code + "<img src=\"/images/Check-icon.png\"> The questions assess the learning target(s)<br/>"
  774. else
  775. code = code + "<img src=\"/images/delete_icon.png\"> The questions assess the learning target(s)<br/>"
  776. end
  777. if review_scores[30].comments == "1"
  778. code = code + "<img src=\"/images/Check-icon.png\"> The questions are appropriate and reasonable (not too easy and not too difficult)<br/>"
  779. else
  780. code = code + "<img src=\"/images/delete_icon.png\"> The questions are appropriate and reasonable (not too easy and not too difficult)<br/>"
  781. end
  782. if review_scores[31].comments == "1"
  783. code = code + "<img src=\"/images/Check-icon.png\"> The foils (the response options that are NOT the answer) are reasonable i.e. they are not very obviously incorrect answers<br/>"
  784. else
  785. code = code + "<img src=\"/images/delete_icon.png\"> The foils (the response options that are NOT the answer) are reasonable i.e. they are not very obviously incorrect answers<br/>"
  786. end
  787. if review_scores[32].comments == "1"
  788. code = code + "<img src=\"/images/Check-icon.png\"> The response options are listed in alphabetical order<br/>"
  789. else
  790. code = code + "<img src=\"/images/delete_icon.png\"> The response options are listed in alphabetical order<br/>"
  791. end
  792. if review_scores[33].comments == "1"
  793. code = code + "<img src=\"/images/Check-icon.png\"> The correct answers are provided and listed BELOW all the questions<br/>"
  794. else
  795. code = code + "<img src=\"/images/delete_icon.png\"> The correct answers are provided and listed BELOW all the questions<br/>"
  796. end
  797. code = code + "<br/><h3>Questions</h3>"
  798. code = code + "<i>Type: </i><b>#{review_scores[34].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  799. code = code + "<i>Grade: </i><b>#{review_scores[35].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  800. code = code + "<i>Comment: </i><dl><dd>#{review_scores[36].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  801. code = code + "<i>Type: </i><b>#{review_scores[37].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  802. code = code + "<i>Grade: </i><b>#{review_scores[38].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  803. code = code + "<i>Comment: </i><dl><dd>#{review_scores[39].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  804. code = code + "<i>Type: </i><b>#{review_scores[40].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  805. code = code + "<i>Grade: </i><b>#{review_scores[41].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  806. code = code + "<i>Comment: </i><dl><dd>#{review_scores[42].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  807. code = code + "<i>Type: </i><b>#{review_scores[43].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  808. code = code + "<i>Grade: </i><b>#{review_scores[44].comments.gsub(/\"/,'&quot;').to_s}</b><br/>"
  809. code = code + "<i>Comment: </i><dl><dd>#{review_scores[45].comments.gsub(/\"/,'&quot;').to_s}</dl></dd><br/>"
  810. #*******************Rubric************************
  811. code = code + "<h2>Rubric</h2><hr>"
  812. code = code + "<h3>Importance</h3>"
  813. code = code +
  814. "<div align=\"center\">The information selected by the author:</div><table class='general'>
  815. <tr>
  816. <th>5 - Very Important </th>
  817. <th>4 - Quite Important </th>
  818. <th>3 - Some Importance </th>
  819. <th>2 - Little Importance</th>
  820. <th>1 - No Importance </th>
  821. </tr>
  822. <tr>"
  823. code = code + "<td><ul>"
  824. if review_scores[46].comments == "1"
  825. code = code + "<li>Is important for future teachers to know.</li>"
  826. end
  827. if review_scores[47].comments == "1"
  828. code = code + "<li>Explains one or more key issues clearly and in some depth using researched information.</li>"
  829. end
  830. code = code + "</ul></td>"
  831. code = code + "<td><ul>"
  832. if review_scores[48].comments == "1"
  833. code = code + "<li>Is relevant to future teachers.</li>"
  834. end
  835. if review_scores[49].comments == "1"
  836. code = code + "<li>Provides a good overview of one or more key ideas using researched information.</li>"
  837. end
  838. code = code + "</ul></td>"
  839. code = code + "<td><ul>"
  840. if review_scores[50].comments == "1"
  841. code = code + "<li>Has some useful points but some irrelevant information.</li>"
  842. end
  843. if review_scores[51].comments == "1"
  844. code = code + "<li>Contains some good information but fails to focus or elaborate on key ideas.</li>"
  845. end
  846. code = code + "</ul></td>"
  847. code = code + "<td><ul>"
  848. if review_scores[52].comments == "1"
  849. code = code + "<li>Has one useful point.</li>"
  850. end
  851. if review_scores[53].comments == "1"
  852. code = code + "<li>Focused on unimportant subtopics OR is overly general (mostly common knowledge or the author’s opinion).</li>"
  853. end
  854. code = code + "</ul></td>"
  855. code = code + "<td><ul>"
  856. if review_scores[54].comments == "1"
  857. code = code + "<li>Is not relevant to future teachers.</li>"
  858. end
  859. if review_scores[55].comments == "1"
  860. code = code + "<li>Lacks any substantive information (entirely common knowledge or author’s opinion).</li>"
  861. end
  862. code = code + "</ul></td></tr>"
  863. code = code + "</table>"
  864. code = code + "<h3>Interest</h3>"
  865. code = code +
  866. "<div align=\"center\">To attract and maintain attention, the lesson has:</div><table class='general'>
  867. <tr>
  868. <th>5 - Extremely Interesting </th>
  869. <th>4 - Quite Interesting </th>
  870. <th>3 - Reasonably Interesting </th>
  871. <th>2 - Little Interest</th>
  872. <th>1 - No Interest </th>
  873. </tr>
  874. <tr>"
  875. code = code + "<td><ul>"
  876. if review_scores[56].comments == "1"
  877. code = code + "<li>Attractive visuals and engaging interactive elements that effectively help teach the content.</li>"
  878. end
  879. if review_scores[57].comments == "1"
  880. code = code + "<li>Compelling stories or examples that capture the reader’s attention and effectively explain ideas and elaborate on cited material.</li>"
  881. end
  882. if review_scores[58].comments == "1"
  883. code = code + "<li>Examples and/or a discussion of multiple perspectives (pro/con, past/present, teacher/student/parent, etc.).</li>"
  884. end
  885. code = code + "</ul></td>"
  886. code = code + "<td><ul>"
  887. if review_scores[59].comments == "1"
  888. code = code + "<li>Attractive visuals and interactive elements that support the content.</li>"
  889. end
  890. if review_scores[60].comments == "1"
  891. code = code + "<li>Stories or examples to illustrate ideas and help interpret and explain cited material.</li>"
  892. end
  893. if review_scores[61].comments == "1"
  894. code = code + "<li>Recognition of multiple perspectives.</li>"
  895. end
  896. code = code + "</ul></td>"
  897. code = code + "<td><ul>"
  898. if review_scores[62].comments == "1"
  899. code = code + "<li>An effective visual or interactive element related to the content.</li>"
  900. end
  901. if review_scores[63].comments == "1"
  902. code = code + "<li>Interpretation and explanations of cited material.</li>"
  903. end
  904. code = code + "</ul></td>"
  905. code = code + "<td><ul>"
  906. if review_scores[64].comments == "1"
  907. code = code + "<li>Visuals or interactive elements that do not relate to content or that distract from it.</li>"
  908. end
  909. if review_scores[65].comments == "1"
  910. code = code + "<li>Very little interpretation or explanation of cited material.</li>"
  911. end
  912. code = code + "</ul></td>"
  913. code = code + "<td><ul>"
  914. if review_scores[66].comments == "1"
  915. code = code + "<li>No visuals or interactive elements.</li>"
  916. end
  917. if review_scores[67].comments == "1"
  918. code = code + "<li>No interpretation or explanation of cited material.</li>"
  919. end
  920. code = code + "</ul></td></tr>"
  921. code = code + "</table>"
  922. code = code + "<h3>Credibility</h3>"
  923. code = code +
  924. "<div align=\"center\">To demonstrate its credibility the lesson:</div><table class='general'>
  925. <tr>
  926. <th>5 - Completely Credible </th>
  927. <th>4 - Substantial Credibility </th>
  928. <th>3 - Reasonable Credibility </th>
  929. <th>2 - Limited Credibility</th>
  930. <th>1 - Not Credible </th>
  931. </tr>
  932. <tr>"
  933. code = code + "<td><ul>"
  934. if review_scores[68].comments == "1"
  935. code = code + "<li>Properly cites 5 or more diverse, reputable sources.</li>"
  936. end
  937. if review_scores[69].comments == "1"
  938. code = code + "<li>Provides citations for all presented information.</li>"
  939. end
  940. if review_scores[70].comments == "1"
  941. code = code + "<li>Identifies bias in sources and clearly differentiates between opinion and fact.</li>"
  942. end
  943. code = code + "</ul></td>"
  944. code = code + "<td><ul>"
  945. if review_scores[71].comments == "1"
  946. code = code + "<li>Cites 5 diverse, reputable sources with few APA errors.</li>"
  947. end
  948. if review_scores[72].comments == "1"
  949. code = code + "<li>Provides citations for most information.</li>"
  950. end
  951. if review_scores[73].comments == "1"
  952. code = code + "<li>Clearly differentiates between opinion and fact</li>"
  953. end
  954. code = code + "</ul></td>"
  955. code = code + "<td><ul>"
  956. if review_scores[74].comments == "1"
  957. code = code + "<li>Cites 5 reputable sources.</li>"
  958. end
  959. if review_scores[75].comments == "1"
  960. code = code + "<li>Supports some claims with citation.</li>"
  961. end
  962. if review_scores[76].comments == "1"
  963. code = code + "<li>Occasionally states opinion as fact.</li>"
  964. end
  965. code = code + "</ul></td>"
  966. code = code + "<td><ul>"
  967. if review_scores[77].comments == "1"
  968. code = code + "<li>Cites 4 reputable sources.</li>"
  969. end
  970. if review_scores[78].comments == "1"
  971. code = code + "<li>Has many unsupported claims.</li>"
  972. end
  973. if review_scores[79].comments == "1"
  974. code = code + "<li>Routinely states opinion as fact and fails to acknowledge bias.</li>"
  975. end
  976. code = code + "</ul></td>"
  977. code = code + "<td><ul>"
  978. if review_scores[80].comments == "1"
  979. code = code + "<li>Cites 3 or fewer reputable sources.</li>"
  980. end
  981. if review_scores[81].comments == "1"
  982. code = code + "<li>Consists of mostly unsupported claims.</li>"
  983. end
  984. if review_scores[82].comments == "1"
  985. code = code + "<li>Is very biased and contains almost entirely opinions.</li>"
  986. end
  987. code = code + "</ul></td></tr>"
  988. code = code + "</table>"
  989. code = code + "<h3>Pedagogy</h3>"
  990. code = code +
  991. "<div align=\"center\">To help guide the reader:</div><table class='general'>
  992. <tr>
  993. <th>5 - Superior </th>
  994. <th>4 - Effective </th>
  995. <th>3 - Acceptable </th>
  996. <th>2 - Deficient</th>
  997. <th>1 - Absent </th>
  998. </tr>
  999. <tr>"
  1000. code = code + "<td><ul>"
  1001. if review_scores[83].comments == "1"
  1002. code = code + "<li>Specific, appropriate, observable learning targets establish the purpose of the lesson.</li>"
  1003. end
  1004. if review_scores[84].comments == "1"
  1005. code = code + "<li>The lesson accomplishes its established goals.</li>"
  1006. end
  1007. if review_scores[85].comments == "1"
  1008. code = code + "<li>Well constructed MC questions (1&2 knowledge; 3&4 application) align with learning targets and assess important content.</li>"
  1009. end
  1010. if review_scores[88].comments == "1"
  1011. code =

Large files files are truncated, but you can click here to view the full file