Investment in Rafael Pharmaceuticals, Inc. ("Rafael Pharmaceuticals") (Details Textual) - USD ($) | Dec. 07, 2015 | May 18, 2018 | Mar. 02, 2017 | Sep. 16, 2016 | Apr. 30, 2018 | Apr. 30, 2017 | Jul. 31, 2016 | Sep. 19, 2017 | Sep. 12, 2017 | Jul. 31, 2017 | Mar. 26, 2017 | Jan. 31, 2017 | Apr. 30, 2016 | Jan. 31, 2016 |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Warrants expiry date | | | | | Dec. 31, 2020 | | | | | | | | | |
Principal amount | | | | | | | | | | | | | | |
Additional amount of investment funded | | | | | $ 11,700,000 | | | | | $ 12,100,000 | | | | |
Exercise price of warrants or rights, description | | | | | The exercise price of the warrant is the lower of 70% of the price sold in an equity financing, or $1.25 per share, subject to certain adjustments. The minimum initial and subsequent exercises of the warrant shall be for such number of shares that will result in at least $5 million of gross proceeds to Rafael Pharmaceuticals, or such lesser amount as represents 5% of the outstanding capital stock of Rafael Pharmaceuticals, or such lesser amount as may then remain unexercised. | | | | | | | | | |
CS Pharma Holdings, LLC [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Ownership percentage in non-operating subsidiary | | | 45.00% | | 50.00% | | | | | | | | | |
Ownership percentage in subsidiary and holds percentage of interest | | | | | 90.00% | | | | | | | | | |
Exercise warrants value | | | | | $ 10,000,000 | | | | | | | | | |
IDT-Rafael Holdings [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Ownership percentage in non-operating subsidiary | | | | | 50.00% | | | | | | | | | |
Percentage of capital stock | | | 10.00% | | | | | | | | | | | |
Working capital financing remained outstanding | | | | | | | | | | | $ 1,600,000 | | | |
Outstanding debt | | | | | | | | | | | $ 23,600,000 | | | |
Rafael Pharmaceuticals [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Ownership percentage in non-operating subsidiary | | | | | 90.00% | | | | | | | | | |
Ownership percentage in subsidiary and holds percentage of interest | | | | | 51.00% | | | | | | | | | |
Exercise of warrants purchases, description | | | | | The Company would need to pay approximately $71 million to exercise the warrant in full and approximately $56 million to purchase a 51% controlling stake. On an as-converted and fully diluted basis (for all convertible securities of Rafael Pharmaceuticals outstanding), the Company would need approximately $122 million to exercise the warrant in full and approximately $98 million to purchase a 51% controlling stake in Rafael Pharmaceuticals. Given the Company's anticipated available cash upon the Spin-Off, the Company would not be able to exercise the warrant in its entirety and the Company may never be able to exercise the warrant in full. | | | | | | | | | |
Warrants expiry date | | | | | Dec. 31, 2020 | | | | | | | | | |
Amount of investment | $ 10,000,000 | | | | | | | | | | | | | |
Additional amount of investment funded | | | | | $ 56,000,000 | | $ 2,000,000 | | | | | | $ 1,500,000 | $ 500,000 |
Exercise warrants value | $ 10,000,000 | | | | | | | | | | | | | |
Percentage of exercise warrants value | | | | | 56.00% | | | | | | | | | |
Percentage of bonus shares received | | | | | 10.00% | | | | 9.00% | | | | | |
Exercise price of warrants or rights, description | | | | | IDT-Rafael Holdings and CS Pharma were issued warrants to purchase shares of capital stock of Rafael Pharmaceuticals representing up to 56% of the then issued and outstanding capital stock of Rafael Pharmaceuticals, on an as-converted and fully diluted basis. | | | | | | | | | |
Payments for exercise of warrants | | | | | $ 71,000,000 | | | | | | | | | |
Lipomedix Pharmaceuticals Ltd. [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Additional amount of investment funded | | | | | 100,000 | | | | | | | $ 300,000 | | |
Convertible Debt Securities [Member] | Rafael Pharmaceuticals [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Exercise warrants value | | | | | $ 122,000,000 | | | | | | | | | |
Convertible promissory note (Series D Note) [Member] | Rafael Pharmaceuticals [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Convertible promissory note, rate of interest | | | | | 3.50% | | | | | | | | | |
Convertible promissory note, maturity date | | | | | Sep. 16, 2018 | | | | | | | | | |
Exercise warrants value | | | | | $ 10,000,000 | | | | | | | | | |
Purchase of exercise the warrant | | | | | $ 98,000,000 | | | | | | | | | |
Subsequent Event [Member] | Rafael Pharmaceuticals [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Description of arrangement | | The Company entered into an arrangement with Rafael Pharmaceuticals to lend up to $1.7 million at an interest rate of 3.5%, compounded quarterly. At Rafael Pharmaceuticals' request, and in the Company's discretion, the Company will advance amounts to the borrower, not to exceed $1.7 million. This loan is due and payable with 30 days' notice at the lender's demand, not to occur before June 30, 2018. | | | | | | | | | | | | |
Convertible Notes Payable [Member] | Rafael Pharmaceuticals [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Convertible promissory note, rate of interest | | | | 3.50% | | | 3.50% | | | | | | | |
Convertible promissory note, maturity date | | | | Jul. 31, 2018 | | | Jul. 31, 2018 | | | | | | | |
Amount of investment | | | | $ 8,000,000 | | | $ 2,000,000 | | | | | | | |
Howard Jonas [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Percentage of bonus shares issued | | | | | | | | 9.00% | | | | | | |
Howard Jonas [Member] | IDT-Rafael Holdings [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Purchase price | | | $ 1,000,000 | | | | | | | | | | | |
Howard Jonas [Member] | Rafael Pharmaceuticals [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Percentage of bonus shares received | | | | | | | | | 1.00% | | | | | |
The Howard S. and Deborah Jonas Foundation [Member] | Series C Convertible Notes [Member] | Rafael Pharmaceuticals [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Principal amount | | | 525,000 | | | | | | | | | | | |
Howard Jonas and Deborah Jonas [Member] | Series C Convertible Notes [Member] | Rafael Pharmaceuticals [Member] | | | | | | | | | | | | | | |
Consolidation, Less than Wholly Owned Subsidiary, Parent Ownership Interest, Effects of Changes, Net [Line Items] | | | | | | | | | | | | | | |
Principal amount | | | $ 525,000 | | | | | | | | | | | |