platform-coop-toolkit / coop-library-framework Goto Github PK
View Code? Open in Web Editor NEWCustom Post Type utilities for the Platform Co-op Resource Library.
Home Page: https://platform.coop
License: Other
Custom Post Type utilities for the Platform Co-op Resource Library.
Home Page: https://platform.coop
License: Other
Users should be able to submit resources.
A public-facing user submission form should allow resources to be submitted as "Pending", and should notify site administrators.
Not applicable.
Not applicable.
Is your feature request related to a problem? Please describe.
Some custom fields (metadata) need to be translated; some don't and should just be synchronized (see: https://polylang.pro/doc/synchronize-metadatas-between-translations/). Polylang allows developers to use a filter to control which post meta is copied and which isn't: https://polylang.pro/doc/filter-reference/#pll_copy_post_metas
Describe the solution you'd like
Metadata which do not require translation should be copied between translated resources; metadata which requires translation should be excluded.
Describe the bug
String location references in languages/learning-commons-framework.pot
do not reference the correct locations in functions/metadata.php
.
To Reproduce
Example languages/learning-commons-framework.pot:89
:
#: includes/functions/core.php:161
msgid "Are you sure you want to remove this revision?"
Expected behavior
Example languages/learning-commons-framework.pot:89
:
#: includes/functions/metadata.php:238
msgid "Are you sure you want to remove this revision?"
Changed core.php:161
to metadata.php:238
.
Is your feature request related to a problem? Please describe.
Resource titles should not be an optional field.
Describe the solution you'd like
Titles should be validated as required fields.
Describe alternatives you've considered
Not applicable.
Additional context
Not applicable.
Is your feature request related to a problem? Please describe.
Required fields should be validated on form submission.
Describe the solution you'd like
When the user tries to save a resource with missing (required) information, they should be alerted as to what information is missing and the form submission should be halted.
Describe alternatives you've considered
Not applicable.
Additional context
See:
Describe the bug
When submitting a resource with an error (i.e. a missing publication year, or invalid URL for Publisher link), causes the Permanent Link field will become highlighted in red (as though it has an error) even though the value of the permanent link field may be valid.
To Reproduce
Steps to reproduce the behaviour:
google.com
).foo
for Publisher Link.Expected behaviour
If there are errors on the form, and the Permanent Link field is valid, then the Permanent Link field should not appear with error highlighting.
Desktop (please complete the following information):
Is your feature request related to a problem? Please describe.
Currently, required fields are validated on form submission but they should be labelled as such prior to form validation.
Describe the solution you'd like
Add (Required)
after the label of each required field.
Describe alternatives you've considered
Not applicable.
Additional context
Not applicable.
It would be great to rewrite search URLs.
https://wordpress.org/plugins/nice-search/
Custom thing?
Not applicable
Is your feature request related to a problem? Please describe.
Not all resources have a publication date with day and month. Some just have a publication year. Currently, publication date is a required field, so this doesn't work.
Describe the solution you'd like
The publication year field should be required and the publication date field should be replace with optional publication month and day fields.
Describe alternatives you've considered
Not applicable.
Additional context
Not applicable.
Is your feature request related to a problem? Please describe.
With expanded resource metadata, the resource editing view can be a bit overwhelming.
Describe the solution you'd like
We should review the resource metadata and regroup them to facilitate easier data entry.
Describe alternatives you've considered
Not applicable.
Additional context
No
the Goals section is the only one that does not have the ability to have a Parent Goal and a Sub Goal, which is now needed - Thanks!
With the ACF URL field, it requires http://
or 'https://`, otherwise the form will not validate and an error is shown. This can be confusing as the URLs may be "valid" and the instructions do not indicate the necessary formatting.
Preferred solution is to add http://
or https://
if it is missing from the input upon form submission.
Easy solution, but more of a burden for the user, is to update the description string to indicate that https://
or http://
prefix is required. The resulting error message should also display a helpful instruction as well.
Is your feature request related to a problem? Please describe.
Many current resources include DOI, ISBN, or ISSN identifiers. These need to be preserved when importing the resources.
Describe the solution you'd like
We need fields for these identifiers, ideally with format validation.
Describe alternatives you've considered
Fields could be added at a later date as long as the identifiers are added to the resource metadata.
Additional context
Describe the bug
Text fields with URL validation does not catch improperly formed URLs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect an error message to be presented upon submission of the form, and on blur of the URL input field.
Desktop (please complete the following information):
72 characters, please!
Describe the bug
When adding or editing a Resource, form validation does not catch invalid date input. Two digit year values has '20' prepended, and invalid month and day values are accepted.
To Reproduce
Steps to reproduce the behavior:
22-22-33
.Expected behavior
An error message should be displayed for a date that does not follow the YYYY-MM-DD format, and the submission rejected.
Desktop (please complete the following information):
As described in platform-coop-toolkit/coop-library#168, some tags (goals and topics) need to be put in a custom order.
Allow users to manage the order of these tags using term meta.
Not applicable.
Searching for "Up&Go" does not return the relevant resource (titled "Case Study: Up&Go").
Steps to reproduce the behavior:
The resource with matching title should be shown.
This only appears to occur with this particular string which suggests that the issue is related to the ampersand in the text.
Is your feature request related to a problem? Please describe.
The Resource form should have an input field where Perma.cc or Archive.org resource links can be specified as a way of adding an archive version of the resource to combat 'link rot'.
Describe the solution you'd like
An input field where one or more Perma.cc or Archive.org links can be specified. Since Perma.cc and Archive.org saves only 1 page per URL (i.e. the services do not crawl pages), multiple Perma.cc and Archive.org links may be required to capture the content of the original source if the original source spans multiple pages / URLs.
URLs should be validated to make sure they are Archive.org or Perma.cc domains.
Should also be able to add, remove, edit URLs for the resource.
Additional context
See this wiki page for additional background information on Perma.cc and Archive.org usage / integration: https://wiki.fluidproject.org/display/fluid/Resource+preservation+research
Is your feature request related to a problem? Please describe.
Currently the readme is still just original content from 10up/plugin-scaffold.
Describe the solution you'd like
We should replace it with this plugin's readme, ideally using the same method found in platform-coop-toolkit/pcc-framework.
Describe alternatives you've considered
Not applicable.
Additional context
Not applicable.
*Required.
Is your feature request related to a problem? Please describe.
For resources with long titles, having a short title field would be helpful to allow a more concise display (e.g. on card views).
Describe the solution you'd like
A new (optional) field called Short Title.
Describe alternatives you've considered
Not applicable.
Additional context
Not applicable.
Describe the bug
Blank repeater fields are not properly ignored if blank. Specifically:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Any empty repeater field should be ignored (i.e. not validated) and not submitted as part of the Resource metadata.
Desktop (please complete the following information):
Is your feature request related to a problem? Please describe.
Publications (e.g. a magazine or journal) are distinct from publishers (e.g. a media company or a university press). Many resources already reflect this.
Describe the solution you'd like
We need an optional field for the publication name as distinct from the publisher name.
Describe alternatives you've considered
Not applicable.
Additional context
Not applicable.
Translation files need to be updated automatically.
Every time a commit is made to the dev branch, a GitHub Action should be run to regenerate translation files.
Not applicable.
Based on https://github.com/varunsridharan/action-wp-pot-generator?
ACF Pro provides built-in validation and will be easier to maintain.
Migrate existing custom fields from CMB2 to ACF Pro.
Not applicable.
Not applicable.
Is your feature request related to a problem? Please describe.
We can't assume that resources with no rights supplied are "All Rights Reserved".
Describe the solution you'd like
The default option for Rights should be "Unspecified".
Describe alternatives you've considered
We currently assume that resources with no rights supplied are "All Rights Reserved", which is a flawed assumption.
Additional context
Not applicable.
Is your feature request related to a problem? Please describe.
We need to establish server-side methods for handling faceted queries. These will be used for resource discovery via the front-end.
Describe the solution you'd like
Faceted queries need to accommodate:
Furthermore, they need to prioritize by language as specified by the user.
Describe alternatives you've considered
Not applicable.
Additional context
See:
The abstract (resource content) field allows all HTML tags supported by the WordPress classic editor. This causes weird formatting in some circumstances.
We should filter the allowed tags, restricting them to:
<p>
<em>
<strong>
<a>
(with href
and rel
attributes)<blockquote>
<cite>
<ul>
, <ol>
, and <li>
We should also modify the toolbar to remove all buttons for markup that we don't want added.
Not applicable.
Not applicable.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.