Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
4.9.0 (#266)
Browse files Browse the repository at this point in the history
* Early progress on reference editing feature

* feat: Add ability to edit references

This adds the ability to edit references by double clicking a reference
in the reference list.

This commit also improves test coverage across the board.

Closes #261

* test: improve test coverage

* chore: update dependencies

* swap out react-addons-css-transition-group for react-motion

* feat: improve animation smoothing

* chore: update i18n for new views

* chore: update i18n

* chore: update deps

* Prepare 4.9.0 release

**Styles Added:**
- Harvard - Universiti Teknologi Malaysia
- Journal of Dairy Science
- Journal of Instrumentation
- Revista Latinoamericana de Recursos Naturales
  • Loading branch information
dsifford authored Dec 12, 2016
1 parent 28ec535 commit 1321a5c
Show file tree
Hide file tree
Showing 40 changed files with 1,738 additions and 752 deletions.
2 changes: 1 addition & 1 deletion ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Please use this template for all bug reports.
Before submitting an issue, please try disabling all other plugins to ensure issue is isolated within ABT
-->

**ABT Version:** 4.8.1
**ABT Version:** 4.9.0

<!-- Which version of PHP are you using with your WordPress installation? -->
**PHP Version:** 5.6
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "academic-bloggers-toolkit",
"version": "4.8.1",
"version": "4.9.0",
"description": "A plugin extending the functionality of WordPress for Academic Blogging.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -30,17 +30,17 @@
"homepage": "https://github.com/dsifford/academic-bloggers-toolkit#readme",
"devDependencies": {
"autoprefixer": "^6.5.3",
"babel-core": "^6.17.0",
"babel-core": "^6.20.0",
"babel-loader": "^6.2.9",
"babel-polyfill": "^6.16.0",
"babel-polyfill": "^6.20.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-react": "^6.16.0",
"babel-register": "^6.16.3",
"browser-sync": "^2.18.2",
"browser-sync": "^2.18.5",
"css-loader": "^0.26.1",
"del": "^2.2.2",
"enzyme": "^2.6.0",
"eslint": "^3.11.1",
"eslint": "^3.12.0",
"eslint-config-airbnb-base": "^10.0.1",
"eslint-plugin-import": "^2.2.0",
"gulp": "gulpjs/gulp#4.0",
Expand All @@ -56,10 +56,11 @@
"react-addons-test-utils": "^15.4.1",
"style-loader": "^0.13.1",
"stylint": "^1.5.7",
"ts-loader": "^1.3.0",
"ts-loader": "^1.3.2",
"tslint": "^4.0.2",
"tslint-microsoft-contrib": "^2.0.14",
"tslint-react": "^2.0.0",
"typescript": "next",
"webpack": "beta",
"webpack-bundle-analyzer": "^2.1.1",
"webpack-stream": "^3.2.0"
Expand All @@ -68,18 +69,17 @@
"@types/enzyme": "^2.5.39",
"@types/jest": "^16.0.1",
"@types/node": "^6.0.51",
"@types/react": "^0.14.54",
"@types/react-addons-css-transition-group": "^0.14.18",
"@types/react": "^0.14.55",
"@types/react-dom": "^0.14.19",
"@types/react-motion": "^0.0.20",
"bibtex-parse-js": "^0.0.23",
"mobx": "^2.6.5",
"mobx": "^2.7.0",
"mobx-react": "^4.0.3",
"react": "^15.4.1",
"react-addons-css-transition-group": "^15.4.1",
"react-addons-shallow-compare": "^15.4.1",
"react-dom": "^15.4.1",
"react-virtualized-select": "^2.1.1",
"typescript": "next"
"react-motion": "^0.4.5",
"react-virtualized-select": "^2.1.1"
},
"jest": {
"transform": {
Expand Down
36 changes: 20 additions & 16 deletions scripts/fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports.reflistState = {
citationID: 'htmlSpanId',
citationItems: [
{
id: 'citationId',
id: 'aaaaaaaa',
item: {
ISSN: '3',
PMID: '12345',
Expand All @@ -24,7 +24,7 @@ exports.reflistState = {
'container-title-short': 'J Test',
'container-title': 'Journal of Testing',
edition: '2',
id: 'citationId',
id: 'aaaaaaaa',
issue: '4',
issued: { 'date-parts': [['2016', '08', '19']] },
journalAbbreviation: 'J Test',
Expand All @@ -40,7 +40,7 @@ exports.reflistState = {
},
},
{
id: 'citationId',
id: 'bbbbbbbb',
item: {
ISSN: '3',
PMID: '12345',
Expand All @@ -50,7 +50,7 @@ exports.reflistState = {
'container-title-short': 'J Test',
'container-title': 'Journal of Testing',
edition: '2',
id: 'citationId',
id: 'bbbbbbbb',
issue: '4',
issued: { 'date-parts': [['2016', '08', '19']] },
journalAbbreviation: 'J Test',
Expand Down Expand Up @@ -79,7 +79,7 @@ exports.reflistState = {
'container-title-short': 'J Test',
'container-title': 'Journal of Testing',
edition: '2',
id: 'citationId',
id: 'aaaaaaaa',
issue: '4',
issued: { 'date-parts': [['2016', '08', '19']] },
journalAbbreviation: 'J Test',
Expand All @@ -94,7 +94,7 @@ exports.reflistState = {
volume: '6',
},
{
id: 'citationId',
id: 'aaaaaaaa',
sortkeys: ['0'],
},
]],
Expand All @@ -103,7 +103,7 @@ exports.reflistState = {
citationID: 'otherHtmlSpanId',
citationItems: [
{
id: 'otherCitationId',
id: 'bbbbbbbb',
item: {
ISSN: '3',
PMID: '12345',
Expand All @@ -113,7 +113,7 @@ exports.reflistState = {
'container-title-short': 'J Test',
'container-title': 'Journal of Testing',
edition: '2',
id: 'otherCitationId',
id: 'bbbbbbbb',
issue: '4',
issued: { 'date-parts': [['2016', '08', '19']] },
journalAbbreviation: 'J Test',
Expand Down Expand Up @@ -142,7 +142,7 @@ exports.reflistState = {
'container-title-short': 'J Test',
'container-title': 'Journal of Testing',
edition: '2',
id: 'otherCitationId',
id: 'bbbbbbbb',
issue: '4',
issued: { 'date-parts': [['2016', '08', '19']] },
journalAbbreviation: 'J Test',
Expand All @@ -157,14 +157,14 @@ exports.reflistState = {
volume: '6',
},
{
id: 'otherCitationId',
id: 'bbbbbbbb',
sortkeys: ['0'],
},
]],
},
],
CSL: {
citationId: {
aaaaaaaa: {
ISSN: '3',
PMID: '12345',
URL: 'http://www.test.com',
Expand All @@ -173,7 +173,7 @@ exports.reflistState = {
'container-title-short': 'J Test',
'container-title': 'Journal of Testing',
edition: '2',
id: 'citationId',
id: 'aaaaaaaa',
issue: '4',
issued: { 'date-parts': [['2016', '08', '19']] },
journalAbbreviation: 'J Test',
Expand All @@ -187,7 +187,7 @@ exports.reflistState = {
type: 'article-journal',
volume: '6',
},
otherCitationId: {
bbbbbbbb: {
ISSN: '3',
PMID: '12345',
URL: 'http://www.test.com',
Expand All @@ -196,7 +196,7 @@ exports.reflistState = {
'container-title-short': 'J Test',
'container-title': 'Journal of Testing',
edition: '2',
id: 'otherCitationId',
id: 'bbbbbbbb',
issue: '4',
issued: { 'date-parts': [['2016', '08', '19']] },
journalAbbreviation: 'J Test',
Expand All @@ -210,7 +210,7 @@ exports.reflistState = {
type: 'article-journal',
volume: '6',
},
uncitedCitationId: {
cccccccc: {
ISSN: '3',
PMID: '12345',
URL: 'http://www.test.com',
Expand All @@ -219,7 +219,7 @@ exports.reflistState = {
'container-title-short': 'J Test',
'container-title': 'Journal of Testing',
edition: '2',
id: 'uncitedCitationId',
id: 'cccccccc',
issue: '4',
issued: { 'date-parts': [['2016', '08', '19']] },
journalAbbreviation: 'J Test',
Expand Down Expand Up @@ -262,6 +262,10 @@ exports.ABT_i18n = {
},
},
tinymce: {
editReferenceWindow: {
title: 'Edit Reference',
confirm: 'Confirm',
},
importWindow: {
title: 'Import References from File',
upload: 'Choose File',
Expand Down
4 changes: 2 additions & 2 deletions src/academic-bloggers-toolkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
* Plugin Name: Academic Blogger's Toolkit
* Plugin URI: https://wordpress.org/plugins/academic-bloggers-toolkit/
* Description: A plugin extending the functionality of Wordpress for academic blogging
* Version: 4.8.1
* Version: 4.9.0
* Author: Derek P Sifford
* Author URI: https://github.com/dsifford
* License: GPL3 or later
* Text Domain: academic-bloggers-toolkit
*/

define('ABT_VERSION', '4.8.1');
define('ABT_VERSION', '4.9.0');

/**
* Load plugin translations
Expand Down
58 changes: 33 additions & 25 deletions src/academic-bloggers-toolkit.pot
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright (C) 2016 Academic Blogger's Toolkit 4.8.1
# This file is distributed under the same license as the Academic Blogger's Toolkit 4.8.1 package.
# Copyright (C) 2016 Academic Blogger's Toolkit 4.9.0
# This file is distributed under the same license as the Academic Blogger's Toolkit 4.9.0 package.
msgid ""
msgstr ""
"Project-Id-Version: Academic Blogger's Toolkit 4.8.1\n"
"Project-Id-Version: Academic Blogger's Toolkit 4.9.0\n"
"Report-Msgid-Bugs-To: https://github.com/dsifford/academic-bloggers-toolkit/issues\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -220,7 +220,7 @@ msgstr ""
msgid "Number or Range of Numbers (100-200)"
msgstr ""

#: lib/php/fieldmaps.php:348, lib/php/i18n.php:98
#: lib/php/fieldmaps.php:348, lib/php/i18n.php:103
msgid "ISBN"
msgstr ""

Expand Down Expand Up @@ -356,7 +356,7 @@ msgstr ""
msgid "DOI"
msgstr ""

#: lib/php/fieldmaps.php:849, lib/php/fieldmaps.php:921, lib/php/fieldmaps.php:993, lib/php/fieldmaps.php:1133, lib/php/fieldmaps.php:1296, lib/php/i18n.php:100
#: lib/php/fieldmaps.php:849, lib/php/fieldmaps.php:921, lib/php/fieldmaps.php:993, lib/php/fieldmaps.php:1133, lib/php/fieldmaps.php:1296, lib/php/i18n.php:105
msgid "URL"
msgstr ""

Expand Down Expand Up @@ -537,86 +537,94 @@ msgid "Uncited Items"
msgstr ""

#: lib/php/i18n.php:69
msgid "Import"
msgid "Edit Reference"
msgstr ""

#: lib/php/i18n.php:70
msgid "Confirm"
msgstr ""

#: lib/php/i18n.php:74
msgid "Import"
msgstr ""

#: lib/php/i18n.php:75
msgid "Import References from File"
msgstr ""

#: lib/php/i18n.php:71
#: lib/php/i18n.php:76
msgid "Choose File"
msgstr ""

#: lib/php/i18n.php:75
#: lib/php/i18n.php:80
msgid "Select"
msgstr ""

#: lib/php/i18n.php:76
#: lib/php/i18n.php:81
msgid "Next"
msgstr ""

#: lib/php/i18n.php:77
#: lib/php/i18n.php:82
msgid "Previous"
msgstr ""

#: lib/php/i18n.php:78, lib/php/i18n.php:99
#: lib/php/i18n.php:83, lib/php/i18n.php:104
msgid "Search"
msgstr ""

#: lib/php/i18n.php:79, lib/php/i18n.php:89
#: lib/php/i18n.php:84, lib/php/i18n.php:94
msgid "Search PubMed for Reference"
msgstr ""

#: lib/php/i18n.php:80
#: lib/php/i18n.php:85
msgid "View"
msgstr ""

#: lib/php/i18n.php:85
#: lib/php/i18n.php:90
msgid "Add Manually"
msgstr ""

#: lib/php/i18n.php:86, lib/php/i18n.php:109
#: lib/php/i18n.php:91, lib/php/i18n.php:114
msgid "Add Reference"
msgstr ""

#: lib/php/i18n.php:87
#: lib/php/i18n.php:92
msgid "Add with Identifier"
msgstr ""

#: lib/php/i18n.php:88
#: lib/php/i18n.php:93
msgid "Insert citation inline"
msgstr ""

#: lib/php/i18n.php:90
#: lib/php/i18n.php:95
msgid "Search PubMed"
msgstr ""

#: lib/php/i18n.php:93
#: lib/php/i18n.php:98
msgid "DOI/PMID/PMCID"
msgstr ""

#: lib/php/i18n.php:96
#: lib/php/i18n.php:101
msgid "Autocite"
msgstr ""

#: lib/php/i18n.php:97
#: lib/php/i18n.php:102
msgid "Citation Type"
msgstr ""

#: lib/php/i18n.php:103
#: lib/php/i18n.php:108
msgid "Add Contributor"
msgstr ""

#: lib/php/i18n.php:104
#: lib/php/i18n.php:109
msgid "Contributors"
msgstr ""

#: lib/php/i18n.php:105
#: lib/php/i18n.php:110
msgid "Given Name, M.I."
msgstr ""

#: lib/php/i18n.php:106
#: lib/php/i18n.php:111
msgid "Surname"
msgstr ""

Expand Down
Loading

0 comments on commit 1321a5c

Please sign in to comment.