my-language-skills / all-in-one-metadata Goto Github PK
View Code? Open in Web Editor NEWEducational Metadata for Pressbooks
License: GNU General Public License v3.0
Educational Metadata for Pressbooks
License: GNU General Public License v3.0
So that we can use aggregateRating schema in our Course and ScolarlyArticle sections.
When we use the Course itemtype, every itemprop is being doubled in the PB-Book itemprop
To build a function that checks the version of pressbooks that we need, in order for the plugin to run
citation property
Follow https://developer.wordpress.org/plugins/wordpress-org/
We are not going to publish it (not for now) but i think is better to start to follow the wordpress rules as soon as possinle, just in case.
We will make all of the necesary things and we will keep using Github, but if in the future we need to publish, will be simple and fast.
If we make a migration of the conten, we need to be able to export and import the metadata of the book.
The id of the metadata will be the name of the post. Not the ID of the post, because afther the migration, the ID will be different for each topic, but the name will be always the same.
To adapt the plugin or to write tutorials making easy to use metadata in the theme
Normally we would put the WebSite code in the footer_function as the rest of the code, with an if statement if ( is_home() ).
The problem is that in the html of the root page, the and tags are being produced twice so our microdata code is being produced twice too. (wp_footer action is being triggered after the tag)
We need to add the code for the WebSite to a new function that will be called in the header().
For site
For book
For chapter
To have many fields if are not necesary can make complicate for the editors - authors.
it is easy to extend the current types for one specific class? if somebod need to add just one type, is it easy to do and also the code is commented and also there is information in the documentation?
what about another class. it is easy to extend with another class?
do we follow all the wordpress standards?
Now
if: PB is not installed = do not work (warming in admin)
if: PB is lower than X = do not work (warming in admin)
else
do something = do something is not created (we did use mPDF as example and it would require to charge files in order to start)
class-pressbooks-metadata-admin.php
class-pressbooks-metadata.php
To change from book convers to the feature image of the post
To use the old plugin as a base for the new one.
http://www.uis.unesco.org/Education/Documents/isced-fields-of-education-training-2013.pdf
http://www.uis.unesco.org/Education/Documents/isced-37c-fos-review-222729e.pdf
to allow the administrator to choose with level the editors can see in the site. 1 - 2 or 3. in that way can be as complicate as the administrators whant to.
Do the administrator need to have all the options? we need to have a place where they can choose between FOS, ISCED, or other types of vocabulary or just to have empty fields.
Author from PB Chapter metadata instead of WP
Schoolar articlo: headline from PB Chapter Subtitles instead of Site subtitle
To create filters in the search page where we could organice the content by the metadata
Wait till news of the PB development team.
In pressbooks-metadata.php file we need to update the information
To write good documentation
Some metadata we use in ScholarlyArticle are being used in the WepPage too. To review if we need to keep them or not.
We need to use our prefix s_md not only to the fields like we did in 0.5 but to our functions too.
In class-pressbooks-metadata-plugin-metadata.php we can change the order for example from
$book_info_data = array(
'pb_cover_image' => 'image',
to
$book_info_data = array(
'image' => 'pb_cover_image',
just to do it the same way as pressbooks does
We need to prefix the field-names of the fields we use, in order to make them more clear and understandable. This way when we see for example:
We can understand that the first field is from pressbooks and the other one is from the plugin.
A good approach for now is "s_md" from metadata
https://gist.github.com/greatislander/6428f1cb4e1a3fadeae7206872b1c038
Metadata for Book cover page (not root or post)
PB don´t use all the type from the class http://schema.org/WebPage, to review and decided what to use or not to use.
upgrade till all the Types from the class http://schema.org/ScholarlyArticle
To create metadata under the atomic design principles
If some data is going to be always the same, like publishing or city of the school, the super admin must be able to choose and apply to all the site
New metabox in the chapter level with bibliography links (and Add New like the contributing authors).
To use the classes http://schema.org/WebSite with all the types.
To activate excerpt and featured image section in post level, so we can attach the schemas "about" and "image" from CreativeWork in ScorarlyArticle properly.
Write a new analytic documentation file about the schema properties that we use. It needs to be like a map with a url to the schema.org site in every property
Do we have the plugin under the wordpress standards?
do we have the plugin commented as it should be? easy and simple?
Create an audio metabox so that we can add audio files and use them in the schema with the "audio" property.
<div itemscope itemtype="http://schema.org/AudioObject">
<span itemprop="name"><b>12oclock_girona.mp3</b></span>
<script type="text/javascript">
var fo = new FlashObject("http://google.com/flash/preview-player.swf",
"flashPlayer_719", "358", "16", "6", "#FFFFFF");fo.addVariable("url","http://media.freesound.org/data/0/previews/719__elmomo__12oclock_girona_preview.mp3");fo.addVariable("autostart", "0");fo.write("flashcontent_719");
</script>
<meta itemprop="encodingFormat" content="mp3" />
<meta itemprop="contentUrl" content="http://media.freesound.org/data/0/previews/719__elmomo__12oclock_girona_preview.mp3" />
<span class="description">
<meta itemprop="duration" content="T0M15S" />
<span itemprop="description">Recorded on a terrace of Girona a sunday morning</span>
</span>
</div>
Now, PB don´t use all the types of the classe Books, we need to extend http://schema.org/Book
A place where we could se the number of books in each category (back-end and front-end) and acces to the books. For each type we have several options, the list of all the books with each elemento fo the vocabulary for each type)
The 3 different properties we can add are:
courseCode (Course Code can be a text field)
coursePrerequisites (These are the requirements for taking the course. We will build a new field under Educational level, and it will use the same framework)
hasCourseInstance (This one uses courseMode and instructor. For more information see https://schema.org/CourseInstance)
The name of the file is too big. Now it represents the name of the metabox the fields are inside, but we can rename it to "class-pressbooks-metadata-course-metadata.php" to represent the schema type that all these fields are being used to.
Then change the name in the hook inside class-pressbooks-metadata.php too.
the years of the ISCED levels is an example, each country is different.
Also maybe to add new elements to the descriptors
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.