diff --git a/lib/onebox/engine/wikipedia_onebox.rb b/lib/onebox/engine/wikipedia_onebox.rb index 084166b229e..5a23ec54d02 100644 --- a/lib/onebox/engine/wikipedia_onebox.rb +++ b/lib/onebox/engine/wikipedia_onebox.rb @@ -30,14 +30,18 @@ module Onebox if m_url_hash.nil? # no hash found in url paras = raw.search("p") # default get all the paras else - section_header_title = raw.xpath("//span[@id='#{CGI.unescape(m_url_hash_name)}']") + section_header_title = + raw.xpath( + "//*[@id=\"#{CGI.unescape(m_url_hash_name)}\"][self::h1 or self::h2 or self::h3 or self::h4 or self::h5 or self::h6]", + ) if section_header_title.empty? paras = raw.search("p") # default get all the paras else section_title_text = section_header_title.inner_text - section_header = section_header_title[0].parent # parent element of the section span element should be an

node - cur_element = section_header + + # Get .mw-heading which wraps the h* element + cur_element = section_header_title[0].parent # p|text|div covers the general case. We assume presence of at least 1 P node. if section has no P node we may end up with a P node from the next section. # div tag is commonly used as an assets wraper in an article section. often as the first element holding an image. @@ -95,7 +99,7 @@ module Onebox description: text, } - img = raw.css(".image img") + img = raw.css(".infobox-image img") if img && img.size > 0 img.each do |i| diff --git a/spec/fixtures/onebox/wikipedia.response b/spec/fixtures/onebox/wikipedia.response index 3eb69cadd58..e2479c05b7d 100644 --- a/spec/fixtures/onebox/wikipedia.response +++ b/spec/fixtures/onebox/wikipedia.response @@ -1,253 +1,791 @@ - + - -Billy Jack - Wikipedia, the free encyclopedia - - - - - - - - - - - - - - - - + +Billy Jack - Wikipedia + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Jump to content +
+
+
+ + + + +
+
+ + + + + +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +

Billy Jack

+ + +
+
+
+
+ +
+
+ + + +
+
+
+
+
+ + +
+
+
+
+
+
+ +
From Wikipedia, the free encyclopedia
+
+
+ + +
+ +

+ +

+
Billy Jack
Theatrical release poster
Directed byTom Laughlin
(as T.C. Frank)
Written byTom Laughlin
(as Frank Christina)
Delores Taylor
(as Theresa Christina)
Produced byTom Laughlin
(as Mary Rose Solti)
StarringTom Laughlin
Delores Taylor
CinematographyFred J. Koenekamp
John M. Stephens
Edited byLarry Heath
Marion Rothman
Music byMundell Lowe
Dennis Lambert
Brian Potter
Production
company
National Student Film Corporation
Distributed byWarner Bros.
Release date
+
  • May 1, 1971 (1971-05-01)
+
Running time
114 minutes
CountryUnited States
LanguageEnglish
Budget$800,000
Box office$32.5 million (rentals)[1]
+

Billy Jack is a 1971 American action drama independent film, the second of four films centering on a character of the same name which began with the movie The Born Losers (1967), played by Tom Laughlin, who directed and co-wrote the script. Filming began in Prescott, Arizona, in the fall of 1969, but the movie was not completed until 1971. American International Pictures pulled out, halting filming. 20th Century Fox came forward and filming eventually resumed but when that studio refused to distribute the film, Warner Bros. stepped forward. +

Still, the film lacked distribution, so Laughlin booked it into theaters himself in 1971.[1] The film grossed $10 million in its initial run, but eventually added close to $50 million in its re-release,[2] with distribution supervised by Laughlin. +

+ +

Plot

[edit]
+

Billy Jack, a mixed-race Navajo,[3] is a Green Beret Vietnam War veteran and a hapkido master. He defends the hippie-themed Freedom School (inspired by Prescott College) and its students from townspeople who do not understand or like the counterculture students. The school is organized by its director, Jean Roberts. +

One of the troubled youths is a girl named Barbara, who became pregnant while in San Francisco and has an abusive father. A group of children of various races from the school goes to town for ice cream but are refused service. They are then abused and humiliated by Bernard Posner, the son of the county's corrupt political boss Stuart Posner, and his gang. This prompts a violent outburst by Billy. +

Billy undergoes a Navajo initiation in which he is deliberately bitten by a large rattlesnake, intending to become the blood brother to the snake. Meanwhile, Barbara loses her unborn child when the horse she is riding stumbles on a rock, leading to her falling off the horse. +

Bernard attempts to sexually assault a woman in his car, but is stopped by Jean and Billy, who give Bernard a choice: either receive a dislocated elbow or drive his Corvette into the lake. Bernard chooses the latter. Later, Bernard kidnaps and rapes Jean, and also murders a Native American student, Martin. +

Billy confronts Bernard, whom he catches in bed with a 13-year-old girl, and sustains a gunshot wound before killing him with a hand strike to the throat. After barricading himself following a climactic shootout with the police and pleading from Jean, Billy Jack surrenders to the authorities in exchange for a decade-long guarantee that the school will be allowed to continue running with Jean as its head. +

As Billy is driven away in handcuffs, a large crowd of supporters raises their fists in a show of defiance and support. +

