Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -198,19 +198,15 @@ st.markdown("""
|
|
| 198 |
with st.expander("About SCC and Example Citation"):
|
| 199 |
st.markdown("""
|
| 200 |
<div class="info-card">
|
| 201 |
-
<h3>About SCC</h3>
|
| 202 |
<p>The Smart Context Citation (SCC) style is a modern referencing system designed to enhance transparency and integrity in academic citations, particularly in the era of generative AI. It integrates context directly into citations, uses cryptographic hashes for verification, and eliminates the need for traditional reference lists.</p>
|
| 203 |
-
|
| 204 |
<h4>Key Features</h4>
|
| 205 |
<ul>
|
| 206 |
-
<li><strong>Inline Citations:</strong> Uses author-year format, either
|
| 207 |
<li><strong>SCC Index:</strong> A unique SHA-256 hash ensures citation authenticity, linked to metadata including username, task, date, and time.</li>
|
| 208 |
<li><strong>Benefits:</strong> Promotes digital fluency, ensures source traceability, prevents fabrication, and simplifies referencing.</li>
|
| 209 |
</ul>
|
| 210 |
-
|
| 211 |
<h4>Technical Legitimacy</h4>
|
| 212 |
<p>The SCC style leverages the <a href="https://wicg.github.io/scroll-to-text-fragment/" target="_blank">W3C Text Fragments specification</a>, enabling precise linking to specific text within web pages. This ensures citations are contextually accurate and verifiable, aligning with modern web standards.</p>
|
| 213 |
-
|
| 214 |
<h4>Example Citation</h4>
|
| 215 |
<p><strong>Inputs:</strong></p>
|
| 216 |
<ul>
|
|
@@ -225,7 +221,7 @@ with st.expander("About SCC and Example Citation"):
|
|
| 225 |
<ul>
|
| 226 |
<li><strong>Citation (Start of Text):</strong> <span style="font-size: 1.2rem;">Abuseif et al. (2025)</span> (hyperlinked to <code>https://www.sciencedirect.com/science/article/pii/S2772411523000046#:~:text=A%20proposed%20design%20framework</code>)</li>
|
| 227 |
<li><strong>Citation (End of Text):</strong> <span style="font-size: 1.2rem;">(Abuseif et al., 2025)</span> (hyperlinked to <code>https://www.sciencedirect.com/science/article/pii/S2772411523000046#:~:text=A%20proposed%20design%20framework</code>)</li>
|
| 228 |
-
<li><strong>SCC Index:</strong> <span style="font-size: 0.85rem;">Abuseif et al. (2025). a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890</span> (hyperlinked to <code>https://www.sciencedirect.com/science/article/pii/S2772411523000046#:~:text=jdoe%
|
| 229 |
</ul>
|
| 230 |
</div>
|
| 231 |
""", unsafe_allow_html=True)
|
|
@@ -234,12 +230,10 @@ with st.expander("About SCC and Example Citation"):
|
|
| 234 |
with st.expander("SCC Style Guidelines"):
|
| 235 |
st.markdown("""
|
| 236 |
<div class="info-card">
|
| 237 |
-
<h3>SCC Style Guidelines</h3>
|
| 238 |
<p>The Smart Context Citation (SCC) style ensures accurate, transparent, and verifiable citations. Follow these steps to generate and verify citations using the SCC Tool.</p>
|
| 239 |
-
|
| 240 |
<h4>Generating Citations</h4>
|
| 241 |
<ol>
|
| 242 |
-
<li><strong>Access the Tool:</strong> Open the
|
| 243 |
<li><strong>Enter User Information:</strong>
|
| 244 |
<ul>
|
| 245 |
<li><strong>Username:</strong> Your unique identifier (e.g., jdoe).</li>
|
|
@@ -254,33 +248,32 @@ with st.expander("SCC Style Guidelines"):
|
|
| 254 |
<li><strong>Annotated Text:</strong> The quoted or paraphrased text from the source (e.g., A proposed design framework for green roof settings).</li>
|
| 255 |
</ul>
|
| 256 |
</li>
|
| 257 |
-
<li><strong>Generate Citation:</strong> Click the
|
| 258 |
<li><strong>Copy Outputs:</strong>
|
| 259 |
<ul>
|
| 260 |
-
<li><strong>Citation (Start of Text):</strong> Use
|
| 261 |
-
<li><strong>Citation (End of Text):</strong> Use
|
| 262 |
<li><strong>SCC Index:</strong> Copy the index link (e.g., Abuseif et al. (2025). a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890) for verification.</li>
|
| 263 |
-
<li>Right-click each link to copy the
|
| 264 |
</ul>
|
| 265 |
</li>
|
| 266 |
</ol>
|
| 267 |
-
|
| 268 |
<h4>Verifying Citations</h4>
|
| 269 |
<ol>
|
| 270 |
-
<li><strong>Access the Tool:</strong> Open the
|
| 271 |
<li><strong>Enter Citation Information:</strong>
|
| 272 |
<ul>
|
| 273 |
<li><strong>Citation Text:</strong> Paste the citation text (e.g., Abuseif et al. (2025) or (Abuseif et al., 2025)).</li>
|
| 274 |
-
<li><strong>Citation URL:</strong> Paste the hyperlink URL from the citation (right-click and select
|
| 275 |
</ul>
|
| 276 |
</li>
|
| 277 |
<li><strong>Enter SCC Index Information:</strong>
|
| 278 |
<ul>
|
| 279 |
<li><strong>SCC Index Text:</strong> Paste the index text (e.g., Abuseif et al. (2025). a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890).</li>
|
| 280 |
-
<li><strong>SCC Index URL:</strong> Paste the hyperlink URL from the index (right-click and select
|
| 281 |
</ul>
|
| 282 |
</li>
|
| 283 |
-
<li><strong>Verify Citation:</strong> Click the
|
| 284 |
<li><strong>Review Result:</strong>
|
| 285 |
<ul>
|
| 286 |
<li><strong>Authentic Citation:</strong> Displayed in green if the hash matches, confirming integrity.</li>
|
|
|
|
| 198 |
with st.expander("About SCC and Example Citation"):
|
| 199 |
st.markdown("""
|
| 200 |
<div class="info-card">
|
|
|
|
| 201 |
<p>The Smart Context Citation (SCC) style is a modern referencing system designed to enhance transparency and integrity in academic citations, particularly in the era of generative AI. It integrates context directly into citations, uses cryptographic hashes for verification, and eliminates the need for traditional reference lists.</p>
|
|
|
|
| 202 |
<h4>Key Features</h4>
|
| 203 |
<ul>
|
| 204 |
+
<li><strong>Inline Citations:</strong> Uses author-year format, either "Author (Year)" or "(Author, Year)", hyperlinked to the source with a text fragment.</li>
|
| 205 |
<li><strong>SCC Index:</strong> A unique SHA-256 hash ensures citation authenticity, linked to metadata including username, task, date, and time.</li>
|
| 206 |
<li><strong>Benefits:</strong> Promotes digital fluency, ensures source traceability, prevents fabrication, and simplifies referencing.</li>
|
| 207 |
</ul>
|
|
|
|
| 208 |
<h4>Technical Legitimacy</h4>
|
| 209 |
<p>The SCC style leverages the <a href="https://wicg.github.io/scroll-to-text-fragment/" target="_blank">W3C Text Fragments specification</a>, enabling precise linking to specific text within web pages. This ensures citations are contextually accurate and verifiable, aligning with modern web standards.</p>
|
|
|
|
| 210 |
<h4>Example Citation</h4>
|
| 211 |
<p><strong>Inputs:</strong></p>
|
| 212 |
<ul>
|
|
|
|
| 221 |
<ul>
|
| 222 |
<li><strong>Citation (Start of Text):</strong> <span style="font-size: 1.2rem;">Abuseif et al. (2025)</span> (hyperlinked to <code>https://www.sciencedirect.com/science/article/pii/S2772411523000046#:~:text=A%20proposed%20design%20framework</code>)</li>
|
| 223 |
<li><strong>Citation (End of Text):</strong> <span style="font-size: 1.2rem;">(Abuseif et al., 2025)</span> (hyperlinked to <code>https://www.sciencedirect.com/science/article/pii/S2772411523000046#:~:text=A%20proposed%20design%20framework</code>)</li>
|
| 224 |
+
<li><strong>SCC Index:</strong> <span style="font-size: 0.85rem;">Abuseif et al. (2025). a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890</span> (hyperlinked to <code>https://www.sciencedirect.com/science/article/pii/S2772411523000046#:~:text=jdoe%252525E2%25252580%25252594Urban%252520Design%252520Thesis%252525E2%25252580%252525942025-08-06%252525E2%25252580%2525259419:23:45</code>)</li>
|
| 225 |
</ul>
|
| 226 |
</div>
|
| 227 |
""", unsafe_allow_html=True)
|
|
|
|
| 230 |
with st.expander("SCC Style Guidelines"):
|
| 231 |
st.markdown("""
|
| 232 |
<div class="info-card">
|
|
|
|
| 233 |
<p>The Smart Context Citation (SCC) style ensures accurate, transparent, and verifiable citations. Follow these steps to generate and verify citations using the SCC Tool.</p>
|
|
|
|
| 234 |
<h4>Generating Citations</h4>
|
| 235 |
<ol>
|
| 236 |
+
<li><strong>Access the Tool:</strong> Open the "Citation Generator" tab.</li>
|
| 237 |
<li><strong>Enter User Information:</strong>
|
| 238 |
<ul>
|
| 239 |
<li><strong>Username:</strong> Your unique identifier (e.g., jdoe).</li>
|
|
|
|
| 248 |
<li><strong>Annotated Text:</strong> The quoted or paraphrased text from the source (e.g., A proposed design framework for green roof settings).</li>
|
| 249 |
</ul>
|
| 250 |
</li>
|
| 251 |
+
<li><strong>Generate Citation:</strong> Click the "Generate Citation" button.</li>
|
| 252 |
<li><strong>Copy Outputs:</strong>
|
| 253 |
<ul>
|
| 254 |
+
<li><strong>Citation (Start of Text):</strong> Use "Author (Year)" for the start of a sentence (e.g., Abuseif et al. (2025)).</li>
|
| 255 |
+
<li><strong>Citation (End of Text):</strong> Use "(Author, Year)" for in-text citations (e.g., (Abuseif et al., 2025)).</li>
|
| 256 |
<li><strong>SCC Index:</strong> Copy the index link (e.g., Abuseif et al. (2025). a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890) for verification.</li>
|
| 257 |
+
<li>Right-click each link to copy the "Link Address" for verification.</li>
|
| 258 |
</ul>
|
| 259 |
</li>
|
| 260 |
</ol>
|
|
|
|
| 261 |
<h4>Verifying Citations</h4>
|
| 262 |
<ol>
|
| 263 |
+
<li><strong>Access the Tool:</strong> Open the "Verify Citation" tab.</li>
|
| 264 |
<li><strong>Enter Citation Information:</strong>
|
| 265 |
<ul>
|
| 266 |
<li><strong>Citation Text:</strong> Paste the citation text (e.g., Abuseif et al. (2025) or (Abuseif et al., 2025)).</li>
|
| 267 |
+
<li><strong>Citation URL:</strong> Paste the hyperlink URL from the citation (right-click and select "Copy Link Address").</li>
|
| 268 |
</ul>
|
| 269 |
</li>
|
| 270 |
<li><strong>Enter SCC Index Information:</strong>
|
| 271 |
<ul>
|
| 272 |
<li><strong>SCC Index Text:</strong> Paste the index text (e.g., Abuseif et al. (2025). a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890).</li>
|
| 273 |
+
<li><strong>SCC Index URL:</strong> Paste the hyperlink URL from the index (right-click and select "Copy Link Address").</li>
|
| 274 |
</ul>
|
| 275 |
</li>
|
| 276 |
+
<li><strong>Verify Citation:</strong> Click the "Verify Citation" button.</li>
|
| 277 |
<li><strong>Review Result:</strong>
|
| 278 |
<ul>
|
| 279 |
<li><strong>Authentic Citation:</strong> Displayed in green if the hash matches, confirming integrity.</li>
|