StorePapers

  • Increase font size
  • Default font size
  • Decrease font size

In this section I will describe a demonstration of StorePapers. Below are a series of tables, each of these tables represents information stored in the component. The information displayed is fictitious.

StorePapers consists of three tables.

Categories

ID

Name

1 Artículos
3 Diploma de Estudios Avanzados (DEA)
2 Tesis

 

Authors

ID

Name

4
Francisco Ruiz
2 Héctor Aguilar
3 Javier Feijoo
1 Juan Diego Jiménez

Publications

List of Articles

ID

Name

Author/s

Priority Year
Month Tex to display
2 Como no llegar tarde al trabajo Francisco Ruiz 1 2009
January Francisco Ruiz, Héctor Aguilar, Artículo,"Maneras de cocinar". Enero, 2009.
5 Diario de un novato Héctor Aguilar
Javier Feijoo
1
1
2009
February Francisco Ruiz, Artículo,"Como no llegar tarde al trabajo". Febrero, 2009.
1 Maneras de cocinar Francisco Ruiz
Héctor Aguilar
2
1
2009
October Francisco Ruiz, Héctor Aguilar, Juan Diego Jiménez, Javier Feijoo, Artículo,"Como limpiar un piso y no morir en el intento". Octubre, 2007.
4 El efecto del Microondas Javier Feijoo
Juan Diego Jiménez
1
1
2008
January Juan Diego Jiménez, Javier Feijoo, Artículo,"El efecto del Microondas". Enero, 2008.
3 Como limpiar un piso y no morir en el intento Francisco Ruiz
Héctor Aguilar
Javier Feijoo
Juan Diego Jiménez
1
1
1
1
2007
January Héctor Aguilar, Javier Feijoo, Artículo,"Diario de un novato". Enero, 2009.


In this example only have publications in the category "Artículos", if one had publications in the categories "Diploma de Estudios Avanzazdos (DEA)" and "Tesis" also show.

With information already stored in the database is to explain the code that interprets the plugin to display the information on our website. The system is similar to that used with the "mosimage". To indicate that publications want to get the query using the values of the identifiers of each of the three preceding tables. To show all posts from one category, we use the necessary code and include the ID of the category. With the examples is better understood.

The following articles are examples of content for each code of the plugin.

In the following examples of content items for each code of the plugin.

Code 1 - Author, Category

Displaying publications of the category "Articles" written by Francisco Ruiz.

{storepapers author category:ID AUTHOR:ID CATEGORY}

{storepapers author category:4:1}

If you copy the previous line and remove the two blank spaces in the query result is as follows:

{storepapersauthorcategory:4:1}

Code 2 - Author, Category, Priority

Displaying publications of the category "Articles" written by Francisco Ruiz with a priority.

{storepapers author category priority:ID AUTHOR:ID CATEGORY:PRIORITY}

{storepapers author category priority:4:1:1}

The above code shows those publications Francisco Ruiz who are in the category "Artículos" and have a priority of 1.

{storepapersauthorcategorypriority:4:1:1}

{storepapers author category priority:4:1:2}

The above code shows those publications Francisco Ruiz who are in the category "Artículos" and have a priority of 2.

{storepapersauthorcategorypriority:4:1:2}

You can see the author can choose the priority with which stores a publication that is useful when an author wants to have two or more separate lists of publications.

Code 3 - Category

Displaying all publications from category "Artículos."

{storepapers category:ID CATEGORY}

{storepapers category:1}

If you copy the previous line and remove the white space of the query result is as follows:

{storepaperscategory:1}

Code 4 - Year, Category

Displaying publications of the category "Artículos" in 2009.

{storepapers year category:ID YEAR:ID CATEGORY}

{storepapers year category:2009:1}

If you copy the previous line and remove the two blank spaces in the query result is as follows:

{storepapersyearcategory:2009:1}

Code 5 - Publication

Showing a publication as its identifier.

{storepapers publication:ID PUBLICATION}

{storepapers publication:5}

If you copy the previous line and remove the white space of the query result is as follows:

{storepaperspublication:5}

Code 6 - Author, Publications

Showing all publications written by Francisco Ruiz.

{storepapers author publications:ID AUTHOR}

{storepapers author publications:4}

If you copy the previous line and remove the two blank spaces in the query result is as follows:

{storepapersauthorpublications:4}

Code 7 - Author, Publications, Priority

Displaying all publications written by Francisco Ruiz with a priority.

{storepapers author publications priority:ID AUTHOR:PRIORITY}

{storepapers author publications priority:4:1}

The above code shows those publications Francisco Ruiz having a priority of 1.

{storepapersauthorpublicationspriority:4:1}

{storepapers author publicationspriority:4:2}

The above code shows those publications Francisco Ruiz having a priority of 2.

{storepapersauthorpublicationspriority:4:2}

You can see how the author can choose the priority with which stores a publication, this is useful when an author wants to have two or more different lists of publications.

Code 8 - Publications

Showing all publications are available in the database.

{storepapers publications:}

{storepapers publication:}

If you copy the previous line and remove the white space of the query result is as follows:

{storepaperspublications:}

Optionally you can include an option at the end of each code.

Opción 1 - LIST

The "LIST" provides three different ways to show the query on the page. The "LIST" works with any of the codes seen before.

There are three possibilities, 1st "NONE", 2nd "NUMBER", 3rd "DEFAULT" or not to put anything.

Field "LIST" with the "NONE".

{storepapers year category:ID YEAR:ID CATEGORY:LIST:NONE}

{storepapers year category:2009:1:LIST:NONE}

If you copy the previous line and remove the two blank spaces in the query result is as follows:

{storepapersyearcategory:2009:1:LIST:NONE}

Field "LIST" with the "NUMBER".

{storepapers year category:ID YEAR:ID CATEGORY:LIST:NUMBER}

{storepapers year category:2009:1:LIST:NUMBER}

If you copy the previous line and remove the two blank spaces in the query result is as follows:

{storepapersyearcategory:2009:1:LIST:NUMBER}

 

The option "LIST" is available since version 1.2 of the plugin StorePapers.

Opción 2 - ORDERBYDATE

The "ORDERBYDATE" provides two different ways to show the query by date of publication. The "ASC" returns publications in ascending order, first oldest depending on the year and month. The "DESC" returns the earliest publication first, according to year but the month following the first order of January and late December. The "ORDERBYDATE" works with any of the codes seen before.

There are two possibilities, 1st "ASC", 2nd "DESC", or not to put anything.

Field "ORDERBYDATE" with the "ASC".

{storepapers category:ID CATEGORY:ORDERBYDATE:ASC}

{storepapers category:1:ORDERBYDATE:ASC}

If you copy the previous line and remove the two blank spaces in the query result is as follows:

{storepaperscategory:1:ORDERBYDATE:ASC}

Field "ORDERBYDATE" with the "DESC".

{storepapers category:ID CATEGORY:ORDERBYDATE:DESC}

{storepapers category:1:ORDERBYDATE:DESC}

If you copy the previous line and remove the two blank spaces in the query result is as follows:

{storepaperscategory:1:ORDERBYDATE:DESC}

 

The option "ORDERBYDATE" is available since version 1.22 of the plugin StorePapers.



Language

Advertisement