Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ckanext/digitizationknowledge/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# import ckanext.digitizationknowledge.cli as cli
import ckanext.digitizationknowledge.helpers as helpers
# import ckanext.digitizationknowledge.views as views
import ckanext.digitizationknowledge.views as views
from ckanext.digitizationknowledge.logic import (
validators
# action, auth, validators
Expand All @@ -19,7 +19,7 @@ class DigitizationknowledgePlugin(plugins.SingletonPlugin):

# plugins.implements(plugins.IAuthFunctions)
# plugins.implements(plugins.IActions)
# plugins.implements(plugins.IBlueprint)
plugins.implements(plugins.IBlueprint)
# plugins.implements(plugins.IClick)
plugins.implements(plugins.ITemplateHelpers)
plugins.implements(plugins.IValidators)
Expand Down Expand Up @@ -103,8 +103,8 @@ def update_config(self, config_):

# IBlueprint

# def get_blueprint(self):
# return views.get_blueprints()
def get_blueprint(self):
return views.get_blueprints()

# IClick

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<section class="container">
<h1>Privacy Policy</h1>
<p>Welcome to the Privacy Policy page.</p>
</section>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<section class="container">
<h1>Terms of Use</h1>
<p>Welcome to the Terms of Use page.</p>
</section>
12 changes: 12 additions & 0 deletions ckanext/digitizationknowledge/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@
</div>
</div>

{# Terms and Privacy Links #}
<div class="row mt-3">
<div class="col-12 text-center">
<small>
<a href="{{ url_for('digitizationknowledge.terms_of_use') }}" class="text-light">Terms of Use</a>
<span class="text-light mx-2">|</span>
<a href="{{ url_for('digitizationknowledge.privacy_policy') }}" class="text-light">Privacy Policy</a>
</small>
</div>
</div>


<div class="row mt-4">
<div class="col-12">
</div>
Expand Down
89 changes: 81 additions & 8 deletions ckanext/digitizationknowledge/templates/home/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,79 @@ <h2 class="mb-4 pb-2 border-bottom border-3 border-primary d-inline-block">About
<h2 class="mb-4 pb-2 border-bottom border-3 border-primary d-inline-block">Our Story</h2>
<p>For years, iDigBio has supported the biodiversity digitization community by curating resources on the iDigBio Wiki. While these pages have been an important reference for collection professionals, the community found that searching for and discovering new materials on the wiki could be cumbersome. The Digitization Knowledge Base was born from this feedback. It represents the next evolution in iDigBio's commitment to compiling and sharing community knowledge, offering a powerful and intuitive experience for all users.</p>
</section>
<!-- Account and Feature Section-->
<section class="mb-5">
<h2 class="mb-4 pb-2 border-bottom border-3 border-primary d-inline-block">Account &amp; Feature Access</h2>
<p>
Most of the functionality of the knowledge base is already available without account registratoin. However, registering for an account will allow you to save sets of resources of interest as groups for future reference, create groups that may be useful to others, and comment on resources.
Account creation is currently handled via a request form (Google Form). Once submitted, we will create your account. At this time, registration is limited to users who can provide proof of affiliation with an organization by signing up using their organization&rsquo;s email address.
</p>
<div class="row justify-content-center">
<div class="col-12 col-md-10 col-xl-8">
<div class="card border-0 shadow-sm rounded-3 overflow-hidden">
<div class="table-responsive">
<table class="table table-hover mb-0">
<thead class="bg-white">
<tr>
<th scope="col" class="text-dark ps-4 py-4 fs-5 fw-semibold"></th>
<th scope="col" class="text-dark text-center py-4 fs-5 fw-semibold">Not-Registered</th>
<th scope="col" class="text-dark text-center py-4 fs-5 fw-semibold">Registered</th>
</tr>
</thead>
<tbody class="bg-white">
<tr class="border-bottom">
<td class="ps-4 py-3"><p data-pm-slice="1 1 [&quot;list&quot;,{&quot;spread&quot;:false,&quot;start&quot;:718,&quot;end&quot;:992},&quot;regular_list_item&quot;,{&quot;start&quot;:718,&quot;end&quot;:756}]"><strong>Browse and view resource details</strong></p></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
</tr>
<tr class="border-bottom">
<td class="ps-4 py-3"><p data-pm-slice="1 1 [&quot;list&quot;,{&quot;spread&quot;:false,&quot;start&quot;:718,&quot;end&quot;:992},&quot;regular_list_item&quot;,{&quot;start&quot;:757,&quot;end&quot;:788}]"><strong>Use all search interfaces</strong></p></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
</tr>
<tr class="border-bottom">
<td class="ps-4 py-3"><p data-pm-slice="1 1 [&quot;list&quot;,{&quot;spread&quot;:false,&quot;start&quot;:718,&quot;end&quot;:992},&quot;regular_list_item&quot;,{&quot;start&quot;:789,&quot;end&quot;:831}]"><strong>View and search within public groups</strong></p></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
</tr>
<tr class="border-bottom">
<td class="ps-4 py-3"><p data-pm-slice="1 1 [&quot;list&quot;,{&quot;spread&quot;:false,&quot;start&quot;:718,&quot;end&quot;:992},&quot;regular_list_item&quot;,{&quot;start&quot;:832,&quot;end&quot;:864}]"><strong>View comments on resources</strong></p></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
</tr>
<tr>
<td class="ps-4 py-3"><p data-pm-slice="1 1 [&quot;list&quot;,{&quot;spread&quot;:false,&quot;start&quot;:718,&quot;end&quot;:992},&quot;regular_list_item&quot;,{&quot;start&quot;:865,&quot;end&quot;:892}]"><strong>Access the Search API</strong></p></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
</tr>
<tr class="border-bottom">
<td class="ps-4 py-3"><p data-pm-slice="1 1 [&quot;list&quot;,{&quot;spread&quot;:false,&quot;start&quot;:718,&quot;end&quot;:992},&quot;regular_list_item&quot;,{&quot;start&quot;:893,&quot;end&quot;:939}]"><strong>Create groups</strong></p></td>
<td class="text-center py-3"><span class="text-danger fs-4 fw-bold">✗</span></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
</tr>
<tr class="border-bottom">
<td class="ps-4 py-3"><p data-pm-slice="1 1 [&quot;list&quot;,{&quot;spread&quot;:false,&quot;start&quot;:718,&quot;end&quot;:992},&quot;regular_list_item&quot;,{&quot;start&quot;:940,&quot;end&quot;:992}]"><strong>Post comments on resources</strong></p></td>
<td class="text-center py-3"><span class="text-danger fs-4 fw-bold">✗</span></td>
<td class="text-center py-3"><span class="text-success fs-4 fw-bold">✓</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>

<!-- Our Approach Section -->
<section class="mb-5">
<h2 class="mb-4 pb-2 border-bottom border-3 border-primary d-inline-block">Our Approach</h2>
<p>Our approach is to serve as a central hub that points to the wealth of resources already created by the digitization community, rather than hosting original content directly. We enrich these resources with detailed descriptions and structured metadata to power a robust search experience, allowing users to find materials through both faceted and full-text searches. This focus on metadata enhancement makes discovery faster and more intuitive. Furthermore, we foster a collaborative environment by enabling community discussion around each resource through a commenting system, helping to collectively advance our shared expertise.</p>
</section>



<!-- Knowledge Base Scale Section -->
<section class="mb-5">
<!-- <section class="mb-5">
<h2 class="mb-4 pb-2 border-bottom border-3 border-primary d-inline-block">Roadmap</h2>
<div class="row">
<div class="col-md-6 mb-3">
Expand All @@ -41,7 +105,7 @@ <h5 class="text-info">Phase 2 - Upcoming</h5>
</div>
</div>
</div>
</section>
</section> -->

<!-- FAQ Section -->
<section class="mb-5">
Expand Down Expand Up @@ -163,12 +227,21 @@ <h6 class="card-subtitle mb-3 text-muted">iDigBio's Digitization Resources Manag
</div>
</div>
</div>

<section class="mb-5">
<h2 class="mb-4 pb-2 border-bottom border-3 border-primary d-inline-block">Get Involved &amp; Find Support</h2>
<p><strong>Report an Issue:</strong> If you encounter a bug or have a problem with the platform's functionality, please report it on our <a href="https://github.com/iDigAcademy/DigitizationKnowledge/issues">GitHub Issues page</a>.</p>
<p><strong>Contact Us:</strong> For other inquiries, you can reach us at <a href="mailto:fpichardomarcano@fsu.edu">fpichardomarcano@fsu.edu</a>.</p>
</section>
</section>

<!-- Get Involved Section -->
<section class="mb-5">
<h2 class="mb-4 pb-2 border-bottom border-3 border-primary d-inline-block">Get Involved &amp; Find Support</h2>
<p>
<strong>Report an Issue:</strong>
If you encounter a bug or have a problem with the platform's functionality, please report it on our
<a href="https://github.com/iDigAcademy/DigitizationKnowledge/issues">GitHub Issues page</a>.
</p>
<p>
<strong>Contact Us:</strong>
For other inquiries, you can reach us at
<a href="mailto:fpichardomarcano@fsu.edu">fpichardomarcano@fsu.edu</a>.
</p>
</section>

<!-- More Section -->
Expand Down
28 changes: 24 additions & 4 deletions ckanext/digitizationknowledge/views.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,37 @@
from flask import Blueprint
from flask import Blueprint, render_template


digitizationknowledge = Blueprint(
"digitizationknowledge", __name__)


def page():
return "Hello, digitizationknowledge!"
#def page():
# return "Hello, digitizationknowledge!"


#digitizationknowledge.add_url_rule(
# "/digitizationknowledge/page", view_func=page)


# Define page for Terms of Use

def terms_of_use():
"Render the Terms of use page."
return render_template('digitizationknowledge/terms_of_use.html')

digitizationknowledge.add_url_rule(
"/digitizationknowledge/page", view_func=page)
"/terms-of-use", view_func=terms_of_use
)

# Define page for privacy policy

def privacy_policy():
"Render the privacy policy page."
return render_template('digitizationknowledge/privacy_policy.html')

digitizationknowledge.add_url_rule(
"/privacy-policy", view_func=privacy_policy
)

def get_blueprints():
return [digitizationknowledge]