Skip to content

Commit

Permalink
Fix macOS https links not working, and "FAQs" displaying.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Nov 22, 2023
1 parent 82b425f commit 7fd2568
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 8 deletions.
5 changes: 5 additions & 0 deletions InterSpec_resources/static_text/faqs/faqs.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@

}

.faqs-toc-item.LinkBtn
{
float: none;
}

.faqs-subjects
{

Expand Down
67 changes: 62 additions & 5 deletions data/more_nuclide_info.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<AddNucInfo>
<!-- UUR SAND2023-02430O
Expand Down Expand Up @@ -123,6 +123,13 @@ TODO: Need to incorporate the following from FRMAC Spectroscopists guide:
<date>20230401</date>
</Ref>

<Ref key="DOE-QSA">
<desc>DOE Isotope Program and QSA Global Inc. partner for domestic production of iridium-192</desc>
<url>https://www.isotopes.gov/QSA-joint-product-development-agreement</url>
<date>20231121</date>
</Ref>


</References>

<Nuclides>
Expand Down Expand Up @@ -446,7 +453,7 @@ Common fission product

Industrial radiography devices and gauges, fluid processing/level gauges

Used for low-intensity sterilization of blood. Reactor radioisotope. [GNRIM]
Used for low-intensity sterilization of blood and in brachytherapy. Reactor radioisotope. [GNRIM]

"Used for radiotracer technique for identification of sources of soil erosion and deposition, as well as in density and fill height level switches. Also for low-intensity gamma sterilization."-[RII]

Expand Down Expand Up @@ -634,6 +641,8 @@ Common radiography source. May be placed in a depleted uranium (DU) shield/pig

Radiography and nondestructive testing devices. [NIDC]

"Ir-192 serves as a gamma source essential for industrial radiographic non-destructive testing to detect structural damage to metal parts such as castings, forgings, and weld defects. Industrial gamma radiography plays a crucial role in ensuring the quality of manufacturing processes, particularly in sectors such as shipbuilding, auto manufacturing, and aerospace. Additionally, it is instrumental in performing on-site integrity assessments of oil and gas pipelines. This type of quality assessment is indispensable for upholding the reliability of U.S. infrastructure and supporting defense applications."-[DOE-QSA]

Reactor radioisotope.
</Notes>
</Nuc>
Expand Down Expand Up @@ -703,7 +712,7 @@ Can be found with Lu-177m

Lu-177m becomes more dominant with time.

Production mode: Neutron capture on enriched Lu-176 target. Other companies are investigating the ytterbium production route which does not produce the Lu-177m impurity.
Production mode: Usually produced by neutron activation of natural or enriched lutetium-176 targets or indirectly by neutron irradiation of Yb-176. The ytterbium production route does not produce the Lu-177m impurity.

"Lu-177 is increasingly important as it emits just enough gamma for imaging while the beta radiation does the therapy on small (e.g. endocrine) tumors. Its half-life is long enough to allow sophisticated preparation for use.  It is usually produced by neutron activation of natural or enriched lutetium-176 targets."-[GNRIM]

Expand Down Expand Up @@ -791,6 +800,54 @@ Reactor radioisotope.
</Notes>
</Nuc>



<Nuc name="Np-237">
<Associated>Np-237;Pa-233;Pu-239;Am-241;Pu-241</Associated>
<Notes>
Np-237/Pa-233 (27.4 d)
</Notes>
</Nuc>

<Nuc name="Pb-212">
<Associated>Ra-224</Associated>
<Notes>
"Pb-212 is used in TAT for cancers or alpha radioimmunotherapy, with decay products Bi-212 (1 h) and Po-212 (0.3 µs) delivering the alpha particles. Used especially for melanoma, breast cancer and ovarian cancer. Demand is increasing. Used in peptide receptor radionuclide therapy (PRRT)."-[GNRIM]

Ra-224 (3.66 d) is used for the generator for Pb-212 (10.64 h).-[GNRIM]

Reactor radioisotope.

Gamma spectroscopy notes:
&lt;ul&gt;
&lt;li&gt;The gamma signatures from Ra-224 and Pb-212 will look very similar. The only primary gamma emission that helps with distinguishing Ra-224 with its decay products from Pb-212 with its decay products is the Ra-224 gamma emission at 241.0 keV.&lt;/li&gt;
&lt;li&gt;For unshielded or lightly shielded sources, a NaI detector will not be able to distinguish Ra-224 with its decay products from Pb-212 with its decay products. However, an HPGe detector can allow you to resolve both the 238.6 keV Pb-212 peak (43.3% yield) and the 241.0 keV Ra-224 peak (4.1% yield).&lt;/li&gt;
&lt;li&gt;For a well shielded source (shielding the 238.6 keV and 241.0 keV peaks), neither a NaI or HPGe detector will be able to distinguish Ra-224 with its decay products from Pb-212 with its decay products.&lt;/li&gt;
&lt;li&gt;Lastly, the gamma signature for Ra-224 and Pb-212 will look like U-232/Th-228 since no strong gamma signatures occur in the U-232/Th-228 decay chain prior to Ra-224. This is especially true for low resolution spectrometers where you can’t resolve both the 238.6 keV Pb-212 and the 241.0 keV Ra-224 peaks.&lt;/li&gt;
&lt;/ul&gt;
</Notes>
</Nuc>

<Nuc name="Ra-224">
<Associated>Pb-212</Associated>
<Notes>
"Pb-212 is used in TAT for cancers or alpha radioimmunotherapy, with decay products Bi-212 (1 h) and Po-212 (0.3 µs) delivering the alpha particles. Used especially for melanoma, breast cancer and ovarian cancer. Demand is increasing. Used in peptide receptor radionuclide therapy (PRRT)."-[GNRIM]

Ra-224 (3.66 d) is used for the generator for Pb-212 (10.64 h).-[GNRIM]

Reactor radioisotope.

Gamma spectroscopy notes
&lt;ul&gt;
&lt;li&gt;The gamma signatures from Ra-224 and Pb-212 will look very similar. The only primary gamma emission that helps with distinguishing Ra-224 with its decay products from Pb-212 with its decay products is the Ra-224 gamma emission at 241.0 keV.&lt;/li&gt;
&lt;li&gt;For unshielded or lightly shielded sources, a NaI detector will not be able to distinguish Ra-224 with its decay products from Pb-212 with its decay products. However, an HPGe detector can allow you to resolve both the 238.6 keV Pb-212 peak (43.3% yield) and the 241.0 keV Ra-224 peak (4.1% yield).&lt;/li&gt;
&lt;li&gt;For a well shielded source (shielding the 238.6 keV and 241.0 keV peaks), neither a NaI or HPGe detector will be able to distinguish Ra-224 with its decay products from Pb-212 with its decay products.&lt;/li&gt;
&lt;li&gt;Lastly, the gamma signature for Ra-224 and Pb-212 will look like U-232/Th-228 since no strong gamma signatures occur in the U-232/Th-228 decay chain prior to Ra-224. This is especially true for low resolution spectrometers where you can’t resolve both the 238.6 keV Pb-212 and the 241.0 keV Ra-224 peaks.&lt;/li&gt;
&lt;/ul&gt;
</Notes>
</Nuc>


<Nuc name="Pd-103">
<Associated></Associated>
<Notes>
Expand Down Expand Up @@ -1044,7 +1101,7 @@ Tl-202 becomes more dominant with time.

When Tl-201 medical shipments are made, the Tl can be heavily shielded resulting in the primary gamma signature being from high energy Tl-200 gamma emissions.

Production mode: Tl-203(p,3n) Pb-201 -> Tl-201
Production mode: Tl-203(p,3n) Pb-201 -&gt; Tl-201

Tl-201 X-rays combined with scatter and/or a gain shift in a NaI detector can generate a peak near 59.5 keV causing misidentification as Am-241.

Expand Down Expand Up @@ -1188,4 +1245,4 @@ Zr-95 → Nb-95 activity ratio at transient equilibrium equals 1/2.205.
</Nuc>

</Nuclides>
</AddNucInfo>
</AddNucInfo>
3 changes: 2 additions & 1 deletion src/UseInfoWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,8 @@ void UseInfoWindow::textItemCreator( const std::string &resource, Wt::WContainer
+ wApp->javaScriptClass() + "." + resource_name + "_scroll_to('" + w->id() + "');"
"}";
toc_item->clicked().connect( this_js_call );
new WAnchor( WLink("#"), key_title.second, toc_item );
WText *link = new WText( key_title.second, toc_item );
link->addStyleClass( resource_name + "-toc-item LinkBtn" );
}//for( const pair<string,string> &key_title : topic_keys )
}catch( std::exception &e )
{
Expand Down
7 changes: 5 additions & 2 deletions target/osx/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -633,11 +633,14 @@ - (void)webView:(WKWebView *)webView
{
NSString *host = [[request URL] host];
NSString *absurl = [[request URL] absoluteString];
NSString *scheme = [[request URL] scheme];

NSLog(@"host=%@, absurl=%@", host, absurl );
NSLog(@"scheme=%@, host=%@, absurl=%@", scheme, host, absurl );

if ([absurl rangeOfString:@"request=redirect&url=http"].location != NSNotFound
|| [[[request URL] scheme] isEqual:@"mailto"])
|| [scheme isEqual:@"mailto"]
|| ([scheme isEqual:@"https"] && ![host isEqual:@"127.0.0.1"]
&& ([host rangeOfString:@"localhost"].location == NSNotFound)) )
{
//external url or email
[[NSWorkspace sharedWorkspace] openURL:[request URL]];
Expand Down

0 comments on commit 7fd2568

Please sign in to comment.