+

Cast

[edit]
+
+ +
+

Box-office and critical reception

[edit]
+

Billy Jack holds a "Fresh" rating of 63% at Rotten Tomatoes based on 16 reviews, with an average grade of 5.4/10.[4] The website The Grindhouse Database, and the book Search and Clear: Critical Responses to Selected Literature and Films of the Vietnam War list this movie as belonging to the vetsploitation subgenre.[5][6] +

Film critic Leonard Maltin at first gave Billy Jack 3.5 stars out of 4, calling it "Uneven in spots but tremendously powerful." Later, he downgraded it to 1.5 stars, writing, "Seen today, its politics are highly questionable, and its 'message' of peace looks ridiculous, considering the amount of violence in the film."[7] Roger Ebert gave the film 2.5 stars out of 4 and also saw the message of the film as self-contradictory, writing: "I'm also somewhat disturbed by the central theme of the movie. Billy Jack seems to be saying the same thing as Born Losers: that a gun is better than a constitution in the enforcement of justice."[8] Howard Thompson, writing for The New York Times, agreed, calling the film "well-aimed but misguided" as he wrote, "For a picture that preaches pacifism, Billy Jack seems fascinated by its violence, of which it is full." He added that "some of the non-professional delivery of lines in the script by Mr. Frank and Teresa Christina is incredibly awful."[9] Variety magazine opined that "the action frequently drags" and at nearly two hours' running length, "The message is rammed down the spectators" throats and is sorely in need of considerable editing to tell a straightforward story."[10] Gene Siskel gave Billy Jack 3.5 stars out of 4, calling it "a film that tries to say too many things in too many ways within an adequate story line, but it has such freshness, original humor and compassion that one is frequently moved to genuine emotion".[11] Kevin Thomas, in the Los Angeles Times, also liked Billy Jack, praising its "searing tension that sustains it through careening unevenness to a smash finish. Crude and sensational yet urgent and pertinent, this provocative Warners release is in its unique, awkward way one of the year's important pictures."[12] +

Gary Arnold, writing for The Washington Post, panned Billy Jack as "horrendously self-righteous and devious", explaining, "Every social issue is dramatized in terms of absolute, apolitical good and evil. The good guys... are next to angelic, while the bad guys are, according to the needs of the moment, utter buffoons or utter devils. Anyone with the slightest trace of skepticism or sophistication would tend to reject the movie out of hand and with good reason, since this kind of simplification is dramatically and socially deceitful."[13] David Wilson, in The Monthly Film Bulletin, wrote: "If in the end Billy Jack is as much a sell-out as any glossier version of commercialized iconoclasm (Billy Jack is persuaded to accept guarantees which a hundred years of Indian history have repudiated), there is enough innocent sincerity in the film to demonstrate that Tom Laughlin at least has the courage of his convictions, even if those convictions are scarcely thought out."[14] +

Delores Taylor received a Golden Globe nomination as Most Promising Newcoming Actress. Tom Laughlin won the grand prize for Billy Jack at the 1971 Taormina Film Fest in Italy. +

+

Accolades

[edit]
+

The film is recognized by American Film Institute in these lists: +

+ +

Sequels

[edit]
+

A direct sequel followed with The Trial of Billy Jack (1974). Billy Jack Goes to Washington (1977) followed three years later, but without a formal release. Plans for The Return of Billy Jack came and went in the mid-1980s. +

+

Soundtrack

[edit]
+
Billy Jack
Soundtrack album by
Released1972
Recorded1971
GenreFilm score
LabelWarner Bros.
WS 1926
ProducerMundell Lowe
Mundell Lowe chronology
+ + + + + +
Satan in High Heels
(1961) +
Billy Jack
(1972) +
California Guitar
(1974) +
+

The film score was composed, arranged and conducted by Mundell Lowe and the soundtrack album was originally released on the Warner Bros. label.[16] +

+

Reception

[edit]
+

The AllMusic review states "a strange and striking combination of styles that somehow is effective ... a listenable disc whose flaws only add to the warmth".[17] A cover of Canadian band The Original Caste, the film's theme song, "One Tin Soldier" was recorded by Jinx Dawson, of the band Coven, with session musicians providing the backing and later a re-recording, renamed as "One Tin Soldier (The Legend of Billy Jack)", credited to the band Coven, became a Top 40 hit in 1971 and again in 1973. +

+
Professional ratings
Review scores
SourceRating
AllMusic[17]
+

Track listing

[edit]
+

All compositions by Mundell Lowe, except as indicated. +

+
  1. "One Tin Soldier" (Dennis Lambert, Brian Potter) – 3:18
  2. "Hello Billy Jack" – 0:45
  3. "Old and the New" – 1:00
  4. "Johnnie" (Teresa Kelly) – 2:35
  5. @@ -267,300 +805,255 @@ On the bloody morning after, one tin soldier rides away

  6. "Thy Loving Hand" – 1:35
  7. "Say Goodbye 'Cause You're Leavin'" – 2:36
  8. "The Theme from Billy Jack" – 2:21
  9. -
  10. "One Tin Soldier (End Title)" (Lambert, Potter) – 1:06
  11. -
-

Personnel[edit]

-