Changelog
Source:NEWS.md
c2z (development version)
Major
-
Cristincan now use thefutureversepackage (withprogressr) for parallel processing. This can greatly reduce runtime.
Breaking
- Moved
CristinMonthlyandCristinUnits, including several internal functions (e.g.,CristinMailandCristinWebDict) toc2z4unito keep maintenance simpler.
Minor
Fixed a bug in
CristinSupportedwhere presentationType were always set to English regardless of requested language.Added the internal function
ApaTitleto helpe with producing titles in Title Case when the input is all CAPITAL LETTERS.Added the options ot use
post.token, Zotero-Write-Token (TRUE) or If-Unmodified-Since-Version (FALSE), inZoteroPostMade
zotero.typesglobally available.Slimmed down
ZoteroWrangler, in preperation for adding the new Cris/NVA. Added several functions to aid the process of enhancing metadata usingZoteroEnhancerandProcessDatafor parallel processing.Fixed a bug in
ZoteroIndexwhere items use shortTitle and not title.Fixed some changes in
ZoteroGovdue to changes in the API of regjeringen.noFixed a bug in internal function
CleanTextthat failed to remove dots.Fixed a bug in
ZoteroDoiwhere a regex pattern caused error in some DOis.Fixed a bug in
ZoteroGetwhere Zotero now enforces a limit of 25 items per query for bibliography and citation data.Fixed a bug in
CristinWranglerwhere an empty creators field caused an error when deciding to use external data or Cristin data.Added internal function
CrossrefRetractedto check whether CrossRef (Retraction Watch) has marked a publication/DOI as retracted in api.labs. If true [RETRACTED] will be added as a prefix to the title of the publication.Added internal functions
UnescapeHtmlandHtmlCollapseto improve fetching abstracts from XML.Added internal function
SemanticScholarto provide better abstracts for ZoteroDoi (if usinguse.semanticis set to TRUE).Added a internal function
InsertUpdateto update/insert zotero items by key.Fixed minor bug in
CristinWranglerwith empty external.creatorsFixed a bug in
ZoteroDeletewhere the function failed to get the latest version of the library.Exported the previously internal
ZoteroFormat. It can now check the structure of a provided tibble/dataframe using thecheck.structureargument.Fixed an error in
DoiCrossrefwhere sub.type was length > 1 and type (e.g., “preprint”) was not succesfully extracted with rvest.Made
CristinWranglersomewhat less cumbersome.Made a small adjustment to
ZoteroIsbnwhere some edited books contained both 100 and 700 fields leading to an error where first editor was also listed as first author rather than only listing editors.Added the option to filter out non-nvi publication in
Cristin, using the logical argumentnvi, default FALSE.Improved speed of
ZoteroDelete.Moved
Clsout ofZoteroExportfor more universal handling.Fixed a bug in
ZoteroExportwhereZoteroGETreported wrong number of results.Added a
full.updateargument (default: TRUE) toCristinMonthly, if set to false the function will only create bibliography for new items.Fixed a bug in
ZoteroLibrarywhere function did not return NULL when searching for non-existing collection keys.Fixed a bug in
ZoteroGETwhere using item/collection keys would only result in a maximum result of 100 items/collections.Creted an internal function
Dictto handle language output, for the moment English and Norwegian.Minor adjustments to
CristinMonthlyand the internal functionsCristinMailandCristinWeb.Removed limit from Zotero API when requsted format is versions or keys.
c2z 0.2.0
CRAN release: 2023-08-10
Feature
Added the function
Cristinunitsto create a tibble with information about (nested) units in Cristin (e.g., A University -> Faculties -> Departments -> Groups). The tibble can than be used to extract data for each unit from Cristin.Added the function
CristinMonthlyto create a per month Zotero collections for units defined inCristinunits. It may use the internal functionsCristinMailandCristinWebto create a newsletter using HTML for email and web, respectively.
Critical
Fixed a bug in
ZoteroFormatwhereparentCollectionkey, in some special cases, were identified as logical rather than character (Zotero uses a combination of logical and character in this field). The error caused an error in combining some collections.Fixed a bug in
ZoteroWranglerwhere book sections with empty creators in main book caused a NA error.
Moderate
- Made handling of API status codes consistent throughout the package. Removed the now somewhat redundant
debugchecks.
Minor
Fixed a bug in
CristinWranglerwhere successfully identified duplicates with modified content in Cristin failed to update key, version and collections, thus creating new copies rather than updating existing items.Removed hyphens from ISBN when importing from
Cristinto simplify filtering.Fixed a bug in
CristinWranglerwhereremove.nawas set to TRUE rather than forcing item-type to book (part_of) for book chapters.Fixed an issue in
ZoteroLibrarywhere zero collections were reported when finding a specific collection key.Fixed an issue in
ZoteroFormatwhere tags could be listed as either a data.frame or listFixed an issue in
CristinWranglerwherecreatorTypeof parent items are listed as authors when they are (most probably) editors.Fixed an issue in
DoiCrossrefwhere first and last names sometimes are switched due to an alt-name field in the XML.Fixed some issues with badges in
README.Made some adjustments to
ZoteroGet.bibliographynow contains, in addition tobib,bib.bodyandbib.itemseparating style form the reference.Created an internal function called
ZoteroIdto extract ids from extra field.Added some internal functions to handle dates:
Monthsto display (abbreviated) month names in Norwegian and English,ChangeDateto add/subtract date from date (e.g., days, weeks, months),FloorDateto set the first day of the month, andCeilingDateso set the last day of the month.Added a flowchart, why not.
c2z 0.1.4
CRAN release: 2023-03-23
- Resubmission to CRAN: Part Deux
Moderate
- Moved
CristinSupportedfromCristinWranglertoCristinto better manage filtering of items, and to reduce the number of lines (666) inCristinWranglerto a more manageable function (522).
Minor
Moved option to include HTML bibliography from
ZoteroExporttoZoteroLibraryto avoid any redundant API calls.Omitted the redundant “in R” at the end of title in
DESCRIPTION.Made examples in exported functions executable. All functions, except
ZoteroandCristinSupported, are set within\donttest, as the functions, either directly or indirectly calls various API’s, and may violate CRAN’s 5 second limit.
c2z 0.1.3
- Resubmission to CRAN
Critical
- Fixed an error in
ZoteroDoithat did not account for spaces within the DOI itself (e.g.,10.3390/ foods12061167)
Moderate
Made
ZoteroGetsplit upitemKeyandcollectionKeyin lists of keys based on thelimitargument, as Zotero API does not limit using multiple keys in the same fashion as ordinary query (i.e., based onstartandlimitintervals).Made retrieving bibliography and citation fields from Zotero more elegant.
c2z 0.1.1
Critical
Added an internal function
FixCreatorsto correct Zotero items where the creators is listed bylastNamebut with an emptyfirstNamerather than usingnameonly. The error caused an crash inZoteroIndex.Fixed
Zoteronot being able to use an empty API key to access public libraries
Minor
Added examples and a vignette prior to CRAN submission.
Made it optional to include items from
ZoteroLibrary.Added an internal function
ErrorCodeto provide information on JSON response codes.Made some adjustments to
ZoteroGetwith an option to define results name (e.g., as collections or items).Made some adjustments to the noise levels of the
silentargument, being somewhat inconsistent between the different functions. Still not happy with the amount of feedback for recursive operations.Fixed about a million typos.
c2z 0.1.0
- Initial launch with the following features:
- Add, edit, copy, and delete (nested) Zotero collections.
- Add, edit, copy, and delete Zotero items, including attachments.
- Export Zotero items in R as BibLaTeX (and other formats).
- (Batch) import common references from Cristin.
- Currently supported formats: books (e.g., monographs, anthologies), book chapters, journal articles, presentations (e.g., lectures), and opinions pieces.
- (Batch) import references from ISBN and DOI.
- Currently supported formats: books, book chapters, conference papers, journal articles
- (Batch) import Norwegian white papers (i.e., Meld. St., St.meld.) and official Norwegian reports (i.e., NOU).
- Batch import R packages from CRAN.
- Search CrossRef, automatically and manually, by author(s), title, and year.
- Augment Cristin references through ISBN, DOI, or CrossRef search.
- Added https://oeysan.github.io/c2z/ for documentation
- Added a
NEWS.mdfile to track changes to the package. - Added a
TODO.mdfile to track future work on the package. - Added a
README.mdfile as an introduction to the package. - Added a
CONDUCT.mdbecause people should be nice. - Added a
badge.webpjust because