diff --git a/ckanext/digitizationknowledge/plugin.py b/ckanext/digitizationknowledge/plugin.py index 5fb28fd..abbe949 100644 --- a/ckanext/digitizationknowledge/plugin.py +++ b/ckanext/digitizationknowledge/plugin.py @@ -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 @@ -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) @@ -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 diff --git a/ckanext/digitizationknowledge/templates/digitizationknowledge/privacy_policy.html b/ckanext/digitizationknowledge/templates/digitizationknowledge/privacy_policy.html new file mode 100644 index 0000000..ef881ce --- /dev/null +++ b/ckanext/digitizationknowledge/templates/digitizationknowledge/privacy_policy.html @@ -0,0 +1,4 @@ +
+

Privacy Policy

+

Welcome to the Privacy Policy page.

+
\ No newline at end of file diff --git a/ckanext/digitizationknowledge/templates/digitizationknowledge/terms_of_use.html b/ckanext/digitizationknowledge/templates/digitizationknowledge/terms_of_use.html new file mode 100644 index 0000000..30cb5f0 --- /dev/null +++ b/ckanext/digitizationknowledge/templates/digitizationknowledge/terms_of_use.html @@ -0,0 +1,4 @@ +
+

Terms of Use

+

Welcome to the Terms of Use page.

+
\ No newline at end of file diff --git a/ckanext/digitizationknowledge/templates/footer.html b/ckanext/digitizationknowledge/templates/footer.html index ca244cd..dd0c09a 100644 --- a/ckanext/digitizationknowledge/templates/footer.html +++ b/ckanext/digitizationknowledge/templates/footer.html @@ -21,6 +21,18 @@ +{# Terms and Privacy Links #} +
+
+ + Terms of Use + | + Privacy Policy + +
+
+ +
diff --git a/ckanext/digitizationknowledge/templates/home/about.html b/ckanext/digitizationknowledge/templates/home/about.html index a50360e..e04f065 100644 --- a/ckanext/digitizationknowledge/templates/home/about.html +++ b/ckanext/digitizationknowledge/templates/home/about.html @@ -17,6 +17,68 @@

About

Our Story

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.

+ +
+

Account & Feature Access

+

+ 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’s email address. +

+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Not-RegisteredRegistered

Browse and view resource details

Use all search interfaces

View and search within public groups

View comments on resources

Access the Search API

Create groups

Post comments on resources

+
+
+
+
+
@@ -24,8 +86,10 @@

Our A

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.

+ + -
+
@@ -163,12 +227,21 @@
iDigBio's Digitization Resources Manag
- -
-

Get Involved & Find Support

-

Report an Issue: If you encounter a bug or have a problem with the platform's functionality, please report it on our GitHub Issues page.

-

Contact Us: For other inquiries, you can reach us at fpichardomarcano@fsu.edu.

-
+ + + +
+

Get Involved & Find Support

+

+ Report an Issue: + If you encounter a bug or have a problem with the platform's functionality, please report it on our + GitHub Issues page. +

+

+ Contact Us: + For other inquiries, you can reach us at + fpichardomarcano@fsu.edu. +

diff --git a/ckanext/digitizationknowledge/views.py b/ckanext/digitizationknowledge/views.py index 43dbfc8..c9c86fa 100644 --- a/ckanext/digitizationknowledge/views.py +++ b/ckanext/digitizationknowledge/views.py @@ -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]