From 7262f0c49249072966f56c751d8e1d07a7162363 Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 16:25:57 -0500 Subject: [PATCH 01/15] Remove vendor dir --- .../vendor/audiolabs/bibtexparser/.gitignore | 3 - .../vendor/audiolabs/bibtexparser/.travis.yml | 9 - .../vendor/audiolabs/bibtexparser/LICENSE.md | 7 - .../vendor/audiolabs/bibtexparser/README.md | 21 - .../audiolabs/bibtexparser/composer.json | 24 - .../audiolabs/bibtexparser/phpunit.xml.dist | 17 - .../BibtexParser/BibtexFormatter.php | 96 -- .../AudioLabs/BibtexParser/BibtexParser.php | 111 -- .../tests/BibtexFormatterTest.php | 17 - .../bibtexparser/tests/BibtexParserTest.php | 12 - .../tests/Fixures/publications.bib | 30 - .../includes/vendor/autoload.php | 7 - .../locales/.gitignore | 3 - .../citation-style-language/locales/.rspec | 3 - .../locales/.travis.yml | 18 - .../citation-style-language/locales/Gemfile | 7 - .../locales/Gemfile.lock | 47 - .../citation-style-language/locales/README.md | 16 - .../citation-style-language/locales/Rakefile | 17 - .../locales/locales-af-ZA.xml | 312 ---- .../locales/locales-ar.xml | 253 --- .../locales/locales-bg-BG.xml | 312 ---- .../locales/locales-ca-AD.xml | 312 ---- .../locales/locales-cs-CZ.xml | 319 ---- .../locales/locales-cy-GB.xml | 312 ---- .../locales/locales-da-DK.xml | 315 ---- .../locales/locales-de-AT.xml | 334 ---- .../locales/locales-de-CH.xml | 318 ---- .../locales/locales-de-DE.xml | 331 ---- .../locales/locales-el-GR.xml | 314 ---- .../locales/locales-en-GB.xml | 357 ---- .../locales/locales-en-US.xml | 357 ---- .../locales/locales-es-CL.xml | 310 ---- .../locales/locales-es-ES.xml | 309 ---- .../locales/locales-es-MX.xml | 351 ---- .../locales/locales-et-EE.xml | 309 ---- .../locales/locales-eu.xml | 309 ---- .../locales/locales-fa-IR.xml | 312 ---- .../locales/locales-fi-FI.xml | 318 ---- .../locales/locales-fr-CA.xml | 317 ---- .../locales/locales-fr-FR.xml | 317 ---- .../locales/locales-he-IL.xml | 315 ---- .../locales/locales-hr-HR.xml | 309 ---- .../locales/locales-hu-HU.xml | 313 ---- .../locales/locales-id-ID.xml | 321 ---- .../locales/locales-is-IS.xml | 312 ---- .../locales/locales-it-IT.xml | 309 ---- .../locales/locales-ja-JP.xml | 315 ---- .../locales/locales-km-KH.xml | 312 ---- .../locales/locales-ko-KR.xml | 312 ---- .../locales/locales-lt-LT.xml | 328 ---- .../locales/locales-lv-LV.xml | 361 ---- .../locales/locales-mn-MN.xml | 312 ---- .../locales/locales-nb-NO.xml | 309 ---- .../locales/locales-nl-NL.xml | 328 ---- .../locales/locales-nn-NO.xml | 309 ---- .../locales/locales-pl-PL.xml | 312 ---- .../locales/locales-pt-BR.xml | 324 ---- .../locales/locales-pt-PT.xml | 320 ---- .../locales/locales-ro-RO.xml | 311 ---- .../locales/locales-ru-RU.xml | 321 ---- .../locales/locales-sk-SK.xml | 318 ---- .../locales/locales-sl-SI.xml | 312 ---- .../locales/locales-sr-RS.xml | 312 ---- .../locales/locales-sv-SE.xml | 322 ---- .../locales/locales-th-TH.xml | 309 ---- .../locales/locales-tr-TR.xml | 315 ---- .../locales/locales-uk-UA.xml | 312 ---- .../locales/locales-vi-VN.xml | 315 ---- .../locales/locales-zh-CN.xml | 205 --- .../locales/locales-zh-TW.xml | 209 --- .../locales/locales.json | 258 --- .../locales/spec/locales_spec.rb | 44 - .../locales/spec/repository_spec.rb | 53 - .../locales/spec/spec_helper.rb | 35 - .../styles-distribution/apa.csl | 720 -------- .../chicago-annotated-bibliography.csl | 1403 ---------------- .../modern-language-association.csl | 290 ---- .../includes/vendor/composer/ClassLoader.php | 445 ----- .../includes/vendor/composer/LICENSE | 21 - .../vendor/composer/autoload_classmap.php | 9 - .../vendor/composer/autoload_files.php | 14 - .../vendor/composer/autoload_namespaces.php | 10 - .../vendor/composer/autoload_psr4.php | 18 - .../vendor/composer/autoload_real.php | 70 - .../vendor/composer/autoload_static.php | 103 -- .../includes/vendor/composer/installed.json | 693 -------- .../vendor/guzzlehttp/guzzle/CHANGELOG.md | 1264 -------------- .../includes/vendor/guzzlehttp/guzzle/LICENSE | 19 - .../vendor/guzzlehttp/guzzle/README.md | 89 - .../vendor/guzzlehttp/guzzle/UPGRADING.md | 1203 ------------- .../vendor/guzzlehttp/guzzle/composer.json | 44 - .../vendor/guzzlehttp/guzzle/src/Client.php | 414 ----- .../guzzlehttp/guzzle/src/ClientInterface.php | 84 - .../guzzle/src/Cookie/CookieJar.php | 314 ---- .../guzzle/src/Cookie/CookieJarInterface.php | 84 - .../guzzle/src/Cookie/FileCookieJar.php | 90 - .../guzzle/src/Cookie/SessionCookieJar.php | 71 - .../guzzle/src/Cookie/SetCookie.php | 404 ----- .../src/Exception/BadResponseException.php | 27 - .../guzzle/src/Exception/ClientException.php | 7 - .../guzzle/src/Exception/ConnectException.php | 37 - .../guzzle/src/Exception/GuzzleException.php | 4 - .../guzzle/src/Exception/RequestException.php | 217 --- .../guzzle/src/Exception/SeekException.php | 27 - .../guzzle/src/Exception/ServerException.php | 7 - .../Exception/TooManyRedirectsException.php | 4 - .../src/Exception/TransferException.php | 4 - .../guzzle/src/Handler/CurlFactory.php | 559 ------ .../src/Handler/CurlFactoryInterface.php | 27 - .../guzzle/src/Handler/CurlHandler.php | 45 - .../guzzle/src/Handler/CurlMultiHandler.php | 197 --- .../guzzle/src/Handler/EasyHandle.php | 92 - .../guzzle/src/Handler/MockHandler.php | 189 --- .../guzzlehttp/guzzle/src/Handler/Proxy.php | 55 - .../guzzle/src/Handler/StreamHandler.php | 533 ------ .../guzzlehttp/guzzle/src/HandlerStack.php | 273 --- .../guzzle/src/MessageFormatter.php | 182 -- .../guzzlehttp/guzzle/src/Middleware.php | 254 --- .../vendor/guzzlehttp/guzzle/src/Pool.php | 123 -- .../guzzle/src/PrepareBodyMiddleware.php | 106 -- .../guzzle/src/RedirectMiddleware.php | 237 --- .../guzzlehttp/guzzle/src/RequestOptions.php | 255 --- .../guzzlehttp/guzzle/src/RetryMiddleware.php | 112 -- .../guzzlehttp/guzzle/src/TransferStats.php | 126 -- .../guzzlehttp/guzzle/src/UriTemplate.php | 241 --- .../guzzlehttp/guzzle/src/functions.php | 331 ---- .../guzzle/src/functions_include.php | 6 - .../vendor/guzzlehttp/promises/CHANGELOG.md | 65 - .../vendor/guzzlehttp/promises/LICENSE | 19 - .../vendor/guzzlehttp/promises/Makefile | 13 - .../vendor/guzzlehttp/promises/README.md | 504 ------ .../vendor/guzzlehttp/promises/composer.json | 34 - .../promises/src/AggregateException.php | 16 - .../promises/src/CancellationException.php | 9 - .../guzzlehttp/promises/src/Coroutine.php | 151 -- .../guzzlehttp/promises/src/EachPromise.php | 229 --- .../promises/src/FulfilledPromise.php | 82 - .../guzzlehttp/promises/src/Promise.php | 280 --- .../promises/src/PromiseInterface.php | 93 - .../promises/src/PromisorInterface.php | 15 - .../promises/src/RejectedPromise.php | 87 - .../promises/src/RejectionException.php | 47 - .../guzzlehttp/promises/src/TaskQueue.php | 66 - .../promises/src/TaskQueueInterface.php | 25 - .../guzzlehttp/promises/src/functions.php | 457 ----- .../promises/src/functions_include.php | 6 - .../vendor/guzzlehttp/psr7/CHANGELOG.md | 110 -- .../includes/vendor/guzzlehttp/psr7/LICENSE | 19 - .../includes/vendor/guzzlehttp/psr7/README.md | 739 -------- .../vendor/guzzlehttp/psr7/composer.json | 39 - .../guzzlehttp/psr7/src/AppendStream.php | 233 --- .../guzzlehttp/psr7/src/BufferStream.php | 137 -- .../guzzlehttp/psr7/src/CachingStream.php | 138 -- .../guzzlehttp/psr7/src/DroppingStream.php | 42 - .../vendor/guzzlehttp/psr7/src/FnStream.php | 149 -- .../guzzlehttp/psr7/src/InflateStream.php | 52 - .../guzzlehttp/psr7/src/LazyOpenStream.php | 39 - .../guzzlehttp/psr7/src/LimitStream.php | 155 -- .../guzzlehttp/psr7/src/MessageTrait.php | 183 -- .../guzzlehttp/psr7/src/MultipartStream.php | 153 -- .../guzzlehttp/psr7/src/NoSeekStream.php | 22 - .../vendor/guzzlehttp/psr7/src/PumpStream.php | 165 -- .../vendor/guzzlehttp/psr7/src/Request.php | 142 -- .../vendor/guzzlehttp/psr7/src/Response.php | 132 -- .../guzzlehttp/psr7/src/ServerRequest.php | 358 ---- .../vendor/guzzlehttp/psr7/src/Stream.php | 257 --- .../psr7/src/StreamDecoratorTrait.php | 149 -- .../guzzlehttp/psr7/src/StreamWrapper.php | 121 -- .../guzzlehttp/psr7/src/UploadedFile.php | 316 ---- .../vendor/guzzlehttp/psr7/src/Uri.php | 702 -------- .../guzzlehttp/psr7/src/UriNormalizer.php | 216 --- .../guzzlehttp/psr7/src/UriResolver.php | 219 --- .../vendor/guzzlehttp/psr7/src/functions.php | 828 --------- .../guzzlehttp/psr7/src/functions_include.php | 6 - .../guzzle-cache-middleware/.editorconfig | 11 - .../guzzle-cache-middleware/.gitignore | 6 - .../guzzle-cache-middleware/.travis.yml | 24 - .../kevinrob/guzzle-cache-middleware/LICENSE | 22 - .../guzzle-cache-middleware/README.md | 293 ---- .../guzzle-cache-middleware/composer.json | 46 - .../guzzle-cache-middleware/phpunit.xml | 24 - .../src/CacheEntry.php | 274 --- .../src/CacheMiddleware.php | 363 ---- .../src/KeyValueHttpHeader.php | 128 -- .../src/Storage/CacheStorageInterface.php | 30 - .../CompressedDoctrineCacheStorage.php | 74 - .../src/Storage/DoctrineCacheStorage.php | 74 - .../src/Storage/FlysystemStorage.php | 56 - .../src/Storage/LaravelCacheStorage.php | 74 - .../src/Storage/Psr16CacheStorage.php | 52 - .../src/Storage/Psr6CacheStorage.php | 92 - .../src/Storage/VolatileRuntimeStorage.php | 60 - .../Storage/WordPressObjectCacheStorage.php | 73 - .../src/Strategy/CacheStrategyInterface.php | 42 - .../Delegate/DelegatingCacheStrategy.php | 101 -- .../Delegate/RequestMatcherInterface.php | 15 - .../src/Strategy/GreedyCacheStrategy.php | 119 -- .../src/Strategy/NullCacheStrategy.php | 43 - .../src/Strategy/PrivateCacheStrategy.php | 256 --- .../src/Strategy/PublicCacheStrategy.php | 42 - .../tests/BaseTest.php | 89 - .../tests/DelegatingCacheTest.php | 67 - .../tests/GreedyCacheTest.php | 167 -- .../tests/HeaderExpireTest.php | 99 -- .../tests/KeyValueHttpHeaderTest.php | 49 - .../tests/NullCacheTest.php | 37 - .../tests/PrivateCacheTest.php | 112 -- .../tests/PublicCacheTest.php | 180 -- .../tests/RequestCacheControlTest.php | 220 --- .../RequestMatcher/ClosureRequestMatcher.php | 32 - .../tests/ResponseAgeTest.php | 55 - .../tests/ResponseCacheControlTest.php | 142 -- .../tests/ResponseVaryTest.php | 167 -- .../Strategy/GreedyCacheStrategyTest.php | 74 - .../tests/ValidationTest.php | 129 -- .../vendor/myclabs/php-enum/.gitattributes | 6 - .../vendor/myclabs/php-enum/.gitignore | 6 - .../includes/vendor/myclabs/php-enum/LICENSE | 18 - .../vendor/myclabs/php-enum/README.md | 126 -- .../vendor/myclabs/php-enum/composer.json | 31 - .../vendor/myclabs/php-enum/src/Enum.php | 186 -- .../vendor/psr/http-message/CHANGELOG.md | 36 - .../includes/vendor/psr/http-message/LICENSE | 19 - .../vendor/psr/http-message/README.md | 13 - .../vendor/psr/http-message/composer.json | 26 - .../psr/http-message/src/MessageInterface.php | 187 --- .../psr/http-message/src/RequestInterface.php | 129 -- .../http-message/src/ResponseInterface.php | 68 - .../src/ServerRequestInterface.php | 261 --- .../psr/http-message/src/StreamInterface.php | 158 -- .../src/UploadedFileInterface.php | 123 -- .../psr/http-message/src/UriInterface.php | 323 ---- .../vendor/psr/simple-cache/.editorconfig | 12 - .../vendor/psr/simple-cache/LICENSE.md | 21 - .../vendor/psr/simple-cache/README.md | 8 - .../vendor/psr/simple-cache/composer.json | 25 - .../psr/simple-cache/src/CacheException.php | 10 - .../psr/simple-cache/src/CacheInterface.php | 114 -- .../src/InvalidArgumentException.php | 13 - .../renanbr/crossref-client/.editorconfig | 10 - .../vendor/renanbr/crossref-client/.gitignore | 3 - .../vendor/renanbr/crossref-client/.php_cs | 46 - .../renanbr/crossref-client/.travis.yml | 37 - .../vendor/renanbr/crossref-client/LICENSE | 18 - .../vendor/renanbr/crossref-client/README.md | 202 --- .../renanbr/crossref-client/composer.json | 39 - .../renanbr/crossref-client/phpunit.xml | 13 - .../crossref-client/src/CrossRefClient.php | 185 -- .../crossref-client/tests/CachingTest.php | 63 - .../tests/ExistsOperationTest.php | 64 - .../tests/ParametersEncodingTest.php | 124 -- .../tests/RequestOperationTest.php | 73 - .../crossref-client/tests/TestCase.php | 32 - .../tests/TiedVersionRequestTest.php | 56 - .../crossref-client/tests/UserAgentTest.php | 56 - .../vendor/seboettg/citeproc-php/.gitignore | 6 - .../seboettg/citeproc-php/.scrutinizer.yml | 53 - .../vendor/seboettg/citeproc-php/.travis.yml | 16 - .../vendor/seboettg/citeproc-php/CHANGELOG.md | 75 - .../seboettg/citeproc-php/CONTRIBUTING.md | 51 - .../seboettg/citeproc-php/ISSUE_TEMPLATE.md | 35 - .../vendor/seboettg/citeproc-php/LICENSE.txt | 21 - .../vendor/seboettg/citeproc-php/README.md | 390 ----- .../seboettg/citeproc-php/composer.json | 54 - .../seboettg/citeproc-php/example/data.json | 158 -- .../seboettg/citeproc-php/example/index.php | 152 -- .../vendor/seboettg/citeproc-php/install.sh | 9 - .../vendor/seboettg/citeproc-php/phpunit.xml | 38 - .../src/Seboettg/CiteProc/CiteProc.php | 234 --- .../Constraint/ConstraintInterface.php | 27 - .../CiteProc/Constraint/Disambiguate.php | 36 - .../Seboettg/CiteProc/Constraint/Factory.php | 45 - .../CiteProc/Constraint/IsNumeric.php | 70 - .../CiteProc/Constraint/IsUncertainDate.php | 52 - .../CiteProc/Constraint/Jurisdiction.php | 32 - .../Seboettg/CiteProc/Constraint/Locator.php | 36 - .../Seboettg/CiteProc/Constraint/Position.php | 55 - .../src/Seboettg/CiteProc/Constraint/Type.php | 52 - .../Seboettg/CiteProc/Constraint/Variable.php | 44 - .../src/Seboettg/CiteProc/Context.php | 409 ----- .../src/Seboettg/CiteProc/Data/DataList.php | 78 - .../CiteProc/Exception/CiteProcException.php | 22 - .../Exception/ClassNotFoundException.php | 28 - .../Exception/InvalidDateTimeException.php | 14 - .../Exception/InvalidStylesheetException.php | 14 - .../src/Seboettg/CiteProc/Locale/Locale.php | 124 -- .../CiteProc/Locale/LocaleXmlParserTrait.php | 177 -- .../src/Seboettg/CiteProc/Locale/Term.php | 59 - .../CiteProc/Rendering/Choose/Choose.php | 106 -- .../CiteProc/Rendering/Choose/ChooseElse.php | 21 - .../Rendering/Choose/ChooseElseIf.php | 22 - .../CiteProc/Rendering/Choose/ChooseIf.php | 133 -- .../Seboettg/CiteProc/Rendering/Date/Date.php | 541 ------ .../CiteProc/Rendering/Date/DatePart.php | 231 --- .../CiteProc/Rendering/Date/DateTime.php | 140 -- .../src/Seboettg/CiteProc/Rendering/Group.php | 178 -- .../Seboettg/CiteProc/Rendering/HasParent.php | 20 - .../src/Seboettg/CiteProc/Rendering/Label.php | 251 --- .../Seboettg/CiteProc/Rendering/Layout.php | 258 --- .../Seboettg/CiteProc/Rendering/Name/EtAl.php | 49 - .../Seboettg/CiteProc/Rendering/Name/Name.php | 645 ------- .../CiteProc/Rendering/Name/NamePart.php | 110 -- .../CiteProc/Rendering/Name/Names.php | 368 ---- .../CiteProc/Rendering/Name/Substitute.php | 131 -- .../Seboettg/CiteProc/Rendering/Number.php | 187 --- .../Seboettg/CiteProc/Rendering/Rendering.php | 30 - .../src/Seboettg/CiteProc/Rendering/Text.php | 257 --- .../src/Seboettg/CiteProc/RenderingState.php | 35 - .../src/Seboettg/CiteProc/Root/Info.php | 103 -- .../src/Seboettg/CiteProc/Root/Root.php | 22 - .../Seboettg/CiteProc/Style/Bibliography.php | 73 - .../src/Seboettg/CiteProc/Style/Citation.php | 62 - .../Style/InheritableNameAttributesTrait.php | 627 ------- .../src/Seboettg/CiteProc/Style/Macro.php | 115 -- .../Style/Options/BibliographyOptions.php | 193 --- .../Style/Options/CitationOptions.php | 26 - .../Options/DemoteNonDroppingParticle.php | 45 - .../CiteProc/Style/Options/GlobalOptions.php | 88 - .../Style/Options/PageRangeFormats.php | 62 - .../SubsequentAuthorSubstituteRule.php | 52 - .../src/Seboettg/CiteProc/Style/Sort/Key.php | 156 -- .../src/Seboettg/CiteProc/Style/Sort/Sort.php | 162 -- .../Seboettg/CiteProc/Style/Sort/SortKey.php | 26 - .../Seboettg/CiteProc/Style/StyleElement.php | 87 - .../src/Seboettg/CiteProc/StyleSheet.php | 89 - .../Seboettg/CiteProc/Styles/AffixesTrait.php | 110 -- .../ConsecutivePunctuationCharacterTrait.php | 95 -- .../Seboettg/CiteProc/Styles/Css/CssRule.php | 70 - .../Seboettg/CiteProc/Styles/Css/CssRules.php | 32 - .../Seboettg/CiteProc/Styles/Css/CssStyle.php | 85 - .../CiteProc/Styles/DelimiterTrait.php | 37 - .../Seboettg/CiteProc/Styles/DisplayTrait.php | 61 - .../CiteProc/Styles/FormattingTrait.php | 98 -- .../Seboettg/CiteProc/Styles/QuotesTrait.php | 70 - .../CiteProc/Styles/RangeDelimiterTrait.php | 21 - .../CiteProc/Styles/TextCaseTrait.php | 94 -- .../Seboettg/CiteProc/Util/CiteProcHelper.php | 56 - .../src/Seboettg/CiteProc/Util/DateHelper.php | 118 -- .../src/Seboettg/CiteProc/Util/Factory.php | 66 - .../src/Seboettg/CiteProc/Util/NameHelper.php | 143 -- .../Seboettg/CiteProc/Util/NumberHelper.php | 159 -- .../src/Seboettg/CiteProc/Util/PageHelper.php | 86 - .../Seboettg/CiteProc/Util/StringHelper.php | 259 --- .../src/Seboettg/CiteProc/Util/Variables.php | 168 -- .../seboettg/citeproc-php/tests/bootstrap.php | 48 - .../fixtures/basic-tests/config/processor.cnf | 6 - .../processor-tests/humans/affix_Brackets.txt | 62 - .../humans/affix_InterveningEmpty.txt | 73 - .../affix_PrefixFullCitationTextOnly.txt | 64 - .../humans/affix_PrefixWithDecorations.txt | 62 - .../humans/affix_TextNodeWithMacro.txt | 45 - .../humans/api_UpdateItemsDelete.txt | 132 -- .../humans/api_names_label.txt | 78 - .../humans/bugfix-choose-github-44.txt | 97 -- .../humans/bugfix-dateparts.txt | 732 -------- .../humans/bugfix-github-36.txt | 72 - .../humans/bugfix-github-37.txt | 244 --- .../humans/bugfix-github-44.txt | 1403 ---------------- .../humans/bugfix-github-46.txt | 385 ----- .../humans/bugfix-github-47.txt | 291 ---- .../bugfix-github-49-serbian-characters.txt | 77 - .../humans/bugfix-github-49.txt | 862 ---------- .../humans/bugfix-github-50.txt | 70 - .../humans/bugfix-github-58.txt | 808 --------- .../humans/bugfix-github-60.txt | 379 ----- .../humans/bugfix-github-dates-minimal.txt | 52 - .../humans/bugfix-github-dates.txt | 515 ------ .../condition_EmptyIsUncertainDateFalse.txt | 46 - .../humans/condition_LocatorIsFalse.txt | 74 - .../processor-tests/humans/date_Accessed.txt | 42 - .../processor-tests/humans/date_DateAD.txt | 51 - .../processor-tests/humans/date_DateBC.txt | 51 - .../processor-tests/humans/date_InPress.txt | 53 - .../processor-tests/humans/date_January.txt | 47 - .../humans/date_KeyVariable.txt | 100 -- .../date_LocalizedDateFormats-af-ZA.txt | 70 - .../date_LocalizedDateFormats-ar-AR.txt | 70 - .../date_LocalizedDateFormats-bg-BG.txt | 70 - .../date_LocalizedDateFormats-ca-AD.txt | 70 - .../date_LocalizedDateFormats-cs-CZ.txt | 70 - .../date_LocalizedDateFormats-da-DK.txt | 70 - .../date_LocalizedDateFormats-de-AT.txt | 70 - .../date_LocalizedDateFormats-de-CH.txt | 70 - .../date_LocalizedDateFormats-de-DE.txt | 70 - .../date_LocalizedDateFormats-el-GR.txt | 70 - .../date_LocalizedDateFormats-en-US.txt | 70 - .../date_LocalizedDateFormats-es-ES.txt | 70 - .../date_LocalizedDateFormats-et-EE.txt | 70 - .../date_LocalizedDateFormats-fr-FR.txt | 70 - .../date_LocalizedDateFormats-he-IL.txt | 70 - .../date_LocalizedDateFormats-hu-HU.txt | 70 - .../date_LocalizedDateFormats-is-IS.txt | 70 - .../date_LocalizedDateFormats-it-IT.txt | 70 - .../date_LocalizedDateFormats-ja-JP.txt | 70 - .../date_LocalizedDateFormats-ko-KR.txt | 70 - .../date_LocalizedDateFormats-mn-MN.txt | 70 - .../date_LocalizedDateFormats-nb-NO.txt | 70 - .../date_LocalizedDateFormats-nl-NL.txt | 70 - .../date_LocalizedDateFormats-pl-PL.txt | 70 - .../date_LocalizedDateFormats-pt-BR.txt | 70 - .../date_LocalizedDateFormats-pt-PT.txt | 70 - .../date_LocalizedDateFormats-ro-RO.txt | 70 - .../date_LocalizedDateFormats-ru-RU.txt | 70 - .../date_LocalizedDateFormats-sk-SK.txt | 70 - .../date_LocalizedDateFormats-sl-SL.txt | 70 - .../date_LocalizedDateFormats-sr-RS.txt | 70 - .../date_LocalizedDateFormats-sv-SE.txt | 70 - .../date_LocalizedDateFormats-th-TH.txt | 70 - .../date_LocalizedDateFormats-tr-TR.txt | 70 - .../date_LocalizedDateFormats-uk-UA.txt | 70 - .../date_LocalizedDateFormats-vi-VN.txt | 70 - .../date_LocalizedDateFormats-zh-CN.txt | 70 - .../date_LocalizedDateFormats-zh-TW.txt | 70 - .../humans/date_LocalizedNumericDefault.txt | 49 - ...date_LocalizedNumericDefaultMissingDay.txt | 48 - ...ate_LocalizedNumericDefaultWithAffixes.txt | 49 - .../humans/date_LocalizedNumericYear.txt | 49 - .../processor-tests/humans/date_LongMonth.txt | 53 - .../processor-tests/humans/date_NoDate.txt | 52 - .../humans/date_RawParseSimpleDate.txt | 48 - .../processor-tests/humans/date_String.txt | 55 - .../processor-tests/humans/date_Uncertain.txt | 70 - .../processor-tests/humans/date_ranges.txt | 191 --- .../humans/display_AuthorAsHeading.txt | 158 -- .../humans/display_DisplayBlock.txt | 91 - .../humans/display_SecondFieldAlignClone.txt | 96 -- ...lay_SecondFieldAlignMigratePunctuation.txt | 198 --- .../processor-tests/humans/fullstyles_APA.txt | 392 ----- .../humans/fullstyles_APABibliography.txt | 404 ----- ..._APA_MultipleAuthorsTypeArticleJournal.txt | 464 ----- .../humans/fullstyles_DINBibliography.txt | 482 ------ ...InternationalJournalOfHumanoidRobotics.txt | 333 ---- .../fullstyles_NorthWestUniversityHarvard.txt | 279 --- .../humans/group_ComplexNesting.txt | 418 ----- .../humans/group_ShortOutputOnly.txt | 42 - ...uppressTermWhenNoOutputFromPartialDate.txt | 51 - .../group_SuppressValueWithEmptySubgroup.txt | 51 - .../group_SuppressWithEmptyNestedDateNode.txt | 235 --- .../humans/label_EditorTranslator1.txt | 633 ------- .../humans/label_EmptyLabelVanish.txt | 45 - .../humans/label_ImplicitForm.txt | 47 - .../label_NoFirstCharCapWithInTextClass.txt | 43 - .../label_NonexistentNameVariableLabel.txt | 47 - .../humans/label_PluralNumberOfVolumes.txt | 55 - .../label_PluralPagesWithAlphaPrefix.txt | 44 - .../humans/locale_OverrideOnlyCurrentLang.txt | 50 - .../humans/name_ArticularNameAsSortOrder.txt | 47 - .../humans/name_ArticularPlain.txt | 55 - .../humans/name_ArticularShortForm.txt | 47 - .../humans/name_AsianGlyphs.txt | 54 - .../humans/name_AuthorCount.txt | 114 -- .../name_AuthorCountWithMultipleVariables.txt | 70 - ...tWithSameVarContentAndCombinedTermFail.txt | 70 - ...thSameVarContentAndCombinedTermSucceed.txt | 70 - .../humans/name_AuthorEditorCount.txt | 70 - .../humans/name_CelticClanName.txt | 47 - .../name_CeltsAndToffsCrowdedInitials.txt | 64 - .../humans/name_CeltsAndToffsNoHyphens.txt | 55 - .../name_CeltsAndToffsSpacedInitials.txt | 63 - .../humans/name_CeltsAndToffsWithHyphens.txt | 55 - ...ame_CitationMacroNoInheritanceFromRoot.txt | 165 -- .../humans/name_CollapseRoleLabels.txt | 87 - .../processor-tests/humans/name_Delimiter.txt | 73 - .../humans/name_EditorTranslatorBoth.txt | 219 --- .../name_EditorTranslatorSameEmptyTerm.txt | 58 - .../name_EditorTranslatorSameWithTerm.txt | 59 - .../humans/name_EtAlUseLast.txt | 86 - .../humans/name_EtAlWithCombined.txt | 355 ---- .../humans/name_FormatSmallCaps.txt | 52 - .../humans/name_SubstituteInheritLabel.txt | 83 - ...name_SubstituteMacroInheritDecorations.txt | 63 - .../humans/name_SubstituteName.txt | 57 - .../name_SubstituteOnDateGroupSpanFail.txt | 65 - ...ame_SubstituteOnGroupSpanGroupSpanFail.txt | 66 - .../name_SubstituteOnMacroGroupSpanFail.txt | 67 - ...ubstituteOnNamesSingletonGroupSpanFail.txt | 62 - ...ame_SubstituteOnNamesSpanGroupSpanFail.txt | 64 - ...ame_SubstituteOnNamesSpanNamesSpanFail.txt | 69 - .../name_SubstituteOnNumberGroupSpanFail.txt | 62 - .../humans/name_namepartAffixes.txt | 52 - .../name_namepartAffixesNameAsSortOrder.txt | 53 - .../name_substitute_RepeatedNamesOk.txt | 69 - ...me_substitute_SuppressOrdinaryVariable.txt | 110 -- ...meattr_AndOnBibliographyInBibliography.txt | 57 - .../nameattr_AndOnBibliographyInCitation.txt | 57 - .../nameattr_AndOnCitationInBibliography.txt | 59 - .../nameattr_AndOnCitationInCitation.txt | 50 - .../nameattr_AndOnNamesInBibliography.txt | 56 - .../humans/nameattr_AndOnNamesInCitation.txt | 49 - .../nameattr_AndOnStyleInBibliography.txt | 57 - .../humans/nameattr_AndOnStyleInCitation.txt | 57 - ...ecedesEtAlOnBibliographyInBibliography.txt | 57 - ...erPrecedesEtAlOnBibliographyInCitation.txt | 57 - ...erPrecedesEtAlOnCitationInBibliography.txt | 59 - ...imiterPrecedesEtAlOnCitationInCitation.txt | 50 - ...miterPrecedesEtAlOnNamesInBibliography.txt | 56 - ...DelimiterPrecedesEtAlOnNamesInCitation.txt | 49 - ...miterPrecedesEtAlOnStyleInBibliography.txt | 57 - ...DelimiterPrecedesEtAlOnStyleInCitation.txt | 50 - ...ecedesLastOnBibliographyInBibliography.txt | 57 - ...erPrecedesLastOnBibliographyInCitation.txt | 57 - ...erPrecedesLastOnCitationInBibliography.txt | 59 - ...imiterPrecedesLastOnCitationInCitation.txt | 50 - ...miterPrecedesLastOnNamesInBibliography.txt | 56 - ...DelimiterPrecedesLastOnNamesInCitation.txt | 49 - ...miterPrecedesLastOnStyleInBibliography.txt | 57 - ...DelimiterPrecedesLastOnStyleInCitation.txt | 50 - ...tr_EtAlMinOnBibliographyInBibliography.txt | 57 - ...meattr_EtAlMinOnBibliographyInCitation.txt | 57 - ...meattr_EtAlMinOnCitationInBibliography.txt | 59 - .../nameattr_EtAlMinOnCitationInCitation.txt | 50 - .../nameattr_EtAlMinOnNamesInBibliography.txt | 56 - .../nameattr_EtAlMinOnNamesInCitation.txt | 49 - .../nameattr_EtAlMinOnStyleInBibliography.txt | 56 - .../nameattr_EtAlMinOnStyleInCitation.txt | 49 - ...sequentMinOnBibliographyInBibliography.txt | 60 - ...lSubsequentMinOnBibliographyInCitation.txt | 57 - ...lSubsequentMinOnCitationInBibliography.txt | 59 - ...EtAlSubsequentMinOnNamesInBibliography.txt | 60 - ...EtAlSubsequentMinOnStyleInBibliography.txt | 59 - ...ntUseFirstOnBibliographyInBibliography.txt | 64 - ...equentUseFirstOnBibliographyInCitation.txt | 63 - ...equentUseFirstOnCitationInBibliography.txt | 66 - ...ubsequentUseFirstOnStyleInBibliography.txt | 65 - ...AlUseFirstOnBibliographyInBibliography.txt | 61 - ...r_EtAlUseFirstOnBibliographyInCitation.txt | 63 - ...r_EtAlUseFirstOnCitationInBibliography.txt | 63 - ...eattr_EtAlUseFirstOnCitationInCitation.txt | 61 - ...attr_EtAlUseFirstOnNamesInBibliography.txt | 60 - ...nameattr_EtAlUseFirstOnNamesInCitation.txt | 53 - ...attr_EtAlUseFirstOnStyleInBibliography.txt | 61 - ...nameattr_EtAlUseFirstOnStyleInCitation.txt | 53 - ...ializeWithOnBibliographyInBibliography.txt | 53 - ...InitializeWithOnBibliographyInCitation.txt | 53 - ...InitializeWithOnCitationInBibliography.txt | 55 - ...ttr_InitializeWithOnCitationInCitation.txt | 46 - ...tr_InitializeWithOnNamesInBibliography.txt | 52 - ...meattr_InitializeWithOnNamesInCitation.txt | 45 - ...tr_InitializeWithOnStyleInBibliography.txt | 53 - ...meattr_InitializeWithOnStyleInCitation.txt | 46 - ...sSortOrderOnBibliographyInBibliography.txt | 57 - ...ameAsSortOrderOnBibliographyInCitation.txt | 57 - ...ameAsSortOrderOnCitationInBibliography.txt | 59 - ...tr_NameAsSortOrderOnCitationInCitation.txt | 50 - ...r_NameAsSortOrderOnNamesInBibliography.txt | 56 - ...eattr_NameAsSortOrderOnNamesInCitation.txt | 49 - ...r_NameAsSortOrderOnStyleInBibliography.txt | 57 - ...eattr_NameAsSortOrderOnStyleInCitation.txt | 49 - ...eDelimiterOnBibliographyInBibliography.txt | 57 - ..._NameDelimiterOnBibliographyInCitation.txt | 57 - ..._NameDelimiterOnCitationInBibliography.txt | 59 - ...attr_NameDelimiterOnCitationInCitation.txt | 57 - ...ttr_NameDelimiterOnNamesInBibliography.txt | 56 - ...ameattr_NameDelimiterOnNamesInCitation.txt | 56 - ...ttr_NameDelimiterOnStyleInBibliography.txt | 57 - ...ameattr_NameDelimiterOnStyleInCitation.txt | 57 - ...r_NameFormOnBibliographyInBibliography.txt | 53 - ...eattr_NameFormOnBibliographyInCitation.txt | 53 - ...eattr_NameFormOnCitationInBibliography.txt | 55 - .../nameattr_NameFormOnCitationInCitation.txt | 53 - ...nameattr_NameFormOnNamesInBibliography.txt | 52 - .../nameattr_NameFormOnNamesInCitation.txt | 45 - ...nameattr_NameFormOnStyleInBibliography.txt | 53 - .../nameattr_NameFormOnStyleInCitation.txt | 46 - ...sDelimiterOnBibliographyInBibliography.txt | 60 - ...NamesDelimiterOnBibliographyInCitation.txt | 60 - ...NamesDelimiterOnCitationInBibliography.txt | 62 - ...ttr_NamesDelimiterOnCitationInCitation.txt | 53 - ...tr_NamesDelimiterOnNamesInBibliography.txt | 59 - ...meattr_NamesDelimiterOnNamesInCitation.txt | 52 - ...tr_NamesDelimiterOnStyleInBibliography.txt | 59 - ...meattr_NamesDelimiterOnStyleInCitation.txt | 53 - ...tSeparatorOnBibliographyInBibliography.txt | 53 - ..._SortSeparatorOnBibliographyInCitation.txt | 54 - ..._SortSeparatorOnCitationInBibliography.txt | 55 - ...attr_SortSeparatorOnCitationInCitation.txt | 46 - ...ttr_SortSeparatorOnNamesInBibliography.txt | 52 - ...ameattr_SortSeparatorOnNamesInCitation.txt | 45 - ...ttr_SortSeparatorOnStyleInBibliography.txt | 53 - ...ameattr_SortSeparatorOnStyleInCitation.txt | 46 - .../nameattr_initializeCyrillicName.txt | 63 - ...sequent-author-substitute_complete-all.txt | 253 --- ...equent-author-substitute_complete-each.txt | 253 --- ...attr_subsequent-author-substitute_none.txt | 253 --- ...sequent-author-substitute_partial-each.txt | 253 --- ...equent-author-substitute_partial-first.txt | 253 --- .../processor-tests/humans/nameorder_Long.txt | 49 - ...der_LongNameAsSortDemoteDisplayAndSort.txt | 50 - .../nameorder_LongNameAsSortDemoteNever.txt | 50 - .../humans/nameorder_Short.txt | 49 - .../nameorder_ShortDemoteDisplayAndSort.txt | 50 - .../nameorder_ShortNameAsSortDemoteNever.txt | 50 - .../humans/names_substitute.txt | 80 - .../names_substituteSuppressSubstitution.txt | 111 -- ...number_PlainHyphenOrEnDashAlwaysPlural.txt | 77 - .../humans/number_SimpleNumberRoman.txt | 40 - .../humans/number_StrangeError.txt | 41 - .../processor-tests/humans/number_affixes.txt | 42 - .../humans/number_font-style.txt | 42 - .../humans/number_font-variant.txt | 40 - .../humans/number_font-weight.txt | 42 - .../processor-tests/humans/number_format.txt | 44 - .../processor-tests/humans/number_gender.txt | 46 - .../processor-tests/humans/number_spacing.txt | 44 - .../humans/number_text-case.txt | 47 - .../humans/number_text-decoration.txt | 40 - .../humans/number_vertical-align.txt | 42 - .../humans/page_ChicagoAuthorDateLooping.txt | 93 - .../page_WithLocaleAndWeirdDelimiter.txt | 42 - .../humans/pagerange_chicago.txt | 101 -- .../humans/pagerange_expanded.txt | 56 - .../humans/pagerange_minimal-two.txt | 56 - .../humans/pagerange_minimal.txt | 56 - .../humans/plural_NameLabelAlways.txt | 47 - .../plural_NameLabelContextualPlural.txt | 51 - .../plural_NameLabelContextualSingular.txt | 47 - .../humans/plural_NameLabelDefaultPlural.txt | 51 - .../plural_NameLabelDefaultSingular.txt | 47 - .../humans/plural_NameLabelNever.txt | 51 - .../humans/punctuation_DateStripPeriods.txt | 50 - .../humans/punctuation_FullMontyField.txt | 235 --- .../humans/punctuation_FullMontyPlain.txt | 235 --- .../humans/punctuation_FullMontyQuotesIn.txt | 238 --- .../humans/punctuation_FullMontyQuotesOut.txt | 238 --- .../humans/punctuation_OnMacro.txt | 50 - .../humans/punctuation_SemicolonDelimiter.txt | 126 -- .../humans/quotes_Punctuation.txt | 62 - .../humans/quotes_PunctuationNasty.txt | 998 ----------- .../quotes_PunctuationWithInnerQuote.txt | 49 - .../humans/simplespace_case1.txt | 220 --- .../processor-tests/humans/sort_AguStyle.txt | 267 --- .../humans/sort_AguStyleReverseGroups.txt | 267 --- ...t_BibliographyCitationNumberDescending.txt | 92 - ...graphyCitationNumberDescendingViaMacro.txt | 95 -- .../humans/sort_BibliographyNosortOption.txt | 73 - .../sort_CaseInsensitiveBibliography.txt | 74 - .../humans/sort_CaseInsensitiveCitation.txt | 52 - .../humans/sort_ChangeInNameSort.txt | 211 --- .../humans/sort_ChicagoYearSuffix1.txt | 431 ----- .../humans/sort_ChicagoYearSuffix2.txt | 432 ----- .../processor-tests/humans/sort_Citation.txt | 62 - .../humans/sort_CiteGroupDelimiter.txt | 95 -- .../humans/sort_ConditionalMacroDates.txt | 107 -- ...sort_DateMacroSortWithSecondFieldAlign.txt | 75 - .../humans/sort_DateVariable.txt | 61 - ...rt_DateVariableMixedElementsAscendingA.txt | 62 - ...rt_DateVariableMixedElementsAscendingB.txt | 62 - ...t_DateVariableMixedElementsDescendingA.txt | 62 - ...t_DateVariableMixedElementsDescendingB.txt | 62 - .../humans/sort_DateVariableRange.txt | 71 - .../humans/sort_DateVariableRangeMixed.txt | 67 - .../humans/sort_DropNameLabelInSort.txt | 170 -- .../humans/sort_EtAlUseLast.txt | 136 -- .../humans/sort_FamilyOnly.txt | 77 - .../humans/sort_GroupedByAuthorstring.txt | 122 -- .../humans/sort_LatinUnicode.txt | 86 - .../processor-tests/humans/sort_LeadingA.txt | 1494 ----------------- .../sort_LeadingApostropheOnNameParticle.txt | 183 -- .../humans/sort_LocalizedDateLimitedParts.txt | 93 - .../sort_NameImplicitSortOrderAndForm.txt | 106 -- .../sort_NameParticleInNameSortFalse.txt | 82 - .../sort_NameParticleInNameSortTrue.txt | 82 - .../humans/sort_NameVariable.txt | 78 - .../humans/sort_NamesUseLast.txt | 117 -- .../humans/sort_NumberOfAuthorsAsKey.txt | 135 -- .../processor-tests/humans/sort_Quotes.txt | 98 -- .../humans/sort_RangeUnaffected.txt | 335 ---- .../humans/sort_SeparateAuthorsAndOthers.txt | 181 -- .../humans/sort_StatusFieldAscending.txt | 62 - .../humans/sort_StatusFieldDescending.txt | 62 - .../humans/sort_StripMarkup.txt | 61 - .../humans/sort_SubstituteTitle.txt | 469 ------ .../humans/sort_VariousNameMacros1.txt | 378 ----- .../humans/sort_VariousNameMacros2.txt | 378 ----- .../humans/sort_VariousNameMacros3.txt | 379 ----- .../humans/sort_WithAndInOneEntry.txt | 637 ------- .../humans/substitute_RepeatedNamesOk.txt | 69 - .../substitute_SuppressOrdinaryVariable.txt | 110 -- .../processor-tests/humans/text-variable.txt | 38 - .../humans/text-variable_affixes.txt | 42 - .../humans/text-variable_font-style.txt | 42 - .../humans/text-variable_font-variant.txt | 40 - .../humans/text-variable_font-weight.txt | 42 - .../humans/text-variable_quotes.txt | 42 - .../humans/text-variable_strip-periods.txt | 40 - .../humans/text-variable_text-case.txt | 47 - .../humans/text-variable_text-decoration.txt | 40 - .../humans/text-variable_vertical-align.txt | 42 - .../humans/text_renderCitationNumber.txt | 207 --- .../processor-tests/machines/.gitignore | 2 - .../tests/fixtures/basic-tests/processor.py | 443 ----- .../src/Seboettg/CiteProc/BugfixTest.php | 63 - .../src/Seboettg/CiteProc/CiteProcTest.php | 219 --- .../src/Seboettg/CiteProc/ContextTest.php | 82 - .../Seboettg/CiteProc/Locale/LocaleTest.php | 37 - .../CiteProc/Rendering/Choose/ChooseTest.php | 45 - .../CiteProc/Rendering/Date/DateTest.php | 95 -- .../Seboettg/CiteProc/Rendering/GroupTest.php | 83 - .../Seboettg/CiteProc/Rendering/LabelTest.php | 54 - .../CiteProc/Rendering/Name/NameTest.php | 304 ---- .../CiteProc/Rendering/Name/NameorderTest.php | 54 - .../CiteProc/Rendering/Name/NamesTest.php | 46 - .../Rendering/Name/SubstituteTest.php | 55 - .../CiteProc/Rendering/NumberTest.php | 121 -- .../Seboettg/CiteProc/Rendering/TextTest.php | 263 --- .../src/Seboettg/CiteProc/Style/MacroTest.php | 41 - .../Seboettg/CiteProc/Style/Sort/SortTest.php | 233 --- .../src/Seboettg/CiteProc/StyleSheetTest.php | 96 -- .../Seboettg/CiteProc/Styles/AffixesTest.php | 48 - .../Seboettg/CiteProc/Styles/DisplayTest.php | 39 - .../CiteProc/TestSuiteTestCaseTrait.php | 89 - .../CiteProc/Util/NumberHelperTest.php | 58 - .../Seboettg/CiteProc/Util/PageHelperTest.php | 205 --- .../CiteProc/Util/StringHelperTest.php | 75 - .../seboettg/citeproc-php/vendorPath.php | 26 - .../vendor/seboettg/collection/.gitignore | 5 - .../vendor/seboettg/collection/.travis.yml | 15 - .../vendor/seboettg/collection/LICENSE | 21 - .../vendor/seboettg/collection/README.md | 269 --- .../vendor/seboettg/collection/bootstrap.php | 3 - .../vendor/seboettg/collection/composer.json | 18 - .../vendor/seboettg/collection/phpunit.xml | 28 - .../src/Seboettg/Collection/ArrayList.php | 306 ---- .../src/Seboettg/Collection/Collection.php | 23 - .../src/Seboettg/Collection/Collections.php | 29 - .../src/Seboettg/Collection/Comparable.php | 37 - .../src/Seboettg/Collection/Comparator.php | 74 - .../Seboettg/Collection/ToArrayInterface.php | 30 - .../Collection/Test/ArrayListTest.php | 318 ---- .../Collection/Test/CollectionsTest.php | 110 -- .../vendor/symfony/polyfill-mbstring/LICENSE | 19 - .../symfony/polyfill-mbstring/Mbstring.php | 791 --------- .../symfony/polyfill-mbstring/README.md | 13 - .../Resources/unidata/lowerCase.php | 1101 ------------ .../Resources/unidata/upperCase.php | 1109 ------------ .../symfony/polyfill-mbstring/bootstrap.php | 58 - .../symfony/polyfill-mbstring/composer.json | 34 - 738 files changed, 100245 deletions(-) delete mode 100644 modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/.gitignore delete mode 100644 modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/.travis.yml delete mode 100644 modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/LICENSE.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/composer.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/phpunit.xml.dist delete mode 100644 modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/src/AudioLabs/BibtexParser/BibtexFormatter.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/src/AudioLabs/BibtexParser/BibtexParser.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/BibtexFormatterTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/BibtexParserTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/Fixures/publications.bib delete mode 100644 modules/dkan_sci_citation/includes/vendor/autoload.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/.gitignore delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/.rspec delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/.travis.yml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/Gemfile delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/Gemfile.lock delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/Rakefile delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-af-ZA.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ar.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-bg-BG.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ca-AD.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-cs-CZ.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-cy-GB.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-da-DK.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-AT.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-CH.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-DE.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-el-GR.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-en-GB.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-en-US.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-CL.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-ES.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-MX.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-et-EE.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-eu.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fa-IR.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fi-FI.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fr-CA.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fr-FR.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-he-IL.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-hr-HR.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-hu-HU.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-id-ID.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-is-IS.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-it-IT.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ja-JP.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-km-KH.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ko-KR.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-lt-LT.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-lv-LV.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-mn-MN.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nb-NO.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nl-NL.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nn-NO.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pl-PL.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pt-BR.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pt-PT.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ro-RO.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ru-RU.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sk-SK.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sl-SI.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sr-RS.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sv-SE.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-th-TH.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-tr-TR.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-uk-UA.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-vi-VN.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-zh-CN.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-zh-TW.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/locales_spec.rb delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/repository_spec.rb delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/spec_helper.rb delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/apa.csl delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/chicago-annotated-bibliography.csl delete mode 100644 modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/modern-language-association.csl delete mode 100644 modules/dkan_sci_citation/includes/vendor/composer/ClassLoader.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/composer/LICENSE delete mode 100644 modules/dkan_sci_citation/includes/vendor/composer/autoload_classmap.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/composer/autoload_files.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/composer/autoload_namespaces.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/composer/autoload_psr4.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/composer/autoload_real.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/composer/autoload_static.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/composer/installed.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/CHANGELOG.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/LICENSE delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/UPGRADING.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/composer.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Client.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/ClientInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/HandlerStack.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/MessageFormatter.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Middleware.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Pool.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/RequestOptions.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/TransferStats.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/UriTemplate.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/functions.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/functions_include.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/CHANGELOG.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/LICENSE delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/Makefile delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/composer.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/AggregateException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/CancellationException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/Coroutine.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/EachPromise.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/FulfilledPromise.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/Promise.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/PromiseInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/PromisorInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/RejectedPromise.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/RejectionException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/TaskQueue.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/TaskQueueInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/functions.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/functions_include.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/CHANGELOG.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/LICENSE delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/composer.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/AppendStream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/BufferStream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/CachingStream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/DroppingStream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/FnStream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/InflateStream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/LazyOpenStream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/LimitStream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/MessageTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/MultipartStream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/NoSeekStream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/PumpStream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Request.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Response.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/ServerRequest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Stream.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/StreamWrapper.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UploadedFile.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Uri.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UriNormalizer.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UriResolver.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/functions.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/functions_include.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/.editorconfig delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/.gitignore delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/.travis.yml delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/LICENSE delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/composer.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/phpunit.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/CacheEntry.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/CacheMiddleware.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/KeyValueHttpHeader.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/CacheStorageInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/CompressedDoctrineCacheStorage.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/DoctrineCacheStorage.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/FlysystemStorage.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/LaravelCacheStorage.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/Psr16CacheStorage.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/Psr6CacheStorage.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/VolatileRuntimeStorage.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/WordPressObjectCacheStorage.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/CacheStrategyInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/Delegate/DelegatingCacheStrategy.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/Delegate/RequestMatcherInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/GreedyCacheStrategy.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/NullCacheStrategy.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/PrivateCacheStrategy.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/PublicCacheStrategy.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/BaseTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/DelegatingCacheTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/GreedyCacheTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/HeaderExpireTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/KeyValueHttpHeaderTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/NullCacheTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/PrivateCacheTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/PublicCacheTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/RequestCacheControlTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/RequestMatcher/ClosureRequestMatcher.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseAgeTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseCacheControlTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseVaryTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/Strategy/GreedyCacheStrategyTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ValidationTest.php delete mode 100755 modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/.gitattributes delete mode 100755 modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/.gitignore delete mode 100644 modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/LICENSE delete mode 100644 modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/composer.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/src/Enum.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/http-message/CHANGELOG.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/http-message/LICENSE delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/http-message/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/http-message/composer.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/http-message/src/MessageInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/http-message/src/RequestInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/http-message/src/ResponseInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/http-message/src/ServerRequestInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/http-message/src/StreamInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/http-message/src/UploadedFileInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/http-message/src/UriInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/simple-cache/.editorconfig delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/simple-cache/LICENSE.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/simple-cache/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/simple-cache/composer.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/simple-cache/src/CacheException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/simple-cache/src/CacheInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/psr/simple-cache/src/InvalidArgumentException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/.editorconfig delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/.gitignore delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/.php_cs delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/.travis.yml delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/LICENSE delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/composer.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/phpunit.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/src/CrossRefClient.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/CachingTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/ExistsOperationTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/ParametersEncodingTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/RequestOperationTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/TestCase.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/TiedVersionRequestTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/UserAgentTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.gitignore delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.scrutinizer.yml delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.travis.yml delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/CHANGELOG.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/CONTRIBUTING.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/ISSUE_TEMPLATE.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/LICENSE.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/composer.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/example/data.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/example/index.php delete mode 100755 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/install.sh delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/phpunit.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/CiteProc.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/ConstraintInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Disambiguate.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Factory.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/IsNumeric.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/IsUncertainDate.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Jurisdiction.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Locator.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Position.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Type.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Variable.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Context.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Data/DataList.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/CiteProcException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/ClassNotFoundException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/InvalidDateTimeException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/InvalidStylesheetException.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/Locale.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/LocaleXmlParserTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/Term.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/Choose.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseElse.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseElseIf.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseIf.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/Date.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/DatePart.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/DateTime.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Group.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/HasParent.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Label.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Layout.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/EtAl.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Name.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/NamePart.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Names.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Substitute.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Number.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Rendering.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Text.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/RenderingState.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Root/Info.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Root/Root.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Bibliography.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Citation.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/InheritableNameAttributesTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Macro.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/BibliographyOptions.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/CitationOptions.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/DemoteNonDroppingParticle.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/GlobalOptions.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/PageRangeFormats.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/SubsequentAuthorSubstituteRule.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/Key.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/Sort.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/SortKey.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/StyleElement.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/StyleSheet.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/AffixesTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/ConsecutivePunctuationCharacterTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssRule.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssRules.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssStyle.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/DelimiterTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/DisplayTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/FormattingTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/QuotesTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/RangeDelimiterTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/TextCaseTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/CiteProcHelper.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/DateHelper.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/Factory.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/NameHelper.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/NumberHelper.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/PageHelper.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/StringHelper.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/Variables.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/bootstrap.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/config/processor.cnf delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_Brackets.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_InterveningEmpty.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_PrefixFullCitationTextOnly.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_PrefixWithDecorations.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_TextNodeWithMacro.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/api_UpdateItemsDelete.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/api_names_label.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-choose-github-44.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-dateparts.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-36.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-37.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-44.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-46.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-47.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-49-serbian-characters.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-49.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-50.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-58.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-60.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-dates-minimal.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-dates.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/condition_EmptyIsUncertainDateFalse.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/condition_LocatorIsFalse.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_Accessed.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_DateAD.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_DateBC.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_InPress.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_January.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_KeyVariable.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-af-ZA.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ar-AR.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-bg-BG.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ca-AD.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-cs-CZ.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-da-DK.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-AT.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-CH.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-DE.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-el-GR.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-en-US.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-es-ES.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-et-EE.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-fr-FR.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-he-IL.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-hu-HU.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-is-IS.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-it-IT.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ja-JP.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ko-KR.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-mn-MN.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-nb-NO.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-nl-NL.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pl-PL.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pt-BR.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pt-PT.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ro-RO.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ru-RU.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sk-SK.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sl-SL.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sr-RS.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sv-SE.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-th-TH.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-tr-TR.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-uk-UA.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-vi-VN.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-zh-CN.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-zh-TW.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefault.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefaultMissingDay.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefaultWithAffixes.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericYear.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LongMonth.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_NoDate.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_RawParseSimpleDate.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_String.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_Uncertain.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_ranges.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_AuthorAsHeading.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_DisplayBlock.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_SecondFieldAlignClone.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_SecondFieldAlignMigratePunctuation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APA.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APABibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APA_MultipleAuthorsTypeArticleJournal.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_DINBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_InternationalJournalOfHumanoidRobotics.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_NorthWestUniversityHarvard.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_ComplexNesting.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_ShortOutputOnly.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressTermWhenNoOutputFromPartialDate.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressValueWithEmptySubgroup.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressWithEmptyNestedDateNode.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_EditorTranslator1.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_EmptyLabelVanish.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_ImplicitForm.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_NoFirstCharCapWithInTextClass.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_NonexistentNameVariableLabel.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_PluralNumberOfVolumes.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_PluralPagesWithAlphaPrefix.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/locale_OverrideOnlyCurrentLang.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularNameAsSortOrder.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularPlain.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularShortForm.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AsianGlyphs.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCount.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithMultipleVariables.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithSameVarContentAndCombinedTermFail.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithSameVarContentAndCombinedTermSucceed.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorEditorCount.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CelticClanName.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsCrowdedInitials.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsNoHyphens.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsSpacedInitials.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsWithHyphens.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CitationMacroNoInheritanceFromRoot.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CollapseRoleLabels.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_Delimiter.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorBoth.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorSameEmptyTerm.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorSameWithTerm.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EtAlUseLast.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EtAlWithCombined.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_FormatSmallCaps.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteInheritLabel.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteMacroInheritDecorations.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteName.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnDateGroupSpanFail.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnGroupSpanGroupSpanFail.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnMacroGroupSpanFail.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSingletonGroupSpanFail.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSpanGroupSpanFail.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSpanNamesSpanFail.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNumberGroupSpanFail.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_namepartAffixes.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_namepartAffixesNameAsSortOrder.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_substitute_RepeatedNamesOk.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_substitute_SuppressOrdinaryVariable.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnCitationInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnNamesInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnStyleInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnCitationInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnNamesInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnStyleInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnCitationInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnNamesInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnStyleInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnCitationInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnNamesInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnStyleInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnCitationInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnNamesInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnStyleInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnCitationInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnNamesInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnStyleInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnCitationInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnNamesInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnStyleInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnCitationInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnNamesInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnStyleInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnCitationInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnNamesInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnStyleInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnCitationInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnNamesInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnStyleInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnBibliographyInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnBibliographyInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnCitationInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnCitationInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnNamesInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnNamesInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnStyleInBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnStyleInCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_initializeCyrillicName.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_complete-all.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_complete-each.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_none.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_partial-each.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_partial-first.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_Long.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_LongNameAsSortDemoteDisplayAndSort.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_LongNameAsSortDemoteNever.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_Short.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_ShortDemoteDisplayAndSort.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_ShortNameAsSortDemoteNever.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/names_substitute.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/names_substituteSuppressSubstitution.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_PlainHyphenOrEnDashAlwaysPlural.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_SimpleNumberRoman.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_StrangeError.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_affixes.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-style.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-variant.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-weight.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_format.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_gender.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_spacing.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_text-case.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_text-decoration.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_vertical-align.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/page_ChicagoAuthorDateLooping.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/page_WithLocaleAndWeirdDelimiter.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_chicago.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_expanded.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_minimal-two.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_minimal.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelAlways.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelContextualPlural.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelContextualSingular.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelDefaultPlural.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelDefaultSingular.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelNever.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_DateStripPeriods.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyField.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyPlain.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyQuotesIn.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyQuotesOut.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_OnMacro.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_SemicolonDelimiter.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_Punctuation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_PunctuationNasty.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_PunctuationWithInnerQuote.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/simplespace_case1.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_AguStyle.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_AguStyleReverseGroups.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyCitationNumberDescending.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyCitationNumberDescendingViaMacro.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyNosortOption.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CaseInsensitiveBibliography.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CaseInsensitiveCitation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChangeInNameSort.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChicagoYearSuffix1.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChicagoYearSuffix2.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_Citation.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CiteGroupDelimiter.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ConditionalMacroDates.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateMacroSortWithSecondFieldAlign.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariable.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsAscendingA.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsAscendingB.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsDescendingA.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsDescendingB.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableRange.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableRangeMixed.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DropNameLabelInSort.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_EtAlUseLast.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_FamilyOnly.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_GroupedByAuthorstring.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LatinUnicode.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LeadingA.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LeadingApostropheOnNameParticle.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LocalizedDateLimitedParts.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameImplicitSortOrderAndForm.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameParticleInNameSortFalse.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameParticleInNameSortTrue.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameVariable.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NamesUseLast.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NumberOfAuthorsAsKey.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_Quotes.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_RangeUnaffected.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_SeparateAuthorsAndOthers.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StatusFieldAscending.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StatusFieldDescending.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StripMarkup.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_SubstituteTitle.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros1.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros2.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros3.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_WithAndInOneEntry.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/substitute_RepeatedNamesOk.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/substitute_SuppressOrdinaryVariable.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_affixes.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-style.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-variant.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-weight.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_quotes.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_strip-periods.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_text-case.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_text-decoration.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_vertical-align.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text_renderCitationNumber.txt delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/machines/.gitignore delete mode 100755 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor.py delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/BugfixTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/CiteProcTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/ContextTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Locale/LocaleTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Choose/ChooseTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Date/DateTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/GroupTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/LabelTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NameTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NameorderTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NamesTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/SubstituteTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/NumberTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/TextTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Style/MacroTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Style/Sort/SortTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/StyleSheetTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Styles/AffixesTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Styles/DisplayTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/TestSuiteTestCaseTrait.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/NumberHelperTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/PageHelperTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/StringHelperTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/vendorPath.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/.gitignore delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/.travis.yml delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/LICENSE delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/bootstrap.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/composer.json delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/phpunit.xml delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/ArrayList.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Collection.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Collections.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Comparable.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Comparator.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/ToArrayInterface.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/tests/Seboettg/Collection/Test/ArrayListTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/seboettg/collection/tests/Seboettg/Collection/Test/CollectionsTest.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/LICENSE delete mode 100644 modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Mbstring.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/README.md delete mode 100644 modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/bootstrap.php delete mode 100644 modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/composer.json diff --git a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/.gitignore b/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/.gitignore deleted file mode 100644 index 115ff86..0000000 --- a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/vendor/ -profile.txt -dev.php diff --git a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/.travis.yml b/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/.travis.yml deleted file mode 100644 index e64872f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: php -php: - - 5.3 - - 5.4 - - 5.5 -before_script: - - composer --dev install - -script: phpunit --configuration phpunit.xml.dist diff --git a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/LICENSE.md b/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/LICENSE.md deleted file mode 100644 index 8f2cf6a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -Copyright (c) 2012-2013 Nils Werner - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/README.md b/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/README.md deleted file mode 100644 index bdf63b6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/README.md +++ /dev/null @@ -1,21 +0,0 @@ -BibtexParser -============ - -Bibtex parser for PHP, autoloading- and composer-compliant. - -[![Build Status](https://travis-ci.org/audiolabs/bibtexparser.png?branch=master)](https://travis-ci.org/audiolabs/bibtexparser) - - -## Installation - -Add audiolabs/bibtexparser as a requirement to composer.json: - -```json -{ - "require": { - "audiolabs/bibtexparser": "dev-master" - } -} -``` - -Then run `composer update` or `composer install` diff --git a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/composer.json b/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/composer.json deleted file mode 100644 index 8c2186f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/composer.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "audiolabs/bibtexparser", - "type": "library", - "description": "Bibtex parser for PHP 5.3", - "keywords": ["bibtex","latex","parsing"], - "homepage": "http://github.com/alabs/bibtexparser", - "license": "MIT", - "authors": [ - { - "name": "Nils Werner", - "email": "nils.werner@audiolabs-erlangen.de", - "homepage": "http://www.audiolabs-erlangen.de", - "role": "Developer" - } - ], - "require": { - "php": ">=5.3.0" - }, - "autoload": { - "psr-0": { - "AudioLabs":"src/" - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/phpunit.xml.dist b/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/phpunit.xml.dist deleted file mode 100644 index 494e7d6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/phpunit.xml.dist +++ /dev/null @@ -1,17 +0,0 @@ - - - - - ./tests/ - - - diff --git a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/src/AudioLabs/BibtexParser/BibtexFormatter.php b/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/src/AudioLabs/BibtexParser/BibtexFormatter.php deleted file mode 100644 index 2847bcf..0000000 --- a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/src/AudioLabs/BibtexParser/BibtexFormatter.php +++ /dev/null @@ -1,96 +0,0 @@ - {title}
{journal}[, {volume}][({number})][: {pages}], {year}. [
{dbslinks}]"; - elseif ($type == "book") - return "{author}
{title}
{publisher}[, ISBN: {isbn}], {year}. [
{dbslinks}]"; - elseif ($type == "incollection") - return "{author}
{title}
In[ {editor} (ed.)]: {booktitle}, {publisher}[, {volume}][: {pages}], {year}. [
{dbslinks}]"; - elseif ($type == "proceedings") - return "[{author}
]{title}
[In {booktitle}, ]{year}. [
{dbslinks}]"; - elseif ($type == "inproceedings") - return "{author}
{title}
In {booktitle}, {year}. [
{dbslinks}]"; - elseif ($type == "mastersthesis") - return "{author}
{title}
[{note},] {school}, {year}. [
{dbslinks}]"; - elseif ($type == "misc") - return "[{author}
][ {title}
][{howpublished}, ][{note}][, {year}]. [
{dbslinks}]"; - elseif ($type == "phdthesis") - return "{author}
{title}
PhD Thesis, {school}, {year}. [
{dbslinks}]"; - elseif ($type == "techreport") - return "{author}
{title}
Technical Report, [No. {number}, ]{institution}, {year}. [
{dbslinks}]"; - elseif ($type == "unpublished") - return "{author}
{title}
{note}. [
{dbslinks}]"; - else - return "{author}
{title}
{journal}{booktitle}, {year} [
{dbslinks}]"; - } - - static function removeOptionalFields($entry) - { - $save = 10; // just to avoid an inf. loop - do { - // Find all optional fields that do not contain any other optional fields. - // If an opt. field contains place holders, remove the field. Otherwise, - // just remove the brackets. - // Do this as long as optional fields are found (but max 10 times). - preg_match_all("/\[[^\[\]]+\]/", $entry, $out); - $out = $out[0]; - for ($i = 0; $i < count($out); $i++) { - if (strstr($out[$i], "{")) { - // at least one placeholder was not replaced, so remove this optional field - $entry = str_replace($out[$i], "", $entry); - } else { - // no more placeholders, just remove the braces: [,] - $entry = str_replace($out[$i], substr($out[$i], 1, -1), $entry); - } - } - } while (count($out) > 0 && $save-- > 0); - - return $entry; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/src/AudioLabs/BibtexParser/BibtexParser.php b/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/src/AudioLabs/BibtexParser/BibtexParser.php deleted file mode 100644 index 04778dc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/src/AudioLabs/BibtexParser/BibtexParser.php +++ /dev/null @@ -1,111 +0,0 @@ - $line) { - $line = trim($line); - - // empty line - if (!strlen($line)) - continue; - - // some funny comment string - if (strpos(strtolower($line),'@string')!==false) - continue; - - // pybliographer comments - if (strpos(strtolower($line),'@comment')!==false) - continue; - - // normal TeX style comment - if ($line[0] == "%") - continue; - - // begins with @, for example @inproceedings{...} - if ($line[0] == "@") { - $count++; - $handle=""; - $value=""; - $data=""; - $start=strpos($line,'@'); - $end=strpos($line,'{'); - $items[$count] = array(); - $items[$count]['raw'] = ""; - $items[$count]['type'] = trim(substr($line, 1,$end-1)); - $items[$count]['reference'] = trim(substr($line, $end+1), ', '); - $items[$count]['lines'] = array('start' => $number + 1, 'end' => $number + 1); - } - - // contains =, for example authors = {...} - elseif (substr_count($line, '=') > 0) { - $start = strpos($line,'='); - $handle = strtolower(trim(substr($line,0,$start))); - $data = trim(substr($line,$start+1)); - - if($handle == 'pages') { - preg_match('%(\d+)\s*\-+\s*(\d+)%', $data, $matches); - if(count($matches) > 2) - $value = array('start' => $matches[1], 'end' => $matches[2]); - else - $value = $data; - } - elseif($handle == 'author') { - $value = explode(' and ', $data); - - } - else { - $value = $data; - } - } - - // neither a new block nor a new field: a following line of a multiline field - else { - if(!is_array($value)) { - $value.= ' ' . $line; - } - } - - $items[$count]['raw'] .= $line . "\n"; - - if($value != "") { - $items[$count][$handle] = self::cleanup($value); - } - if(count($items) > 0) { - $items[$count]['lines']['end'] = $number + 1; - } - } - return $items; - } - - static function cleanup($value) { - // call cleanup() recursively if passed an array (authors or pages). - if(is_array($value)) { - return array_map(array('\AudioLabs\BibtexParser\BibtexParser', 'cleanup'), $value); - } - - // replace a bunch of LaTeX stuff - $search = array('\"a', '\"A', '\"o', '\"O', '\"u', '\U"', '\ss', '\`e', '\´e', '\url{', '{', '}', '--', '\"', '\'', '`', '\textbackslash'); - $replace = array('ä', 'Ä', 'ö', 'Ö', 'ü', 'Ü', 'ß', 'è', 'é', '', '', '', '—', ' ', ' ', ' ', '\\'); - $value=str_replace($search,$replace,$value); - - $value=rtrim($value, '}, '); - return trim($value); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/BibtexFormatterTest.php b/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/BibtexFormatterTest.php deleted file mode 100644 index e94e5c8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/BibtexFormatterTest.php +++ /dev/null @@ -1,17 +0,0 @@ -parse_file(__DIR__ . '/Fixures/publications.bib'); - - foreach($items as &$item) { - $formatted = \AudioLabs\BibtexParser\BibtexFormatter::format($item); - } - - $this->assertTrue(TRUE); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/BibtexParserTest.php b/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/BibtexParserTest.php deleted file mode 100644 index f3f12ed..0000000 --- a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/BibtexParserTest.php +++ /dev/null @@ -1,12 +0,0 @@ -assertTrue(is_array($items)); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/Fixures/publications.bib b/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/Fixures/publications.bib deleted file mode 100644 index 8c43d8e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/audiolabs/bibtexparser/tests/Fixures/publications.bib +++ /dev/null @@ -1,30 +0,0 @@ -% A clean item with lots of special fields set, all relatively clean -@inproceedings{clean, - author = {First Author and Author, Second}, - title = {Pr{\"a}diktive Teilbandcodierung mit Vektorquantisierung f{\"u}r hochqualitative Audiosignale}, - booktitle = {8. ITG-Fachtagung H{\"o}rrundfunk}, - year = {1988}, - month = nov, - pages = {252--256}, - abstract = {Some Abstract, across -two lines}, -} - -% A clean item with only a single author -@book{singleauthor, - author = {Single Author}, - title = {Pr{\"a}diktive Teilbandcodierung mit Vektorquantisierung f{\"u}r hochqualitative Audiosignale}, -} - -% A really messy item with broken markup and excessive whitespace -@article { messy, - author = {First Author and {Author, Second}}, - title = {Pr{\"a}diktive Teilbandcodierung mit Vektorquantisierung f{\"u}r hochqualitative Audiosignale} - booktitle = {8. ITG-Fachtagung H\"orrundfunk} - year = {1988}, - month = nov - pages = "Page 252" - abstract = {Some Abstract across -two lines with excessive -whitespace and a missing termination bracket -} diff --git a/modules/dkan_sci_citation/includes/vendor/autoload.php b/modules/dkan_sci_citation/includes/vendor/autoload.php deleted file mode 100644 index 09756f0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/autoload.php +++ /dev/null @@ -1,7 +0,0 @@ -1.1' diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/Gemfile.lock b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/Gemfile.lock deleted file mode 100644 index 0e57f53..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/Gemfile.lock +++ /dev/null @@ -1,47 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - csl (1.4.3) - namae (~> 0.7) - diff-lcs (1.2.5) - fuubar (2.0.0) - rspec (~> 3.0) - ruby-progressbar (~> 1.4) - mini_portile2 (2.0.0) - namae (0.10.1) - nokogiri (1.6.7.2) - mini_portile2 (~> 2.0.0.rc2) - nokogiri (1.6.7.2-x64-mingw32) - mini_portile2 (~> 2.0.0.rc2) - nokogiri (1.6.7.2-x86-mingw32) - mini_portile2 (~> 2.0.0.rc2) - rake (11.1.2) - rspec (3.4.0) - rspec-core (~> 3.4.0) - rspec-expectations (~> 3.4.0) - rspec-mocks (~> 3.4.0) - rspec-core (3.4.4) - rspec-support (~> 3.4.0) - rspec-expectations (3.4.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.4.0) - rspec-mocks (3.4.1) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.4.0) - rspec-support (3.4.1) - ruby-progressbar (1.7.5) - -PLATFORMS - ruby - x64-mingw32 - x86-mingw32 - -DEPENDENCIES - csl (~> 1.1) - fuubar - nokogiri - rake - rspec - -BUNDLED WITH - 1.11.2 diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/README.md b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/README.md deleted file mode 100644 index db3a4a5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/README.md +++ /dev/null @@ -1,16 +0,0 @@ -CSL Locales Repository -====================== - -[![Build Status](https://travis-ci.org/citation-style-language/locales.svg?branch=master)](https://travis-ci.org/citation-style-language/locales) -[![license](https://img.shields.io/badge/license-CC%20BY%20SA%203.0-blue.svg)](https://github.com/citation-style-language/locales#licensing) -![languages](https://img.shields.io/badge/supported%20languages-52-orange.svg) - -[github.com/citation-style-language/locales](https://github.com/citation-style-language/locales) is the official repository for Citation Style Language (CSL) locale files and is maintained by CSL project members. -For more information, check out [CitationStyles.org](http://citationstyles.org/) and the [repository wiki](https://github.com/citation-style-language/locales/wiki). - -Licensing ---------- - -All the locale files in this repository are released under the [Creative Commons Attribution-ShareAlike 3.0 Unported license](http://creativecommons.org/licenses/by-sa/3.0/). -For attribution, any software using CSL locale files from this repository must include a clear mention of the CSL project and a link to [CitationStyles.org](http://citationstyles.org/). -When distributing these locale files, the listings of translators in the locale metadata must be kept as is. diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/Rakefile b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/Rakefile deleted file mode 100644 index 0809802..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/Rakefile +++ /dev/null @@ -1,17 +0,0 @@ - -require 'bundler' -begin - Bundler.setup -rescue Bundler::BundlerError => e - $stderr.puts e.message - $stderr.puts "Run `bundle install' to install missing gems" - exit e.status_code -end - -require 'rspec/core' -require 'rspec/core/rake_task' -RSpec::Core::RakeTask.new(:spec) do |spec| - spec.rspec_opts = %w{ --require spec_helper.rb --format Fuubar --color } -end - -task :default => [:spec] diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-af-ZA.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-af-ZA.xml deleted file mode 100644 index 4d6f6b9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-af-ZA.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - toegang verkry - en - and others - anonymous - anon - at - available at - by - circa - c. - cited - - edition - editions - - ed - et al. - voorhande - van - ibid. - in - in press - internet - interview - letter - no date - n.d. - online - presented at the - - reference - references - - - ref. - refs. - - opgehaal - scale - version - - - AD - BC - - - - - - - - - - th - st - nd - rd - th - th - th - - - first - second - third - fourth - fifth - sixth - seventh - eighth - ninth - tenth - - - - book - books - - - chapter - chapters - - - column - columns - - - figure - figures - - - folio - folios - - - number - numbers - - - reël - reëls - - - note - notes - - - opus - opera - - - bladsy - bladsye - - - bladsy - bladsye - - - paragraaf - paragrawe - - - part - parts - - - section - sections - - - sub verbo - sub verbis - - - verse - verses - - - volume - volumes - - - - bk - chap - col - fig - f - no - l. - n. - op - - bl - bll - - - bl - bll - - para - pt - sec - - s.v. - s.vv. - - - v - vv - - - vol - vols - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - redakteur - redakteurs - - - editor - editors - - - illustrator - illustrators - - - vertaler - vertalers - - - editor & translator - editors & translators - - - - - dir. - dirs. - - - red - reds - - - ed. - eds. - - - ill. - ills. - - - vert - verts - - - ed. & tran. - eds. & trans. - - - - by - directed by - onder redaksie van - edited by - illustrated by - interview by - to - by - vertaal deur - edited & translated by - - - dir. - red - ed. - illus. - verts - ed. & trans. by - - - Januarie - Februarie - Maart - April - Mei - Junie - Julie - Augustus - September - Oktober - November - Desember - - - Jan - Feb - Mrt - Apr - Mei - Jun - Jul - Aug - Sep - Okt - Nov - Des - - - Spring - Summer - Autumn - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ar.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ar.xml deleted file mode 100644 index 4db435a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ar.xml +++ /dev/null @@ -1,253 +0,0 @@ - - - - - abdealikhurrum - - - Dr. Ayman Saleh - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - تاريخ الوصول - و - وآخرون - مجهول - مجهول - عند - موجود في - عن طريق - حوالي - حوالي - وثق - - الطبعة - الطبعات - - ط - وآخرون - التالي - من - المرجع السابق - في - قيد النشر - انترنت - مقابلة - خطاب - دون تاريخ - د.ت - مباشر على الإنترنت - قُدَّم في - - مرجع - مراجع - - - مرجع - مراجع - - استرجع في - السلم الموسيقي - إصدار - - - ب.م. - ق.م. - - - " - " - ' - ' - - - - - - - الأول - الثاني - الثالث - الرابع - الخامس - السادس - السابع - الثامن - التاسع - العاشر - - - - كتاب - كتب - - - فصل - فصول - - - عمود - أعمدة - - - رسم توضيحي - رسوم توضيحية - - - ورقة - أوراق - - - عدد - أعداد - - - سطر - أسطر - - - ملاحظة - ملاحظات - - - نوته موسيقية - نوتات موسيقية - - - صفحة - صفحات - - - صفحة - صفحات - - - فقرة - فقرات - - - جزء - أجزاء - - - قسم - أقسام - - - تفسير فرعي - تفسيرات فرعية - - - بيت شعر - أبيات شعر - - - مجلد - مجلدات - - - - كتاب - فصل - عمود - رسم توضيحي - مطوية - عدد - سـ - ملاحظة - نوتة موسيقية - - ص - ص - - - ص - ص - - فقرة - ج - قسم - - تفسير فرعي - تفسيرات فرعية - - - بيت شعر - أبيات شعر - - - م - م - - - - - - ¶¶ - - - § - §§ - - - - إدارة - تحقيق - إدارة التحرير - رسوم - ترجمة - ترجمة وتحقيق - - - - - إنشاء - إشراف - تحقيق - إعداد - رسوم - مقابلة مع - المستلم - مراجعة - ترجمة - تحقيق وترجمة - - - - - يناير - فبراير - مارس - أبريل - مايو - يونيو - يوليو - أغسطس - سبتمبر - أكتوبر - نوفمبر - ديسمبر - - - - - - ربيع - صيف - خريف - شتاء - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-bg-BG.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-bg-BG.xml deleted file mode 100644 index 8624e8d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-bg-BG.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - отворен на - и - и други - анонимен - анон - в - available at - by - circa - c. - цитиран - - издание - издания - - изд - и съавт. - предстоящ - от - пак там - в - под печат - интернет - интервю - писмо - no date - без дата - онлайн - представен на - - reference - references - - - ref. - refs. - - изтеглен на - scale - version - - - AD - BC - - - - - - - - - - th - st - nd - rd - th - th - th - - - first - second - third - fourth - fifth - sixth - seventh - eighth - ninth - tenth - - - - книга - книги - - - глава - глави - - - колона - колони - - - фигура - фигури - - - фолио - фолия - - - брой - броеве - - - ред - редове - - - бележка - бележки - - - опус - опуси - - - страница - страници - - - страница - страници - - - параграф - параграфи - - - част - части - - - раздел - раздели - - - sub verbo - sub verbis - - - стих - стихове - - - том - томове - - - - кн - гл - кол - фиг - фол - бр - l. - n. - оп - - с - с-ци - - - с - с-ци - - п - ч - разд - - s.v. - s.vv. - - - ст - ст-ове - - - том - т-ове - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - редактор - редактори - - - editor - editors - - - illustrator - illustrators - - - преводач - преводачи - - - editor & translator - editors & translators - - - - - dir. - dirs. - - - ред - ред-ри - - - ed. - eds. - - - ill. - ills. - - - прев - прев-чи - - - ed. & tran. - eds. & trans. - - - - by - directed by - редактиран от - edited by - illustrated by - интервюиран от - до - by - преведен от - edited & translated by - - - dir. - ред - ed. - illus. - прев - ed. & trans. by - - - Януари - Февруари - Март - Април - Май - Юни - Юли - Август - Септември - Октомври - Ноември - Декември - - - Яну - Фев - Мар - Апр - Май - Юни - Юли - Авг - Сеп - Окт - Ное - Дек - - - Spring - Summer - Autumn - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ca-AD.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ca-AD.xml deleted file mode 100644 index 942e702..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ca-AD.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - - anidal - - - javimat - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - consulta - i - i altres - anònim - anòn. - a - disponible a - per - circa - c. - citat - - edició - edicions - - ed. - et al. - previst - de - ibíd. - en - en impremta - internet - entrevista - carta - sense data - s.d. - en línia - presentat a - - referència - referències - - - ref. - ref. - - recuperat - escala - versió - - - dC - aC - - - « - » - - - - - - - a - - - primera - segona - tercera - quarta - cinquena - sisena - setena - vuitena - novena - desena - - - - llibre - llibres - - - capítol - capítols - - - columna - columnes - - - figura - figures - - - foli - folis - - - número - números - - - línia - línies - - - nota - notes - - - opus - opera - - - pàgina - pàgines - - - pàgina - pàgines - - - paràgraf - paràgrafs - - - part - parts - - - secció - seccions - - - sub voce - sub vocibus - - - vers - versos - - - volum - volums - - - - llib. - cap. - col. - fig. - f. - núm. - l. - n. - op. - - p. - p. - - - p. - p. - - par. - pt. - sec. - - s.v. - s.v. - - - v. - v. - - - vol. - vol. - - - - - § - § - - - § - § - - - - - director - directors - - - editor - editors - - - editor - editors - - - il·lustrador - il·lustradors - - - traductor - traductors - - - editor i traductor - editors i traductors - - - - - dir. - dir. - - - ed. - ed. - - - ed. - ed. - - - il·lust. - il·lust. - - - trad. - trad. - - - ed. i trad. - ed. i trad. - - - - per - dirigit per - editat per - editat per - il·lustrat per - entrevistat per - a - per - traduït per - editat i traduït per - - - dir. - ed. - ed. - il·lust. - trad. - ed. i trad. per - - - gener - febrer - març - abril - maig - juny - juliol - agost - setembre - octubre - novembre - desembre - - - gen. - feb. - març - abr. - maig - juny - jul. - ago. - set. - oct. - nov. - des. - - - primavera - estiu - tardor - hivern - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-cs-CZ.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-cs-CZ.xml deleted file mode 100644 index dedffe2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-cs-CZ.xml +++ /dev/null @@ -1,319 +0,0 @@ - - - - - nosaal - - - Andrew Dunning - - - libora - - - Michal Hoftich - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - viděno - vid. - a - a další - anonym - anon. - v - dostupné z - od - asi - cca. - citován - - vydání - vydání - - vyd. - et al. - nadcházející - z - ibid. - in - v tisku - internet - interview - dopis - nedatováno - b.r. - online - prezentováno v - - reference - reference - - - ref. - ref. - - získáno - měřítko - verze - - - n. l. - př. n. l. - - - - " - - ´ - - - - . - - - první - druhé - třetí - čtvrté - páté - šesté - sedmé - osmé - deváté - desáté - - - - kniha - knihy - - - kapitola - kapitoly - - - sloupec - sloupce - - - obrázek - obrázky - - - list - listy - - - číslo - čísla - - - řádek - řádky - - - poznámka - poznámky - - - opus - opusy - - - strana - strany - - - strana - strany - - - odstavec - odstavce - - - část - části - - - sekce - sekce - - - pod heslem - pod hesly - - - verš - verše - - - ročník - ročníky - - - - k. - kap. - sl. - obr. - l. - č. - ř. - pozn. - op. - - s. - s. - - - s. - s. - - odst. - č. - sek. - - s.v. - s.v. - - - v. - v. - - - roč. - roč. - - - - - - ¶¶ - - - § - §§ - - - - - ředitel - ředitelé - - - editor - editoři - - - vedoucí editor - vedoucí editoři - - - ilustrátor - ilustrátoři - - - překladatel - překladatelé - - - editor a překladatel - editoři a překladatelé - - - - - řed. - řed. - - - ed. - ed. - - - ed. - ed. - - - il. - il. - - - přel. - přel. - - - ed. a přel. - ed. a přel. - - - - - řídil - editoval - editoval - ilustroval - rozhovor vedl - pro - recenzoval - přeložil - editoval a přeložil - - - řed. - ed. - ed. - ilust. - přel. - ed. a přel. - - - leden - únor - březen - duben - květen - červen - červenec - srpen - září - říjen - listopad - prosinec - - - led. - úno. - bře. - dub. - kvě. - čer. - čvc. - srp. - zář. - říj. - lis. - pro. - - - jaro - léto - podzim - zima - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-cy-GB.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-cy-GB.xml deleted file mode 100644 index bc6b8ac..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-cy-GB.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2014-10-08T12:00:00+00:00 - - - - - - - - - - - - - - gwelwyd - a/ac - ac eraill - di-enw - dienw - at - ar gael - gan - circa - c. - dyfynnwyd - - argraffiad - argraffiadau - - arg. - et al. - ar fin ymddangos - gan - ibid. - yn - yn y wasg - rhyngrwyd - cyfweliad - llythyr - dim dyddiad - d.d. - arlein - cyflwynwyd yn - - cyfeirnod - cyfeirnodau - - - cyf. - cyf’au. - - gwelwyd - graddfa - fersiwn - - - OC - CC - - - - - - - - - - th - af - il - ydd - ed - ed - ed - - - cyntaf - ail - trydydd - pedwerydd - pumed - chweched - seithfed - wythfed - nawfed - degfed - - - - llyfr - llyfrau - - - pennod - penodau - - - colofn - colofnau - - - ffigwr - ffigyrau - - - ffolio - ffolios - - - rhifyn - rhifynnau - - - llinell - llinellau - - - nodyn - nodiadau - - - opus - opera - - - tudalen - tudalennau - - - tudalen - tudalennau - - - paragraff - paragraffau - - - rhan - rhannau - - - adran - adrannau - - - sub verbo - sub verbis - - - pennill - penillion - - - cyfrol - cyfrolau - - - - llyfr. - pen. - col. - ffig. - ff. - rhif. - ll. - n. - op. - - t. - tt. - - - t. - tt. - - para. - rhan. - adr. - - s.v. - s.vv. - - - p. - pp. - - - rhif. - rhifu. - - - - - - ¶¶ - - - § - §§ - - - - - cyfarwyddwr - cyfarwyddwyr - - - golygydd - golygyddion - - - cyfarwyddwr-golygyddol - cyfarwyddwyr-golygyddol - - - darlunydd - darlunwyr - - - cyfieithydd - cyfieithwyr - - - golygydd a chyfieithydd - golygyddion a chyfieithwyr - - - - - cyf. - cyfy. - - - gol. - goln. - - - gol. - goln. - - - darlun. - darlun. - - - cyf. - cyf. - - - gol. a chyf. - goln. a chyf. - - - - gan - cyfarwyddwyd gan - golygwyd gan - cyfarwyddwyd a golygwyd gan - darlunwyd gan - cyfweliad gan - i - gan - cyfieithwyd gan - golygwyd a chyfieithwyd gan - - - cyf. gan - gol. gan - cyf.-gol. gan - darlun. gan - cyf. gan - gol. a chyf. gan - - - Ionawr - Chwefror - Mawrth - Ebrill - Mai - Mehefin - Gorffennaf - Awst - Medi - Hydref - Tachwedd - Rhagfyr - - - Ion. - Chwe. - Maw. - Ebr. - Mai - Meh. - Gorff. - Aws. - Med. - Hyd. - Tach. - Rhag. - - - Gwanwyn - Haf - Hydref - Gaeaf - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-da-DK.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-da-DK.xml deleted file mode 100644 index b556bda..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-da-DK.xml +++ /dev/null @@ -1,315 +0,0 @@ - - - - - Niels Erik Wille - - - Jonas Nyrup - - - hafnius - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - set - og - med flere - anonym - anon. - - tilgængelig hos - af - cirka - ca. - henvist - - udgave - udgaver - - udg. - m.fl. - kommende - fra - ibid. - i - i trykken - internet - interview - brev - uden år - u.å. - online - præsenteret ved - - reference - referencer - - - ref. - refr. - - hentet - skala - version - - - e.v.t. - f.v.t. - - - - - - - - - - . - - - første - anden - tredje - fjerde - femte - sjette - syvende - ottende - niende - tiende - - - - bog - bøger - - - kapitel - kapitler - - - kolonne - kolonner - - - figur - figurer - - - folio - folio - - - nummer - numre - - - linje - linjer - - - note - noter - - - opus - opus - - - side - sider - - - side - sider - - - afsnit - afsnit - - - del - dele - - - paragraf - paragraffer - - - sub voce - sub voce - - - vers - vers - - - bind - bind - - - - b. - kap. - kol. - fig. - fol. - nr. - l. - n. - op. - - s. - s. - - - s. - s. - - afs. - d. - par. - - s.v. - s.v. - - - v. - v. - - - bd. - bd. - - - - - - ¶¶ - - - § - §§ - - - - - instruktør - instruktører - - - redaktør - redaktører - - - redaktør - redaktører - - - illustrator - illustratorer - - - oversætter - oversættere - - - redaktør & oversætter - redaktører & oversættere - - - - - instr. - instr. - - - red. - red. - - - red. - red. - - - ill. - ill. - - - overs. - overs. - - - red. & overs. - red. & overs. - - - - af - instrueret af - redigeret af - redigeret af - illustreret af - interviewet af - modtaget af - af - oversat af - redigeret & oversat af - - - instr. - red. - red. - illus. - overs. - red. & overs. af - - - januar - februar - marts - april - maj - juni - juli - august - september - oktober - november - december - - - jan. - feb. - mar. - apr. - maj - jun. - jul. - aug. - sep. - okt. - nov. - dec. - - - Forår - Sommer - Efterår - Vinter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-AT.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-AT.xml deleted file mode 100644 index 7631c6a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-AT.xml +++ /dev/null @@ -1,334 +0,0 @@ - - - - - Till A. Heilmann - - - Georg Duffner - - - Sebastian Karcher - - - Sylvester Keil - - - jakov - - - Frank Bennett - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - zugegriffen - und - und andere - ohne Autor - o. A. - auf - verfügbar unter - von - circa - ca. - zitiert - - Auflage - Auflagen - - Aufl. - u. a. - i. E. - von - ebd. - in - im Druck - Internet - Interview - Brief - ohne Datum - o. J. - online - gehalten auf der - - Referenz - Referenzen - - - Ref. - Ref. - - abgerufen - Maßstab - Version - - -  n. Chr. -  v. Chr. - - - - - - - - - - . - - - erster - zweiter - dritter - vierter - fünfter - sechster - siebter - achter - neunter - zehnter - - - - Buch - Bücher - - - Kapitel - Kapitel - - - Spalte - Spalten - - - Abbildung - Abbildungen - - - Blatt - Blätter - - - Nummer - Nummern - - - Zeile - Zeilen - - - Note - Noten - - - Opus - Opera - - - Seite - Seiten - - - Seite - Seiten - - - Absatz - Absätze - - - Teil - Teile - - - Abschnitt - Abschnitte - - - sub verbo - sub verbis - - - Vers - Verse - - - Band - Bände - - - - B. - Kap. - Sp. - Abb. - Fol. - Nr. - l. - n. - op. - - S. - S. - - - S. - S. - - Abs. - Teil - Abschn. - - s. v. - s. vv. - - - V. - V. - - - Bd. - Bd. - - - - - - ¶¶ - - - § - §§ - - - - - Regisseur - Regisseure - - - Herausgeber - Herausgeber - - - Reihenherausgeber - Reihenherausgeber - - - Herausgeber - Herausgeber - - - Illustrator - Illustratoren - - - Übersetzer - Übersetzer - - - Herausgeber & Übersetzer - Herausgeber & Übersetzer - - - - - Reg. - Reg. - - - Hrsg. - Hrsg. - - - Hrsg. - Hrsg. - - - Hrsg. - Hrsg. - - - Ill. - Ill. - - - Übers. - Übers. - - - Hrsg. & Übers. - Hrsg. & Übers - - - - von - Regie von - herausgegeben von - herausgegeben von - herausgegeben von - illustriert von - interviewt von - an - von - übersetzt von - herausgegeben und übersetzt von - - - Reg. - hg. von - hg. von - hg. von - illus. von - übers. von - hg. & übers. von - - - Jänner - Februar - März - April - Mai - Juni - Juli - August - September - Oktober - November - Dezember - - - Jän. - Feb. - März - Apr. - Mai - Juni - Juli - Aug. - Sep. - Okt. - Nov. - Dez. - - - Frühjahr - Sommer - Herbst - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-CH.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-CH.xml deleted file mode 100644 index d25b76e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-CH.xml +++ /dev/null @@ -1,318 +0,0 @@ - - - - - Till A. Heilmann - - - Sylvester Keil - - - jakov - - - Sebastian Karcher - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - zugegriffen - und - und andere - ohne Autor - o. A. - auf - verfügbar unter - von - circa - ca. - zitiert - - Auflage - Auflagen - - Aufl. - u. a. - i. E. - von - ebd. - in - im Druck - Internet - Interview - Brief - ohne Datum - o. J. - online - gehalten auf der - - Referenz - Referenzen - - - Ref. - Ref. - - abgerufen - Massstab - Version - - -  n. Chr. -  v. Chr. - - - « - » - - - - - - . - - - erster - zweiter - dritter - vierter - fünfter - sechster - siebter - achter - neunter - zehnter - - - - Buch - Bücher - - - Kapitel - Kapitel - - - Spalte - Spalten - - - Abbildung - Abbildungen - - - Blatt - Blätter - - - Nummer - Nummern - - - Zeile - Zeilen - - - Note - Noten - - - Opus - Opera - - - Seite - Seiten - - - Seite - Seiten - - - Absatz - Absätze - - - Teil - Teile - - - Abschnitt - Abschnitte - - - sub verbo - sub verbis - - - Vers - Verse - - - Band - Bände - - - - B. - Kap. - Sp. - Abb. - Fol. - Nr. - l. - n. - op. - - S. - S. - - - S. - S. - - Abs. - Teil - Abschn. - - s. v. - s. vv. - - - V. - V. - - - Bd. - Bd. - - - - - - ¶¶ - - - § - §§ - - - - - Regisseur - Regisseure - - - Herausgeber - Herausgeber - - - Herausgeber - Herausgeber - - - Illustrator - Illustratoren - - - Übersetzer - Übersetzer - - - Herausgeber & Übersetzer - Herausgeber & Übersetzer - - - - - Reg. - Reg. - - - Hrsg. - Hrsg. - - - Hrsg. - Hrsg. - - - Ill. - Ill. - - - Übers. - Übers. - - - Hrsg. & Übers. - Hrsg. & Übers - - - - von - Regie von - herausgegeben von - herausgegeben von - illustriert von - interviewt von - an - von - übersetzt von - herausgegeben und übersetzt von - - - Reg. - hg. von - hg. von - illus. von - übers. von - hg. & übers. von - - - Januar - Februar - März - April - Mai - Juni - Juli - August - September - Oktober - November - Dezember - - - Jan. - Feb. - März - Apr. - Mai - Juni - Juli - Aug. - Sep. - Okt. - Nov. - Dez. - - - Frühjahr - Sommer - Herbst - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-DE.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-DE.xml deleted file mode 100644 index da86e48..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-de-DE.xml +++ /dev/null @@ -1,331 +0,0 @@ - - - - - Till A. Heilmann - - - Ulrich - - - Rintze M. Zelle - - - Sebastian Karcher - - - jakov - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - zugegriffen - und - und andere - ohne Autor - o. A. - auf - verfügbar unter - von - circa - ca. - zitiert - - Auflage - Auflagen - - Aufl. - u. a. - i. E. - von - ebd. - in - im Druck - Internet - Interview - Brief - ohne Datum - o. J. - online - gehalten auf der - - Referenz - Referenzen - - - Ref. - Ref. - - abgerufen - Maßstab - Version - - -  n. Chr. -  v. Chr. - - - - - - - - - - . - - - erster - zweiter - dritter - vierter - fünfter - sechster - siebter - achter - neunter - zehnter - - - - Buch - Bücher - - - Kapitel - Kapitel - - - Spalte - Spalten - - - Abbildung - Abbildungen - - - Blatt - Blätter - - - Nummer - Nummern - - - Zeile - Zeilen - - - Note - Noten - - - Opus - Opera - - - Seite - Seiten - - - Seite - Seiten - - - Absatz - Absätze - - - Teil - Teile - - - Abschnitt - Abschnitte - - - sub verbo - sub verbis - - - Vers - Verse - - - Band - Bände - - - - B. - Kap. - Sp. - Abb. - Fol. - Nr. - Z. - N. - op. - - S. - S. - - - S. - S. - - Abs. - Teil - Abschn. - - s. v. - s. vv. - - - V. - V. - - - Bd. - Bde. - - - - - - ¶¶ - - - § - §§ - - - - - Regisseur - Regisseure - - - Herausgeber - Herausgeber - - - Reihenherausgeber - Reihenherausgeber - - - Herausgeber - Herausgeber - - - Illustrator - Illustratoren - - - Übersetzer - Übersetzer - - - Herausgeber & Übersetzer - Herausgeber & Übersetzer - - - - - Reg. - Reg. - - - Hrsg. - Hrsg. - - - Hrsg. - Hrsg. - - - Hrsg. - Hrsg. - - - Ill. - Ill. - - - Übers. - Übers. - - - Hrsg. & Übers. - Hrsg. & Übers - - - - von - Regie von - herausgegeben von - herausgegeben von - herausgegeben von - illustriert von - interviewt von - an - von - übersetzt von - herausgegeben und übersetzt von - - - Reg. - hg. von - hg. von - hg. von - illus. von - übers. von - hg. & übers. von - - - Januar - Februar - März - April - Mai - Juni - Juli - August - September - Oktober - November - Dezember - - - Jan. - Feb. - März - Apr. - Mai - Juni - Juli - Aug. - Sep. - Okt. - Nov. - Dez. - - - Frühjahr - Sommer - Herbst - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-el-GR.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-el-GR.xml deleted file mode 100644 index 56835ce..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-el-GR.xml +++ /dev/null @@ -1,314 +0,0 @@ - - - - - thanasis57 - - - dimtamb - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2013-11-08T20:31:02+00:00 - - - - - - - - - - - - - - ημερομηνία πρόσβασης - και - και άλλοι - ανώνυμο - ανών. - εφ. - διαθέσιμο στο - από - περίπου - περ. - παρατίθεται - - έκδοση - εκδόσεις - - έκδ. - κ.ά. - προσεχές - από - στο ίδιο - στο - υπό έκδοση - διαδίκτυο - συνέντευξη - επιστολή - χωρίς χρονολογία - χ.χ. - έκδοση σε ψηφιακή μορφή - παρουσιάστηκε στο - - παραπομπή - παραπομπές - - - παρ. - παρ. - - ανακτήθηκε - κλίμακα - εκδοχή - - - μ.Χ. - π.Χ. - - - - - ' - ' - - - - ο - η - ος - - - πρώτος - δεύτερος - τρίτος - τέταρτος - πέμπτος - έκτος - έβδομος - όγδοος - ένατος - δέκατος - - - - βιβλίο - βιβλία - - - κεφάλαιο - κεφάλαια - - - στήλη - στήλες - - - εικόνα - εικόνες - - - φάκελος - φάκελοι - - - τεύχος - τεύχη - - - σειρά - σειρές - - - σημείωση - σημειώσεις - - - έργο - έργα - - - σελίδα - σελίδες - - - σελίδα - σελίδες - - - παράγραφος - παράγραφοι - - - μέρος - μέρη - - - τμήμα - τμήματα - - - λήμμα - λήμματα - - - στίχος - στίχοι - - - τόμος - τόμοι - - - - βιβ. - κεφ. - στ. - εικ. - φάκ - τχ. - γρ. - σημ. - έργ. - - σ - σσ - - - σ - σσ - - παρ. - μέρ. - τμ. - - λήμ. - λήμ. - - - στ. - στ. - - - τ. - τ. - - - - - - ¶¶ - - - § - §§ - - - - - Διευθυντής - Διευθυντές - - - επιμελητής - επιμελητές - - - διευθυντής σειράς - διευθυντές σειράς - - - εικονογράφος - εικονογράφοι - - - μεταφραστής - μεταφραστές - - - μεταφραστής και επιμελητής - μεταφραστές και επιμελητές - - - - - δ/ντης. - δ/ντές. - - - επιμ. - επιμ. - - - δ/ντής σειράς - δ/ντές σειρας - - - εικ. - εικ.. - - - μτφ. - μτφ. - - - μτφ. και επιμ. - μτφ. και επιμ. - - - - στον συλλ. τόμο - διεύθυνση - επιμέλεια - διεύθυνση σειράς - εικονογράφηση: - συνέντευξη - παραλήπτης - συγγραφέας: - μετάφραση - μετάφραση και επιμέλεια - - - διευθ. - επιμέλ. - δ/νση σειράς - εικον. - μετάφρ. - μετάφρ. και επιμέλ. - - - Ιανουάριος - Φεβρουάριος - Μάρτιος - Απρίλιος - Μάιος - Ιούνιος - Ιούλιος - Αύγουστος - Σεπτέμβριος - Οκτώβριος - Νοέμβριος - Δεκέμβριος - - - Ιανουαρίου - Φεβρουαρίου - Μαρτίου - Απριλίου - Μαΐου - Ιουνίου - Ιουλίου - Αυγούστου - Σεπτεμβρίου - Οκτωβρίου - Νοεμβρίου - Δεκεμβρίου - - - Άνοιξη - Καλοκαίρι - Φθινόπωρο - Χειμώνας - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-en-GB.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-en-GB.xml deleted file mode 100644 index 1d27e02..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-en-GB.xml +++ /dev/null @@ -1,357 +0,0 @@ - - - - - Andrew Dunning - - - Sebastian Karcher - - - Rintze M. Zelle - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2015-10-10T23:31:02+00:00 - - - - - - - - - - - - - - accessed - and - and others - anonymous - anon. - at - available at - by - circa - c. - cited - - edition - editions - - ed. - et al. - forthcoming - from - ibid. - in - in press - internet - interview - letter - no date - n.d. - online - presented at the - - reference - references - - - ref. - refs. - - retrieved - scale - version - - - AD - BC - - - - - - - - - - th - st - nd - rd - th - th - th - - - first - second - third - fourth - fifth - sixth - seventh - eighth - ninth - tenth - - - - book - books - - - chapter - chapters - - - column - columns - - - figure - figures - - - folio - folios - - - number - numbers - - - line - lines - - - note - notes - - - opus - opera - - - page - pages - - - page - pages - - - paragraph - paragraphs - - - part - parts - - - section - sections - - - sub verbo - sub verbis - - - verse - verses - - - volume - volumes - - - - - bk. - bks - - - chap. - chaps - - - col. - cols - - - fig. - figs - - - fol. - fols - - - no. - nos. - - - l. - ll. - - - n. - nn. - - - op. - opp. - - - p. - pp. - - - p. - pp. - - - para. - paras - - - pt. - pts - - - sec. - secs - - - s.v. - s.vv. - - - v. - vv. - - - vol. - vols - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - editor - editors - - - editor - editors - - - illustrator - illustrators - - - translator - translators - - - editor & translator - editors & translators - - - - - dir. - dirs. - - - ed. - eds. - - - ed. - eds. - - - ill. - ills. - - - tran. - trans. - - - ed. & tran. - eds. & trans. - - - - by - directed by - edited by - edited by - illustrated by - interview by - to - by - translated by - edited & translated by - - - dir. by - ed. by - ed. by - illus. by - trans. by - ed. & trans. by - - - January - February - March - April - May - June - July - August - September - October - November - December - - - Jan. - Feb. - Mar. - Apr. - May - Jun. - Jul. - Aug. - Sep. - Oct. - Nov. - Dec. - - - Spring - Summer - Autumn - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-en-US.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-en-US.xml deleted file mode 100644 index be78c5e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-en-US.xml +++ /dev/null @@ -1,357 +0,0 @@ - - - - - Andrew Dunning - - - Sebastian Karcher - - - Rintze M. Zelle - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2015-10-10T23:31:02+00:00 - - - - - - - - - - - - - - accessed - and - and others - anonymous - anon. - at - available at - by - circa - c. - cited - - edition - editions - - ed. - et al. - forthcoming - from - ibid. - in - in press - internet - interview - letter - no date - n.d. - online - presented at the - - reference - references - - - ref. - refs. - - retrieved - scale - version - - - AD - BC - - - - - - - - - - th - st - nd - rd - th - th - th - - - first - second - third - fourth - fifth - sixth - seventh - eighth - ninth - tenth - - - - book - books - - - chapter - chapters - - - column - columns - - - figure - figures - - - folio - folios - - - number - numbers - - - line - lines - - - note - notes - - - opus - opera - - - page - pages - - - page - pages - - - paragraph - paragraphs - - - part - parts - - - section - sections - - - sub verbo - sub verbis - - - verse - verses - - - volume - volumes - - - - - bk. - bks. - - - chap. - chaps. - - - col. - cols. - - - fig. - figs. - - - fol. - fols. - - - no. - nos. - - - l. - ll. - - - n. - nn. - - - op. - opp. - - - p. - pp. - - - p. - pp. - - - para. - paras. - - - pt. - pts. - - - sec. - secs. - - - s.v. - s.vv. - - - v. - vv. - - - vol. - vols. - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - editor - editors - - - editor - editors - - - illustrator - illustrators - - - translator - translators - - - editor & translator - editors & translators - - - - - dir. - dirs. - - - ed. - eds. - - - ed. - eds. - - - ill. - ills. - - - tran. - trans. - - - ed. & tran. - eds. & trans. - - - - by - directed by - edited by - edited by - illustrated by - interview by - to - by - translated by - edited & translated by - - - dir. by - ed. by - ed. by - illus. by - trans. by - ed. & trans. by - - - January - February - March - April - May - June - July - August - September - October - November - December - - - Jan. - Feb. - Mar. - Apr. - May - Jun. - Jul. - Aug. - Sep. - Oct. - Nov. - Dec. - - - Spring - Summer - Autumn - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-CL.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-CL.xml deleted file mode 100644 index 2bd7281..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-CL.xml +++ /dev/null @@ -1,310 +0,0 @@ - - - - - Scott Sadowsky - http://sadowsky.cl/ - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2013-10-28T13:57:31-04:00 - - - - - - - - - - - - - - accedido - y - et al. - anónimo - anón. - en - disponible en - de - circa - c. - citado - - edición - ediciones - - ed. - et al. - en preparación - a partir de - ibid. - en - en imprenta - internet - entrevista - carta - sin fecha - s. f. - en línea - presentado en - - referencia - referencias - - - ref. - refs. - - recuperado - escala - versión - - - d. C. - a. C. - - - - - - - - - - ª - - - primera - segunda - tercera - cuarta - quinta - sexta - séptima - octava - novena - décima - - - - libro - libros - - - capítulo - capítulos - - - columna - columnas - - - figura - figuras - - - folio - folios - - - número - números - - - línea - líneas - - - nota - notas - - - opus - opera - - - página - páginas - - - página - páginas - - - párrafo - párrafos - - - parte - partes - - - sección - secciones - - - sub voce - sub vocibus - - - verso - versos - - - volumen - volúmenes - - - - lib. - cap. - col. - fig. - f. - - l. - n. - op. - - p. - pp. - - - p. - pp. - - párr. - pt. - sec. - - s. v. - s. vv. - - - v. - vv. - - - vol. - vols. - - - - - § - § - - - § - § - - - - - director - directores - - - editor - editores - - - coordinador - coordinadores - - - ilustrador - ilustradores - - - traductor - traductores - - - editor y traductor - editores y traductores - - - - - dir. - dirs. - - - ed. - eds. - - - coord. - coords. - - - ilust. - ilusts. - - - trad. - trads. - - - ed. y trad. - eds. y trads. - - - - de - dirigido por - editado por - coordinado por - ilustrado por - entrevistado por - a - por - traducido por - editado y traducido por - - - dir. - ed. - coord. - ilust. - trad. - ed. y trad. - - - enero - febrero - marzo - abril - mayo - junio - julio - agosto - septiembre - octubre - noviembre - diciembre - - - ene. - feb. - mar. - abr. - may - jun. - jul. - ago. - sep. - oct. - nov. - dic. - - - primavera - verano - otoño - invierno - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-ES.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-ES.xml deleted file mode 100644 index 884882d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-ES.xml +++ /dev/null @@ -1,309 +0,0 @@ - - - - - javimat - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - accedido - y - y otros - anónimo - anón. - en - disponible en - de - circa - c. - citado - - edición - ediciones - - ed. - et al. - previsto - a partir de - ibid. - en - en imprenta - internet - entrevista - carta - sin fecha - s. f. - en línea - presentado en - - referencia - referencias - - - ref. - refs. - - recuperado - escala - versión - - - d. C. - a. C. - - - « - » - - - - - - - - - - primera - segunda - tercera - cuarta - quinta - sexta - séptima - octava - novena - décima - - - - libro - libros - - - capítulo - capítulos - - - columna - columnas - - - figura - figuras - - - folio - folios - - - número - números - - - línea - líneas - - - nota - notas - - - opus - opera - - - página - páginas - - - página - páginas - - - párrafo - párrafos - - - parte - partes - - - sección - secciones - - - sub voce - sub vocibus - - - verso - versos - - - volumen - volúmenes - - - - lib. - cap. - col. - fig. - f. - n.º - l. - n. - op. - - p. - pp. - - - p. - pp. - - párr. - pt. - sec. - - s. v. - s. vv. - - - v. - vv. - - - vol. - vols. - - - - - § - § - - - § - § - - - - - director - directores - - - editor - editores - - - editor - editores - - - ilustrador - ilustradores - - - traductor - traductores - - - editor y traductor - editores y traductores - - - - - dir. - dirs. - - - ed. - eds. - - - ed. - eds. - - - ilust. - ilusts. - - - trad. - trads. - - - ed. y trad. - eds. y trads. - - - - de - dirigido por - editado por - editado por - ilustrado por - entrevistado por - a - por - traducido por - editado y traducido por - - - dir. - ed. - ed. - ilust. - trad. - ed. y trad. - - - enero - febrero - marzo - abril - mayo - junio - julio - agosto - septiembre - octubre - noviembre - diciembre - - - ene. - feb. - mar. - abr. - may - jun. - jul. - ago. - sep. - oct. - nov. - dic. - - - primavera - verano - otoño - invierno - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-MX.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-MX.xml deleted file mode 100644 index 69badf9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-es-MX.xml +++ /dev/null @@ -1,351 +0,0 @@ - - - - - Juan Ignacio Flores Salgado - https://www.mendeley.com/profiles/juan-ignacio-flores-salgado/ - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2015-06-13T13:57:31-04:00 - - - - - - - - - - - - - - consultado - y - et al. - anónimo - anón. - en - disponible en - de - circa - c. - citado - - edición - ediciones - - - ed. - eds. - - et al. - en preparación - a partir de - ibid. - en - en imprenta - internet - entrevista - carta - sin fecha - s/f - en línea - presentado en - - referencia - referencias - - - ref. - refs. - - recuperado - escala - versión - - - d. C. - a. C. - - - - - - - - - - a - a - o - - - primera - segunda - tercera - cuarta - quinta - sexta - séptima - octava - novena - décima - - - - libro - libros - - - capítulo - capítulos - - - columna - columnas - - - figura - figuras - - - folio - folios - - - número - números - - - línea - líneas - - - nota - notas - - - opus - opera - - - página - páginas - - - página - páginas - - - párrafo - párrafos - - - parte - partes - - - sección - secciones - - - sub voce - sub vocibus - - - verso - versos - - - volumen - volúmenes - - - - - lib. - libs. - - - cap. - caps. - - - col. - cols. - - - fig. - figs. - - - f. - ff. - - - núm. - núms. - - - l. - ls. - - - n. - nn. - - - op. - opp. - - - p. - pp. - - - p. - pp. - - - párr. - párrs. - - - pt. - pts. - - - sec. - secs. - - - s. v. - s. vv. - - - v. - vv. - - - vol. - vols. - - - - - - - - - § - § - - - - - director - directores - - - editor - editores - - - coordinador - coordinadores - - - ilustrador - ilustradores - - - traductor - traductores - - - editor y traductor - editores y traductores - - - - - dir. - dirs. - - - ed. - eds. - - - coord. - coords. - - - ilust. - ilusts. - - - trad. - trads. - - - ed. y trad. - eds. y trads. - - - - de - dirigido por - editado por - coordinado por - ilustrado por - entrevistado por - a - por - traducido por - editado y traducido por - - - dir. - ed. - coord. - ilust. - trad. - ed. y trad. - - - enero - febrero - marzo - abril - mayo - junio - julio - agosto - septiembre - octubre - noviembre - diciembre - - - ene. - feb. - mar. - abr. - may - jun. - jul. - ago. - sep. - oct. - nov. - dic. - - - primavera - verano - otoño - invierno - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-et-EE.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-et-EE.xml deleted file mode 100644 index 29c1c21..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-et-EE.xml +++ /dev/null @@ -1,309 +0,0 @@ - - - - - Andrew Dunning - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - vaadatud - ja - ja teised - anonüümne - anon - - available at - - umbes - u - tsiteeritud - - väljaanne - väljaanded - - tr - et al. - ilmumisel - - ibid. - - trükis - internet - intervjuu - kiri - s.a. - s.a. - online - esitatud - - viide - viited - - - viide - viited - - salvestatud - scale - version - - - pKr - eKr - - - - - - - - - - . - - - esimene - teine - kolmas - neljas - viies - kuues - seitsmes - kaheksas - üheksas - kümnes - - - - raamat - raamatud - - - peatükk - peatükid - - - veerg - veerud - - - joonis - joonised - - - foolio - fooliod - - - number - numbrid - - - rida - read - - - viide - viited - - - opus - opera - - - lehekülg - leheküljed - - - lehekülg - leheküljed - - - lõik - lõigud - - - osa - osad - - - alajaotis - alajaotised - - - sub verbo - sub verbis - - - värss - värsid - - - köide - köited - - - - rmt - ptk - v - joon - f - nr - l. - n. - op - - lk - lk - - - lk - lk - - lõik - osa - alajaot. - - s.v. - s.vv. - - - v - vv - - - kd - kd - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - toimetaja - toimetajad - - - toimetaja - toimetajad - - - illustrator - illustrators - - - tõlkija - tõlkijad - - - toimetaja & tõlkija - toimetajad & tõlkijad - - - - - dir. - dirs. - - - toim - toim - - - toim - toim - - - ill. - ills. - - - tõlk - tõlk - - - toim & tõlk - toim & tõlk - - - - - directed by - toimetanud - toimetanud - illustrated by - intervjueerinud - - by - tõlkinud - toimetanud & tõlkinud - - - dir. - toim - toim - illus. - tõlk - toim & tõlk - - - jaanuar - veebruar - märts - aprill - mai - juuni - juuli - august - september - oktoober - november - detsember - - - jaan - veebr - märts - apr - mai - juuni - juuli - aug - sept - okt - nov - dets - - - kevad - suvi - sügis - talv - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-eu.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-eu.xml deleted file mode 100644 index a381b27..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-eu.xml +++ /dev/null @@ -1,309 +0,0 @@ - - - - - Amaraun - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - eskuratua - eta - eta beste - ezezaguna - ezez. - -(e)n - available at - -(e)k egina - inguru - ing. - aipatua - - argitalpena - argitalpenak - - arg. - et al. - bidean - -(e)tik - ibíd. - in - moldiztegian - internet - elkarrizketa - gutuna - datarik gabe - d. g. - sarean - -(e)n aurkeztua - - aipamena - aipamenak - - - aip. - aip. - - berreskuratua - scale - version - - - K.a. - K.o. - - - « - » - - - - - - . - - - lehengo - bigarren - hirugarren - laugarren - bosgarren - seigarren - zazpigarren - zortzigarren - bederatzigarren - hamargarren - - - - liburua - liburuak - - - kapitulua - kapituluak - - - zutabea - zutabeak - - - irudia - irudiak - - - orria - orriak - - - zenbakia - zenbakiak - - - lerroa - lerroak - - - oharra - oharrak - - - obra - obrak - - - orrialdea - orrialdeak - - - orrialdea - orrialdeak - - - paragrafoa - paragrafoak - - - zatia - zatiak - - - atala - atalak - - - sub voce - sub vocem - - - bertsoa - bertsoak - - - luburikia - luburukiak - - - - lib. - kap. - zut. - iru. - or. - zenb. - l. - n. - op. - - or. - or. - - - or. - or. - - par. - zt. - atal. - - s.v. - s.v. - - - b. - bb. - - - libk. - libk. - - - - - - ¶¶ - - - § - § - - - - - director - directors - - - argitaratzailea - argitaratzaileak - - - argitaratzailea - argitaratzaileak - - - illustrator - illustrators - - - itzultzailea - itzultzaileak - - - argitaratzaile eta itzultzailea - argitaratzaile eta itzultzaileak - - - - - dir. - dirs. - - - arg. - arg. - - - arg. - arg. - - - ill. - ills. - - - itzul. - itzul. - - - arg. eta itzul. - arg. eta itzul. - - - - - directed by - -(e)k argitaratua - -(e)k argitaratua - illustrated by - -(e)k elkarrizketatua - -(r)entzat - by - -(e)k itzulia - -(e)k argitaratu eta itzulia - - - dir. - arg. - arg. - illus. - itzul. - -(e)k arg. eta itzul. - - - urtarrilak - otsailak - martxoak - apirilak - maiatzak - ekainak - uztailak - abuztuak - irailak - urriak - azaroak - abenduak - - - urt. - ots. - martx. - apr. - mai. - eka. - uzt. - abz. - ira. - urr. - aza. - abe. - - - udaberria - uda - udazkena - negua - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fa-IR.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fa-IR.xml deleted file mode 100644 index 61df213..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fa-IR.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - - Hamed Heydari - - - abdealikhurrum - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - دسترسی - و - و دیگران - ناشناس - ناشناس - در - قابل دسترس در - توسط - تقریباً - c. - ارجاع شده - - ویرایش - ویرایش‌های - - ویرایش - و همکاران - در دست انتشار - از - همان - در - زیر چاپ - اینترنت - مصاحبه - نامه - بدون تاریخ - بدون تاریخ - آنلاین - ارائه شده در - - مرجع - مراجع - - - مرجع - مراجع - - retrieved - scale - نسخه - - - بعد از میلاد - قبل از میلاد - - - - - - - - - - - - - اول - دوم - سوم - چهارم - پنجم - ششم - هفتم - هشتم - نهم - دهم - - - - کتاب - کتاب‌های - - - فصل - فصل‌های - - - ستون - ستون‌های - - - تصویر - تصاویر - - - برگ - برگ‌های - - - شماره - شماره‌های - - - خط - خطوط - - - یادداشت - یادداشت‌های - - - قطعه - قطعات - - - صفحه - صفحات - - - صفحه - صفحات - - - پاراگراف - پاراگراف‌های - - - بخش - بخش‌های - - - قسمت - قسمت‌های - - - در ذیلِ واژه - در ذیلِ واژه‌های - - - بیت - بیت‌های - - - جلد - جلدهای - - - - کتاب - فصل - ستون - تصویر - برگ - ش - خط - یادداشت - قطعه - - ص - صص - - - ص - صص - - پاراگراف - بخش - قسمت - - s.v - s.vv - - - بیت - ابیات - - - ج - جج - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - ویراستار - ویراستاران - - - ویراستار - ویراستاران - - - طراح گرافیک - طراحان گرافیک - - - مترجم - مترجمین - - - ویراستار و مترجم - ویراستاران و مترجمین - - - - - dir. - dirs. - - - ویراستار - ویراستاران - - - ویراستار - ویراستاران - - - تصویرگر - تصویرگران - - - مترجم - مترجمین - - - ویراستار و مترجم - ویراستاران و مترجمین - - - - توسط - زیر نظر - ویراسته‌ی - ویراسته‌ی - طراحی گرافیکی از - مصاحبه توسط - به - بازبینی توسط - ترجمه‌ی - ترجمه و ویراسته‌ی - - - dir. - ویراسته‌ی - ویراسته‌ی - طراحی از - ترجمه‌ی - ترجمه و ویراسته‌ی - - - ژانویه - فوریه - مارس - آوریل - می - ژوئن - جولای - آگوست - سپتامبر - اکتبر - نوامبر - دسامبر - - - ژانویه - فوریه - مارس - آوریل - می - ژوئن - جولای - آگوست - سپتامبر - اکتبر - نوامبر - دسامبر - - - بهار - تابستان - پاییز - زمستان - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fi-FI.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fi-FI.xml deleted file mode 100644 index 7b3468b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fi-FI.xml +++ /dev/null @@ -1,318 +0,0 @@ - - - - - Janne Huovari - - - snissine - - - villelahtinen - - - Juhana Venäläinen - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - viitattu - ja - ym. - tuntematon - tuntematon - osoitteessa - saatavissa - tekijä - noin - n. - viitattu - - painos - painokset - - p. - ym. - tulossa - osoitteesta - mt. - teoksessa - painossa - internet - haastattelu - kirje - ei päivämäärää - ei pvm. - verkossa - esitetty tilaisuudessa - - viittaus - viittaukset - - - viit. - viit. - - noudettu - mittakaava - versio - - - eaa. - jaa. - - - - - - - - - - . - - - ensimmäinen - toinen - kolmas - neljäs - viides - kuudes - seitsemäs - kahdeksas - yhdeksäs - kymmenes - - - - kirja - kirjat - - - luku - luvut - - - palsta - palstat - - - kuvio - kuviot - - - folio - foliot - - - numero - numerot - - - rivi - rivit - - - huomautus - huomautukset - - - opus - opukset - - - sivu - sivut - - - sivu - sivut - - - kappale - kappaleet - - - osa - osat - - - osa - osat - - - sub verbo - sub verbis - - - säkeistö - säkeistöt - - - vuosikerta - vuosikerrat - - - - kirja - luku - palsta - kuv. - fol. - nro - r. - huom. - op. - - s. - ss. - - - s. - ss. - - kappale - osa - osa - - s.v. - s.vv. - - - säk. - säk. - - - vsk. - vsk. - - - - - - ¶¶ - - - § - §§ - - - - - ohjaaja - ohjaajat - - - toimittaja - toimittajat - - - toimittaja - toimittajat - - - kuvittaja - kuvittajat - - - kääntäjä - kääntäjät - - - toimittaja ja kääntäjä - toimittajat ja kääntäjät - - - - - ohj. - ohj. - - - toim. - toim. - - - toim. - toim. - - - kuv. - kuv. - - - käänt. - käänt. - - - toim. ja käänt. - toim. ja käänt. - - - - - ohjannut - toimittanut - toimittanut - kuvittanut - haastatellut - vastaanottaja - - kääntänyt - toimittanut ja kääntänyt - - - ohj. - toim. - toim. - kuv. - käänt. - toim. ja käänt. - - - tammikuuta - helmikuuta - maaliskuuta - huhtikuuta - toukokuuta - kesäkuuta - heinäkuuta - elokuuta - syyskuuta - lokakuuta - marraskuuta - joulukuuta - - - tammi - helmi - maalis - huhti - touko - kesä - heinä - elo - syys - loka - marras - joulu - - - kevät - kesä - syksy - talvi - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fr-CA.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fr-CA.xml deleted file mode 100644 index 01e2148..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fr-CA.xml +++ /dev/null @@ -1,317 +0,0 @@ - - - - - Grégoire Colly - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - consulté le - et - et autres - anonyme - anon. - sur - disponible à - par - vers - v. - cité - - édition - éditions - - éd. - et al. - à paraître - à l'adresse - ibid. - dans - sous presse - Internet - entretien - lettre - sans date - s. d. - en ligne - présenté à - - référence - références - - - réf. - réf. - - consulté - échelle - version - - - apr. J.-C. - av. J.-C. - - - «  -  » - - - - - - - ʳᵉ - ᵉʳ - - - premier - deuxième - troisième - quatrième - cinquième - sixième - septième - huitième - neuvième - dixième - - - - livre - livres - - - chapitre - chapitres - - - colonne - colonnes - - - figure - figures - - - folio - folios - - - numéro - numéros - - - ligne - lignes - - - note - notes - - - opus - opus - - - page - pages - - - page - pages - - - paragraphe - paragraphes - - - partie - parties - - - section - sections - - - sub verbo - sub verbis - - - verset - versets - - - volume - volumes - - - - liv. - chap. - col. - fig. - - fᵒ - fᵒˢ - - - nᵒ - nᵒˢ - - l. - n. - op. - - p. - p. - - - p. - p. - - paragr. - part. - sect. - - s. v. - s. vv. - - - v. - v. - - - vol. - vol. - - - - - § - § - - - § - § - - - - - réalisateur - réalisateurs - - - éditeur - éditeurs - - - directeur - directeurs - - - illustrateur - illustrateurs - - - traducteur - traducteurs - - - éditeur et traducteur - éditeurs et traducteurs - - - - - réal. - réal. - - - éd. - éd. - - - dir. - dir. - - - ill. - ill. - - - trad. - trad. - - - éd. et trad. - éd. et trad. - - - - par - réalisé par - édité par - sous la direction de - illustré par - entretien réalisé par - à - par - traduit par - édité et traduit par - - - réal. par - éd. par - ss la dir. de - ill. par - trad. par - éd. et trad. par - - - janvier - février - mars - avril - mai - juin - juillet - août - septembre - octobre - novembre - décembre - - - janv. - févr. - mars - avr. - mai - juin - juill. - août - sept. - oct. - nov. - déc. - - - printemps - été - automne - hiver - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fr-FR.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fr-FR.xml deleted file mode 100644 index d543851..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-fr-FR.xml +++ /dev/null @@ -1,317 +0,0 @@ - - - - - Grégoire Colly - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - consulté le - et - et autres - anonyme - anon. - sur - disponible sur - par - vers - v. - cité - - édition - éditions - - éd. - et al. - à paraître - à l'adresse - ibid. - in - sous presse - Internet - entretien - lettre - sans date - s. d. - en ligne - présenté à - - référence - références - - - réf. - réf. - - consulté - échelle - version - - - apr. J.-C. - av. J.-C. - - - «  -  » - - - - - - - ʳᵉ - ᵉʳ - - - premier - deuxième - troisième - quatrième - cinquième - sixième - septième - huitième - neuvième - dixième - - - - livre - livres - - - chapitre - chapitres - - - colonne - colonnes - - - figure - figures - - - folio - folios - - - numéro - numéros - - - ligne - lignes - - - note - notes - - - opus - opus - - - page - pages - - - page - pages - - - paragraphe - paragraphes - - - partie - parties - - - section - sections - - - sub verbo - sub verbis - - - verset - versets - - - volume - volumes - - - - liv. - chap. - col. - fig. - - fᵒ - fᵒˢ - - - nᵒ - nᵒˢ - - l. - n. - op. - - p. - p. - - - p. - p. - - paragr. - part. - sect. - - s. v. - s. vv. - - - v. - v. - - - vol. - vol. - - - - - § - § - - - § - § - - - - - réalisateur - réalisateurs - - - éditeur - éditeurs - - - directeur - directeurs - - - illustrateur - illustrateurs - - - traducteur - traducteurs - - - éditeur et traducteur - éditeurs et traducteurs - - - - - réal. - réal. - - - éd. - éd. - - - dir. - dir. - - - ill. - ill. - - - trad. - trad. - - - éd. et trad. - éd. et trad. - - - - par - réalisé par - édité par - sous la direction de - illustré par - entretien réalisé par - à - par - traduit par - édité et traduit par - - - réal. par - éd. par - ss la dir. de - ill. par - trad. par - éd. et trad. par - - - janvier - février - mars - avril - mai - juin - juillet - août - septembre - octobre - novembre - décembre - - - janv. - févr. - mars - avr. - mai - juin - juill. - août - sept. - oct. - nov. - déc. - - - printemps - été - automne - hiver - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-he-IL.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-he-IL.xml deleted file mode 100644 index 703b63d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-he-IL.xml +++ /dev/null @@ -1,315 +0,0 @@ - - - - - roypeled1 - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - נבדק לאחרונה - ו - ואחרים - אלמוני - anon - - זמין ב - על-ידי - לערך - c. - מצוטט ב - - מהדורה - מהדורות - - ed - ואחרים - צפוי - מתוך - שם - בתוך - בהדפסה - אינטרנט - ראיון - מכתב - אין נתונים - nd - מקוון - הוצג ב - - הפניה - הפניות - - - ref. - refs. - - אוחזר - scale - גירסה - - - לספירה - לפני הספירה - - - - - - - - - - th - st - nd - rd - th - th - th - - - ראשון - שני - שלישי - רביעי - חמישי - שישי - שביעי - שמיני - תשיעי - עשירי - - - - ספר - ספרים - - - פרק - פרקים - - - טור - טורים - - - figure - figures - - - פוליו - פוליו - - - מספר - מספרים - - - שורה - שורות - - - הערה - הערות - - - אופוס - אופרה - - - עמוד - עמודים - - - עמוד - עמודים - - - פיסקה - פיסקאות - - - חלק - חלקים - - - סעיף - סעיפים - - - sub verbo - sub verbis - - - בית - בתים - - - כרך - כרכים - - - - bk - chap - col - fig - f - no - l. - n. - op - - 'עמ - 'עמ - - - 'עמ - 'עמ - - para - pt - ס' - - s.v. - s.vv. - - - v - vv - - - vol - vols - - - - - - ¶¶ - - - § - §§ - - - - - במאי - במאים - - - עורך - עורכים - - - עורך ראשי - עורכים ראשיים - - - מאייר - מאיירים - - - מתרגם - מתרגמים - - - editor & translator - editors & translators - - - - - dir. - dirs. - - - ed - eds - - - ed. - eds. - - - ill. - ills. - - - tran - trans - - - ed. & tran. - eds. & trans. - - - - by - בוים ע"י - נערך ע"י - בוים ע"י - אויר ע"י - רואיין ע"י - אל - ע"י - תורגם ע"י - edited & translated by - - - dir. - ed - ed. - illus. - trans - ed. & trans. by - - - ינואר - פברואר - מרץ - אפריל - מאי - יוני - יולי - אוגוסט - ספטמבר - אוקטובר - נובמבר - דצמבר - - - Jan - Feb - Mar - Apr - May - Jun - Jul - Aug - Sep - Oct - Nov - Dec - - - Spring - Summer - Autumn - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-hr-HR.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-hr-HR.xml deleted file mode 100644 index c4f8ce1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-hr-HR.xml +++ /dev/null @@ -1,309 +0,0 @@ - - - - - tvrbanec - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - pristupljeno - i - i ostali - anonimno - anon. - na - dostupno na - od - oko - oko - citirano - - izdanje - izdanja - - izd. - i ostali - u pripremi - od - ibid. - u - u tisku - internet - intervju - pismo - bez datuma - bez dat. - na internetu - predstavljeno na - - reference - reference - - - ref. - ref. - - preuzeto - skala - verzija - - - - pr. Kr. - - - - - - - - - - . - - - prvi - drugi - treći - četvrti - peti - šesti - sedmi - osmi - deveti - deseti - - - - knjiga - knjige - - - poglavlje - poglavlja - - - stupac - stupci - - - crtež - crteži - - - folija - folije - - - izdanje - izdanja - - - red - redovi - - - bilješka - bilješke - - - djelo - djela - - - stranica - stranice - - - stranica - stranice - - - pasus - pasusi - - - dio - dijelova - - - odjeljak - odjeljci - - - sub verbo - sub verbis - - - stih - stihovi - - - svezak - svesci - - - - knj. - pogl. - stup. - crt. - fol. - izd. - red - bilj. - sv. - - str. - str. - - - str. - str. - - par. - dio - od. - - s.v. - s.vv. - - - st. - st. - - - sv. - sv. - - - - - - ¶¶ - - - § - §§ - - - - - voditelj - voditelji - - - urednik - urednici - - - urednik - urednici - - - ilustrator - ilustratori - - - prevoditelj - prevoditelji - - - urednik & prevoditelj - urednici & prevoditelji - - - - - vod. - vod. - - - ur. - ur. - - - ur.-vod. - ur.-vod. - - - il. - il. - - - prev. - prev. - - - ur. & prev. - ur. & prev. - - - - od - vodio - uredio - uredio - ilustrirao - intervjuirao - primatelj - pregledao - preveo - uredio & preveo - - - vod. - ur. - ur. vod. - ilus. - prev. - ur. & prev. - - - siječanj - veljača - ožujak - travanj - svibanj - lipanj - srpanj - kolovoz - rujan - listopad - studeni - prosinac - - - sij. - velj. - ožu. - tra. - svi. - lip. - srp. - kol. - ruj. - lis. - stu. - pros. - - - proljeće - ljeto - jesen - zima - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-hu-HU.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-hu-HU.xml deleted file mode 100644 index 7a0e471..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-hu-HU.xml +++ /dev/null @@ -1,313 +0,0 @@ - - - - - Miklos Vajna - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2014-06-17T09:56:35+02:00 - - - - - - - - - - - - - - elérés - és - és mások - szerző nélkül - sz. n. - - elérhető - by - körülbelül - kb. - idézi - - kiadás - kiadás - - kiad. - és mtsai. - megjelenés alatt - forrás - uo. - in - nyomtatás alatt - internet - interjú - levél - évszám nélkül - é. n. - online - előadás - - hivatkozás - hivatkozás - - - hiv. - hiv. - - elérés - skála - verzió - - - Kr. u. - Kr. e. - - - i. sz. - i. e. - - - - - » - « - - - - . - - - első - második - harmadik - negyedik - ötödik - hatodik - hetedik - nyolcadik - kilencedik - tizedik - - - - könyv - könyv - - - fejezet - fejezet - - - oszlop - oszlop - - - ábra - ábra - - - fóliáns - fóliáns - - - szám - szám - - - sor - sor - - - jegyzet - jegyzet - - - - - - - oldal - oldal - - - oldal - oldal - - - bekezdés - bekezdés - - - rész - rész - - - szakasz - szakasz - - - sub verbo - sub verbis - - - versszak - versszak - - - kötet - kötet - - - - könyv - fej. - oszl. - ábr. - fol. - sz. - s. - j. - op. - - o. - o. - - - o. - o. - - bek. - rész - szak. - - s. v. - s. vv. - - - vsz. - vsz. - - - köt. - köt. - - - - - - ¶¶ - - - § - §§ - - - - - igazgató - igazgató - - - szerkesztő - szerkesztő - - - szerkesztőségi igazgató - szerkesztőségi igazgató - - - illusztrátor - illusztrátor - - - fordító - fordító - - - szerkesztő & fordító - szerkesztő & fordító - - - - - ig. - ig. - - - szerk. - szerk. - - - szerk. ig. - szerk. ig. - - - ill. - ill. - - - ford. - ford. - - - szerk. & ford. - szerk. & ford. - - - - by - directed by - szerkesztette - edited by - illusztrálta - interjúkészítő - címzett - by - fordította - szerkesztette & fordította - - - ig. - szerk. - ed. - ill. - ford. - szerk. & ford. - - - január - február - március - április - május - június - július - augusztus - szeptember - október - november - december - - - jan. - febr. - márc. - ápr. - máj. - jún. - júl. - aug. - szept. - okt. - nov. - dec. - - - tavasz - nyár - ősz - tél - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-id-ID.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-id-ID.xml deleted file mode 100644 index 1b669b8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-id-ID.xml +++ /dev/null @@ -1,321 +0,0 @@ - - - - - faizhabibullah - - - Deden Habibi - - - xbypass - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2015-08-05T23:31:02+00:00 - - - - - - - - - - - - - - diakses - dan - dan lainnya - anonim - anon. - pada - tersedia pada - oleh - circa - ca. - dikutip - - edisi - edisi - - ed. - dkk. - mendatang - dari - ibid. - dalam - dalam proses cetakan - internet - wawancara - surat - tanpa tanggal - t.t. - daring - dipresentasikan pada - - referensi - referensi - - - ref. - ref. - - diambil - skala - versi - - - M - SM - - - - - - - - - - - - - - - - - - - pertama - kedua - ketiga - keempat - kelima - keenam - ketujuh - kedelapan - kesembilan - kesepuluh - - - - buku - buku - - - bab - bab - - - kolom - kolom - - - gambar - gambar - - - folio - folio - - - nomor - nomor - - - baris - baris - - - catatan - catatan - - - opus - opera - - - halaman - halaman - - - halaman - halaman - - - paragraf - paragraf - - - bagian - bagian - - - bagian - bagian - - - sub verbo - sub verbis - - - ayat - ayat - - - volume - volume - - - - bk. - bb. - kol. - gbr. - fol. - no. - brs. - ctt. - op. - - hlm. - hlm. - - - hlm. - hlm. - - para. - bag. - bag. - - s.v. - s.vv. - - - a. - a. - - - vol. - vol. - - - - - - ¶¶ - - - § - §§ - - - - - direktur - direktur - - - editor - editor - - - editor - editor - - - ilustrator - ilustrator - - - penerjemah - penerjemah - - - editor & penerjemah - editor & penerjemah - - - - - dir. - dir. - - - ed. - ed. - - - ed. - ed. - - - il. - il. - - - penerj. - penerj. - - - ed. & penerj. - ed. & penerj. - - - - oleh - diarahkan oleh - disunting oleh - disunting oleh - diilustrasi oleh - diwawancara oleh - kepada - oleh - diterjemahkan oleh - disunting & diterjemahkan oleh - - - dir. oleh - ed. oleh - ed. oleh - illus. oleh - trans. oleh - ed. & penerj. oleh - - - Januari - Februari - Maret - April - Mei - Juni - Juli - Agustus - September - Oktober - November - Desember - - - Jan - Feb - Mar - Apr - Mei - Jun - Jul - Agu - Sep - Okt - Nov - Des - - - Semi - Panas - Gugur - Dingin - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-is-IS.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-is-IS.xml deleted file mode 100644 index 03a56f0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-is-IS.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - - dadamaster - - - styrmirm - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - sótt - og - og fleiri - nafnlaus - nafnl. - af - aðgengilegt á - eftir - sirka - u.þ.b. - tilvitnun - - útgáfa - útgáfur - - útg. - o.fl. - óbirt - af - sama heimild - í - í prentun - rafrænt - viðtal - bréf - engin dagsetning - e.d. - rafrænt - flutt á - - tilvitnun - tilvitnanir - - - tilv. - tilv. - - sótt - scale - útgáfa - - - e.Kr. - f.Kr. - - - - - - - - - - . - - - fyrsti - annar - þriðji - fjórði - fimmti - sjötti - sjöundi - áttundi - níundi - tíundi - - - - bók - bækur - - - kafli - kaflar - - - dálkur - dálkar - - - mynd - myndir - - - handrit - handrit - - - tölublað - tölublöð - - - lína - línur - - - athugasemd - athugasemdir - - - tónverk - tónverk - - - blaðsíða - blaðsíður - - - blaðsíða - blaðsíður - - - málsgrein - málsgreinar - - - hluti - hlutar - - - hluti - hlutar - - - sub verbo - sub verbis - - - vers - vers - - - bindi - bindi - - - - bók - k. - d. - mynd. - handr. - tbl. - l. - ath. - tónv. - - bls. - bls. - - - bls. - bls. - - málsgr. - hl. - hl. - - s.v. - s.vv. - - - v. - v. - - - b. - b. - - - - - - ¶¶ - - - § - §§ - - - - - leikstjóri - leikstjórar - - - ritstjóri - ritstjórar - - - ritstjóri - ritstjórar - - - höfundur myndskreytinga - höfundar myndskreytinga - - - þýðandi - þýðendur - - - ritstjóri og þýðandi - ritstjórar og þýðendur - - - - - leikstj. - leikstj. - - - ritstj. - ritstj. - - - ritstj. - ritstj. - - - höf. mynd. - höf. mynd. - - - þýð. - þýð. - - - ritstj. og þýð. - ritstj. og þýð. - - - - eftir - leikstýrt af - ritstýrt af - ritstýrt af - myndskreytt af - viðtal tók - til - by - þýddi - ritstýrt og þýtt af - - - leikstj. - ritstj. - ritstj. - myndskr. - þýð. - ritstj. og þýð. - - - janúar - febrúar - mars - apríl - maí - júní - júlí - ágúst - september - október - nóvember - desember - - - jan. - feb. - mar. - apr. - maí - jún. - júl. - ágú. - sep. - okt. - nóv. - des. - - - vor - sumar - haust - vetur - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-it-IT.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-it-IT.xml deleted file mode 100644 index 4576bcc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-it-IT.xml +++ /dev/null @@ -1,309 +0,0 @@ - - - - - FI App Development - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - consultato - e - e altri - anonimo - anon. - a - available at - di - circa - c. - citato - - edizione - edizioni - - ed. - et al. - futuro - da - ibid. - in - in stampa - internet - intervista - lettera - senza data - s.d. - in linea - presentato al - - reference - references - - - ref. - refs. - - recuperato - scale - version - - - d.C. - a.C. - - - « - » - - - - - - ° - - - prima - seconda - terza - quarta - quinta - sesta - settima - ottava - nona - decima - - - - libro - libri - - - capitolo - capitoli - - - colonna - colonne - - - figura - figure - - - foglio - fogli - - - numero - numeri - - - riga - righe - - - nota - note - - - opera - opere - - - pagina - pagine - - - pagina - pagine - - - capoverso - capoversi - - - parte - parti - - - paragrafo - paragrafi - - - sub verbo - sub verbis - - - verso - versi - - - volume - volumi - - - - lib. - cap. - col. - fig. - fgl. - n. - l. - n. - op. - - pag. - pagg. - - - pag. - pagg. - - cpv. - pt. - par. - - s.v. - s.vv. - - - v. - vv. - - - vol. - vol. - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - curatore - curatori - - - editor - editors - - - illustrator - illustrators - - - traduttore - traduttori - - - curatore e traduttore - curatori e tradutori - - - - - dir. - dirs. - - - a c. di - a c. di - - - ed. - eds. - - - ill. - ills. - - - trad. - trad. - - - a c. di e trad. da - a c. di e trad. da - - - - di - directed by - a cura di - edited by - illustrated by - intervista di - a - by - tradotto da - a cura di e tradotto da - - - dir. - a c. di - ed. - illus. - trad. da - a c. di e trad. da - - - gennaio - febbraio - marzo - aprile - maggio - giugno - luglio - agosto - settembre - ottobre - novembre - dicembre - - - gen. - feb. - mar. - apr. - mag. - giu. - lug. - ago. - set. - ott. - nov. - dic. - - - primavera - estate - autunno - inverno - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ja-JP.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ja-JP.xml deleted file mode 100644 index 71f612a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ja-JP.xml +++ /dev/null @@ -1,315 +0,0 @@ - - - - - Shoji Takahashi - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - 参照 - - and others - anonymous - anon - at - available at - by - circa - c. - cited - - - - - - ほか - 近刊 - から - 前掲 - - in press - internet - interview - letter - no date - 日付なし - online - presented at the - - reference - references - - - ref. - refs. - - 読み込み - scale - version - - - AD - BC - - - - - - - - - - th - st - nd - rd - th - th - th - - - first - second - third - fourth - fifth - sixth - seventh - eighth - ninth - tenth - - - - book - books - - - chapter - chapters - - - column - columns - - - figure - figures - - - folio - folios - - - number - numbers - - - - - - - note - notes - - - opus - opera - - - ページ - ページ - - - ページ - ページ - - - 段落 - 段落 - - - part - parts - - - section - sections - - - sub verbo - sub verbis - - - verse - verses - - - volume - volumes - - - - bk. - chap. - col. - fig. - f. - no. - l. - n. - op. - - p. - pp. - - - p. - pp. - - para. - pt. - sec. - - s.v. - s.vv. - - - v. - vv. - - - vol. - vols. - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - - - - - editor - editors - - - illustrator - illustrators - - - 翻訳者 - 翻訳者 - - - editor & translator - editors & translators - - - - - dir. - dirs. - - - - - - - ed. - eds. - - - ill. - ills. - - - 翻訳者 - 翻訳者 - - - ed. & tran. - eds. & trans. - - - - by - directed by - 編集者: - edited by - illustrated by - interview by - to - by - 翻訳者: - edited & translated by - - - dir. - 編集者: - ed. - illus. - 翻訳者: - ed. & trans. by - - - 1月 - 2月 - 3月 - 4月 - 5月 - 6月 - 7月 - 8月 - 9月 - 10月 - 11月 - 12月 - - - 1月 - 2月 - 3月 - 4月 - 5月 - 6月 - 7月 - 8月 - 9月 - 10月 - 11月 - 12月 - - - Spring - Summer - Autumn - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-km-KH.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-km-KH.xml deleted file mode 100644 index 7f698c0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-km-KH.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - accessed - and - and others - anonymous - anon. - at - available at - by - circa - c. - cited - - edition - editions - - ed. - et al. - forthcoming - from - ibid - in - in press - internet - interview - letter - no date - n.d. - online - presented at the - - reference - references - - - ref. - refs. - - retrieved - scale - version - - - AD - BC - - - - - - - - - - th - st - nd - rd - th - th - th - - - ទីមួយ - ទីពីរ - ទីបី - ទីបួន - ទីប្រាំ - ទីប្រាំមួយ - ទីប្រាំពីរ - ទីប្រាំបី - ទីប្រាំបួន - ទីដប់មួយ - - - - សៀវភៅ - សៀវភៅ - - - ជំពូក - ជំពូក - - - កាឡោន - កាឡោន - - - តួលេខ - តួលេខ - - - folio - folios - - - ចំនួន - ចំនួន - - - បន្ទាត់ - បន្ទាត់ - - - កំណត់ចំណាំ - កំណត់ចំណាំ - - - opus - opera - - - ទំព័រ - ទំព័រ - - - ទំព័រ - ទំព័រ - - - កថាខណ្ឌ - កថាខណ្ឌ - - - ជំពូក - ជំពូក - - - ផ្នែក - ផ្នែក - - - sub verbo - sub verbis - - - verse - verses - - - វ៉ុល - វ៉ុល - - - - bk. - chap. - col. - fig. - f. - no. - l. - n. - op. - - p. - pp. - - - p. - pp. - - para. - pt. - sec. - - s.v. - s.vv. - - - v. - vv. - - - vol. - vols. - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - editor - editors - - - - editors - - - illustrator - illustrators - - - translator - translator - - - editor & translator - editors & translators - - - - - dir. - dirs. - - - ed. - eds. - - - ed. - eds. - - - ill. - ills. - - - tran. - trans. - - - ed. & tran. - eds. & trans. - - - - by - directed by - edited by - edited by - illustrated by - interview by - to - by - translated by - edited & translated by - - - dir. - ed. - ed. - illus. - trans. - ed. & trans. by - - - មករា - កុម្ភៈ - មីនា - មេសា - ឧសភា - មិថុនា - កក្កដា - សីហា - កញ្ញា - តុលា - វិច្ឆិកា - ធ្នូ - - - Jan. - Feb. - Mar. - Apr. - May - Jun. - Jul. - Aug. - Sep. - Oct. - Nov. - Dec. - - - Spring - Summer - Autumn - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ko-KR.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ko-KR.xml deleted file mode 100644 index 9c2588c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ko-KR.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - 접근된 - 와/과 - and others - anonymous - anon - at - available at - by - circa - c. - cited - - edition - editions - - ed - 기타 - 근간 - (으)로부터 - ibid. - in - in press - internet - interview - letter - no date - 일자 없음 - online - presented at the - - reference - references - - - ref. - refs. - - retrieved - scale - version - - - AD - BC - - - - - - - - - - th - st - nd - rd - th - th - th - - - first - second - third - fourth - fifth - sixth - seventh - eighth - ninth - tenth - - - - book - books - - - chapter - chapters - - - column - columns - - - figure - figures - - - folio - folios - - - number - numbers - - - - - - - note - notes - - - opus - opera - - - 페이지 - 페이지 - - - 페이지 - 페이지 - - - 단락 - 단락 - - - part - parts - - - section - sections - - - sub verbo - sub verbis - - - verse - verses - - - volume - volumes - - - - bk - chap - col - fig - f - - l. - n. - op - - p - pp - - - p - pp - - para - pt - sec - - s.v. - s.vv. - - - v - vv - - - vol - vols - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - 편집자 - 편집자 - - - editor - editors - - - illustrator - illustrators - - - 번역자 - 번역자 - - - editor & translator - editors & translators - - - - - dir. - dirs. - - - 편집자 - 편집자 - - - ed. - eds. - - - ill. - ills. - - - 번역자 - 번역자 - - - ed. & tran. - eds. & trans. - - - - by - directed by - 편집자: - edited by - illustrated by - interview by - to - by - 번역자: - edited & translated by - - - dir. - ed - ed. - illus. - trans - ed. & trans. by - - - 1월 - 2월 - 3월 - 4월 - 5월 - 6월 - 7월 - 8월 - 9월 - 10월 - 11월 - 12월 - - - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - - - Spring - Summer - Autumn - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-lt-LT.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-lt-LT.xml deleted file mode 100644 index 7d3ef8c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-lt-LT.xml +++ /dev/null @@ -1,328 +0,0 @@ - - - - - Valdemaras Klumbys - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2017-01-18T10:31:02+00:00 - - - - - - - - - - - - - - - - žiūrėta - ir - ir kt. - anonimas - anon. - - adresas - - apie - apie - žiūrėta - - leidimas - leidimai - - leid. - ir kt. - ruošiamas - - ten pat - - priimta spaudai - prieiga per internetą - interviu - laiškas - sine anno - s.a. - interaktyvus - pristatytas - - nuoroda - nuorodos - - - nuor. - nuor. - - gauta - mastelis - versija - - - po Kr. - pr. Kr. - - - - - , - - - - - -asis - -asis - -oji - -iasis - -asis - -ioji - -oji - - - pirmasis - antrasis - trečiasis - ketvirtasis - penktasis - šeštasis - septintasis - aštuntasis - devintasis - dešimtasis - - pirmoji - antroji - trečioji - ketvirtoji - penktoji - šeštoji - septintoji - aštuntoji - devintoji - dešimtoji - - - - knyga - knygos - - - skyrius - skyriai - - - skiltis - skiltys - - - iliustracija - iliustracijos - - - lapas - lapai - - - numeris - numeriai - - - eilutė - eilutės - - - pastaba - pastabos - - - kūrinys - kūriniai - - - puslapis - puslapiai - - - puslapis - puslapiai - - - pastraipa - pastraipos - - - dalis - dalys - - - poskyris - poskyriai - - - žiūrėk - žiūrėk - - - eilėraštis - eilėraščiai - - - tomas - tomai - - - - kn. - sk. - skilt. - il. - l. - nr. - eil. - pstb. - kūr. - - p. - p. - - - p. - p. - - pastr. - d. - posk. - - žr. - žr. - - - eilėr. - eilėr. - - - t. - t. - - - - - - ¶¶ - - - § - §§ - - - - - vadovas - vadovai - - - sudarytojas - sudarytojai - - - atsakingasis redaktorius - atsakingieji redaktoriai - - - iliustratorius - iliustratoriai - - - vertėjas - vertėjai - - - sudarytojas ir vertėjas - sudarytojai ir vertėjai - - - - - vad. - vad. - - - sud. - sud. - - - ats. red. - ats. red. - - - iliustr. - iliustr. - - - vert. - vert. - - - sud. ir vert. - sud. ir vert. - - - - - vadovavo - sudarė - parengė - iliustravo - interviu ėmė - gavo - recenzavo - vertė - sudarė ir vertė - - - vad. - sud. - pareng. - iliustr. - vert. - sud. ir vert. - - - sausio - vasario - kovo - balandžio - gegužės - birželio - liepos - rugpjūčio - rugsėjo - spalio - lapkričio - gruodžio - - - saus. - vas. - kovo - bal. - geg. - birž. - liep. - rugpj. - rugs. - spal. - lapkr. - gruodž. - - - pavasaris - vasara - ruduo - žiema - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-lv-LV.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-lv-LV.xml deleted file mode 100644 index 0536ea5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-lv-LV.xml +++ /dev/null @@ -1,361 +0,0 @@ - - - - - Andris Lupgins - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-12-27T11:40:58+02:00 - - - - - - - - - - - - - - - - skatīts - m.ē. - un - un citi - anonīms - anon. - - pieejams - p.m.ē. - - apmēram - apm. - citēts - - redakcija - redakcijas - - red. - u.c. - gaidāms - no - turpat - no - presē - internets - intervija - vēstule - bez datuma - b.g. - tiešsaiste - iesniegts - - atsauce - atsauces - - - ats. - ats. - - iegūts - mērogs - versija - - - " - " - " - " - - - - -ais - - - - pirmais - otrais - trešais - ceturtais - piektais - sestais - septītais - astotais - devītais - desmitais - - pirmā - otrā - trešā - ceturtā - piektā - sestā - septītā - astotā - devītā - desmitā - - - - grāmata - grāmatas - - - nodaļa - nodaļas - - - sleja - slejas - - - ilustrācija - ilustrācijas - - - folio - folio - - - numurs - numuri - - - rinda - rindas - - - piezīme - piezīmes - - - opuss - opusi - - - lappuse - lappuses - - - lappuse - lappuses - - - rindkopa - rindkopas - - - daļa - daļas - - - apakšnodaļa - apakšnodaļas - - - skatīt - skatīt - - - pants - panti - - - sējums - sējumi - - - - grām. - nod. - sl. - il. - fo. - nr. - r. - piez. - op. - - lpp. - lpp. - - - lpp. - lpp. - - rindk. - d. - apakšnod. - - sk. - sk. - - - p. - p. - - - sēj. - sēj. - - - - - - ¶¶ - - - § - §§ - - - - - krājuma redaktors - krājuma redaktori - - - sastādītājs - sastādītāji - - - pamatmateriāla autors - pamatmateriāla autori - - - vadītājs - vadītāji - - - redaktors - redaktors - - - galvenais redaktors - galvenie redaktori - - - redaktors un tulkotājs - redaktors un tulkotājs - - - ilustrators - ilustratori - - - intervētājs - intervētāji - - - saņēmējs - saņēmēji - - - tulkotājs - tulkotāji - - - - - kr. red. - kr. red. - - - sast. - sast. - - - pamatmat. aut. - pamatmat. aut. - - - vad. - vad. - - - red. - red. - - - galv. red. - galv. red. - - - red. un tulk. - red. un tulk. - - - ilustr. - ilustr. - - - interv. - interv. - - - saņ. - saņ. - - - tulk. - tulk. - - - - - sastādīja - vadīja - sagatavoja - sagatavoja - sagatavoja un tulkoja - ilustrēja - intervēja - saņēma - tulkoja - - - sast. - sag. - sag. - ilustr. - tulk. - sag. un tulk. - - - janvārī - februārī - martā - aprīlī - maijā - jūnijā - jūlijā - augustā - septembrī - oktobrī - novembrī - decembrī - - - janv. - febr. - mar. - apr. - mai. - jūn. - jūl. - aug. - sept. - okt. - nov. - dec. - - - pavasaris - vasara - rudens - ziema - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-mn-MN.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-mn-MN.xml deleted file mode 100644 index a9b10dd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-mn-MN.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - accessed - and - and others - anonymous - anon - at - available at - by - circa - c. - cited - - edition - editions - - ed - et al. - forthcoming - from - ibid. - in - in press - internet - interview - letter - no date - n.d. - online - presented at the - - reference - references - - - ref. - refs. - - retrieved - scale - version - - - AD - BC - - - « - » - - - - - - th - st - nd - rd - th - th - th - - - first - second - third - fourth - fifth - sixth - seventh - eighth - ninth - tenth - - - - book - books - - - chapter - chapters - - - column - columns - - - figure - figures - - - folio - folios - - - number - numbers - - - line - lines - - - note - notes - - - opus - opera - - - page - pages - - - page - pages - - - paragraph - paragraph - - - part - parts - - - section - sections - - - sub verbo - sub verbis - - - verse - verses - - - volume - volumes - - - - bk - chap - col - fig - f - no - l. - n. - op - - p - pp - - - p - pp - - para - pt - sec - - s.v. - s.vv. - - - v - vv - - - vol - vols - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - editor - editors - - - editor - editors - - - illustrator - illustrators - - - translator - translators - - - editor & translator - editors & translators - - - - - dir. - dirs. - - - ed - eds - - - ed. - eds. - - - ill. - ills. - - - tran - trans - - - ed. & tran. - eds. & trans. - - - - by - directed by - edited by - edited by - illustrated by - interview by - to - by - translated by - edited & translated by - - - dir. - ed - ed. - illus. - trans - ed. & trans. by - - - January - February - March - April - May - June - July - August - September - October - November - December - - - Jan - Feb - Mar - Apr - May - Jun - Jul - Aug - Sep - Oct - Nov - Dec - - - Spring - Summer - Autumn - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nb-NO.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nb-NO.xml deleted file mode 100644 index 7e86f93..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nb-NO.xml +++ /dev/null @@ -1,309 +0,0 @@ - - - - - Guttorm Flatabø - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2013-03-01T12:20:00+01:00 - - - - - - - - - - - - - - åpnet - og - med flere - anonym - anon. - - tilgjengelig på - av - circa - ca. - sitert - - utgave - utgaver - - utg. - mfl. - kommende - fra - ibid. - i - i trykk - Internett - intervju - brev - ingen dato - udatert - online - presentert på - - referanse - referanser - - - ref. - refr. - - hentet - målestokk - versjon - - - fvt. - evt. - - - « - » - - - - - - . - - - første - andre - tredje - fjerde - femte - sjette - sjuende - åttende - niende - tiende - - - - bok - bøker - - - kapittel - kapitler - - - kolonne - kolonner - - - figur - figurer - - - folio - folioer - - - nummer - numre - - - linje - linjer - - - note - noter - - - opus - opus - - - side - side - - - side - sider - - - avsnitt - avsnitt - - - del - deler - - - paragraf - paragrafer - - - sub verbo - sub verbis - - - vers - vers - - - bind - bind - - - - b. - kap. - kol. - fig. - fol. - nr. - l. - n. - op. - - s. - s. - - - s. - s. - - avsn. - d. - pargr. - - s.v. - s.vv. - - - v. - v. - - - bd. - bd. - - - - - - ¶¶ - - - § - §§ - - - - - regissør - regissører - - - redaktør - redaktører - - - redaktør - redaktører - - - illustratør - illustratører - - - oversetter - oversettere - - - redaktør & oversetter - redaktører & oversettere - - - - - regi - regi - - - red. - red. - - - red. - red. - - - ill. - ills. - - - overs. - overs. - - - red. & overs. - red. & overs. - - - - av - regissert av - redigert av - redigert av - illustrert av - intervjuet av - til - av - oversatt av - redigert & oversatt av - - - regi - red. - red. - illus. - overs. - red. & overs. av - - - januar - februar - mars - april - mai - juni - juli - august - september - oktober - november - desember - - - jan. - feb. - mar. - apr. - mai - jun. - jul. - aug. - sep. - okt. - nov. - des. - - - vår - sommer - høst - vinter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nl-NL.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nl-NL.xml deleted file mode 100644 index 1146f4a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nl-NL.xml +++ /dev/null @@ -1,328 +0,0 @@ - - - - - Rintze M. Zelle - http://twitter.com/rintzezelle - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2017-04-01T12:00:00+00:00 - - - - - - - - - - - - - - geraadpleegd - en - en anderen - anoniem - anon. - bij - beschikbaar op - door - circa - c. - geciteerd - - druk - drukken - - dr. - e.a. - in voorbereiding - van - ibid. - in - in druk - internet - interview - brief - zonder datum - z.d. - online - gepresenteerd bij - - referentie - referenties - - - ref. - refs. - - geraadpleegd - schaal - versie - - - AD - BC - - - - - - - - - - ste - de - de - de - de - de - de - de - de - de - de - de - de - de - de - de - de - de - de - - - eerste - tweede - derde - vierde - vijfde - zesde - zevende - achtste - negende - tiende - - - - boek - boeken - - - hoofdstuk - hoofdstukken - - - column - columns - - - figuur - figuren - - - folio - folio's - - - nummer - nummers - - - regel - regels - - - aantekening - aantekeningen - - - opus - opera - - - pagina - pagina's - - - pagina - pagina's - - - paragraaf - paragrafen - - - deel - delen - - - sectie - secties - - - sub verbo - sub verbis - - - vers - versen - - - volume - volumes - - - - bk. - hfdst. - col. - fig. - f. - nr. - l. - n. - op. - - p. - pp. - - - p. - pp. - - par. - deel - sec. - - s.v. - s.vv. - - - v. - vv. - - - vol. - vols. - - - - - - ¶¶ - - - § - §§ - - - - - regisseur - regisseurs - - - redacteur - redacteuren - - - redacteur - redacteuren - - - illustrator - illustrators - - - vertaler - vertalers - - - redacteur & vertaler - redacteuren & vertalers - - - - - reg. - reg. - - - red. - red. - - - red. - red. - - - ill. - ill. - - - vert. - vert. - - - red. & vert. - red. & vert. - - - - door - geregisseerd door - onder redactie van - onder redactie van - geïllustreerd door - geïnterviewd door - ontvangen door - door - vertaald door - bewerkt & vertaald door - - - geregisseerd door - onder redactie van - bewerkt door - geïllustreerd door - vertaald door - bewerkt & vertaald door - - - januari - februari - maart - april - mei - juni - juli - augustus - september - oktober - november - december - - - jan. - feb. - mrt. - apr. - mei - jun. - jul. - aug. - sep. - okt. - nov. - dec. - - - lente - zomer - herst - winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nn-NO.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nn-NO.xml deleted file mode 100644 index 060b121..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-nn-NO.xml +++ /dev/null @@ -1,309 +0,0 @@ - - - - - Guttorm Flatabø - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2013-03-01T12:20:00+01:00 - - - - - - - - - - - - - - vitja - og - med fleire - anonym - anon. - - tilgjengeleg på - av - circa - ca. - sitert - - utgåve - utgåver - - utg. - mfl. - kommande - frå - ibid. - i - i trykk - Internett - intervju - brev - ingen dato - udatert - online - presentert på - - referanse - referansar - - - ref. - refr. - - henta - målestokk - versjon - - - fvt. - evt. - - - « - » - - - - - - . - - - første - andre - tredje - fjerde - femte - sjette - sjuande - åttande - niande - tiande - - - - bok - bøker - - - kapittel - kapittel - - - kolonne - kolonner - - - figur - figurar - - - folio - folioar - - - nummer - nummer - - - linje - linjer - - - note - notar - - - opus - opus - - - side - side - - - side - sider - - - avsnitt - avsnitt - - - del - deler - - - paragraf - paragrafar - - - sub verbo - sub verbis - - - vers - vers - - - bind - bind - - - - b. - kap. - kol. - fig. - fol. - nr. - l. - n. - op. - - s. - s. - - - s. - s. - - avsn. - d. - par. - - s.v. - s.vv. - - - v. - v. - - - bd. - bd. - - - - - - ¶¶ - - - § - §§ - - - - - regissør - regissørar - - - redaktør - redaktørar - - - redaktør - redaktørar - - - illustratør - illustratørar - - - omsetjar - omsetjarar - - - redaktør & omsetjar - redaktørar & omsetjarar - - - - - regi - regi - - - red. - red. - - - red. - red. - - - ill. - ills. - - - oms. - oms. - - - red. & oms. - red. & oms. - - - - av - regissert av - redigert av - redigert av - illustrert av - intervjua av - til - av - omsett av - redigert & omsett av - - - regi - red. - red. - illus. - oms. - red. & oms. av - - - januar - februar - mars - april - mai - juni - juli - august - september - oktober - november - desember - - - jan. - feb. - mar. - apr. - mai - jun. - jul. - aug. - sep. - okt. - nov. - des. - - - vår - sommar - haust - vinter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pl-PL.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pl-PL.xml deleted file mode 100644 index a58aa43..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pl-PL.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - - pAo - - - Michal - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - udostępniono - i - i inni - anonim - anon. - na - dostępne na - przez - około - ok - cytowane - - wydanie - wydania - - wyd. - i in. - w przygotowaniu - z - ibid. - w - w druku - internet - wywiad - list - brak daty - b.d. - online - zaprezentowano na - - referencja - referencje - - - ref. - ref. - - pobrano - skala - wersja - - - n.e. - p.n.e. - - - - - « - » - - - - . - - - pierwszy - drugi - trzeci - czwarty - piąty - szósty - siódmy - ósmy - dziewiąty - dziesiąty - - - - książka - książki - - - rozdział - rozdziały - - - kolumna - kolumny - - - rycina - ryciny - - - folio - folio - - - numer - numery - - - wiersz - wiersze - - - notatka - notatki - - - opus - opera - - - strona - strony - - - strona - strony - - - akapit - akapity - - - część - części - - - sekcja - sekcje - - - sub verbo - sub verbis - - - wers - wersy - - - tom - tomy - - - - książka - rozdz. - kol. - ryc. - fol. - nr - l. - n. - op. - - s. - s. - - - s. - ss. - - akap. - cz. - sekc. - - s.v. - s.vv. - - - w. - w. - - - t. - t. - - - - - - ¶¶ - - - § - §§ - - - - - reżyser - reżyserzy - - - redaktor - redaktorzy - - - edytor - edytorzy - - - ilustrator - ilustratorzy - - - tłumacz - tłumacze - - - redaktor & tłumacz - redaktorzy & tłumacze - - - - - reż. - reż. - - - red. - red. - - - red. - red. - - - il. - il. - - - tłum. - tłum. - - - red.tłum. - red.tłum. - - - - przez - reżyserowane przez - zredagowane przez - zredagowane przez - ilustrowane przez - przeprowadzony przez - dla - przez - przetłumaczone przez - zredagowane i przetłumaczone przez - - - reż. - red. - red. - il. - tłum. - red.tłum. - - - styczeń - luty - marzec - kwiecień - maj - czerwiec - lipiec - sierpień - wrzesień - październik - listopad - grudzień - - - sty. - luty - mar. - kwi. - maj - cze. - lip. - sie. - wrz. - paź. - lis. - grudz. - - - wiosna - lato - jesień - zima - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pt-BR.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pt-BR.xml deleted file mode 100644 index 7bb19da..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pt-BR.xml +++ /dev/null @@ -1,324 +0,0 @@ - - - - - José Antonio Meira da Rocha - - - Meira da Rocha - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2016-05-16T00:00:00+03:00 - - - - - - - - - - - - - - acessado - e - e outros - anônimo - anon - em - disponível em - por - circa - c. - citado - - edição - edições - - ed - et al. - a ser publicado - de - ibidem - in - no prelo - internet - entrevista - carta - sem data - [s.d.] - online - apresentado em - - referência - referências - - - ref. - refs. - - recuperado - escala - versão - - - DC - AC - - - - - - - - - - º - ª - º - - - primeiro - segundo - terceiro - quarto - quinto - sexto - sétimo - oitavo - nono - décimo - primeira - segunda - terceira - quarta - quinta - sexta - sétima - oitava - nona - décima - - - - livro - livros - - - capítulo - capítulos - - - coluna - colunas - - - figura - figuras - - - folio - folios - - - número - números - - - linha - linhas - - - nota - notas - - - opus - opera - - - página - páginas - - - página - páginas - - - parágrafo - parágrafos - - - parte - partes - - - seção - seções - - - sub verbo - sub verbis - - - verso - versos - - - volume - volumes - - - - liv. - cap. - col. - fig. - f. - - l. - n. - op. - - p. - p. - - - p. - p. - - parag. - pt. - seç. - - s.v. - s.vv. - - - v. - vv. - - - vol. - vols. - - - - - - ¶¶ - - - § - §§ - - - - - diretor - diretores - - - organizador - organizadores - - - editor - editores - - - ilustrador - ilustradores - - - tradutor - tradutores - - - editor e tradutor - editores e tradutores - - - - - dir. - dirs. - - - org. - orgs. - - - ed. - eds. - - - il. - ils. - - - trad. - trads. - - - ed. e trad. - eds. e trads. - - - - por - dirigido por - organizado por - editado por - ilustrado por - entrevista de - para - por - traduzido por - editado e traduzido por - - - dir. - org. - ed. - ilus. - trad. - ed. e trad. por - - - janeiro - fevereiro - março - abril - maio - junho - julho - agosto - setembro - outubro - novembro - dezembro - - - jan. - fev. - mar. - abr. - maio - jun. - jul. - ago. - set. - out. - nov. - dez. - - - Primavera - Verão - Outono - Inverno - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pt-PT.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pt-PT.xml deleted file mode 100644 index 3105176..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-pt-PT.xml +++ /dev/null @@ -1,320 +0,0 @@ - - - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2013-09-20T23:31:02+00:00 - - Jonadabe PT - - - - - - - - - - - - - - - acedido - e - e outros - anónimo - anón. - em - disponível em - por - circa - c. - citado - - edição - edições - - ed. - et al. - a publicar - de - ibid. - em - no prelo - internet - entrevista - carta - sem data - sem data - em linha - apresentado na - - referência - referências - - - ref. - refs. - - obtido - scale - versão - - - AD - BC - - - « - » - - - - - - - - - - primeiro - primeira - segundo - segunda - terceiro - terceira - quarto - quarta - quinto - quinta - sexto - sexta - sétimo - sétima - oitavo - oitava - nono - nona - décimo - décima - - - - livro - livros - - - capítulo - capítulos - - - coluna - colunas - - - figura - figuras - - - fólio - fólios - - - número - números - - - linha - linhas - - - nota - notas - - - opus - opera - - - página - páginas - - - página - páginas - - - parágrafo - parágrafos - - - parte - partes - - - secção - secções - - - sub verbo - sub verbis - - - versículo - versículos - - - volume - volumes - - - - liv. - cap. - col. - fig. - f. - n. - l. - n. - op. - - p. - pp. - - - p. - pp. - - par. - pt. - sec. - - s.v. - s.vv. - - - v - vv - - - vol. - vols. - - - - - - ¶¶ - - - § - §§ - - - - - director - directores - - - editor - editores - - - editor - editores - - - ilustrador - ilustradores - - - tradutor - tradutores - - - editor & tradutor - editores & tradutores - - - - - dir. - dirs. - - - ed. - eds. - - - ed. - eds. - - - il. - ils. - - - trad. - trads. - - - ed. & trad. - eds. & trads. - - - - por - dirigido por - editado por - editorial de - ilustrado por - entrevistado por - para - revisto por - traduzido por - editado & traduzido por - - - dir. - ed. - ed. - ilus. - trad. - ed. & trad. por - - - Janeiro - Fevereiro - Março - Abril - Maio - Junho - Julho - Agosto - Setembro - Outubro - Novembro - Dezembro - - - Jan. - Fev. - Mar. - Abr. - Mai. - Jun. - Jul. - Ago. - Set. - Out. - Nov. - Dez. - - - Primavera - Verão - Outono - Inverno - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ro-RO.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ro-RO.xml deleted file mode 100644 index 0600058..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ro-RO.xml +++ /dev/null @@ -1,311 +0,0 @@ - - - - - Nicolae Turcan - nturcan@gmail.com - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - data accesării - și - și alții - anonim - anon. - la - valabil la - de - circa - cca. - citat - - ediția - edițiile - - ed - et al. - în curs de apariție - din - ibidem - în - sub tipar - internet - interviu - scrisoare - fără dată - f.a. - online - prezentat la - - referință - referințe - - - ref. - ref. - - preluat în - scală - versiunea - - - d.Hr. - î.Hr. - - - - - « - » - - - - - -lea - - - - primul - al doilea - al treilea - al patrulea - al cincilea - al șaselea - al șaptelea - al optulea - al nouălea - al zecelea - - - - cartea - cărțile - - - capitolul - capitolele - - - coloana - coloanele - - - figura - figurile - - - folio - folio - - - numărul - numerele - - - linia - liniile - - - nota - notele - - - opusul - opusurile - - - pagina - paginile - - - pagina - paginile - - - paragraful - paragrafele - - - partea - părțile - - - secțiunea - secțiunile - - - sub verbo - sub verbis - - - versetul - versetele - - - volumul - volumele - - - - cart. - cap. - col. - fig. - fol. - nr. - l. - n. - op. - - p. - pp. - - - p. - pp. - - par. - part. - sec. - - s.v. - s.vv. - - - v. - vv. - - - vol. - vol. - - - - - - ¶¶ - - - § - §§ - - - - - director - directori - - - editor - editori - - - editor - editori - - - ilustrator - ilustratori - - - traducător - traducători - - - editor & traducător - editori & traducători - - - - - dir. - dir. - - - ed. - ed. - - - ed. - ed. - - - ilustr. - ilustr. - - - trad. - trad. - - - ed. & trad. - ed. & trad. - - - - de - coordonat de - ediție de - ediție de - ilustrații de - interviu de - în - de - traducere de - ediție & traducere de - - - dir. - ed. - ed. - ilustr. - trad. - ed. & trad. de - - - ianuarie - februarie - martie - aprilie - mai - iunie - iulie - august - septembrie - octombrie - noiembrie - decembrie - - - ian. - feb. - mar. - apr. - mai - iun. - iul. - aug. - sep. - oct. - nov. - dec. - - - primăvara - vara - toamna - iarna - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ru-RU.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ru-RU.xml deleted file mode 100644 index 84195dc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-ru-RU.xml +++ /dev/null @@ -1,321 +0,0 @@ - - - - - Alexei Kouprianov - alexei.kouprianov@gmail.com - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - просмотрено - и - и др. - аноним - анон. - на - доступно на - - около - ок. - цитируется по - цит. по - - издание - издания - - изд. - и др. - ожидается - от - там же - в - в печати - Интернет - интервью - письмо - без даты - б. д. - онлайн - представлено на - - - ссылка - ссылки - - - - ссылка - ссылки - - извлечено - масштаб - версия - - - н. э. - до н. э. - - - « - » - - - - - - - - - - - первое - второе - третье - четвертое - пятое - шестое - седьмое - восьмое - девятое - десятое - первый - второй - третий - четвертый - пятый - шестой - седьмой - восьмой - девятый - десятый - первая - вторая - третья - четвертая - пятая - шестая - седьмая - восьмая - девятая - десятая - - - - книга - книги - - - глава - главы - - - столбец - столбцы - - - рисунок - рисунки - - - лист - листы - - - выпуск - выпуски - - - строка - строки - - - примечание - примечания - - - сочинение - сочинения - - - страница - страницы - - - - страница - страницы - - - параграф - параграфы - - - часть - части - - - раздел - разделы - - смотри - - стих - стихи - - - том - тома - - - - - кн. - гл. - стб. - рис. - - л. - лл. - - вып. - стр. - прим. - соч. - - с. - сс. - - - с. - сс. - - - п. - пп. - - - ч. - чч. - - разд. - см. - ст. - - т. - тт. - - - - - - ¶¶ - - - § - §§ - - - - - режиссер - режиссеры - - - редактор - редакторы - - - ответственный редактор - ответственные редакторы - - - иллюстратор - иллюстраторы - - - переводчик - переводчики - - - редактор и переводчик - редакторы и переводчики - - - - реж. - ред. - отв. ред. - ил. - пер. - ред. и пер. - - - - - режиссировано - под редакцией - под ответственной редакцией - иллюстрировано - интервью проведено - к - - переведено - под редакцией и переведено - - - реж. - под ред. - под отв. ред. - ил. - пер. - под ред. и пер. - - - - январь - февраль - март - апрель - май - июнь - июль - август - сентябрь - октябрь - ноябрь - декабрь - - - янв. - фев. - мар. - апр. - май - июн. - июл. - авг. - сен. - окт. - ноя. - дек. - - - весна - лето - осень - зима - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sk-SK.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sk-SK.xml deleted file mode 100644 index ddaad71..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sk-SK.xml +++ /dev/null @@ -1,318 +0,0 @@ - - - - - Tomáš Ferianc - - - kohafan - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2014-03-09T22:23:31+00:00 - - - - - - - - - - - - - - cit - a - a ďalší - anonym - anon. - v - available at - by - circa - cca. - cit - - vydanie - vydania - - vyd. - et al. - nadchádzajúci - z - ibid. - v - v tlači - internet - osobná komunikácia - list - no date - n.d. - online - prezentované na - - reference - references - - - ref. - refs. - - cit - scale - version - - - po Kr. - pred Kr. - - - - - - - - - - th - st - nd - rd - th - th - th - - - first - second - third - fourth - fifth - sixth - seventh - eighth - ninth - tenth - - - - kniha - knihy - - - kapitola - kapitoly - - - stĺpec - stĺpce - - - obrázok - obrázky - - - list - listy - - - číslo - čísla - - - riadok - riadky - - - poznámka - poznámky - - - opus - opera - - - strana - strany - - - strana - strany - - - odstavec - odstavce - - - časť - časti - - - sekcia - sekcie - - - sub verbo - sub verbis - - - verš - verše - - - ročník - ročníky - - - - k. - kap. - stĺp. - obr. - l. - č. - l. - n. - op. - - s. - s. - - - s. - s. - - par. - č. - sek. - - s.v. - s.vv. - - - v. - v. - - - roč. - roč. - - - - - - - - - § - § - - - - - director - directors - - - editor - editori - - - zostavovateľ - zostavovatelia - - - illustrator - illustrators - - - prekladateľ - prekladatelia - - - zostavovateľ & prekladateľ - zostavovatelia & prekladatelia - - - - - dir. - dirs. - - - ed. - ed. - - - zost. - zost. - - - ill. - ills. - - - prel. - prel. - - - ed. & tran. - eds. & trans. - - - - by - directed by - zostavil - zostavil - illustrated by - rozhovor urobil - adresát - by - preložil - zostavil & preložil - - - dir. - ed. - ed. - illus. - prel. - zost. & prel. - - - január - február - marec - apríl - máj - jún - júl - august - september - október - november - december - - - jan. - feb. - mar. - apr. - máj. - jún. - júl. - aug. - sep. - okt. - nov. - dec. - - - Jar - Leto - Jeseň - Zima - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sl-SI.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sl-SI.xml deleted file mode 100644 index 7ebd113..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sl-SI.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - - Kristof Ostir - - - ratek1 - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2014-11-06T09:41:02+00:00 - - - - - - - - - - - - - - pridobljeno - in - in drugi - anonimni - anon. - pri - dostopno na - - približno - prib. - citirano - - izdaja - izdaje - - izd. - in dr. - pred izidom - od - isto - v - v tisku - internet - intervju - pismo - brez datuma - b. d. - na spletu - predstavljeno na - - referenca - reference - - - ref. - ref. - - pridobljeno - merilo - različica - - - n. št. - pr. n. št. - - - - - - - - - - . - - - prva - druga - tretja - četrta - peta - šesta - sedma - osma - deveta - deseta - - - - knjiga - knjige - - - poglavje - poglavja - - - stolpec - stolpci - - - slika - slike - - - folio - folii - - - številka - številke - - - vrstica - vrstice - - - opomba - opombe - - - opus - opusi - - - stran - strani - - - stran - strani - - - odstavek - odstavki - - - del - deli - - - odsek - odseki - - - sub verbo - sub verbis - - - verz - verzi - - - letnik - letniki - - - - knj. - pogl. - stolp. - sl. - fol. - št. - vrst. - op. - opus - - str. - str. - - - str. - str. - - odst. - del - ods. - - s. v. - s. v. - - - v. - v. - - - let. - let. - - - - - - ¶¶ - - - § - §§ - - - - - režiser - režiserji - - - urednik - uredniki - - - glavni urednik - glavni uredniki - - - ilustrator - ilustratorji - - - prevajalec - prevajalci - - - urednik & prevajalec - uredniki & prevajalci - - - - - rež. - rež. - - - ur. - ur. - - - gl. ur. - gl. ur. - - - ilus. - ilus. - - - prev. - prev. - - - ur. & prev. - ur. & prev. - - - - - režiral - uredil - uredil - ilustriral - intervjuval - za - od - prevedel - uredil & prevedel - - - rež. - ured. - ured. - ilus. - prev. - ured. & prev. by - - - januar - februar - marec - april - maj - junij - julij - avgust - september - oktober - november - december - - - jan. - feb. - mar. - apr. - maj - jun. - jul. - avg. - sep. - okt. - nov. - dec. - - - pomlad - poletje - jesen - zima - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sr-RS.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sr-RS.xml deleted file mode 100644 index 55fd941..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sr-RS.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - приступљено - и - и остали - анонимна - анон. - на - available at - by - circa - c. - цитирано - - издање - издања - - изд. - и остали - долазећи - од - ibid. - у - у штампи - Интернет - интервју - писмо - no date - без датума - на Интернету - представљено на - - reference - references - - - ref. - refs. - - преузето - scale - version - - - AD - BC - - - - - - - - - - th - st - nd - rd - th - th - th - - - first - second - third - fourth - fifth - sixth - seventh - eighth - ninth - tenth - - - - књига - књиге - - - поглавље - поглавља - - - колона - колоне - - - цртеж - цртежи - - - фолио - фолији - - - број - бројеви - - - линија - линије - - - белешка - белешке - - - опус - опера - - - страница - странице - - - страница - странице - - - параграф - параграфи - - - део - делова - - - одељак - одељака - - - sub verbo - sub verbis - - - строфа - строфе - - - том - томова - - - - књига - Пог. - кол. - црт. - фолио - изд. - l. - n. - оп. - - стр. - стр. - - - стр. - стр. - - пар. - део - од. - - s.v. - s.vv. - - - стр. - стр. - - - том - томови - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - уредник - урединици - - - editor - editors - - - illustrator - illustrators - - - преводилац - преводиоци - - - editor & translator - editors & translators - - - - - dir. - dirs. - - - ур. - ур. - - - ed. - eds. - - - ill. - ills. - - - прев. - прев. - - - ed. & tran. - eds. & trans. - - - - by - directed by - уредио - edited by - illustrated by - интервјуисао - прима - by - превео - edited & translated by - - - dir. - ур. - ed. - illus. - прев. - ed. & trans. by - - - Јануар - Фебруар - Март - Април - Мај - Јуни - Јули - Август - Септембар - Октобар - Новембар - Децембар - - - Јан. - Феб. - Март - Апр. - Мај - Јуни - Јули - Авг. - Сеп. - Окт. - Нов. - Дец. - - - Spring - Summer - Autumn - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sv-SE.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sv-SE.xml deleted file mode 100644 index 3ac7815..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-sv-SE.xml +++ /dev/null @@ -1,322 +0,0 @@ - - - - - torfeur - - - Sylvester Keil - - - Sebastian Karcher - - - Ulf Harnhammar - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - åtkomstdatum - och - och andra - anonym - anon. - vid - tillgänglig vid - av - cirka - ca - citerad - - upplaga - upplagor - - uppl. - m.fl. - kommande - från - ibid. - i - i tryck - internet - intervju - brev - utan årtal - u.å. - online - presenterad vid - - referens - referenser - - - ref. - ref. - - hämtad - scale - version - - - e.Kr. - f.Kr. - - - - - - - - - - :e - :a - :a - :e - :e - - - första - andra - tredje - fjärde - femte - sjätte - sjunde - åttonde - nionde - tionde - - - - bok - böcker - - - kapitel - kapitel - - - kolumn - kolumner - - - figur - figurer - - - folio - folios - - - nummer - nummer - - - rad - rader - - - not - noter - - - opus - opera - - - sida - sidor - - - sida - sidor - - - stycke - stycken - - - del - delar - - - avsnitt - avsnitt - - - sub verbo - sub verbis - - - vers - verser - - - volym - volymer - - - - bok - kap. - kol. - fig. - f. - nr - l. - n. - op. - - s. - s. - - - s. - s. - - st. - del - avs. - - s.v. - s.vv. - - - vers - verser - - - vol. - vol. - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - redaktör - redaktörer - - - editor - editors - - - illustratör - illustratörer - - - översättare - översättare - - - redaktör & översättare - redaktörer & översättare - - - - - dir. - dirs. - - - red. - red. - - - ed. - eds. - - - ill. - ill. - - - övers. - övers. - - - red. & övers. - red. & övers. - - - - av - directed by - redigerad av - edited by - illustrerad av - intervjuad av - till - by - översatt av - redigerad & översatt av - - - dir. - red. - ed. - illus. - övers. - red. & övers. av - - - januari - februari - mars - april - maj - juni - juli - augusti - september - oktober - november - december - - - jan. - feb. - mar. - apr. - maj - juni - juli - aug. - sep. - okt. - nov. - dec. - - - vår - sommar - höst - vinter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-th-TH.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-th-TH.xml deleted file mode 100644 index d9f9a39..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-th-TH.xml +++ /dev/null @@ -1,309 +0,0 @@ - - - - - Dusit Laohasinnarong - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - สืบค้น - และ - และคณะ - นิรนาม - นิรนาม - ที่ - available at - โดย - โดยประมาณ - ประมาณ - อ้างถึง - - พิมพ์ครั้งที่ - พิมพ์ครั้งที่ - - พิมพ์ครั้งที่ - และคณะ - เต็มใจให้ข้อมูล - จาก - ในที่เดียวกัน - ใน - กำลังรอตีพิมพ์ - อินเทอร์เน็ต - การสัมภาษณ์ - จดหมาย - ไม่ปรากฏปีที่พิมพ์ - ม.ป.ป. - ออนไลน์ - นำเสนอที่ - - เอกสารอ้างอิง - เอกสารอ้างอิง - - - อ้างอิง - อ้างอิง - - สืบค้น - scale - version - - - ค.ศ. - พ.ศ. - - - - - - - - - - - - - หนึ่ง - สอง - สาม - สี่ - ห้า - หก - เจ็ด - แปด - เก้า - สิบ - - - - หนังสือ - หนังสือ - - - บทที่ - บทที่ - - - สดมภ์ - สดมภ์ - - - รูปภาพ - รูปภาพ - - - หน้า - หน้า - - - ฉบับที่ - ฉบับที่ - - - บรรทัดที่ - บรรทัดที่ - - - บันทึก - บันทึก - - - บทประพันธ์ - บทประพันธ์ - - - หน้า - หน้า - - - หน้า - หน้า - - - ย่อหน้า - ย่อหน้า - - - ส่วนย่อย - ส่วนย่อย - - - หมวด - หมวด - - - ใต้คำ - ใต้คำ - - - ร้อยกรอง - ร้อยกรอง - - - ปีที่ - ปีที่ - - - - หนังสือ - บทที่ - สดมภ์ - รูปภาพ - หน้า - ฉบับที่ - l. - n. - บทประพันธ์ - - น. - น. - - - น. - น. - - ย่อหน้า - ส่วนย่อย - หมวด - - ใต้คำ - ใต้คำ - - - ร้อยกรอง - ร้อยกรอง - - - ปี - ปี - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - บรรณาธิการ - บรรณาธิการ - - - ผู้อำนวยการบทบรรณาธิการ - ผู้อำนวยการบทบรรณาธิการ - - - illustrator - illustrators - - - ผู้แปล - ผู้แปล - - - บรรณาธิการและผู้แปล - บรรณาธิการและผู้แปล - - - - - dir. - dirs. - - - บ.ก. - บ.ก. - - - ผอ.บทบรรณาธิการ - ผอ.บทบรรณาธิการ - - - ill. - ills. - - - ผู้แปล - ผู้แปล - - - บ.ก. - บ.ก. - - - - โดย - directed by - เรียบเรียงโดย - เรียบเรียงโดย - illustrated by - สัมภาษณ์โดย - ถึง - by - แปลโดย - แปลและเรียบเรียงโดย - - - dir. - โดย - โดย - illus. - แปล - แปลและเรียบเรียงโดย - - - มกราคม - กุมภาพันธ์ - มีนาคม - เมษายน - พฤษภาคม - มิถุนายน - กรกฎาคม - สิงหาคม - กันยายน - ตุลาคาม - พฤศจิกายน - ธันวาคม - - - ม.ค. - ก.พ. - มี.ค. - เม.ย. - พ.ค. - มิ.ย. - ก.ค. - ส.ค. - ก.ย. - ต.ค. - พ.ย. - ธ.ค. - - - ฤดูใบไม้ผลิ - ฤดูร้อน - ฤดูใบไม้ร่วง - ฤดูหนาว - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-tr-TR.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-tr-TR.xml deleted file mode 100644 index 7ecb11f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-tr-TR.xml +++ /dev/null @@ -1,315 +0,0 @@ - - - - - ekizyener - - - Binici - - - cengiza - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - erişim - ve - ve diğerleri - anonim - anonim - de - available at - by - circa - c. - kaynak - - baskı - baskı - - baskı - vd. - gelecek - adresinden erişildi - a.g.e. - içinde - basımda - internet - kişisel iletişim - mektup - tarih yok - y.y. - çevrimiçi - sunulan - - kaynak - kaynaklar - - - kay. - kay. - - tarihinde - scale - versiyon - - - M.S. - M.Ö. - - - - - - - - - - . - - - birinci - ikinci - üçüncü - dördüncü - beşinci - altıncı - yedinci - sekizinci - dokuzuncu - onuncu - - - - kitap - kitaplar - - - bölüm - bölümler - - - sütun - sütunlar - - - şekil - şekiller - - - folyo - folyo - - - sayı - sayılar - - - satır - satırlar - - - not - notlar - - - opus - opera - - - sayfa - sayfalar - - - sayfa - sayfalar - - - paragraf - paragraflar - - - kısım - kısımlar - - - bölüm - bölümler - - - sub verbo - sub verbis - - - dize - dizeler - - - cilt - ciltler - - - - kit. - böl. - süt. - şek. - f. - sayı - satır - n. - op. - - s. - ss. - - - s. - ss. - - par. - kıs. - böl. - - s.v. - s.vv. - - - v. - vv. - - - c. - c. - - - - - - ¶¶ - - - § - §§ - - - - - direktör - direktörler - - - editör - editörler - - - editör - editörler - - - illüstrasyon - illüstrasyon - - - çeviren - çevirenler - - - editör & çeviren - editörler & çevirenler - - - - - dir. - dir. - - - ed. - ed. - - - ed. - ed. - - - ill. - ill. - - - çev. - çev. - - - ed. & çev. - ed. & çev. - - - - - direktör - editör - düzenleyen - illustrated by - Röportaj yapan - to - by - çeviren - düzenleyen & çeviren by - - - dir. - ed. - ed. - illüs. - çev. - ed. & çev. - - - Ocak - Şubat - Mart - Nisan - Mayıs - Haziran - Temmuz - Ağustos - Eylül - Ekim - Kasım - Aralık - - - Oca. - Şub. - Mar. - Nis. - May. - Haz. - Tem. - Ağu. - Eyl. - Eki. - Kas. - Ara. - - - Bahar - Yaz - Sonbahar - Kış - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-uk-UA.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-uk-UA.xml deleted file mode 100644 index 208547c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-uk-UA.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - accessed - і - та інші - анонімний - анон. - на - available at - by - circa - c. - cited - - edition - editions - - ed - et al. - forthcoming - із - ibid. - в - у пресі - інтернет - інтервю - лист - no date - n.d. - online - presented at the - - reference - references - - - ref. - refs. - - retrieved - scale - version - - - AD - BC - - - « - » - - - - - - th - st - nd - rd - th - th - th - - - first - second - third - fourth - fifth - sixth - seventh - eighth - ninth - tenth - - - - book - books - - - chapter - chapters - - - column - columns - - - figure - figures - - - folio - folios - - - number - numbers - - - line - lines - - - note - notes - - - opus - opera - - - page - pages - - - page - pages - - - paragraph - paragraph - - - part - parts - - - section - sections - - - sub verbo - sub verbis - - - verse - verses - - - volume - volumes - - - - bk - chap - col - fig - f - no - l. - n. - op - - p - pp - - - p - pp - - para - pt - sec - - s.v. - s.vv. - - - v - vv - - - vol - vols - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - editor - editors - - - editor - editors - - - illustrator - illustrators - - - translator - translators - - - editor & translator - editors & translators - - - - - dir. - dirs. - - - ed - eds - - - ed. - eds. - - - ill. - ills. - - - tran - trans - - - ed. & tran. - eds. & trans. - - - - by - directed by - edited by - edited by - illustrated by - interview by - to - by - translated by - edited & translated by - - - dir. - ed - ed. - illus. - trans - ed. & trans. by - - - Січень - Лютий - Березень - Квітень - Травень - Червень - Липень - Серпень - Вересень - Жовтень - Листопад - Грудень - - - Січ - Лют - Бер - Квіт - Трав - Чер - Лип - Сер - Вер - Жов - Лис - Груд - - - Spring - Summer - Autumn - Winter - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-vi-VN.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-vi-VN.xml deleted file mode 100644 index f55df51..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-vi-VN.xml +++ /dev/null @@ -1,315 +0,0 @@ - - - - - dowens76 - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2012-07-04T23:31:02+00:00 - - - - - - - - - - - - - - truy cập - - and others - vô danh - v.d - tại - available at - bởi - circa - c. - cited - - ấn bản - ấn bản - - a.b - và c.s. - sắp tới - từ - n.t. - trong - in press - internet - interview - letter - không ngày - không ngày - online - được trình bày tại - - reference - references - - - ref. - refs. - - truy vấn - scale - version - - - AD - BC - - - - - - - - - - th - st - nd - rd - th - th - th - - - thứ nhất - thứ hai - thứ ba - thứ tư - thứ năm - thứ sáu - thứ bảy - thứ tám - thứ chính - thứ mười - - - - sách - sách - - - chương - chương - - - column - columns - - - figure - figures - - - folio - folios - - - số - số - - - dòng - dòng - - - ghi chú - ghi chú - - - opus - opera - - - trang - trang - - - trang - trang - - - đoạn văn - đoạn văn - - - phần - phần - - - section - sections - - - sub verbo - sub verbis - - - câu - câu - - - tập - tập - - - - sách - ch - col - fig - f - số p.h - d. - gc. - op - - tr - tr - - - tr - tr - - para - ph - sec - - s.v. - s.vv. - - - v - vv - - - vol - vols - - - - - - ¶¶ - - - § - §§ - - - - - director - directors - - - biên tập viên - biên tập viên - - - biên tập viên - biên tập viên - - - họa sĩ - họa sĩ - - - biên dịch viên - biên dịch viên - - - biên tập viên & biên dịch viên - biên tập viên & biên dịch viên - - - - - dir. - dirs. - - - b.t.v - b.t.v - - - b.t.v - b.t.v - - - h.s - h.s - - - b.d.v - b.d.v - - - b.t.v & b.d.v - b.t.v & b.d.v - - - - bởi - directed by - biên tập bởi - biên tập bởi - illustrated by - interview by - to - bởi - biên dịch bởi - biên tập & biên dịch bởi - - - dir. - b.t - b.t - h.s - b.d - b.t & b.d bởi - - - Tháng Giêng - Tháng Hai - Tháng Ba - Tháng Tư - Tháng Năm - Tháng Sáu - Tháng Bảy - Tháng Tám - Tháng Chín - Tháng Mười - Tháng Mười-Một - Tháng Chạp - - - tháng 1 - tháng 2 - tháng 3 - tháng 4 - tháng 5 - tháng 6 - tháng 7 - tháng 8 - tháng 9 - tháng 10 - tháng 11 - tháng 12 - - - Mùa Xuân - Mùa Hè - Mùa Thu - Mùa Đông - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-zh-CN.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-zh-CN.xml deleted file mode 100644 index f99a041..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-zh-CN.xml +++ /dev/null @@ -1,205 +0,0 @@ - - - - - rongls - - - sati-bodhi - - - Heromyth - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2014-05-15T23:31:02+00:00 - - - - - - - - - - - - - - 见於 - - 及其他 - 作者不详 - 无名氏 - - 载於 - - 介于 - - 见引於 - 版本 - - - 即将出版 - - 同上 - 收入 - 送印中 - 网际网络 - 访谈 - 信函 - 日期不详 - 不详 - 在线 - 发表於 - 参考 - - 取读于 - 比例 - - - - 公元 - 公元前 - - - - - - - - - - - - - - - - - - - - - - - - - - - - 图表 - - - - 注脚 - 作品 - - 总页数 - 段落 - 部分 - - 另见 - - - - - - - - - - - - - op. - - - - - - 另见 - - - - - - - ¶¶ - - - § - §§ - - - - 导演 - 编辑 - 主编 - 绘图 - 翻译 - 编译 - - - 导演 - - 主编 - - - 编译 - - - - 指导 - 编辑 - 主编 - 绘图 - 采访 - 受函 - 校订 - 翻译 - 编译 - - - - - 主编 - - - 编译 - - - - 一月 - 二月 - 三月 - 四月 - 五月 - 六月 - 七月 - 八月 - 九月 - 十月 - 十一月 - 十二月 - - - 1月 - 2月 - 3月 - 4月 - 5月 - 6月 - 7月 - 8月 - 9月 - 10月 - 11月 - 12月 - - - - - - - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-zh-TW.xml b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-zh-TW.xml deleted file mode 100644 index b6e2a96..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales-zh-TW.xml +++ /dev/null @@ -1,209 +0,0 @@ - - - - - sati-bodhi - - This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License - 2014-05-15T23:31:02+00:00 - - - - - - - - - - - - - - 引見於 - - 及其他 - 作者不詳 - 無名氏 - - 載於 - - 介於 - - 見引於 - 版本 - - - 即將出版 - - 同上 - 收入 - 印行中 - 互聯網 - 訪談 - 信函 - 日期不詳 - 不詳 - 線上 - 發表於 - 參考 - - 讀取於 - 比例 - - - - 西元 - 西元前 - - - - - - - - - - - - - - - - - - - - - - - - - - - - 圖表 - - - - 註腳 - 作品 - - 總頁數 - 段落 - 部分 - - 另見 - - - - - - - - - - - - op. - - - - - - 另見 - - - - - - - ¶¶ - - - § - §§ - - - - 作者 - 導演 - 編輯 - 主編 - 繪圖師 - 採訪員 - 收信人 - 翻譯員 - 編譯員 - 評論人 - - - 作者 - 導演 - 編輯 - 主編 - 繪圖師 - 採訪員 - 收信人 - 翻譯員 - 編譯員 - 評論人 - - - - - - 指導 - 編輯 - 點校 - 主編 - 繪圖 - 採訪 - 受函 - 點評 - 翻譯 - 編譯 - - - - - - - - - - - - 一月 - 二月 - 三月 - 四月 - 五月 - 六月 - 七月 - 八月 - 九月 - 十月 - 十一月 - 十二月 - - - 1月 - 2月 - 3月 - 4月 - 5月 - 6月 - 7月 - 8月 - 9月 - 10月 - 11月 - 12月 - - - - - - - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales.json b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales.json deleted file mode 100644 index 3a11d6b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/locales.json +++ /dev/null @@ -1,258 +0,0 @@ -{ - "primary-dialects": { - "af": "af-ZA", - "ar": "ar", - "bg": "bg-BG", - "ca": "ca-AD", - "cs": "cs-CZ", - "cy": "cy-GB", - "da": "da-DK", - "de": "de-DE", - "el": "el-GR", - "en": "en-US", - "es": "es-ES", - "et": "et-EE", - "eu": "eu", - "fa": "fa-IR", - "fi": "fi-FI", - "fr": "fr-FR", - "he": "he-IL", - "hr": "hr-HR", - "hu": "hu-HU", - "id": "id-ID", - "is": "is-IS", - "it": "it-IT", - "ja": "ja-JP", - "km": "km-KH", - "ko": "ko-KR", - "lt": "lt-LT", - "lv": "lv-LV", - "mn": "mn-MN", - "nb": "nb-NO", - "nl": "nl-NL", - "nn": "nn-NO", - "pl": "pl-PL", - "pt": "pt-PT", - "ro": "ro-RO", - "ru": "ru-RU", - "sk": "sk-SK", - "sl": "sl-SI", - "sr": "sr-RS", - "sv": "sv-SE", - "th": "th-TH", - "tr": "tr-TR", - "uk": "uk-UA", - "vi": "vi-VN", - "zh": "zh-CN" - }, - "language-names": { - "af-ZA": [ - "Afrikaans", - "Afrikaans" - ], - "ar": [ - "العربية", - "Arabic" - ], - "bg-BG": [ - "Български", - "Bulgarian" - ], - "ca-AD": [ - "Català", - "Catalan" - ], - "cs-CZ": [ - "Čeština", - "Czech" - ], - "cy-GB": [ - "Cymraeg", - "Welsh" - ], - "da-DK": [ - "Dansk", - "Danish" - ], - "de-AT": [ - "Deutsch (Österreich)", - "German (Austria)" - ], - "de-CH": [ - "Deutsch (Schweiz)", - "German (Switzerland)" - ], - "de-DE": [ - "Deutsch (Deutschland)", - "German (Germany)" - ], - "el-GR": [ - "Ελληνικά", - "Greek" - ], - "en-GB": [ - "English (UK)", - "English (UK)" - ], - "en-US": [ - "English (US)", - "English (US)" - ], - "es-CL": [ - "Español (Chile)", - "Spanish (Chile)" - ], - "es-ES": [ - "Español (España)", - "Spanish (Spain)" - ], - "es-MX": [ - "Español (México)", - "Spanish (Mexico)" - ], - "et-EE": [ - "Eesti", - "Estonian" - ], - "eu": [ - "Euskara", - "Basque" - ], - "fa-IR": [ - "فارسی", - "Persian" - ], - "fi-FI": [ - "Suomi", - "Finnish" - ], - "fr-CA": [ - "Français (Canada)", - "French (Canada)" - ], - "fr-FR": [ - "Français (France)", - "French (France)" - ], - "he-IL": [ - "עברית", - "Hebrew" - ], - "hr-HR": [ - "Hrvatski", - "Croatian" - ], - "hu-HU": [ - "Magyar", - "Hungarian" - ], - "id-ID": [ - "Bahasa Indonesia", - "Indonesian" - ], - "is-IS": [ - "Íslenska", - "Icelandic" - ], - "it-IT": [ - "Italiano", - "Italian" - ], - "ja-JP": [ - "日本語", - "Japanese" - ], - "km-KH": [ - "ភាសាខ្មែរ", - "Khmer" - ], - "ko-KR": [ - "한국어", - "Korean" - ], - "lt-LT": [ - "Lietuvių", - "Lithuanian" - ], - "lv-LV": [ - "Latviešu", - "Latvian" - ], - "mn-MN": [ - "Монгол", - "Mongolian" - ], - "nb-NO": [ - "Norsk bokmål", - "Norwegian (Bokmål)" - ], - "nl-NL": [ - "Nederlands", - "Dutch" - ], - "nn-NO": [ - "Norsk nynorsk", - "Norwegian (Nynorsk)" - ], - "pl-PL": [ - "Polski", - "Polish" - ], - "pt-BR": [ - "Português (Brasil)", - "Portuguese (Brazil)" - ], - "pt-PT": [ - "Português (Portugal)", - "Portuguese (Portugal)" - ], - "ro-RO": [ - "Română", - "Romanian" - ], - "ru-RU": [ - "Русский", - "Russian" - ], - "sk-SK": [ - "Slovenčina", - "Slovak" - ], - "sl-SI": [ - "Slovenščina", - "Slovenian" - ], - "sr-RS": [ - "Српски / Srpski", - "Serbian" - ], - "sv-SE": [ - "Svenska", - "Swedish" - ], - "th-TH": [ - "ไทย", - "Thai" - ], - "tr-TR": [ - "Türkçe", - "Turkish" - ], - "uk-UA": [ - "Українська", - "Ukrainian" - ], - "vi-VN": [ - "Tiếng Việt", - "Vietnamese" - ], - "zh-CN": [ - "中文 (中国大陆)", - "Chinese (PRC)" - ], - "zh-TW": [ - "中文 (台灣)", - "Chinese (Taiwan)" - ] - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/locales_spec.rb b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/locales_spec.rb deleted file mode 100644 index 5d902d0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/locales_spec.rb +++ /dev/null @@ -1,44 +0,0 @@ -Locales.each_pair do |id, (filename, path, locale)| - - describe "#{id}" do - - it "is a valid CSL 1.0.1 locale" do - expect(CSL.validate(path)).to eq([]) - end - - it "has a conventional file name" do - expect(filename).to match(/^locales-[a-z]{2}(-[A-Z]{2})?\.xml$/) - end - - it "was successfully parsed" do - expect(locale).to be_a(CSL::Locale) - end - - unless locale.nil? - it "has an info element" do - expect(locale).to have_info - end - - it "has a language" do - expect(locale.language).not_to be_empty - end - - it "has a region" do - expect(locale.region).not_to be_empty - end unless NO_REGIONS.include?(locale.language.to_s) - - it "its language and region match the filename" do - expect(locale.to_s).to eq(id[8,5]) - end - - it "has and info/rights element" do - expect(locale.info).to have_rights - end - - it "is licensed under a CC BY-SA license" do - expect(locale.info).to be_default_license - end - end - - end -end diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/repository_spec.rb b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/repository_spec.rb deleted file mode 100644 index 5a34324..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/repository_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -describe "The file \"locales.json\"" do - before(:all) do - locales_file_path = File.join("#{LOCALE_ROOT}", "locales.json") - @locales_file_exists = File.exist?(locales_file_path) - - @locales_file_validates = false - begin - locales = JSON.parse(File.read(locales_file_path)) - @locales_file_validates = true - rescue JSON::ParserError => e - end - - @primary_dialects = {} - @language_names = {} - - if @locales_file_validates - @primary_dialects = locales["primary-dialects"] - @language_names = locales["language-names"] - end - - # Store locales of locale files (based on their file names) - @locale_file_locales = Dir[File.join(LOCALE_ROOT, 'locales-*.xml')].map { |path| - filename = File.basename(path) - locale = filename[8..-5] - } - @locale_file_languages = @locale_file_locales.map { |locale| language = locale[0..1] } - @locale_file_languages.uniq! - end - - it "must be present" do - expect(@locales_file_exists).to be true - end - - it "must be valid JSON" do - if @locales_file_exists - expect(@locales_file_validates).to be true - end - end - - it "must define a primary dialect for every language (e.g. \"de-DE\" for \"de\")" do - expect(@locale_file_languages - @primary_dialects.keys).to eq([]) - end - - it "must define language names for every locale" do - expect(@locale_file_locales - @language_names.keys).to eq([]) - end - - it "must define two language names for every locale (in the language itself and in English)" do - incorrect_entries = @language_names.select { |locale, descriptions| descriptions.length != 2 } - expect(incorrect_entries).to eq({}) - end -end - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/spec_helper.rb b/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/spec_helper.rb deleted file mode 100644 index 1bc1fc3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/locales/spec/spec_helper.rb +++ /dev/null @@ -1,35 +0,0 @@ -require 'csl' -require 'json' - -LOCALE_ROOT = File.expand_path('../..', __FILE__) - -NO_REGIONS = %w{ - eu ar -} - -def load_locale(path) - filename = File.basename(path) - id = filename[0..-5] - - begin - locale = CSL::Locale.load(path) - rescue - # failed to parse the locale. we'll report the error later - end - - [id, [filename, path, locale]] -end - -CSL::Schema.default_license = 'http://creativecommons.org/licenses/by-sa/3.0/' -CSL::Schema.default_rights_string = - 'This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License' - - -print "\nLoading locales" - -Locales = Hash[Dir[File.join(LOCALE_ROOT, '*.xml')].each_with_index.map { |path, i| - print '.' if i % 5 == 0 - load_locale(path) -}] - -puts diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/apa.csl b/modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/apa.csl deleted file mode 100644 index 2920400..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/apa.csl +++ /dev/null @@ -1,720 +0,0 @@ - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/chicago-annotated-bibliography.csl b/modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/chicago-annotated-bibliography.csl deleted file mode 100644 index ba91080..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/chicago-annotated-bibliography.csl +++ /dev/null @@ -1,1403 +0,0 @@ - - diff --git a/modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/modern-language-association.csl b/modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/modern-language-association.csl deleted file mode 100644 index ef5b7e7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/citation-style-language/styles-distribution/modern-language-association.csl +++ /dev/null @@ -1,290 +0,0 @@ - - diff --git a/modules/dkan_sci_citation/includes/vendor/composer/ClassLoader.php b/modules/dkan_sci_citation/includes/vendor/composer/ClassLoader.php deleted file mode 100644 index 2c72175..0000000 --- a/modules/dkan_sci_citation/includes/vendor/composer/ClassLoader.php +++ /dev/null @@ -1,445 +0,0 @@ - - * Jordi Boggiano - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Composer\Autoload; - -/** - * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. - * - * $loader = new \Composer\Autoload\ClassLoader(); - * - * // register classes with namespaces - * $loader->add('Symfony\Component', __DIR__.'/component'); - * $loader->add('Symfony', __DIR__.'/framework'); - * - * // activate the autoloader - * $loader->register(); - * - * // to enable searching the include path (eg. for PEAR packages) - * $loader->setUseIncludePath(true); - * - * In this example, if you try to use a class in the Symfony\Component - * namespace or one of its children (Symfony\Component\Console for instance), - * the autoloader will first look for the class under the component/ - * directory, and it will then fallback to the framework/ directory if not - * found before giving up. - * - * This class is loosely based on the Symfony UniversalClassLoader. - * - * @author Fabien Potencier - * @author Jordi Boggiano - * @see http://www.php-fig.org/psr/psr-0/ - * @see http://www.php-fig.org/psr/psr-4/ - */ -class ClassLoader -{ - // PSR-4 - private $prefixLengthsPsr4 = array(); - private $prefixDirsPsr4 = array(); - private $fallbackDirsPsr4 = array(); - - // PSR-0 - private $prefixesPsr0 = array(); - private $fallbackDirsPsr0 = array(); - - private $useIncludePath = false; - private $classMap = array(); - private $classMapAuthoritative = false; - private $missingClasses = array(); - private $apcuPrefix; - - public function getPrefixes() - { - if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', $this->prefixesPsr0); - } - - return array(); - } - - public function getPrefixesPsr4() - { - return $this->prefixDirsPsr4; - } - - public function getFallbackDirs() - { - return $this->fallbackDirsPsr0; - } - - public function getFallbackDirsPsr4() - { - return $this->fallbackDirsPsr4; - } - - public function getClassMap() - { - return $this->classMap; - } - - /** - * @param array $classMap Class to filename map - */ - public function addClassMap(array $classMap) - { - if ($this->classMap) { - $this->classMap = array_merge($this->classMap, $classMap); - } else { - $this->classMap = $classMap; - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, either - * appending or prepending to the ones previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories - */ - public function add($prefix, $paths, $prepend = false) - { - if (!$prefix) { - if ($prepend) { - $this->fallbackDirsPsr0 = array_merge( - (array) $paths, - $this->fallbackDirsPsr0 - ); - } else { - $this->fallbackDirsPsr0 = array_merge( - $this->fallbackDirsPsr0, - (array) $paths - ); - } - - return; - } - - $first = $prefix[0]; - if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = (array) $paths; - - return; - } - if ($prepend) { - $this->prefixesPsr0[$first][$prefix] = array_merge( - (array) $paths, - $this->prefixesPsr0[$first][$prefix] - ); - } else { - $this->prefixesPsr0[$first][$prefix] = array_merge( - $this->prefixesPsr0[$first][$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, either - * appending or prepending to the ones previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories - * - * @throws \InvalidArgumentException - */ - public function addPsr4($prefix, $paths, $prepend = false) - { - if (!$prefix) { - // Register directories for the root namespace. - if ($prepend) { - $this->fallbackDirsPsr4 = array_merge( - (array) $paths, - $this->fallbackDirsPsr4 - ); - } else { - $this->fallbackDirsPsr4 = array_merge( - $this->fallbackDirsPsr4, - (array) $paths - ); - } - } elseif (!isset($this->prefixDirsPsr4[$prefix])) { - // Register directories for a new namespace. - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } elseif ($prepend) { - // Prepend directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - (array) $paths, - $this->prefixDirsPsr4[$prefix] - ); - } else { - // Append directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - $this->prefixDirsPsr4[$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, - * replacing any others previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 base directories - */ - public function set($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr0 = (array) $paths; - } else { - $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, - * replacing any others previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * - * @throws \InvalidArgumentException - */ - public function setPsr4($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr4 = (array) $paths; - } else { - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } - } - - /** - * Turns on searching the include path for class files. - * - * @param bool $useIncludePath - */ - public function setUseIncludePath($useIncludePath) - { - $this->useIncludePath = $useIncludePath; - } - - /** - * Can be used to check if the autoloader uses the include path to check - * for classes. - * - * @return bool - */ - public function getUseIncludePath() - { - return $this->useIncludePath; - } - - /** - * Turns off searching the prefix and fallback directories for classes - * that have not been registered with the class map. - * - * @param bool $classMapAuthoritative - */ - public function setClassMapAuthoritative($classMapAuthoritative) - { - $this->classMapAuthoritative = $classMapAuthoritative; - } - - /** - * Should class lookup fail if not found in the current class map? - * - * @return bool - */ - public function isClassMapAuthoritative() - { - return $this->classMapAuthoritative; - } - - /** - * APCu prefix to use to cache found/not-found classes, if the extension is enabled. - * - * @param string|null $apcuPrefix - */ - public function setApcuPrefix($apcuPrefix) - { - $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; - } - - /** - * The APCu prefix in use, or null if APCu caching is not enabled. - * - * @return string|null - */ - public function getApcuPrefix() - { - return $this->apcuPrefix; - } - - /** - * Registers this instance as an autoloader. - * - * @param bool $prepend Whether to prepend the autoloader or not - */ - public function register($prepend = false) - { - spl_autoload_register(array($this, 'loadClass'), true, $prepend); - } - - /** - * Unregisters this instance as an autoloader. - */ - public function unregister() - { - spl_autoload_unregister(array($this, 'loadClass')); - } - - /** - * Loads the given class or interface. - * - * @param string $class The name of the class - * @return bool|null True if loaded, null otherwise - */ - public function loadClass($class) - { - if ($file = $this->findFile($class)) { - includeFile($file); - - return true; - } - } - - /** - * Finds the path to the file where the class is defined. - * - * @param string $class The name of the class - * - * @return string|false The path if found, false otherwise - */ - public function findFile($class) - { - // class map lookup - if (isset($this->classMap[$class])) { - return $this->classMap[$class]; - } - if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { - return false; - } - if (null !== $this->apcuPrefix) { - $file = apcu_fetch($this->apcuPrefix.$class, $hit); - if ($hit) { - return $file; - } - } - - $file = $this->findFileWithExtension($class, '.php'); - - // Search for Hack files if we are running on HHVM - if (false === $file && defined('HHVM_VERSION')) { - $file = $this->findFileWithExtension($class, '.hh'); - } - - if (null !== $this->apcuPrefix) { - apcu_add($this->apcuPrefix.$class, $file); - } - - if (false === $file) { - // Remember that this class does not exist. - $this->missingClasses[$class] = true; - } - - return $file; - } - - private function findFileWithExtension($class, $ext) - { - // PSR-4 lookup - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; - - $first = $class[0]; - if (isset($this->prefixLengthsPsr4[$first])) { - $subPath = $class; - while (false !== $lastPos = strrpos($subPath, '\\')) { - $subPath = substr($subPath, 0, $lastPos); - $search = $subPath.'\\'; - if (isset($this->prefixDirsPsr4[$search])) { - foreach ($this->prefixDirsPsr4[$search] as $dir) { - $length = $this->prefixLengthsPsr4[$first][$search]; - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { - return $file; - } - } - } - } - } - - // PSR-4 fallback dirs - foreach ($this->fallbackDirsPsr4 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { - return $file; - } - } - - // PSR-0 lookup - if (false !== $pos = strrpos($class, '\\')) { - // namespaced class name - $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) - . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); - } else { - // PEAR-like class name - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; - } - - if (isset($this->prefixesPsr0[$first])) { - foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { - if (0 === strpos($class, $prefix)) { - foreach ($dirs as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - } - } - } - - // PSR-0 fallback dirs - foreach ($this->fallbackDirsPsr0 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - - // PSR-0 include paths. - if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { - return $file; - } - - return false; - } -} - -/** - * Scope isolated include. - * - * Prevents access to $this/self from included files. - */ -function includeFile($file) -{ - include $file; -} diff --git a/modules/dkan_sci_citation/includes/vendor/composer/LICENSE b/modules/dkan_sci_citation/includes/vendor/composer/LICENSE deleted file mode 100644 index f27399a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/composer/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - -Copyright (c) Nils Adermann, Jordi Boggiano - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - diff --git a/modules/dkan_sci_citation/includes/vendor/composer/autoload_classmap.php b/modules/dkan_sci_citation/includes/vendor/composer/autoload_classmap.php deleted file mode 100644 index 7a91153..0000000 --- a/modules/dkan_sci_citation/includes/vendor/composer/autoload_classmap.php +++ /dev/null @@ -1,9 +0,0 @@ - $vendorDir . '/guzzlehttp/promises/src/functions_include.php', - 'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php', - '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', - '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', - '1fe344de44467df4ee7eee836e8fcb77' => $vendorDir . '/renanbr/crossref-client/src/CrossRefClient.php', -); diff --git a/modules/dkan_sci_citation/includes/vendor/composer/autoload_namespaces.php b/modules/dkan_sci_citation/includes/vendor/composer/autoload_namespaces.php deleted file mode 100644 index e4e1255..0000000 --- a/modules/dkan_sci_citation/includes/vendor/composer/autoload_namespaces.php +++ /dev/null @@ -1,10 +0,0 @@ - array($vendorDir . '/audiolabs/bibtexparser/src'), -); diff --git a/modules/dkan_sci_citation/includes/vendor/composer/autoload_psr4.php b/modules/dkan_sci_citation/includes/vendor/composer/autoload_psr4.php deleted file mode 100644 index df146cc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/composer/autoload_psr4.php +++ /dev/null @@ -1,18 +0,0 @@ - array($vendorDir . '/symfony/polyfill-mbstring'), - 'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'), - 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), - 'MyCLabs\\Enum\\' => array($vendorDir . '/myclabs/php-enum/src'), - 'Kevinrob\\GuzzleCache\\' => array($vendorDir . '/kevinrob/guzzle-cache-middleware/src'), - 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), - 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), - 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), - '' => array($vendorDir . '/seboettg/collection/src', $vendorDir . '/seboettg/citeproc-php/src'), -); diff --git a/modules/dkan_sci_citation/includes/vendor/composer/autoload_real.php b/modules/dkan_sci_citation/includes/vendor/composer/autoload_real.php deleted file mode 100644 index dac8bd7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/composer/autoload_real.php +++ /dev/null @@ -1,70 +0,0 @@ -= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); - if ($useStaticLoader) { - require_once __DIR__ . '/autoload_static.php'; - - call_user_func(\Composer\Autoload\ComposerStaticInitc72ec07db7c7b6ce374c45222ead47ab::getInitializer($loader)); - } else { - $map = require __DIR__ . '/autoload_namespaces.php'; - foreach ($map as $namespace => $path) { - $loader->set($namespace, $path); - } - - $map = require __DIR__ . '/autoload_psr4.php'; - foreach ($map as $namespace => $path) { - $loader->setPsr4($namespace, $path); - } - - $classMap = require __DIR__ . '/autoload_classmap.php'; - if ($classMap) { - $loader->addClassMap($classMap); - } - } - - $loader->register(true); - - if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInitc72ec07db7c7b6ce374c45222ead47ab::$files; - } else { - $includeFiles = require __DIR__ . '/autoload_files.php'; - } - foreach ($includeFiles as $fileIdentifier => $file) { - composerRequirec72ec07db7c7b6ce374c45222ead47ab($fileIdentifier, $file); - } - - return $loader; - } -} - -function composerRequirec72ec07db7c7b6ce374c45222ead47ab($fileIdentifier, $file) -{ - if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { - require $file; - - $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/composer/autoload_static.php b/modules/dkan_sci_citation/includes/vendor/composer/autoload_static.php deleted file mode 100644 index 663c792..0000000 --- a/modules/dkan_sci_citation/includes/vendor/composer/autoload_static.php +++ /dev/null @@ -1,103 +0,0 @@ - __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php', - 'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php', - '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', - '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', - '1fe344de44467df4ee7eee836e8fcb77' => __DIR__ . '/..' . '/renanbr/crossref-client/src/CrossRefClient.php', - ); - - public static $prefixLengthsPsr4 = array ( - 'S' => - array ( - 'Symfony\\Polyfill\\Mbstring\\' => 26, - ), - 'P' => - array ( - 'Psr\\SimpleCache\\' => 16, - 'Psr\\Http\\Message\\' => 17, - ), - 'M' => - array ( - 'MyCLabs\\Enum\\' => 13, - ), - 'K' => - array ( - 'Kevinrob\\GuzzleCache\\' => 21, - ), - 'G' => - array ( - 'GuzzleHttp\\Psr7\\' => 16, - 'GuzzleHttp\\Promise\\' => 19, - 'GuzzleHttp\\' => 11, - ), - ); - - public static $prefixDirsPsr4 = array ( - 'Symfony\\Polyfill\\Mbstring\\' => - array ( - 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring', - ), - 'Psr\\SimpleCache\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/simple-cache/src', - ), - 'Psr\\Http\\Message\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/http-message/src', - ), - 'MyCLabs\\Enum\\' => - array ( - 0 => __DIR__ . '/..' . '/myclabs/php-enum/src', - ), - 'Kevinrob\\GuzzleCache\\' => - array ( - 0 => __DIR__ . '/..' . '/kevinrob/guzzle-cache-middleware/src', - ), - 'GuzzleHttp\\Psr7\\' => - array ( - 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src', - ), - 'GuzzleHttp\\Promise\\' => - array ( - 0 => __DIR__ . '/..' . '/guzzlehttp/promises/src', - ), - 'GuzzleHttp\\' => - array ( - 0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src', - ), - ); - - public static $fallbackDirsPsr4 = array ( - 0 => __DIR__ . '/..' . '/seboettg/collection/src', - 1 => __DIR__ . '/..' . '/seboettg/citeproc-php/src', - ); - - public static $prefixesPsr0 = array ( - 'A' => - array ( - 'AudioLabs' => - array ( - 0 => __DIR__ . '/..' . '/audiolabs/bibtexparser/src', - ), - ), - ); - - public static function getInitializer(ClassLoader $loader) - { - return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitc72ec07db7c7b6ce374c45222ead47ab::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitc72ec07db7c7b6ce374c45222ead47ab::$prefixDirsPsr4; - $loader->fallbackDirsPsr4 = ComposerStaticInitc72ec07db7c7b6ce374c45222ead47ab::$fallbackDirsPsr4; - $loader->prefixesPsr0 = ComposerStaticInitc72ec07db7c7b6ce374c45222ead47ab::$prefixesPsr0; - - }, null, ClassLoader::class); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/composer/installed.json b/modules/dkan_sci_citation/includes/vendor/composer/installed.json deleted file mode 100644 index 87fdffd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/composer/installed.json +++ /dev/null @@ -1,693 +0,0 @@ -[ - { - "name": "psr/simple-cache", - "version": "1.0.0", - "version_normalized": "1.0.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/simple-cache.git", - "reference": "753fa598e8f3b9966c886fe13f370baa45ef0e24" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/753fa598e8f3b9966c886fe13f370baa45ef0e24", - "reference": "753fa598e8f3b9966c886fe13f370baa45ef0e24", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "time": "2017-01-02T13:31:39+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\SimpleCache\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interfaces for simple caching", - "keywords": [ - "cache", - "caching", - "psr", - "psr-16", - "simple-cache" - ] - }, - { - "name": "kevinrob/guzzle-cache-middleware", - "version": "v3.2.1", - "version_normalized": "3.2.1.0", - "source": { - "type": "git", - "url": "https://github.com/Kevinrob/guzzle-cache-middleware.git", - "reference": "dda34401a68c54f06c9338a2cc30ae0aecd879a1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Kevinrob/guzzle-cache-middleware/zipball/dda34401a68c54f06c9338a2cc30ae0aecd879a1", - "reference": "dda34401a68c54f06c9338a2cc30ae0aecd879a1", - "shasum": "" - }, - "require": { - "php": ">=5.5.0" - }, - "require-dev": { - "cache/array-adapter": "^0.4 || ^0.5 || ^1.0", - "cache/simple-cache-bridge": "^0.1 || ^1.0", - "doctrine/cache": "^1.0", - "guzzlehttp/guzzle": "^6.0", - "illuminate/cache": "^5.0", - "league/flysystem": "^1.0", - "phpunit/phpunit": "^4.0 || ^5.0", - "psr/cache": "^1.0" - }, - "suggest": { - "doctrine/cache": "This library have a lot of ready-to-use cache storage (to be use with Kevinrob\\GuzzleCache\\Storage\\DoctrineCacheStorage)", - "guzzlehttp/guzzle": "For using this library. It was created for Guzzle6. (but you can use it with any PSR-7 HTTP Client)", - "laravel/framework": "To be use with Kevinrob\\GuzzleCache\\Storage\\LaravelCacheStorage", - "league/flysystem": "To be use with Kevinrob\\GuzzleCache\\Storage\\FlysystemStorage", - "psr/cache": "To be use with Kevinrob\\GuzzleCache\\Storage\\Psr6CacheStorage", - "psr/simple-cache": "To be use with Kevinrob\\GuzzleCache\\Storage\\Psr16CacheStorage" - }, - "time": "2018-01-10T13:55:22+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Kevinrob\\GuzzleCache\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Kevin Robatel", - "email": "kevinrob2@gmail.com", - "homepage": "https://github.com/Kevinrob" - } - ], - "description": "A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)", - "homepage": "https://github.com/Kevinrob/guzzle-cache-middleware", - "keywords": [ - "Etag", - "Flysystem", - "Guzzle", - "cache", - "cache-control", - "doctrine", - "expiration", - "guzzle6", - "handler", - "http", - "http 1.1", - "middleware", - "performance", - "php", - "promise", - "psr6", - "psr7", - "rfc7234", - "validation" - ] - }, - { - "name": "guzzlehttp/promises", - "version": "v1.3.1", - "version_normalized": "1.3.1.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/promises.git", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", - "shasum": "" - }, - "require": { - "php": ">=5.5.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.0" - }, - "time": "2016-12-20T10:07:11+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "GuzzleHttp\\Promise\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "Guzzle promises library", - "keywords": [ - "promise" - ] - }, - { - "name": "psr/http-message", - "version": "1.0.1", - "version_normalized": "1.0.1.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-message.git", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "time": "2016-08-06T14:39:51+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP messages", - "homepage": "https://github.com/php-fig/http-message", - "keywords": [ - "http", - "http-message", - "psr", - "psr-7", - "request", - "response" - ] - }, - { - "name": "guzzlehttp/psr7", - "version": "1.4.2", - "version_normalized": "1.4.2.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/psr7.git", - "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c", - "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c", - "shasum": "" - }, - "require": { - "php": ">=5.4.0", - "psr/http-message": "~1.0" - }, - "provide": { - "psr/http-message-implementation": "1.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "time": "2017-03-20T17:10:46+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "GuzzleHttp\\Psr7\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "Tobias Schultze", - "homepage": "https://github.com/Tobion" - } - ], - "description": "PSR-7 message implementation that also provides common utility methods", - "keywords": [ - "http", - "message", - "request", - "response", - "stream", - "uri", - "url" - ] - }, - { - "name": "guzzlehttp/guzzle", - "version": "6.3.0", - "version_normalized": "6.3.0.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/guzzle.git", - "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/f4db5a78a5ea468d4831de7f0bf9d9415e348699", - "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699", - "shasum": "" - }, - "require": { - "guzzlehttp/promises": "^1.0", - "guzzlehttp/psr7": "^1.4", - "php": ">=5.5" - }, - "require-dev": { - "ext-curl": "*", - "phpunit/phpunit": "^4.0 || ^5.0", - "psr/log": "^1.0" - }, - "suggest": { - "psr/log": "Required for using the Log middleware" - }, - "time": "2017-06-22T18:50:49+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "6.2-dev" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "src/functions_include.php" - ], - "psr-4": { - "GuzzleHttp\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "Guzzle is a PHP HTTP client library", - "homepage": "http://guzzlephp.org/", - "keywords": [ - "client", - "curl", - "framework", - "http", - "http client", - "rest", - "web service" - ] - }, - { - "name": "renanbr/crossref-client", - "version": "dev-master", - "version_normalized": "9999999-dev", - "source": { - "type": "git", - "url": "https://github.com/renanbr/crossref-client.git", - "reference": "b0e9d69ee563dbdafc23937cb8344520d041cea5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/renanbr/crossref-client/zipball/b0e9d69ee563dbdafc23937cb8344520d041cea5", - "reference": "b0e9d69ee563dbdafc23937cb8344520d041cea5", - "shasum": "" - }, - "require": { - "guzzlehttp/guzzle": "^6.2", - "kevinrob/guzzle-cache-middleware": "^3.1", - "php": ">=5.6.0", - "psr/simple-cache": "^1.0" - }, - "require-dev": { - "cache/array-adapter": "^1.0", - "cache/simple-cache-bridge": "^1.0", - "friendsofphp/php-cs-fixer": "^2.8", - "phpunit/phpunit": "^5.7 || ^6.0" - }, - "time": "2018-01-29T00:06:15+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } - }, - "installation-source": "source", - "autoload": { - "files": [ - "src/CrossRefClient.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Renan de Lima Barbosa", - "email": "renandelima@gmail.com" - } - ], - "description": "Client for CrossRef REST API", - "keywords": [ - "API-Client", - "api", - "client", - "crossref", - "crossref-api", - "crossref-client", - "rest" - ] - }, - { - "name": "audiolabs/bibtexparser", - "version": "dev-master", - "version_normalized": "9999999-dev", - "source": { - "type": "git", - "url": "https://github.com/audiolabs/bibtexparser.git", - "reference": "b2d7794f49887ee7801c780b215d4d66b0f2e475" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/audiolabs/bibtexparser/zipball/b2d7794f49887ee7801c780b215d4d66b0f2e475", - "reference": "b2d7794f49887ee7801c780b215d4d66b0f2e475", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "time": "2014-04-07T10:08:24+00:00", - "type": "library", - "installation-source": "source", - "autoload": { - "psr-0": { - "AudioLabs": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nils Werner", - "email": "nils.werner@audiolabs-erlangen.de", - "homepage": "http://www.audiolabs-erlangen.de", - "role": "Developer" - } - ], - "description": "Bibtex parser for PHP 5.3", - "homepage": "http://github.com/alabs/bibtexparser", - "keywords": [ - "bibtex", - "latex", - "parsing" - ] - }, - { - "name": "citation-style-language/locales", - "version": "1.0.0", - "version_normalized": "1.0.0.0", - "source": { - "type": "git", - "url": "https://github.com/citation-style-language/locales.git", - "reference": "master" - }, - "type": "library", - "installation-source": "source" - }, - { - "name": "citation-style-language/styles-distribution", - "version": "1.0.0", - "version_normalized": "1.0.0.0", - "source": { - "type": "git", - "url": "https://github.com/citation-style-language/styles-distribution.git", - "reference": "master" - }, - "type": "library", - "installation-source": "source" - }, - { - "name": "symfony/polyfill-mbstring", - "version": "v1.7.0", - "version_normalized": "1.7.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "78be803ce01e55d3491c1397cf1c64beb9c1b63b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/78be803ce01e55d3491c1397cf1c64beb9c1b63b", - "reference": "78be803ce01e55d3491c1397cf1c64beb9c1b63b", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "suggest": { - "ext-mbstring": "For best performance" - }, - "time": "2018-01-30T19:27:44+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.7-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for the Mbstring extension", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "mbstring", - "polyfill", - "portable", - "shim" - ] - }, - { - "name": "myclabs/php-enum", - "version": "1.5.2", - "version_normalized": "1.5.2.0", - "source": { - "type": "git", - "url": "https://github.com/myclabs/php-enum.git", - "reference": "3ed7088cfd0a0e06534b7f8b0eee82acea574fac" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/myclabs/php-enum/zipball/3ed7088cfd0a0e06534b7f8b0eee82acea574fac", - "reference": "3ed7088cfd0a0e06534b7f8b0eee82acea574fac", - "shasum": "" - }, - "require": { - "php": ">=5.3" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35|^5.7|^6.0", - "squizlabs/php_codesniffer": "1.*" - }, - "time": "2017-06-28T16:24:08+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "MyCLabs\\Enum\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP Enum contributors", - "homepage": "https://github.com/myclabs/php-enum/graphs/contributors" - } - ], - "description": "PHP Enum implementation", - "homepage": "http://github.com/myclabs/php-enum", - "keywords": [ - "enum" - ] - }, - { - "name": "seboettg/collection", - "version": "v1.2.0", - "version_normalized": "1.2.0.0", - "source": { - "type": "git", - "url": "https://github.com/seboettg/Collection.git", - "reference": "c77456c8d6a6685994bb475f82faff8ab1c20f4f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/seboettg/Collection/zipball/c77456c8d6a6685994bb475f82faff8ab1c20f4f", - "reference": "c77456c8d6a6685994bb475f82faff8ab1c20f4f", - "shasum": "" - }, - "require-dev": { - "phpunit/phpunit": "^6.2", - "satooshi/php-coveralls": "dev-master" - }, - "time": "2017-07-27T09:41:47+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Sebastian Böttger", - "email": "seboettg@gmail.com" - } - ], - "description": "Simple PHP ArrayList collection" - }, - { - "name": "seboettg/citeproc-php", - "version": "v2.1.1", - "version_normalized": "2.1.1.0", - "source": { - "type": "git", - "url": "https://github.com/seboettg/citeproc-php.git", - "reference": "feca12395e3d2a1f89a98a6d886678cca578a5c9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/seboettg/citeproc-php/zipball/feca12395e3d2a1f89a98a6d886678cca578a5c9", - "reference": "feca12395e3d2a1f89a98a6d886678cca578a5c9", - "shasum": "" - }, - "require": { - "myclabs/php-enum": "^1.5", - "seboettg/collection": "^1.2", - "symfony/polyfill-mbstring": "^1.3" - }, - "require-dev": { - "phpunit/phpunit": "6.0.13", - "satooshi/php-coveralls": "^1" - }, - "time": "2018-02-08T15:42:27+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Sebastian Böttger", - "email": "seboettg@gmail.com", - "homepage": "http://sebastianboettger.net", - "role": "Developer" - } - ], - "description": "Full-featured CSL processor (https://citationstyles.org)" - } -] diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/CHANGELOG.md b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/CHANGELOG.md deleted file mode 100644 index b265cbc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/CHANGELOG.md +++ /dev/null @@ -1,1264 +0,0 @@ -# CHANGELOG - -## 6.3.0 - 2017-06-22 - -* Feature: force IP resolution (ipv4 or ipv6) [#1608](https://github.com/guzzle/guzzle/pull/1608), [#1659](https://github.com/guzzle/guzzle/pull/1659) -* Improvement: Don't include summary in exception message when body is empty [#1621](https://github.com/guzzle/guzzle/pull/1621) -* Improvement: Handle `on_headers` option in MockHandler [#1580](https://github.com/guzzle/guzzle/pull/1580) -* Improvement: Added SUSE Linux CA path [#1609](https://github.com/guzzle/guzzle/issues/1609) -* Improvement: Use class reference for getting the name of the class instead of using hardcoded strings [#1641](https://github.com/guzzle/guzzle/pull/1641) -* Feature: Added `read_timeout` option [#1611](https://github.com/guzzle/guzzle/pull/1611) -* Bug fix: PHP 7.x fixes [#1685](https://github.com/guzzle/guzzle/pull/1685), [#1686](https://github.com/guzzle/guzzle/pull/1686), [#1811](https://github.com/guzzle/guzzle/pull/1811) -* Deprecation: BadResponseException instantiation without a response [#1642](https://github.com/guzzle/guzzle/pull/1642) -* Feature: Added NTLM auth [#1569](https://github.com/guzzle/guzzle/pull/1569) -* Feature: Track redirect HTTP status codes [#1711](https://github.com/guzzle/guzzle/pull/1711) -* Improvement: Check handler type during construction [#1745](https://github.com/guzzle/guzzle/pull/1745) -* Improvement: Always include the Content-Length if there's a body [#1721](https://github.com/guzzle/guzzle/pull/1721) -* Feature: Added convenience method to access a cookie by name [#1318](https://github.com/guzzle/guzzle/pull/1318) -* Bug fix: Fill `CURLOPT_CAPATH` and `CURLOPT_CAINFO` properly [#1684](https://github.com/guzzle/guzzle/pull/1684) -* Improvement: Use `\GuzzleHttp\Promise\rejection_for` function instead of object init [#1827](https://github.com/guzzle/guzzle/pull/1827) - - -+ Minor code cleanups, documentation fixes and clarifications. - -## 6.2.3 - 2017-02-28 - -* Fix deprecations with guzzle/psr7 version 1.4 - -## 6.2.2 - 2016-10-08 - -* Allow to pass nullable Response to delay callable -* Only add scheme when host is present -* Fix drain case where content-length is the literal string zero -* Obfuscate in-URL credentials in exceptions - -## 6.2.1 - 2016-07-18 - -* Address HTTP_PROXY security vulnerability, CVE-2016-5385: - https://httpoxy.org/ -* Fixing timeout bug with StreamHandler: - https://github.com/guzzle/guzzle/pull/1488 -* Only read up to `Content-Length` in PHP StreamHandler to avoid timeouts when - a server does not honor `Connection: close`. -* Ignore URI fragment when sending requests. - -## 6.2.0 - 2016-03-21 - -* Feature: added `GuzzleHttp\json_encode` and `GuzzleHttp\json_decode`. - https://github.com/guzzle/guzzle/pull/1389 -* Bug fix: Fix sleep calculation when waiting for delayed requests. - https://github.com/guzzle/guzzle/pull/1324 -* Feature: More flexible history containers. - https://github.com/guzzle/guzzle/pull/1373 -* Bug fix: defer sink stream opening in StreamHandler. - https://github.com/guzzle/guzzle/pull/1377 -* Bug fix: do not attempt to escape cookie values. - https://github.com/guzzle/guzzle/pull/1406 -* Feature: report original content encoding and length on decoded responses. - https://github.com/guzzle/guzzle/pull/1409 -* Bug fix: rewind seekable request bodies before dispatching to cURL. - https://github.com/guzzle/guzzle/pull/1422 -* Bug fix: provide an empty string to `http_build_query` for HHVM workaround. - https://github.com/guzzle/guzzle/pull/1367 - -## 6.1.1 - 2015-11-22 - -* Bug fix: Proxy::wrapSync() now correctly proxies to the appropriate handler - https://github.com/guzzle/guzzle/commit/911bcbc8b434adce64e223a6d1d14e9a8f63e4e4 -* Feature: HandlerStack is now more generic. - https://github.com/guzzle/guzzle/commit/f2102941331cda544745eedd97fc8fd46e1ee33e -* Bug fix: setting verify to false in the StreamHandler now disables peer - verification. https://github.com/guzzle/guzzle/issues/1256 -* Feature: Middleware now uses an exception factory, including more error - context. https://github.com/guzzle/guzzle/pull/1282 -* Feature: better support for disabled functions. - https://github.com/guzzle/guzzle/pull/1287 -* Bug fix: fixed regression where MockHandler was not using `sink`. - https://github.com/guzzle/guzzle/pull/1292 - -## 6.1.0 - 2015-09-08 - -* Feature: Added the `on_stats` request option to provide access to transfer - statistics for requests. https://github.com/guzzle/guzzle/pull/1202 -* Feature: Added the ability to persist session cookies in CookieJars. - https://github.com/guzzle/guzzle/pull/1195 -* Feature: Some compatibility updates for Google APP Engine - https://github.com/guzzle/guzzle/pull/1216 -* Feature: Added support for NO_PROXY to prevent the use of a proxy based on - a simple set of rules. https://github.com/guzzle/guzzle/pull/1197 -* Feature: Cookies can now contain square brackets. - https://github.com/guzzle/guzzle/pull/1237 -* Bug fix: Now correctly parsing `=` inside of quotes in Cookies. - https://github.com/guzzle/guzzle/pull/1232 -* Bug fix: Cusotm cURL options now correctly override curl options of the - same name. https://github.com/guzzle/guzzle/pull/1221 -* Bug fix: Content-Type header is now added when using an explicitly provided - multipart body. https://github.com/guzzle/guzzle/pull/1218 -* Bug fix: Now ignoring Set-Cookie headers that have no name. -* Bug fix: Reason phrase is no longer cast to an int in some cases in the - cURL handler. https://github.com/guzzle/guzzle/pull/1187 -* Bug fix: Remove the Authorization header when redirecting if the Host - header changes. https://github.com/guzzle/guzzle/pull/1207 -* Bug fix: Cookie path matching fixes - https://github.com/guzzle/guzzle/issues/1129 -* Bug fix: Fixing the cURL `body_as_string` setting - https://github.com/guzzle/guzzle/pull/1201 -* Bug fix: quotes are no longer stripped when parsing cookies. - https://github.com/guzzle/guzzle/issues/1172 -* Bug fix: `form_params` and `query` now always uses the `&` separator. - https://github.com/guzzle/guzzle/pull/1163 -* Bug fix: Adding a Content-Length to PHP stream wrapper requests if not set. - https://github.com/guzzle/guzzle/pull/1189 - -## 6.0.2 - 2015-07-04 - -* Fixed a memory leak in the curl handlers in which references to callbacks - were not being removed by `curl_reset`. -* Cookies are now extracted properly before redirects. -* Cookies now allow more character ranges. -* Decoded Content-Encoding responses are now modified to correctly reflect - their state if the encoding was automatically removed by a handler. This - means that the `Content-Encoding` header may be removed an the - `Content-Length` modified to reflect the message size after removing the - encoding. -* Added a more explicit error message when trying to use `form_params` and - `multipart` in the same request. -* Several fixes for HHVM support. -* Functions are now conditionally required using an additional level of - indirection to help with global Composer installations. - -## 6.0.1 - 2015-05-27 - -* Fixed a bug with serializing the `query` request option where the `&` - separator was missing. -* Added a better error message for when `body` is provided as an array. Please - use `form_params` or `multipart` instead. -* Various doc fixes. - -## 6.0.0 - 2015-05-26 - -* See the UPGRADING.md document for more information. -* Added `multipart` and `form_params` request options. -* Added `synchronous` request option. -* Added the `on_headers` request option. -* Fixed `expect` handling. -* No longer adding default middlewares in the client ctor. These need to be - present on the provided handler in order to work. -* Requests are no longer initiated when sending async requests with the - CurlMultiHandler. This prevents unexpected recursion from requests completing - while ticking the cURL loop. -* Removed the semantics of setting `default` to `true`. This is no longer - required now that the cURL loop is not ticked for async requests. -* Added request and response logging middleware. -* No longer allowing self signed certificates when using the StreamHandler. -* Ensuring that `sink` is valid if saving to a file. -* Request exceptions now include a "handler context" which provides handler - specific contextual information. -* Added `GuzzleHttp\RequestOptions` to allow request options to be applied - using constants. -* `$maxHandles` has been removed from CurlMultiHandler. -* `MultipartPostBody` is now part of the `guzzlehttp/psr7` package. - -## 5.3.0 - 2015-05-19 - -* Mock now supports `save_to` -* Marked `AbstractRequestEvent::getTransaction()` as public. -* Fixed a bug in which multiple headers using different casing would overwrite - previous headers in the associative array. -* Added `Utils::getDefaultHandler()` -* Marked `GuzzleHttp\Client::getDefaultUserAgent` as deprecated. -* URL scheme is now always lowercased. - -## 6.0.0-beta.1 - -* Requires PHP >= 5.5 -* Updated to use PSR-7 - * Requires immutable messages, which basically means an event based system - owned by a request instance is no longer possible. - * Utilizing the [Guzzle PSR-7 package](https://github.com/guzzle/psr7). - * Removed the dependency on `guzzlehttp/streams`. These stream abstractions - are available in the `guzzlehttp/psr7` package under the `GuzzleHttp\Psr7` - namespace. -* Added middleware and handler system - * Replaced the Guzzle event and subscriber system with a middleware system. - * No longer depends on RingPHP, but rather places the HTTP handlers directly - in Guzzle, operating on PSR-7 messages. - * Retry logic is now encapsulated in `GuzzleHttp\Middleware::retry`, which - means the `guzzlehttp/retry-subscriber` is now obsolete. - * Mocking responses is now handled using `GuzzleHttp\Handler\MockHandler`. -* Asynchronous responses - * No longer supports the `future` request option to send an async request. - Instead, use one of the `*Async` methods of a client (e.g., `requestAsync`, - `getAsync`, etc.). - * Utilizing `GuzzleHttp\Promise` instead of React's promise library to avoid - recursion required by chaining and forwarding react promises. See - https://github.com/guzzle/promises - * Added `requestAsync` and `sendAsync` to send request asynchronously. - * Added magic methods for `getAsync()`, `postAsync()`, etc. to send requests - asynchronously. -* Request options - * POST and form updates - * Added the `form_fields` and `form_files` request options. - * Removed the `GuzzleHttp\Post` namespace. - * The `body` request option no longer accepts an array for POST requests. - * The `exceptions` request option has been deprecated in favor of the - `http_errors` request options. - * The `save_to` request option has been deprecated in favor of `sink` request - option. -* Clients no longer accept an array of URI template string and variables for - URI variables. You will need to expand URI templates before passing them - into a client constructor or request method. -* Client methods `get()`, `post()`, `put()`, `patch()`, `options()`, etc. are - now magic methods that will send synchronous requests. -* Replaced `Utils.php` with plain functions in `functions.php`. -* Removed `GuzzleHttp\Collection`. -* Removed `GuzzleHttp\BatchResults`. Batched pool results are now returned as - an array. -* Removed `GuzzleHttp\Query`. Query string handling is now handled using an - associative array passed into the `query` request option. The query string - is serialized using PHP's `http_build_query`. If you need more control, you - can pass the query string in as a string. -* `GuzzleHttp\QueryParser` has been replaced with the - `GuzzleHttp\Psr7\parse_query`. - -## 5.2.0 - 2015-01-27 - -* Added `AppliesHeadersInterface` to make applying headers to a request based - on the body more generic and not specific to `PostBodyInterface`. -* Reduced the number of stack frames needed to send requests. -* Nested futures are now resolved in the client rather than the RequestFsm -* Finishing state transitions is now handled in the RequestFsm rather than the - RingBridge. -* Added a guard in the Pool class to not use recursion for request retries. - -## 5.1.0 - 2014-12-19 - -* Pool class no longer uses recursion when a request is intercepted. -* The size of a Pool can now be dynamically adjusted using a callback. - See https://github.com/guzzle/guzzle/pull/943. -* Setting a request option to `null` when creating a request with a client will - ensure that the option is not set. This allows you to overwrite default - request options on a per-request basis. - See https://github.com/guzzle/guzzle/pull/937. -* Added the ability to limit which protocols are allowed for redirects by - specifying a `protocols` array in the `allow_redirects` request option. -* Nested futures due to retries are now resolved when waiting for synchronous - responses. See https://github.com/guzzle/guzzle/pull/947. -* `"0"` is now an allowed URI path. See - https://github.com/guzzle/guzzle/pull/935. -* `Query` no longer typehints on the `$query` argument in the constructor, - allowing for strings and arrays. -* Exceptions thrown in the `end` event are now correctly wrapped with Guzzle - specific exceptions if necessary. - -## 5.0.3 - 2014-11-03 - -This change updates query strings so that they are treated as un-encoded values -by default where the value represents an un-encoded value to send over the -wire. A Query object then encodes the value before sending over the wire. This -means that even value query string values (e.g., ":") are url encoded. This -makes the Query class match PHP's http_build_query function. However, if you -want to send requests over the wire using valid query string characters that do -not need to be encoded, then you can provide a string to Url::setQuery() and -pass true as the second argument to specify that the query string is a raw -string that should not be parsed or encoded (unless a call to getQuery() is -subsequently made, forcing the query-string to be converted into a Query -object). - -## 5.0.2 - 2014-10-30 - -* Added a trailing `\r\n` to multipart/form-data payloads. See - https://github.com/guzzle/guzzle/pull/871 -* Added a `GuzzleHttp\Pool::send()` convenience method to match the docs. -* Status codes are now returned as integers. See - https://github.com/guzzle/guzzle/issues/881 -* No longer overwriting an existing `application/x-www-form-urlencoded` header - when sending POST requests, allowing for customized headers. See - https://github.com/guzzle/guzzle/issues/877 -* Improved path URL serialization. - - * No longer double percent-encoding characters in the path or query string if - they are already encoded. - * Now properly encoding the supplied path to a URL object, instead of only - encoding ' ' and '?'. - * Note: This has been changed in 5.0.3 to now encode query string values by - default unless the `rawString` argument is provided when setting the query - string on a URL: Now allowing many more characters to be present in the - query string without being percent encoded. See http://tools.ietf.org/html/rfc3986#appendix-A - -## 5.0.1 - 2014-10-16 - -Bugfix release. - -* Fixed an issue where connection errors still returned response object in - error and end events event though the response is unusable. This has been - corrected so that a response is not returned in the `getResponse` method of - these events if the response did not complete. https://github.com/guzzle/guzzle/issues/867 -* Fixed an issue where transfer statistics were not being populated in the - RingBridge. https://github.com/guzzle/guzzle/issues/866 - -## 5.0.0 - 2014-10-12 - -Adding support for non-blocking responses and some minor API cleanup. - -### New Features - -* Added support for non-blocking responses based on `guzzlehttp/guzzle-ring`. -* Added a public API for creating a default HTTP adapter. -* Updated the redirect plugin to be non-blocking so that redirects are sent - concurrently. Other plugins like this can now be updated to be non-blocking. -* Added a "progress" event so that you can get upload and download progress - events. -* Added `GuzzleHttp\Pool` which implements FutureInterface and transfers - requests concurrently using a capped pool size as efficiently as possible. -* Added `hasListeners()` to EmitterInterface. -* Removed `GuzzleHttp\ClientInterface::sendAll` and marked - `GuzzleHttp\Client::sendAll` as deprecated (it's still there, just not the - recommended way). - -### Breaking changes - -The breaking changes in this release are relatively minor. The biggest thing to -look out for is that request and response objects no longer implement fluent -interfaces. - -* Removed the fluent interfaces (i.e., `return $this`) from requests, - responses, `GuzzleHttp\Collection`, `GuzzleHttp\Url`, - `GuzzleHttp\Query`, `GuzzleHttp\Post\PostBody`, and - `GuzzleHttp\Cookie\SetCookie`. This blog post provides a good outline of - why I did this: http://ocramius.github.io/blog/fluent-interfaces-are-evil/. - This also makes the Guzzle message interfaces compatible with the current - PSR-7 message proposal. -* Removed "functions.php", so that Guzzle is truly PSR-4 compliant. Except - for the HTTP request functions from function.php, these functions are now - implemented in `GuzzleHttp\Utils` using camelCase. `GuzzleHttp\json_decode` - moved to `GuzzleHttp\Utils::jsonDecode`. `GuzzleHttp\get_path` moved to - `GuzzleHttp\Utils::getPath`. `GuzzleHttp\set_path` moved to - `GuzzleHttp\Utils::setPath`. `GuzzleHttp\batch` should now be - `GuzzleHttp\Pool::batch`, which returns an `objectStorage`. Using functions.php - caused problems for many users: they aren't PSR-4 compliant, require an - explicit include, and needed an if-guard to ensure that the functions are not - declared multiple times. -* Rewrote adapter layer. - * Removing all classes from `GuzzleHttp\Adapter`, these are now - implemented as callables that are stored in `GuzzleHttp\Ring\Client`. - * Removed the concept of "parallel adapters". Sending requests serially or - concurrently is now handled using a single adapter. - * Moved `GuzzleHttp\Adapter\Transaction` to `GuzzleHttp\Transaction`. The - Transaction object now exposes the request, response, and client as public - properties. The getters and setters have been removed. -* Removed the "headers" event. This event was only useful for changing the - body a response once the headers of the response were known. You can implement - a similar behavior in a number of ways. One example might be to use a - FnStream that has access to the transaction being sent. For example, when the - first byte is written, you could check if the response headers match your - expectations, and if so, change the actual stream body that is being - written to. -* Removed the `asArray` parameter from - `GuzzleHttp\Message\MessageInterface::getHeader`. If you want to get a header - value as an array, then use the newly added `getHeaderAsArray()` method of - `MessageInterface`. This change makes the Guzzle interfaces compatible with - the PSR-7 interfaces. -* `GuzzleHttp\Message\MessageFactory` no longer allows subclasses to add - custom request options using double-dispatch (this was an implementation - detail). Instead, you should now provide an associative array to the - constructor which is a mapping of the request option name mapping to a - function that applies the option value to a request. -* Removed the concept of "throwImmediately" from exceptions and error events. - This control mechanism was used to stop a transfer of concurrent requests - from completing. This can now be handled by throwing the exception or by - cancelling a pool of requests or each outstanding future request individually. -* Updated to "GuzzleHttp\Streams" 3.0. - * `GuzzleHttp\Stream\StreamInterface::getContents()` no longer accepts a - `maxLen` parameter. This update makes the Guzzle streams project - compatible with the current PSR-7 proposal. - * `GuzzleHttp\Stream\Stream::__construct`, - `GuzzleHttp\Stream\Stream::factory`, and - `GuzzleHttp\Stream\Utils::create` no longer accept a size in the second - argument. They now accept an associative array of options, including the - "size" key and "metadata" key which can be used to provide custom metadata. - -## 4.2.2 - 2014-09-08 - -* Fixed a memory leak in the CurlAdapter when reusing cURL handles. -* No longer using `request_fulluri` in stream adapter proxies. -* Relative redirects are now based on the last response, not the first response. - -## 4.2.1 - 2014-08-19 - -* Ensuring that the StreamAdapter does not always add a Content-Type header -* Adding automated github releases with a phar and zip - -## 4.2.0 - 2014-08-17 - -* Now merging in default options using a case-insensitive comparison. - Closes https://github.com/guzzle/guzzle/issues/767 -* Added the ability to automatically decode `Content-Encoding` response bodies - using the `decode_content` request option. This is set to `true` by default - to decode the response body if it comes over the wire with a - `Content-Encoding`. Set this value to `false` to disable decoding the - response content, and pass a string to provide a request `Accept-Encoding` - header and turn on automatic response decoding. This feature now allows you - to pass an `Accept-Encoding` header in the headers of a request but still - disable automatic response decoding. - Closes https://github.com/guzzle/guzzle/issues/764 -* Added the ability to throw an exception immediately when transferring - requests in parallel. Closes https://github.com/guzzle/guzzle/issues/760 -* Updating guzzlehttp/streams dependency to ~2.1 -* No longer utilizing the now deprecated namespaced methods from the stream - package. - -## 4.1.8 - 2014-08-14 - -* Fixed an issue in the CurlFactory that caused setting the `stream=false` - request option to throw an exception. - See: https://github.com/guzzle/guzzle/issues/769 -* TransactionIterator now calls rewind on the inner iterator. - See: https://github.com/guzzle/guzzle/pull/765 -* You can now set the `Content-Type` header to `multipart/form-data` - when creating POST requests to force multipart bodies. - See https://github.com/guzzle/guzzle/issues/768 - -## 4.1.7 - 2014-08-07 - -* Fixed an error in the HistoryPlugin that caused the same request and response - to be logged multiple times when an HTTP protocol error occurs. -* Ensuring that cURL does not add a default Content-Type when no Content-Type - has been supplied by the user. This prevents the adapter layer from modifying - the request that is sent over the wire after any listeners may have already - put the request in a desired state (e.g., signed the request). -* Throwing an exception when you attempt to send requests that have the - "stream" set to true in parallel using the MultiAdapter. -* Only calling curl_multi_select when there are active cURL handles. This was - previously changed and caused performance problems on some systems due to PHP - always selecting until the maximum select timeout. -* Fixed a bug where multipart/form-data POST fields were not correctly - aggregated (e.g., values with "&"). - -## 4.1.6 - 2014-08-03 - -* Added helper methods to make it easier to represent messages as strings, - including getting the start line and getting headers as a string. - -## 4.1.5 - 2014-08-02 - -* Automatically retrying cURL "Connection died, retrying a fresh connect" - errors when possible. -* cURL implementation cleanup -* Allowing multiple event subscriber listeners to be registered per event by - passing an array of arrays of listener configuration. - -## 4.1.4 - 2014-07-22 - -* Fixed a bug that caused multi-part POST requests with more than one field to - serialize incorrectly. -* Paths can now be set to "0" -* `ResponseInterface::xml` now accepts a `libxml_options` option and added a - missing default argument that was required when parsing XML response bodies. -* A `save_to` stream is now created lazily, which means that files are not - created on disk unless a request succeeds. - -## 4.1.3 - 2014-07-15 - -* Various fixes to multipart/form-data POST uploads -* Wrapping function.php in an if-statement to ensure Guzzle can be used - globally and in a Composer install -* Fixed an issue with generating and merging in events to an event array -* POST headers are only applied before sending a request to allow you to change - the query aggregator used before uploading -* Added much more robust query string parsing -* Fixed various parsing and normalization issues with URLs -* Fixing an issue where multi-valued headers were not being utilized correctly - in the StreamAdapter - -## 4.1.2 - 2014-06-18 - -* Added support for sending payloads with GET requests - -## 4.1.1 - 2014-06-08 - -* Fixed an issue related to using custom message factory options in subclasses -* Fixed an issue with nested form fields in a multi-part POST -* Fixed an issue with using the `json` request option for POST requests -* Added `ToArrayInterface` to `GuzzleHttp\Cookie\CookieJar` - -## 4.1.0 - 2014-05-27 - -* Added a `json` request option to easily serialize JSON payloads. -* Added a `GuzzleHttp\json_decode()` wrapper to safely parse JSON. -* Added `setPort()` and `getPort()` to `GuzzleHttp\Message\RequestInterface`. -* Added the ability to provide an emitter to a client in the client constructor. -* Added the ability to persist a cookie session using $_SESSION. -* Added a trait that can be used to add event listeners to an iterator. -* Removed request method constants from RequestInterface. -* Fixed warning when invalid request start-lines are received. -* Updated MessageFactory to work with custom request option methods. -* Updated cacert bundle to latest build. - -4.0.2 (2014-04-16) ------------------- - -* Proxy requests using the StreamAdapter now properly use request_fulluri (#632) -* Added the ability to set scalars as POST fields (#628) - -## 4.0.1 - 2014-04-04 - -* The HTTP status code of a response is now set as the exception code of - RequestException objects. -* 303 redirects will now correctly switch from POST to GET requests. -* The default parallel adapter of a client now correctly uses the MultiAdapter. -* HasDataTrait now initializes the internal data array as an empty array so - that the toArray() method always returns an array. - -## 4.0.0 - 2014-03-29 - -* For more information on the 4.0 transition, see: - http://mtdowling.com/blog/2014/03/15/guzzle-4-rc/ -* For information on changes and upgrading, see: - https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#3x-to-40 -* Added `GuzzleHttp\batch()` as a convenience function for sending requests in - parallel without needing to write asynchronous code. -* Restructured how events are added to `GuzzleHttp\ClientInterface::sendAll()`. - You can now pass a callable or an array of associative arrays where each - associative array contains the "fn", "priority", and "once" keys. - -## 4.0.0.rc-2 - 2014-03-25 - -* Removed `getConfig()` and `setConfig()` from clients to avoid confusion - around whether things like base_url, message_factory, etc. should be able to - be retrieved or modified. -* Added `getDefaultOption()` and `setDefaultOption()` to ClientInterface -* functions.php functions were renamed using snake_case to match PHP idioms -* Added support for `HTTP_PROXY`, `HTTPS_PROXY`, and - `GUZZLE_CURL_SELECT_TIMEOUT` environment variables -* Added the ability to specify custom `sendAll()` event priorities -* Added the ability to specify custom stream context options to the stream - adapter. -* Added a functions.php function for `get_path()` and `set_path()` -* CurlAdapter and MultiAdapter now use a callable to generate curl resources -* MockAdapter now properly reads a body and emits a `headers` event -* Updated Url class to check if a scheme and host are set before adding ":" - and "//". This allows empty Url (e.g., "") to be serialized as "". -* Parsing invalid XML no longer emits warnings -* Curl classes now properly throw AdapterExceptions -* Various performance optimizations -* Streams are created with the faster `Stream\create()` function -* Marked deprecation_proxy() as internal -* Test server is now a collection of static methods on a class - -## 4.0.0-rc.1 - 2014-03-15 - -* See https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#3x-to-40 - -## 3.8.1 - 2014-01-28 - -* Bug: Always using GET requests when redirecting from a 303 response -* Bug: CURLOPT_SSL_VERIFYHOST is now correctly set to false when setting `$certificateAuthority` to false in - `Guzzle\Http\ClientInterface::setSslVerification()` -* Bug: RedirectPlugin now uses strict RFC 3986 compliance when combining a base URL with a relative URL -* Bug: The body of a request can now be set to `"0"` -* Sending PHP stream requests no longer forces `HTTP/1.0` -* Adding more information to ExceptionCollection exceptions so that users have more context, including a stack trace of - each sub-exception -* Updated the `$ref` attribute in service descriptions to merge over any existing parameters of a schema (rather than - clobbering everything). -* Merging URLs will now use the query string object from the relative URL (thus allowing custom query aggregators) -* Query strings are now parsed in a way that they do no convert empty keys with no value to have a dangling `=`. - For example `foo&bar=baz` is now correctly parsed and recognized as `foo&bar=baz` rather than `foo=&bar=baz`. -* Now properly escaping the regular expression delimiter when matching Cookie domains. -* Network access is now disabled when loading XML documents - -## 3.8.0 - 2013-12-05 - -* Added the ability to define a POST name for a file -* JSON response parsing now properly walks additionalProperties -* cURL error code 18 is now retried automatically in the BackoffPlugin -* Fixed a cURL error when URLs contain fragments -* Fixed an issue in the BackoffPlugin retry event where it was trying to access all exceptions as if they were - CurlExceptions -* CURLOPT_PROGRESS function fix for PHP 5.5 (69fcc1e) -* Added the ability for Guzzle to work with older versions of cURL that do not support `CURLOPT_TIMEOUT_MS` -* Fixed a bug that was encountered when parsing empty header parameters -* UriTemplate now has a `setRegex()` method to match the docs -* The `debug` request parameter now checks if it is truthy rather than if it exists -* Setting the `debug` request parameter to true shows verbose cURL output instead of using the LogPlugin -* Added the ability to combine URLs using strict RFC 3986 compliance -* Command objects can now return the validation errors encountered by the command -* Various fixes to cache revalidation (#437 and 29797e5) -* Various fixes to the AsyncPlugin -* Cleaned up build scripts - -## 3.7.4 - 2013-10-02 - -* Bug fix: 0 is now an allowed value in a description parameter that has a default value (#430) -* Bug fix: SchemaFormatter now returns an integer when formatting to a Unix timestamp - (see https://github.com/aws/aws-sdk-php/issues/147) -* Bug fix: Cleaned up and fixed URL dot segment removal to properly resolve internal dots -* Minimum PHP version is now properly specified as 5.3.3 (up from 5.3.2) (#420) -* Updated the bundled cacert.pem (#419) -* OauthPlugin now supports adding authentication to headers or query string (#425) - -## 3.7.3 - 2013-09-08 - -* Added the ability to get the exception associated with a request/command when using `MultiTransferException` and - `CommandTransferException`. -* Setting `additionalParameters` of a response to false is now honored when parsing responses with a service description -* Schemas are only injected into response models when explicitly configured. -* No longer guessing Content-Type based on the path of a request. Content-Type is now only guessed based on the path of - an EntityBody. -* Bug fix: ChunkedIterator can now properly chunk a \Traversable as well as an \Iterator. -* Bug fix: FilterIterator now relies on `\Iterator` instead of `\Traversable`. -* Bug fix: Gracefully handling malformed responses in RequestMediator::writeResponseBody() -* Bug fix: Replaced call to canCache with canCacheRequest in the CallbackCanCacheStrategy of the CachePlugin -* Bug fix: Visiting XML attributes first before visiting XML children when serializing requests -* Bug fix: Properly parsing headers that contain commas contained in quotes -* Bug fix: mimetype guessing based on a filename is now case-insensitive - -## 3.7.2 - 2013-08-02 - -* Bug fix: Properly URL encoding paths when using the PHP-only version of the UriTemplate expander - See https://github.com/guzzle/guzzle/issues/371 -* Bug fix: Cookie domains are now matched correctly according to RFC 6265 - See https://github.com/guzzle/guzzle/issues/377 -* Bug fix: GET parameters are now used when calculating an OAuth signature -* Bug fix: Fixed an issue with cache revalidation where the If-None-Match header was being double quoted -* `Guzzle\Common\AbstractHasDispatcher::dispatch()` now returns the event that was dispatched -* `Guzzle\Http\QueryString::factory()` now guesses the most appropriate query aggregator to used based on the input. - See https://github.com/guzzle/guzzle/issues/379 -* Added a way to add custom domain objects to service description parsing using the `operation.parse_class` event. See - https://github.com/guzzle/guzzle/pull/380 -* cURL multi cleanup and optimizations - -## 3.7.1 - 2013-07-05 - -* Bug fix: Setting default options on a client now works -* Bug fix: Setting options on HEAD requests now works. See #352 -* Bug fix: Moving stream factory before send event to before building the stream. See #353 -* Bug fix: Cookies no longer match on IP addresses per RFC 6265 -* Bug fix: Correctly parsing header parameters that are in `<>` and quotes -* Added `cert` and `ssl_key` as request options -* `Host` header can now diverge from the host part of a URL if the header is set manually -* `Guzzle\Service\Command\LocationVisitor\Request\XmlVisitor` was rewritten to change from using SimpleXML to XMLWriter -* OAuth parameters are only added via the plugin if they aren't already set -* Exceptions are now thrown when a URL cannot be parsed -* Returning `false` if `Guzzle\Http\EntityBody::getContentMd5()` fails -* Not setting a `Content-MD5` on a command if calculating the Content-MD5 fails via the CommandContentMd5Plugin - -## 3.7.0 - 2013-06-10 - -* See UPGRADING.md for more information on how to upgrade. -* Requests now support the ability to specify an array of $options when creating a request to more easily modify a - request. You can pass a 'request.options' configuration setting to a client to apply default request options to - every request created by a client (e.g. default query string variables, headers, curl options, etc.). -* Added a static facade class that allows you to use Guzzle with static methods and mount the class to `\Guzzle`. - See `Guzzle\Http\StaticClient::mount`. -* Added `command.request_options` to `Guzzle\Service\Command\AbstractCommand` to pass request options to requests - created by a command (e.g. custom headers, query string variables, timeout settings, etc.). -* Stream size in `Guzzle\Stream\PhpStreamRequestFactory` will now be set if Content-Length is returned in the - headers of a response -* Added `Guzzle\Common\Collection::setPath($path, $value)` to set a value into an array using a nested key - (e.g. `$collection->setPath('foo/baz/bar', 'test'); echo $collection['foo']['bar']['bar'];`) -* ServiceBuilders now support storing and retrieving arbitrary data -* CachePlugin can now purge all resources for a given URI -* CachePlugin can automatically purge matching cached items when a non-idempotent request is sent to a resource -* CachePlugin now uses the Vary header to determine if a resource is a cache hit -* `Guzzle\Http\Message\Response` now implements `\Serializable` -* Added `Guzzle\Cache\CacheAdapterFactory::fromCache()` to more easily create cache adapters -* `Guzzle\Service\ClientInterface::execute()` now accepts an array, single command, or Traversable -* Fixed a bug in `Guzzle\Http\Message\Header\Link::addLink()` -* Better handling of calculating the size of a stream in `Guzzle\Stream\Stream` using fstat() and caching the size -* `Guzzle\Common\Exception\ExceptionCollection` now creates a more readable exception message -* Fixing BC break: Added back the MonologLogAdapter implementation rather than extending from PsrLog so that older - Symfony users can still use the old version of Monolog. -* Fixing BC break: Added the implementation back in for `Guzzle\Http\Message\AbstractMessage::getTokenizedHeader()`. - Now triggering an E_USER_DEPRECATED warning when used. Use `$message->getHeader()->parseParams()`. -* Several performance improvements to `Guzzle\Common\Collection` -* Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`: - createRequest, head, delete, put, patch, post, options, prepareRequest -* Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::createRequest()` -* Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface` -* Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to - `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can still pass in a - resource, string, or EntityBody into the $options parameter to specify the download location of the response. -* Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$data` but a - default `array()` -* Added `Guzzle\Stream\StreamInterface::isRepeatable` -* Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use - $client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or - $client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))`. -* Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use $client->getConfig()->getPath('request.options/headers')`. -* Removed `Guzzle\Http\ClientInterface::expandTemplate()` -* Removed `Guzzle\Http\ClientInterface::setRequestFactory()` -* Removed `Guzzle\Http\ClientInterface::getCurlMulti()` -* Removed `Guzzle\Http\Message\RequestInterface::canCache` -* Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect` -* Removed `Guzzle\Http\Message\RequestInterface::isRedirect` -* Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods. -* You can now enable E_USER_DEPRECATED warnings to see if you are using a deprecated method by setting - `Guzzle\Common\Version::$emitWarnings` to true. -* Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use - `$request->getResponseBody()->isRepeatable()` instead. -* Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use - `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. -* Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use - `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. -* Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instead. -* Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead. -* Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated -* Marked 'command.headers', 'command.response_body' and 'command.on_complete' as deprecated for AbstractCommand. - These will work through Guzzle 4.0 -* Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use [request.options][params]. -* Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer be disabled on a Guzzle\Service\Client. -* Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use $client->getConfig()->getPath('request.options/headers')`. -* Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use $client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. -* Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent encode your UTF-8. -* Marked `Guzzle\Common\Collection::inject()` as deprecated. -* Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use `$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest');` -* CacheKeyProviderInterface and DefaultCacheKeyProvider are no longer used. All of this logic is handled in a - CacheStorageInterface. These two objects and interface will be removed in a future version. -* Always setting X-cache headers on cached responses -* Default cache TTLs are now handled by the CacheStorageInterface of a CachePlugin -* `CacheStorageInterface::cache($key, Response $response, $ttl = null)` has changed to `cache(RequestInterface - $request, Response $response);` -* `CacheStorageInterface::fetch($key)` has changed to `fetch(RequestInterface $request);` -* `CacheStorageInterface::delete($key)` has changed to `delete(RequestInterface $request);` -* Added `CacheStorageInterface::purge($url)` -* `DefaultRevalidation::__construct(CacheKeyProviderInterface $cacheKey, CacheStorageInterface $cache, CachePlugin - $plugin)` has changed to `DefaultRevalidation::__construct(CacheStorageInterface $cache, - CanCacheStrategyInterface $canCache = null)` -* Added `RevalidationInterface::shouldRevalidate(RequestInterface $request, Response $response)` - -## 3.6.0 - 2013-05-29 - -* ServiceDescription now implements ToArrayInterface -* Added command.hidden_params to blacklist certain headers from being treated as additionalParameters -* Guzzle can now correctly parse incomplete URLs -* Mixed casing of headers are now forced to be a single consistent casing across all values for that header. -* Messages internally use a HeaderCollection object to delegate handling case-insensitive header resolution -* Removed the whole changedHeader() function system of messages because all header changes now go through addHeader(). -* Specific header implementations can be created for complex headers. When a message creates a header, it uses a - HeaderFactory which can map specific headers to specific header classes. There is now a Link header and - CacheControl header implementation. -* Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate -* Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti() -* Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in - Guzzle\Http\Curl\RequestMediator -* Removed the optional $asString parameter from MessageInterface::getHeader(). Just cast the header to a string. -* Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestInterface -* Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders() -* Removed Guzzle\Parser\ParserRegister::get(). Use getParser() -* Removed Guzzle\Parser\ParserRegister::set(). Use registerParser(). -* All response header helper functions return a string rather than mixing Header objects and strings inconsistently -* Removed cURL blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle - directly via interfaces -* Removed the injecting of a request object onto a response object. The methods to get and set a request still exist - but are a no-op until removed. -* Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now request a - `Guzzle\Service\Command\ArrayCommandInterface`. -* Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle injecting a response - on a request while the request is still being transferred -* The ability to case-insensitively search for header values -* Guzzle\Http\Message\Header::hasExactHeader -* Guzzle\Http\Message\Header::raw. Use getAll() -* Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheControl header object - instead. -* `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess -* Added the ability to cast Model objects to a string to view debug information. - -## 3.5.0 - 2013-05-13 - -* Bug: Fixed a regression so that request responses are parsed only once per oncomplete event rather than multiple times -* Bug: Better cleanup of one-time events across the board (when an event is meant to fire once, it will now remove - itself from the EventDispatcher) -* Bug: `Guzzle\Log\MessageFormatter` now properly writes "total_time" and "connect_time" values -* Bug: Cloning an EntityEnclosingRequest now clones the EntityBody too -* Bug: Fixed an undefined index error when parsing nested JSON responses with a sentAs parameter that reference a - non-existent key -* Bug: All __call() method arguments are now required (helps with mocking frameworks) -* Deprecating Response::getRequest() and now using a shallow clone of a request object to remove a circular reference - to help with refcount based garbage collection of resources created by sending a request -* Deprecating ZF1 cache and log adapters. These will be removed in the next major version. -* Deprecating `Response::getPreviousResponse()` (method signature still exists, but it's deprecated). Use the - HistoryPlugin for a history. -* Added a `responseBody` alias for the `response_body` location -* Refactored internals to no longer rely on Response::getRequest() -* HistoryPlugin can now be cast to a string -* HistoryPlugin now logs transactions rather than requests and responses to more accurately keep track of the requests - and responses that are sent over the wire -* Added `getEffectiveUrl()` and `getRedirectCount()` to Response objects - -## 3.4.3 - 2013-04-30 - -* Bug fix: Fixing bug introduced in 3.4.2 where redirect responses are duplicated on the final redirected response -* Added a check to re-extract the temp cacert bundle from the phar before sending each request - -## 3.4.2 - 2013-04-29 - -* Bug fix: Stream objects now work correctly with "a" and "a+" modes -* Bug fix: Removing `Transfer-Encoding: chunked` header when a Content-Length is present -* Bug fix: AsyncPlugin no longer forces HEAD requests -* Bug fix: DateTime timezones are now properly handled when using the service description schema formatter -* Bug fix: CachePlugin now properly handles stale-if-error directives when a request to the origin server fails -* Setting a response on a request will write to the custom request body from the response body if one is specified -* LogPlugin now writes to php://output when STDERR is undefined -* Added the ability to set multiple POST files for the same key in a single call -* application/x-www-form-urlencoded POSTs now use the utf-8 charset by default -* Added the ability to queue CurlExceptions to the MockPlugin -* Cleaned up how manual responses are queued on requests (removed "queued_response" and now using request.before_send) -* Configuration loading now allows remote files - -## 3.4.1 - 2013-04-16 - -* Large refactoring to how CurlMulti handles work. There is now a proxy that sits in front of a pool of CurlMulti - handles. This greatly simplifies the implementation, fixes a couple bugs, and provides a small performance boost. -* Exceptions are now properly grouped when sending requests in parallel -* Redirects are now properly aggregated when a multi transaction fails -* Redirects now set the response on the original object even in the event of a failure -* Bug fix: Model names are now properly set even when using $refs -* Added support for PHP 5.5's CurlFile to prevent warnings with the deprecated @ syntax -* Added support for oauth_callback in OAuth signatures -* Added support for oauth_verifier in OAuth signatures -* Added support to attempt to retrieve a command first literally, then ucfirst, the with inflection - -## 3.4.0 - 2013-04-11 - -* Bug fix: URLs are now resolved correctly based on http://tools.ietf.org/html/rfc3986#section-5.2. #289 -* Bug fix: Absolute URLs with a path in a service description will now properly override the base URL. #289 -* Bug fix: Parsing a query string with a single PHP array value will now result in an array. #263 -* Bug fix: Better normalization of the User-Agent header to prevent duplicate headers. #264. -* Bug fix: Added `number` type to service descriptions. -* Bug fix: empty parameters are removed from an OAuth signature -* Bug fix: Revalidating a cache entry prefers the Last-Modified over the Date header -* Bug fix: Fixed "array to string" error when validating a union of types in a service description -* Bug fix: Removed code that attempted to determine the size of a stream when data is written to the stream -* Bug fix: Not including an `oauth_token` if the value is null in the OauthPlugin. -* Bug fix: Now correctly aggregating successful requests and failed requests in CurlMulti when a redirect occurs. -* The new default CURLOPT_TIMEOUT setting has been increased to 150 seconds so that Guzzle works on poor connections. -* Added a feature to EntityEnclosingRequest::setBody() that will automatically set the Content-Type of the request if - the Content-Type can be determined based on the entity body or the path of the request. -* Added the ability to overwrite configuration settings in a client when grabbing a throwaway client from a builder. -* Added support for a PSR-3 LogAdapter. -* Added a `command.after_prepare` event -* Added `oauth_callback` parameter to the OauthPlugin -* Added the ability to create a custom stream class when using a stream factory -* Added a CachingEntityBody decorator -* Added support for `additionalParameters` in service descriptions to define how custom parameters are serialized. -* The bundled SSL certificate is now provided in the phar file and extracted when running Guzzle from a phar. -* You can now send any EntityEnclosingRequest with POST fields or POST files and cURL will handle creating bodies -* POST requests using a custom entity body are now treated exactly like PUT requests but with a custom cURL method. This - means that the redirect behavior of POST requests with custom bodies will not be the same as POST requests that use - POST fields or files (the latter is only used when emulating a form POST in the browser). -* Lots of cleanup to CurlHandle::factory and RequestFactory::createRequest - -## 3.3.1 - 2013-03-10 - -* Added the ability to create PHP streaming responses from HTTP requests -* Bug fix: Running any filters when parsing response headers with service descriptions -* Bug fix: OauthPlugin fixes to allow for multi-dimensional array signing, and sorting parameters before signing -* Bug fix: Removed the adding of default empty arrays and false Booleans to responses in order to be consistent across - response location visitors. -* Bug fix: Removed the possibility of creating configuration files with circular dependencies -* RequestFactory::create() now uses the key of a POST file when setting the POST file name -* Added xmlAllowEmpty to serialize an XML body even if no XML specific parameters are set - -## 3.3.0 - 2013-03-03 - -* A large number of performance optimizations have been made -* Bug fix: Added 'wb' as a valid write mode for streams -* Bug fix: `Guzzle\Http\Message\Response::json()` now allows scalar values to be returned -* Bug fix: Fixed bug in `Guzzle\Http\Message\Response` where wrapping quotes were stripped from `getEtag()` -* BC: Removed `Guzzle\Http\Utils` class -* BC: Setting a service description on a client will no longer modify the client's command factories. -* BC: Emitting IO events from a RequestMediator is now a parameter that must be set in a request's curl options using - the 'emit_io' key. This was previously set under a request's parameters using 'curl.emit_io' -* BC: `Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getSteamType()` are no longer converted to - lowercase -* Operation parameter objects are now lazy loaded internally -* Added ErrorResponsePlugin that can throw errors for responses defined in service description operations' errorResponses -* Added support for instantiating responseType=class responseClass classes. Classes must implement - `Guzzle\Service\Command\ResponseClassInterface` -* Added support for additionalProperties for top-level parameters in responseType=model responseClasses. These - additional properties also support locations and can be used to parse JSON responses where the outermost part of the - JSON is an array -* Added support for nested renaming of JSON models (rename sentAs to name) -* CachePlugin - * Added support for stale-if-error so that the CachePlugin can now serve stale content from the cache on error - * Debug headers can now added to cached response in the CachePlugin - -## 3.2.0 - 2013-02-14 - -* CurlMulti is no longer reused globally. A new multi object is created per-client. This helps to isolate clients. -* URLs with no path no longer contain a "/" by default -* Guzzle\Http\QueryString does no longer manages the leading "?". This is now handled in Guzzle\Http\Url. -* BadResponseException no longer includes the full request and response message -* Adding setData() to Guzzle\Service\Description\ServiceDescriptionInterface -* Adding getResponseBody() to Guzzle\Http\Message\RequestInterface -* Various updates to classes to use ServiceDescriptionInterface type hints rather than ServiceDescription -* Header values can now be normalized into distinct values when multiple headers are combined with a comma separated list -* xmlEncoding can now be customized for the XML declaration of a XML service description operation -* Guzzle\Http\QueryString now uses Guzzle\Http\QueryAggregator\QueryAggregatorInterface objects to add custom value - aggregation and no longer uses callbacks -* The URL encoding implementation of Guzzle\Http\QueryString can now be customized -* Bug fix: Filters were not always invoked for array service description parameters -* Bug fix: Redirects now use a target response body rather than a temporary response body -* Bug fix: The default exponential backoff BackoffPlugin was not giving when the request threshold was exceeded -* Bug fix: Guzzle now takes the first found value when grabbing Cache-Control directives - -## 3.1.2 - 2013-01-27 - -* Refactored how operation responses are parsed. Visitors now include a before() method responsible for parsing the - response body. For example, the XmlVisitor now parses the XML response into an array in the before() method. -* Fixed an issue where cURL would not automatically decompress responses when the Accept-Encoding header was sent -* CURLOPT_SSL_VERIFYHOST is never set to 1 because it is deprecated (see 5e0ff2ef20f839e19d1eeb298f90ba3598784444) -* Fixed a bug where redirect responses were not chained correctly using getPreviousResponse() -* Setting default headers on a client after setting the user-agent will not erase the user-agent setting - -## 3.1.1 - 2013-01-20 - -* Adding wildcard support to Guzzle\Common\Collection::getPath() -* Adding alias support to ServiceBuilder configs -* Adding Guzzle\Service\Resource\CompositeResourceIteratorFactory and cleaning up factory interface - -## 3.1.0 - 2013-01-12 - -* BC: CurlException now extends from RequestException rather than BadResponseException -* BC: Renamed Guzzle\Plugin\Cache\CanCacheStrategyInterface::canCache() to canCacheRequest() and added CanCacheResponse() -* Added getData to ServiceDescriptionInterface -* Added context array to RequestInterface::setState() -* Bug: Removing hard dependency on the BackoffPlugin from Guzzle\Http -* Bug: Adding required content-type when JSON request visitor adds JSON to a command -* Bug: Fixing the serialization of a service description with custom data -* Made it easier to deal with exceptions thrown when transferring commands or requests in parallel by providing - an array of successful and failed responses -* Moved getPath from Guzzle\Service\Resource\Model to Guzzle\Common\Collection -* Added Guzzle\Http\IoEmittingEntityBody -* Moved command filtration from validators to location visitors -* Added `extends` attributes to service description parameters -* Added getModels to ServiceDescriptionInterface - -## 3.0.7 - 2012-12-19 - -* Fixing phar detection when forcing a cacert to system if null or true -* Allowing filename to be passed to `Guzzle\Http\Message\Request::setResponseBody()` -* Cleaning up `Guzzle\Common\Collection::inject` method -* Adding a response_body location to service descriptions - -## 3.0.6 - 2012-12-09 - -* CurlMulti performance improvements -* Adding setErrorResponses() to Operation -* composer.json tweaks - -## 3.0.5 - 2012-11-18 - -* Bug: Fixing an infinite recursion bug caused from revalidating with the CachePlugin -* Bug: Response body can now be a string containing "0" -* Bug: Using Guzzle inside of a phar uses system by default but now allows for a custom cacert -* Bug: QueryString::fromString now properly parses query string parameters that contain equal signs -* Added support for XML attributes in service description responses -* DefaultRequestSerializer now supports array URI parameter values for URI template expansion -* Added better mimetype guessing to requests and post files - -## 3.0.4 - 2012-11-11 - -* Bug: Fixed a bug when adding multiple cookies to a request to use the correct glue value -* Bug: Cookies can now be added that have a name, domain, or value set to "0" -* Bug: Using the system cacert bundle when using the Phar -* Added json and xml methods to Response to make it easier to parse JSON and XML response data into data structures -* Enhanced cookie jar de-duplication -* Added the ability to enable strict cookie jars that throw exceptions when invalid cookies are added -* Added setStream to StreamInterface to actually make it possible to implement custom rewind behavior for entity bodies -* Added the ability to create any sort of hash for a stream rather than just an MD5 hash - -## 3.0.3 - 2012-11-04 - -* Implementing redirects in PHP rather than cURL -* Added PECL URI template extension and using as default parser if available -* Bug: Fixed Content-Length parsing of Response factory -* Adding rewind() method to entity bodies and streams. Allows for custom rewinding of non-repeatable streams. -* Adding ToArrayInterface throughout library -* Fixing OauthPlugin to create unique nonce values per request - -## 3.0.2 - 2012-10-25 - -* Magic methods are enabled by default on clients -* Magic methods return the result of a command -* Service clients no longer require a base_url option in the factory -* Bug: Fixed an issue with URI templates where null template variables were being expanded - -## 3.0.1 - 2012-10-22 - -* Models can now be used like regular collection objects by calling filter, map, etc. -* Models no longer require a Parameter structure or initial data in the constructor -* Added a custom AppendIterator to get around a PHP bug with the `\AppendIterator` - -## 3.0.0 - 2012-10-15 - -* Rewrote service description format to be based on Swagger - * Now based on JSON schema - * Added nested input structures and nested response models - * Support for JSON and XML input and output models - * Renamed `commands` to `operations` - * Removed dot class notation - * Removed custom types -* Broke the project into smaller top-level namespaces to be more component friendly -* Removed support for XML configs and descriptions. Use arrays or JSON files. -* Removed the Validation component and Inspector -* Moved all cookie code to Guzzle\Plugin\Cookie -* Magic methods on a Guzzle\Service\Client now return the command un-executed. -* Calling getResult() or getResponse() on a command will lazily execute the command if needed. -* Now shipping with cURL's CA certs and using it by default -* Added previousResponse() method to response objects -* No longer sending Accept and Accept-Encoding headers on every request -* Only sending an Expect header by default when a payload is greater than 1MB -* Added/moved client options: - * curl.blacklist to curl.option.blacklist - * Added ssl.certificate_authority -* Added a Guzzle\Iterator component -* Moved plugins from Guzzle\Http\Plugin to Guzzle\Plugin -* Added a more robust backoff retry strategy (replaced the ExponentialBackoffPlugin) -* Added a more robust caching plugin -* Added setBody to response objects -* Updating LogPlugin to use a more flexible MessageFormatter -* Added a completely revamped build process -* Cleaning up Collection class and removing default values from the get method -* Fixed ZF2 cache adapters - -## 2.8.8 - 2012-10-15 - -* Bug: Fixed a cookie issue that caused dot prefixed domains to not match where popular browsers did - -## 2.8.7 - 2012-09-30 - -* Bug: Fixed config file aliases for JSON includes -* Bug: Fixed cookie bug on a request object by using CookieParser to parse cookies on requests -* Bug: Removing the path to a file when sending a Content-Disposition header on a POST upload -* Bug: Hardening request and response parsing to account for missing parts -* Bug: Fixed PEAR packaging -* Bug: Fixed Request::getInfo -* Bug: Fixed cases where CURLM_CALL_MULTI_PERFORM return codes were causing curl transactions to fail -* Adding the ability for the namespace Iterator factory to look in multiple directories -* Added more getters/setters/removers from service descriptions -* Added the ability to remove POST fields from OAuth signatures -* OAuth plugin now supports 2-legged OAuth - -## 2.8.6 - 2012-09-05 - -* Added the ability to modify and build service descriptions -* Added the use of visitors to apply parameters to locations in service descriptions using the dynamic command -* Added a `json` parameter location -* Now allowing dot notation for classes in the CacheAdapterFactory -* Using the union of two arrays rather than an array_merge when extending service builder services and service params -* Ensuring that a service is a string before doing strpos() checks on it when substituting services for references - in service builder config files. -* Services defined in two different config files that include one another will by default replace the previously - defined service, but you can now create services that extend themselves and merge their settings over the previous -* The JsonLoader now supports aliasing filenames with different filenames. This allows you to alias something like - '_default' with a default JSON configuration file. - -## 2.8.5 - 2012-08-29 - -* Bug: Suppressed empty arrays from URI templates -* Bug: Added the missing $options argument from ServiceDescription::factory to enable caching -* Added support for HTTP responses that do not contain a reason phrase in the start-line -* AbstractCommand commands are now invokable -* Added a way to get the data used when signing an Oauth request before a request is sent - -## 2.8.4 - 2012-08-15 - -* Bug: Custom delay time calculations are no longer ignored in the ExponentialBackoffPlugin -* Added the ability to transfer entity bodies as a string rather than streamed. This gets around curl error 65. Set `body_as_string` in a request's curl options to enable. -* Added a StreamInterface, EntityBodyInterface, and added ftell() to Guzzle\Common\Stream -* Added an AbstractEntityBodyDecorator and a ReadLimitEntityBody decorator to transfer only a subset of a decorated stream -* Stream and EntityBody objects will now return the file position to the previous position after a read required operation (e.g. getContentMd5()) -* Added additional response status codes -* Removed SSL information from the default User-Agent header -* DELETE requests can now send an entity body -* Added an EventDispatcher to the ExponentialBackoffPlugin and added an ExponentialBackoffLogger to log backoff retries -* Added the ability of the MockPlugin to consume mocked request bodies -* LogPlugin now exposes request and response objects in the extras array - -## 2.8.3 - 2012-07-30 - -* Bug: Fixed a case where empty POST requests were sent as GET requests -* Bug: Fixed a bug in ExponentialBackoffPlugin that caused fatal errors when retrying an EntityEnclosingRequest that does not have a body -* Bug: Setting the response body of a request to null after completing a request, not when setting the state of a request to new -* Added multiple inheritance to service description commands -* Added an ApiCommandInterface and added `getParamNames()` and `hasParam()` -* Removed the default 2mb size cutoff from the Md5ValidatorPlugin so that it now defaults to validating everything -* Changed CurlMulti::perform to pass a smaller timeout to CurlMulti::executeHandles - -## 2.8.2 - 2012-07-24 - -* Bug: Query string values set to 0 are no longer dropped from the query string -* Bug: A Collection object is no longer created each time a call is made to `Guzzle\Service\Command\AbstractCommand::getRequestHeaders()` -* Bug: `+` is now treated as an encoded space when parsing query strings -* QueryString and Collection performance improvements -* Allowing dot notation for class paths in filters attribute of a service descriptions - -## 2.8.1 - 2012-07-16 - -* Loosening Event Dispatcher dependency -* POST redirects can now be customized using CURLOPT_POSTREDIR - -## 2.8.0 - 2012-07-15 - -* BC: Guzzle\Http\Query - * Query strings with empty variables will always show an equal sign unless the variable is set to QueryString::BLANK (e.g. ?acl= vs ?acl) - * Changed isEncodingValues() and isEncodingFields() to isUrlEncoding() - * Changed setEncodeValues(bool) and setEncodeFields(bool) to useUrlEncoding(bool) - * Changed the aggregation functions of QueryString to be static methods - * Can now use fromString() with querystrings that have a leading ? -* cURL configuration values can be specified in service descriptions using `curl.` prefixed parameters -* Content-Length is set to 0 before emitting the request.before_send event when sending an empty request body -* Cookies are no longer URL decoded by default -* Bug: URI template variables set to null are no longer expanded - -## 2.7.2 - 2012-07-02 - -* BC: Moving things to get ready for subtree splits. Moving Inflection into Common. Moving Guzzle\Http\Parser to Guzzle\Parser. -* BC: Removing Guzzle\Common\Batch\Batch::count() and replacing it with isEmpty() -* CachePlugin now allows for a custom request parameter function to check if a request can be cached -* Bug fix: CachePlugin now only caches GET and HEAD requests by default -* Bug fix: Using header glue when transferring headers over the wire -* Allowing deeply nested arrays for composite variables in URI templates -* Batch divisors can now return iterators or arrays - -## 2.7.1 - 2012-06-26 - -* Minor patch to update version number in UA string -* Updating build process - -## 2.7.0 - 2012-06-25 - -* BC: Inflection classes moved to Guzzle\Inflection. No longer static methods. Can now inject custom inflectors into classes. -* BC: Removed magic setX methods from commands -* BC: Magic methods mapped to service description commands are now inflected in the command factory rather than the client __call() method -* Verbose cURL options are no longer enabled by default. Set curl.debug to true on a client to enable. -* Bug: Now allowing colons in a response start-line (e.g. HTTP/1.1 503 Service Unavailable: Back-end server is at capacity) -* Guzzle\Service\Resource\ResourceIteratorApplyBatched now internally uses the Guzzle\Common\Batch namespace -* Added Guzzle\Service\Plugin namespace and a PluginCollectionPlugin -* Added the ability to set POST fields and files in a service description -* Guzzle\Http\EntityBody::factory() now accepts objects with a __toString() method -* Adding a command.before_prepare event to clients -* Added BatchClosureTransfer and BatchClosureDivisor -* BatchTransferException now includes references to the batch divisor and transfer strategies -* Fixed some tests so that they pass more reliably -* Added Guzzle\Common\Log\ArrayLogAdapter - -## 2.6.6 - 2012-06-10 - -* BC: Removing Guzzle\Http\Plugin\BatchQueuePlugin -* BC: Removing Guzzle\Service\Command\CommandSet -* Adding generic batching system (replaces the batch queue plugin and command set) -* Updating ZF cache and log adapters and now using ZF's composer repository -* Bug: Setting the name of each ApiParam when creating through an ApiCommand -* Adding result_type, result_doc, deprecated, and doc_url to service descriptions -* Bug: Changed the default cookie header casing back to 'Cookie' - -## 2.6.5 - 2012-06-03 - -* BC: Renaming Guzzle\Http\Message\RequestInterface::getResourceUri() to getResource() -* BC: Removing unused AUTH_BASIC and AUTH_DIGEST constants from -* BC: Guzzle\Http\Cookie is now used to manage Set-Cookie data, not Cookie data -* BC: Renaming methods in the CookieJarInterface -* Moving almost all cookie logic out of the CookiePlugin and into the Cookie or CookieJar implementations -* Making the default glue for HTTP headers ';' instead of ',' -* Adding a removeValue to Guzzle\Http\Message\Header -* Adding getCookies() to request interface. -* Making it easier to add event subscribers to HasDispatcherInterface classes. Can now directly call addSubscriber() - -## 2.6.4 - 2012-05-30 - -* BC: Cleaning up how POST files are stored in EntityEnclosingRequest objects. Adding PostFile class. -* BC: Moving ApiCommand specific functionality from the Inspector and on to the ApiCommand -* Bug: Fixing magic method command calls on clients -* Bug: Email constraint only validates strings -* Bug: Aggregate POST fields when POST files are present in curl handle -* Bug: Fixing default User-Agent header -* Bug: Only appending or prepending parameters in commands if they are specified -* Bug: Not requiring response reason phrases or status codes to match a predefined list of codes -* Allowing the use of dot notation for class namespaces when using instance_of constraint -* Added any_match validation constraint -* Added an AsyncPlugin -* Passing request object to the calculateWait method of the ExponentialBackoffPlugin -* Allowing the result of a command object to be changed -* Parsing location and type sub values when instantiating a service description rather than over and over at runtime - -## 2.6.3 - 2012-05-23 - -* [BC] Guzzle\Common\FromConfigInterface no longer requires any config options. -* [BC] Refactoring how POST files are stored on an EntityEnclosingRequest. They are now separate from POST fields. -* You can now use an array of data when creating PUT request bodies in the request factory. -* Removing the requirement that HTTPS requests needed a Cache-Control: public directive to be cacheable. -* [Http] Adding support for Content-Type in multipart POST uploads per upload -* [Http] Added support for uploading multiple files using the same name (foo[0], foo[1]) -* Adding more POST data operations for easier manipulation of POST data. -* You can now set empty POST fields. -* The body of a request is only shown on EntityEnclosingRequest objects that do not use POST files. -* Split the Guzzle\Service\Inspector::validateConfig method into two methods. One to initialize when a command is created, and one to validate. -* CS updates - -## 2.6.2 - 2012-05-19 - -* [Http] Better handling of nested scope requests in CurlMulti. Requests are now always prepares in the send() method rather than the addRequest() method. - -## 2.6.1 - 2012-05-19 - -* [BC] Removing 'path' support in service descriptions. Use 'uri'. -* [BC] Guzzle\Service\Inspector::parseDocBlock is now protected. Adding getApiParamsForClass() with cache. -* [BC] Removing Guzzle\Common\NullObject. Use https://github.com/mtdowling/NullObject if you need it. -* [BC] Removing Guzzle\Common\XmlElement. -* All commands, both dynamic and concrete, have ApiCommand objects. -* Adding a fix for CurlMulti so that if all of the connections encounter some sort of curl error, then the loop exits. -* Adding checks to EntityEnclosingRequest so that empty POST files and fields are ignored. -* Making the method signature of Guzzle\Service\Builder\ServiceBuilder::factory more flexible. - -## 2.6.0 - 2012-05-15 - -* [BC] Moving Guzzle\Service\Builder to Guzzle\Service\Builder\ServiceBuilder -* [BC] Executing a Command returns the result of the command rather than the command -* [BC] Moving all HTTP parsing logic to Guzzle\Http\Parsers. Allows for faster C implementations if needed. -* [BC] Changing the Guzzle\Http\Message\Response::setProtocol() method to accept a protocol and version in separate args. -* [BC] Moving ResourceIterator* to Guzzle\Service\Resource -* [BC] Completely refactored ResourceIterators to iterate over a cloned command object -* [BC] Moved Guzzle\Http\UriTemplate to Guzzle\Http\Parser\UriTemplate\UriTemplate -* [BC] Guzzle\Guzzle is now deprecated -* Moving Guzzle\Common\Guzzle::inject to Guzzle\Common\Collection::inject -* Adding Guzzle\Version class to give version information about Guzzle -* Adding Guzzle\Http\Utils class to provide getDefaultUserAgent() and getHttpDate() -* Adding Guzzle\Curl\CurlVersion to manage caching curl_version() data -* ServiceDescription and ServiceBuilder are now cacheable using similar configs -* Changing the format of XML and JSON service builder configs. Backwards compatible. -* Cleaned up Cookie parsing -* Trimming the default Guzzle User-Agent header -* Adding a setOnComplete() method to Commands that is called when a command completes -* Keeping track of requests that were mocked in the MockPlugin -* Fixed a caching bug in the CacheAdapterFactory -* Inspector objects can be injected into a Command object -* Refactoring a lot of code and tests to be case insensitive when dealing with headers -* Adding Guzzle\Http\Message\HeaderComparison for easy comparison of HTTP headers using a DSL -* Adding the ability to set global option overrides to service builder configs -* Adding the ability to include other service builder config files from within XML and JSON files -* Moving the parseQuery method out of Url and on to QueryString::fromString() as a static factory method. - -## 2.5.0 - 2012-05-08 - -* Major performance improvements -* [BC] Simplifying Guzzle\Common\Collection. Please check to see if you are using features that are now deprecated. -* [BC] Using a custom validation system that allows a flyweight implementation for much faster validation. No longer using Symfony2 Validation component. -* [BC] No longer supporting "{{ }}" for injecting into command or UriTemplates. Use "{}" -* Added the ability to passed parameters to all requests created by a client -* Added callback functionality to the ExponentialBackoffPlugin -* Using microtime in ExponentialBackoffPlugin to allow more granular backoff strategies. -* Rewinding request stream bodies when retrying requests -* Exception is thrown when JSON response body cannot be decoded -* Added configurable magic method calls to clients and commands. This is off by default. -* Fixed a defect that added a hash to every parsed URL part -* Fixed duplicate none generation for OauthPlugin. -* Emitting an event each time a client is generated by a ServiceBuilder -* Using an ApiParams object instead of a Collection for parameters of an ApiCommand -* cache.* request parameters should be renamed to params.cache.* -* Added the ability to set arbitrary curl options on requests (disable_wire, progress, etc.). See CurlHandle. -* Added the ability to disable type validation of service descriptions -* ServiceDescriptions and ServiceBuilders are now Serializable diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/LICENSE b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/LICENSE deleted file mode 100644 index ea7f07c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2011-2016 Michael Dowling, https://github.com/mtdowling - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/README.md b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/README.md deleted file mode 100644 index 2f614d6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/README.md +++ /dev/null @@ -1,89 +0,0 @@ -Guzzle, PHP HTTP client -======================= - -[![Build Status](https://travis-ci.org/guzzle/guzzle.svg?branch=master)](https://travis-ci.org/guzzle/guzzle) - -Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and -trivial to integrate with web services. - -- Simple interface for building query strings, POST requests, streaming large - uploads, streaming large downloads, using HTTP cookies, uploading JSON data, - etc... -- Can send both synchronous and asynchronous requests using the same interface. -- Uses PSR-7 interfaces for requests, responses, and streams. This allows you - to utilize other PSR-7 compatible libraries with Guzzle. -- Abstracts away the underlying HTTP transport, allowing you to write - environment and transport agnostic code; i.e., no hard dependency on cURL, - PHP streams, sockets, or non-blocking event loops. -- Middleware system allows you to augment and compose client behavior. - -```php -$client = new \GuzzleHttp\Client(); -$res = $client->request('GET', 'https://api.github.com/repos/guzzle/guzzle'); -echo $res->getStatusCode(); -// 200 -echo $res->getHeaderLine('content-type'); -// 'application/json; charset=utf8' -echo $res->getBody(); -// '{"id": 1420053, "name": "guzzle", ...}' - -// Send an asynchronous request. -$request = new \GuzzleHttp\Psr7\Request('GET', 'http://httpbin.org'); -$promise = $client->sendAsync($request)->then(function ($response) { - echo 'I completed! ' . $response->getBody(); -}); -$promise->wait(); -``` - -## Help and docs - -- [Documentation](http://guzzlephp.org/) -- [Stack Overflow](http://stackoverflow.com/questions/tagged/guzzle) -- [Gitter](https://gitter.im/guzzle/guzzle) - - -## Installing Guzzle - -The recommended way to install Guzzle is through -[Composer](http://getcomposer.org). - -```bash -# Install Composer -curl -sS https://getcomposer.org/installer | php -``` - -Next, run the Composer command to install the latest stable version of Guzzle: - -```bash -php composer.phar require guzzlehttp/guzzle -``` - -After installing, you need to require Composer's autoloader: - -```php -require 'vendor/autoload.php'; -``` - -You can then later update Guzzle using composer: - - ```bash -composer.phar update - ``` - - -## Version Guidance - -| Version | Status | Packagist | Namespace | Repo | Docs | PSR-7 | PHP Version | -|---------|------------|---------------------|--------------|---------------------|---------------------|-------|-------------| -| 3.x | EOL | `guzzle/guzzle` | `Guzzle` | [v3][guzzle-3-repo] | [v3][guzzle-3-docs] | No | >= 5.3.3 | -| 4.x | EOL | `guzzlehttp/guzzle` | `GuzzleHttp` | [v4][guzzle-4-repo] | N/A | No | >= 5.4 | -| 5.x | Maintained | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No | >= 5.4 | -| 6.x | Latest | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes | >= 5.5 | - -[guzzle-3-repo]: https://github.com/guzzle/guzzle3 -[guzzle-4-repo]: https://github.com/guzzle/guzzle/tree/4.x -[guzzle-5-repo]: https://github.com/guzzle/guzzle/tree/5.3 -[guzzle-6-repo]: https://github.com/guzzle/guzzle -[guzzle-3-docs]: http://guzzle3.readthedocs.org/en/latest/ -[guzzle-5-docs]: http://guzzle.readthedocs.org/en/5.3/ -[guzzle-6-docs]: http://guzzle.readthedocs.org/en/latest/ diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/UPGRADING.md b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/UPGRADING.md deleted file mode 100644 index 91d1dcc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/UPGRADING.md +++ /dev/null @@ -1,1203 +0,0 @@ -Guzzle Upgrade Guide -==================== - -5.0 to 6.0 ----------- - -Guzzle now uses [PSR-7](http://www.php-fig.org/psr/psr-7/) for HTTP messages. -Due to the fact that these messages are immutable, this prompted a refactoring -of Guzzle to use a middleware based system rather than an event system. Any -HTTP message interaction (e.g., `GuzzleHttp\Message\Request`) need to be -updated to work with the new immutable PSR-7 request and response objects. Any -event listeners or subscribers need to be updated to become middleware -functions that wrap handlers (or are injected into a -`GuzzleHttp\HandlerStack`). - -- Removed `GuzzleHttp\BatchResults` -- Removed `GuzzleHttp\Collection` -- Removed `GuzzleHttp\HasDataTrait` -- Removed `GuzzleHttp\ToArrayInterface` -- The `guzzlehttp/streams` dependency has been removed. Stream functionality - is now present in the `GuzzleHttp\Psr7` namespace provided by the - `guzzlehttp/psr7` package. -- Guzzle no longer uses ReactPHP promises and now uses the - `guzzlehttp/promises` library. We use a custom promise library for three - significant reasons: - 1. React promises (at the time of writing this) are recursive. Promise - chaining and promise resolution will eventually blow the stack. Guzzle - promises are not recursive as they use a sort of trampolining technique. - Note: there has been movement in the React project to modify promises to - no longer utilize recursion. - 2. Guzzle needs to have the ability to synchronously block on a promise to - wait for a result. Guzzle promises allows this functionality (and does - not require the use of recursion). - 3. Because we need to be able to wait on a result, doing so using React - promises requires wrapping react promises with RingPHP futures. This - overhead is no longer needed, reducing stack sizes, reducing complexity, - and improving performance. -- `GuzzleHttp\Mimetypes` has been moved to a function in - `GuzzleHttp\Psr7\mimetype_from_extension` and - `GuzzleHttp\Psr7\mimetype_from_filename`. -- `GuzzleHttp\Query` and `GuzzleHttp\QueryParser` have been removed. Query - strings must now be passed into request objects as strings, or provided to - the `query` request option when creating requests with clients. The `query` - option uses PHP's `http_build_query` to convert an array to a string. If you - need a different serialization technique, you will need to pass the query - string in as a string. There are a couple helper functions that will make - working with query strings easier: `GuzzleHttp\Psr7\parse_query` and - `GuzzleHttp\Psr7\build_query`. -- Guzzle no longer has a dependency on RingPHP. Due to the use of a middleware - system based on PSR-7, using RingPHP and it's middleware system as well adds - more complexity than the benefits it provides. All HTTP handlers that were - present in RingPHP have been modified to work directly with PSR-7 messages - and placed in the `GuzzleHttp\Handler` namespace. This significantly reduces - complexity in Guzzle, removes a dependency, and improves performance. RingPHP - will be maintained for Guzzle 5 support, but will no longer be a part of - Guzzle 6. -- As Guzzle now uses a middleware based systems the event system and RingPHP - integration has been removed. Note: while the event system has been removed, - it is possible to add your own type of event system that is powered by the - middleware system. - - Removed the `Event` namespace. - - Removed the `Subscriber` namespace. - - Removed `Transaction` class - - Removed `RequestFsm` - - Removed `RingBridge` - - `GuzzleHttp\Subscriber\Cookie` is now provided by - `GuzzleHttp\Middleware::cookies` - - `GuzzleHttp\Subscriber\HttpError` is now provided by - `GuzzleHttp\Middleware::httpError` - - `GuzzleHttp\Subscriber\History` is now provided by - `GuzzleHttp\Middleware::history` - - `GuzzleHttp\Subscriber\Mock` is now provided by - `GuzzleHttp\Handler\MockHandler` - - `GuzzleHttp\Subscriber\Prepare` is now provided by - `GuzzleHttp\PrepareBodyMiddleware` - - `GuzzleHttp\Subscriber\Redirect` is now provided by - `GuzzleHttp\RedirectMiddleware` -- Guzzle now uses `Psr\Http\Message\UriInterface` (implements in - `GuzzleHttp\Psr7\Uri`) for URI support. `GuzzleHttp\Url` is now gone. -- Static functions in `GuzzleHttp\Utils` have been moved to namespaced - functions under the `GuzzleHttp` namespace. This requires either a Composer - based autoloader or you to include functions.php. -- `GuzzleHttp\ClientInterface::getDefaultOption` has been renamed to - `GuzzleHttp\ClientInterface::getConfig`. -- `GuzzleHttp\ClientInterface::setDefaultOption` has been removed. -- The `json` and `xml` methods of response objects has been removed. With the - migration to strictly adhering to PSR-7 as the interface for Guzzle messages, - adding methods to message interfaces would actually require Guzzle messages - to extend from PSR-7 messages rather then work with them directly. - -## Migrating to middleware - -The change to PSR-7 unfortunately required significant refactoring to Guzzle -due to the fact that PSR-7 messages are immutable. Guzzle 5 relied on an event -system from plugins. The event system relied on mutability of HTTP messages and -side effects in order to work. With immutable messages, you have to change your -workflow to become more about either returning a value (e.g., functional -middlewares) or setting a value on an object. Guzzle v6 has chosen the -functional middleware approach. - -Instead of using the event system to listen for things like the `before` event, -you now create a stack based middleware function that intercepts a request on -the way in and the promise of the response on the way out. This is a much -simpler and more predictable approach than the event system and works nicely -with PSR-7 middleware. Due to the use of promises, the middleware system is -also asynchronous. - -v5: - -```php -use GuzzleHttp\Event\BeforeEvent; -$client = new GuzzleHttp\Client(); -// Get the emitter and listen to the before event. -$client->getEmitter()->on('before', function (BeforeEvent $e) { - // Guzzle v5 events relied on mutation - $e->getRequest()->setHeader('X-Foo', 'Bar'); -}); -``` - -v6: - -In v6, you can modify the request before it is sent using the `mapRequest` -middleware. The idiomatic way in v6 to modify the request/response lifecycle is -to setup a handler middleware stack up front and inject the handler into a -client. - -```php -use GuzzleHttp\Middleware; -// Create a handler stack that has all of the default middlewares attached -$handler = GuzzleHttp\HandlerStack::create(); -// Push the handler onto the handler stack -$handler->push(Middleware::mapRequest(function (RequestInterface $request) { - // Notice that we have to return a request object - return $request->withHeader('X-Foo', 'Bar'); -})); -// Inject the handler into the client -$client = new GuzzleHttp\Client(['handler' => $handler]); -``` - -## POST Requests - -This version added the [`form_params`](http://guzzle.readthedocs.org/en/latest/request-options.html#form_params) -and `multipart` request options. `form_params` is an associative array of -strings or array of strings and is used to serialize an -`application/x-www-form-urlencoded` POST request. The -[`multipart`](http://guzzle.readthedocs.org/en/latest/request-options.html#multipart) -option is now used to send a multipart/form-data POST request. - -`GuzzleHttp\Post\PostFile` has been removed. Use the `multipart` option to add -POST files to a multipart/form-data request. - -The `body` option no longer accepts an array to send POST requests. Please use -`multipart` or `form_params` instead. - -The `base_url` option has been renamed to `base_uri`. - -4.x to 5.0 ----------- - -## Rewritten Adapter Layer - -Guzzle now uses [RingPHP](http://ringphp.readthedocs.org/en/latest) to send -HTTP requests. The `adapter` option in a `GuzzleHttp\Client` constructor -is still supported, but it has now been renamed to `handler`. Instead of -passing a `GuzzleHttp\Adapter\AdapterInterface`, you must now pass a PHP -`callable` that follows the RingPHP specification. - -## Removed Fluent Interfaces - -[Fluent interfaces were removed](http://ocramius.github.io/blog/fluent-interfaces-are-evil) -from the following classes: - -- `GuzzleHttp\Collection` -- `GuzzleHttp\Url` -- `GuzzleHttp\Query` -- `GuzzleHttp\Post\PostBody` -- `GuzzleHttp\Cookie\SetCookie` - -## Removed functions.php - -Removed "functions.php", so that Guzzle is truly PSR-4 compliant. The following -functions can be used as replacements. - -- `GuzzleHttp\json_decode` -> `GuzzleHttp\Utils::jsonDecode` -- `GuzzleHttp\get_path` -> `GuzzleHttp\Utils::getPath` -- `GuzzleHttp\Utils::setPath` -> `GuzzleHttp\set_path` -- `GuzzleHttp\Pool::batch` -> `GuzzleHttp\batch`. This function is, however, - deprecated in favor of using `GuzzleHttp\Pool::batch()`. - -The "procedural" global client has been removed with no replacement (e.g., -`GuzzleHttp\get()`, `GuzzleHttp\post()`, etc.). Use a `GuzzleHttp\Client` -object as a replacement. - -## `throwImmediately` has been removed - -The concept of "throwImmediately" has been removed from exceptions and error -events. This control mechanism was used to stop a transfer of concurrent -requests from completing. This can now be handled by throwing the exception or -by cancelling a pool of requests or each outstanding future request -individually. - -## headers event has been removed - -Removed the "headers" event. This event was only useful for changing the -body a response once the headers of the response were known. You can implement -a similar behavior in a number of ways. One example might be to use a -FnStream that has access to the transaction being sent. For example, when the -first byte is written, you could check if the response headers match your -expectations, and if so, change the actual stream body that is being -written to. - -## Updates to HTTP Messages - -Removed the `asArray` parameter from -`GuzzleHttp\Message\MessageInterface::getHeader`. If you want to get a header -value as an array, then use the newly added `getHeaderAsArray()` method of -`MessageInterface`. This change makes the Guzzle interfaces compatible with -the PSR-7 interfaces. - -3.x to 4.0 ----------- - -## Overarching changes: - -- Now requires PHP 5.4 or greater. -- No longer requires cURL to send requests. -- Guzzle no longer wraps every exception it throws. Only exceptions that are - recoverable are now wrapped by Guzzle. -- Various namespaces have been removed or renamed. -- No longer requiring the Symfony EventDispatcher. A custom event dispatcher - based on the Symfony EventDispatcher is - now utilized in `GuzzleHttp\Event\EmitterInterface` (resulting in significant - speed and functionality improvements). - -Changes per Guzzle 3.x namespace are described below. - -## Batch - -The `Guzzle\Batch` namespace has been removed. This is best left to -third-parties to implement on top of Guzzle's core HTTP library. - -## Cache - -The `Guzzle\Cache` namespace has been removed. (Todo: No suitable replacement -has been implemented yet, but hoping to utilize a PSR cache interface). - -## Common - -- Removed all of the wrapped exceptions. It's better to use the standard PHP - library for unrecoverable exceptions. -- `FromConfigInterface` has been removed. -- `Guzzle\Common\Version` has been removed. The VERSION constant can be found - at `GuzzleHttp\ClientInterface::VERSION`. - -### Collection - -- `getAll` has been removed. Use `toArray` to convert a collection to an array. -- `inject` has been removed. -- `keySearch` has been removed. -- `getPath` no longer supports wildcard expressions. Use something better like - JMESPath for this. -- `setPath` now supports appending to an existing array via the `[]` notation. - -### Events - -Guzzle no longer requires Symfony's EventDispatcher component. Guzzle now uses -`GuzzleHttp\Event\Emitter`. - -- `Symfony\Component\EventDispatcher\EventDispatcherInterface` is replaced by - `GuzzleHttp\Event\EmitterInterface`. -- `Symfony\Component\EventDispatcher\EventDispatcher` is replaced by - `GuzzleHttp\Event\Emitter`. -- `Symfony\Component\EventDispatcher\Event` is replaced by - `GuzzleHttp\Event\Event`, and Guzzle now has an EventInterface in - `GuzzleHttp\Event\EventInterface`. -- `AbstractHasDispatcher` has moved to a trait, `HasEmitterTrait`, and - `HasDispatcherInterface` has moved to `HasEmitterInterface`. Retrieving the - event emitter of a request, client, etc. now uses the `getEmitter` method - rather than the `getDispatcher` method. - -#### Emitter - -- Use the `once()` method to add a listener that automatically removes itself - the first time it is invoked. -- Use the `listeners()` method to retrieve a list of event listeners rather than - the `getListeners()` method. -- Use `emit()` instead of `dispatch()` to emit an event from an emitter. -- Use `attach()` instead of `addSubscriber()` and `detach()` instead of - `removeSubscriber()`. - -```php -$mock = new Mock(); -// 3.x -$request->getEventDispatcher()->addSubscriber($mock); -$request->getEventDispatcher()->removeSubscriber($mock); -// 4.x -$request->getEmitter()->attach($mock); -$request->getEmitter()->detach($mock); -``` - -Use the `on()` method to add a listener rather than the `addListener()` method. - -```php -// 3.x -$request->getEventDispatcher()->addListener('foo', function (Event $event) { /* ... */ } ); -// 4.x -$request->getEmitter()->on('foo', function (Event $event, $name) { /* ... */ } ); -``` - -## Http - -### General changes - -- The cacert.pem certificate has been moved to `src/cacert.pem`. -- Added the concept of adapters that are used to transfer requests over the - wire. -- Simplified the event system. -- Sending requests in parallel is still possible, but batching is no longer a - concept of the HTTP layer. Instead, you must use the `complete` and `error` - events to asynchronously manage parallel request transfers. -- `Guzzle\Http\Url` has moved to `GuzzleHttp\Url`. -- `Guzzle\Http\QueryString` has moved to `GuzzleHttp\Query`. -- QueryAggregators have been rewritten so that they are simply callable - functions. -- `GuzzleHttp\StaticClient` has been removed. Use the functions provided in - `functions.php` for an easy to use static client instance. -- Exceptions in `GuzzleHttp\Exception` have been updated to all extend from - `GuzzleHttp\Exception\TransferException`. - -### Client - -Calling methods like `get()`, `post()`, `head()`, etc. no longer create and -return a request, but rather creates a request, sends the request, and returns -the response. - -```php -// 3.0 -$request = $client->get('/'); -$response = $request->send(); - -// 4.0 -$response = $client->get('/'); - -// or, to mirror the previous behavior -$request = $client->createRequest('GET', '/'); -$response = $client->send($request); -``` - -`GuzzleHttp\ClientInterface` has changed. - -- The `send` method no longer accepts more than one request. Use `sendAll` to - send multiple requests in parallel. -- `setUserAgent()` has been removed. Use a default request option instead. You - could, for example, do something like: - `$client->setConfig('defaults/headers/User-Agent', 'Foo/Bar ' . $client::getDefaultUserAgent())`. -- `setSslVerification()` has been removed. Use default request options instead, - like `$client->setConfig('defaults/verify', true)`. - -`GuzzleHttp\Client` has changed. - -- The constructor now accepts only an associative array. You can include a - `base_url` string or array to use a URI template as the base URL of a client. - You can also specify a `defaults` key that is an associative array of default - request options. You can pass an `adapter` to use a custom adapter, - `batch_adapter` to use a custom adapter for sending requests in parallel, or - a `message_factory` to change the factory used to create HTTP requests and - responses. -- The client no longer emits a `client.create_request` event. -- Creating requests with a client no longer automatically utilize a URI - template. You must pass an array into a creational method (e.g., - `createRequest`, `get`, `put`, etc.) in order to expand a URI template. - -### Messages - -Messages no longer have references to their counterparts (i.e., a request no -longer has a reference to it's response, and a response no loger has a -reference to its request). This association is now managed through a -`GuzzleHttp\Adapter\TransactionInterface` object. You can get references to -these transaction objects using request events that are emitted over the -lifecycle of a request. - -#### Requests with a body - -- `GuzzleHttp\Message\EntityEnclosingRequest` and - `GuzzleHttp\Message\EntityEnclosingRequestInterface` have been removed. The - separation between requests that contain a body and requests that do not - contain a body has been removed, and now `GuzzleHttp\Message\RequestInterface` - handles both use cases. -- Any method that previously accepts a `GuzzleHttp\Response` object now accept a - `GuzzleHttp\Message\ResponseInterface`. -- `GuzzleHttp\Message\RequestFactoryInterface` has been renamed to - `GuzzleHttp\Message\MessageFactoryInterface`. This interface is used to create - both requests and responses and is implemented in - `GuzzleHttp\Message\MessageFactory`. -- POST field and file methods have been removed from the request object. You - must now use the methods made available to `GuzzleHttp\Post\PostBodyInterface` - to control the format of a POST body. Requests that are created using a - standard `GuzzleHttp\Message\MessageFactoryInterface` will automatically use - a `GuzzleHttp\Post\PostBody` body if the body was passed as an array or if - the method is POST and no body is provided. - -```php -$request = $client->createRequest('POST', '/'); -$request->getBody()->setField('foo', 'bar'); -$request->getBody()->addFile(new PostFile('file_key', fopen('/path/to/content', 'r'))); -``` - -#### Headers - -- `GuzzleHttp\Message\Header` has been removed. Header values are now simply - represented by an array of values or as a string. Header values are returned - as a string by default when retrieving a header value from a message. You can - pass an optional argument of `true` to retrieve a header value as an array - of strings instead of a single concatenated string. -- `GuzzleHttp\PostFile` and `GuzzleHttp\PostFileInterface` have been moved to - `GuzzleHttp\Post`. This interface has been simplified and now allows the - addition of arbitrary headers. -- Custom headers like `GuzzleHttp\Message\Header\Link` have been removed. Most - of the custom headers are now handled separately in specific - subscribers/plugins, and `GuzzleHttp\Message\HeaderValues::parseParams()` has - been updated to properly handle headers that contain parameters (like the - `Link` header). - -#### Responses - -- `GuzzleHttp\Message\Response::getInfo()` and - `GuzzleHttp\Message\Response::setInfo()` have been removed. Use the event - system to retrieve this type of information. -- `GuzzleHttp\Message\Response::getRawHeaders()` has been removed. -- `GuzzleHttp\Message\Response::getMessage()` has been removed. -- `GuzzleHttp\Message\Response::calculateAge()` and other cache specific - methods have moved to the CacheSubscriber. -- Header specific helper functions like `getContentMd5()` have been removed. - Just use `getHeader('Content-MD5')` instead. -- `GuzzleHttp\Message\Response::setRequest()` and - `GuzzleHttp\Message\Response::getRequest()` have been removed. Use the event - system to work with request and response objects as a transaction. -- `GuzzleHttp\Message\Response::getRedirectCount()` has been removed. Use the - Redirect subscriber instead. -- `GuzzleHttp\Message\Response::isSuccessful()` and other related methods have - been removed. Use `getStatusCode()` instead. - -#### Streaming responses - -Streaming requests can now be created by a client directly, returning a -`GuzzleHttp\Message\ResponseInterface` object that contains a body stream -referencing an open PHP HTTP stream. - -```php -// 3.0 -use Guzzle\Stream\PhpStreamRequestFactory; -$request = $client->get('/'); -$factory = new PhpStreamRequestFactory(); -$stream = $factory->fromRequest($request); -$data = $stream->read(1024); - -// 4.0 -$response = $client->get('/', ['stream' => true]); -// Read some data off of the stream in the response body -$data = $response->getBody()->read(1024); -``` - -#### Redirects - -The `configureRedirects()` method has been removed in favor of a -`allow_redirects` request option. - -```php -// Standard redirects with a default of a max of 5 redirects -$request = $client->createRequest('GET', '/', ['allow_redirects' => true]); - -// Strict redirects with a custom number of redirects -$request = $client->createRequest('GET', '/', [ - 'allow_redirects' => ['max' => 5, 'strict' => true] -]); -``` - -#### EntityBody - -EntityBody interfaces and classes have been removed or moved to -`GuzzleHttp\Stream`. All classes and interfaces that once required -`GuzzleHttp\EntityBodyInterface` now require -`GuzzleHttp\Stream\StreamInterface`. Creating a new body for a request no -longer uses `GuzzleHttp\EntityBody::factory` but now uses -`GuzzleHttp\Stream\Stream::factory` or even better: -`GuzzleHttp\Stream\create()`. - -- `Guzzle\Http\EntityBodyInterface` is now `GuzzleHttp\Stream\StreamInterface` -- `Guzzle\Http\EntityBody` is now `GuzzleHttp\Stream\Stream` -- `Guzzle\Http\CachingEntityBody` is now `GuzzleHttp\Stream\CachingStream` -- `Guzzle\Http\ReadLimitEntityBody` is now `GuzzleHttp\Stream\LimitStream` -- `Guzzle\Http\IoEmittyinEntityBody` has been removed. - -#### Request lifecycle events - -Requests previously submitted a large number of requests. The number of events -emitted over the lifecycle of a request has been significantly reduced to make -it easier to understand how to extend the behavior of a request. All events -emitted during the lifecycle of a request now emit a custom -`GuzzleHttp\Event\EventInterface` object that contains context providing -methods and a way in which to modify the transaction at that specific point in -time (e.g., intercept the request and set a response on the transaction). - -- `request.before_send` has been renamed to `before` and now emits a - `GuzzleHttp\Event\BeforeEvent` -- `request.complete` has been renamed to `complete` and now emits a - `GuzzleHttp\Event\CompleteEvent`. -- `request.sent` has been removed. Use `complete`. -- `request.success` has been removed. Use `complete`. -- `error` is now an event that emits a `GuzzleHttp\Event\ErrorEvent`. -- `request.exception` has been removed. Use `error`. -- `request.receive.status_line` has been removed. -- `curl.callback.progress` has been removed. Use a custom `StreamInterface` to - maintain a status update. -- `curl.callback.write` has been removed. Use a custom `StreamInterface` to - intercept writes. -- `curl.callback.read` has been removed. Use a custom `StreamInterface` to - intercept reads. - -`headers` is a new event that is emitted after the response headers of a -request have been received before the body of the response is downloaded. This -event emits a `GuzzleHttp\Event\HeadersEvent`. - -You can intercept a request and inject a response using the `intercept()` event -of a `GuzzleHttp\Event\BeforeEvent`, `GuzzleHttp\Event\CompleteEvent`, and -`GuzzleHttp\Event\ErrorEvent` event. - -See: http://docs.guzzlephp.org/en/latest/events.html - -## Inflection - -The `Guzzle\Inflection` namespace has been removed. This is not a core concern -of Guzzle. - -## Iterator - -The `Guzzle\Iterator` namespace has been removed. - -- `Guzzle\Iterator\AppendIterator`, `Guzzle\Iterator\ChunkedIterator`, and - `Guzzle\Iterator\MethodProxyIterator` are nice, but not a core requirement of - Guzzle itself. -- `Guzzle\Iterator\FilterIterator` is no longer needed because an equivalent - class is shipped with PHP 5.4. -- `Guzzle\Iterator\MapIterator` is not really needed when using PHP 5.5 because - it's easier to just wrap an iterator in a generator that maps values. - -For a replacement of these iterators, see https://github.com/nikic/iter - -## Log - -The LogPlugin has moved to https://github.com/guzzle/log-subscriber. The -`Guzzle\Log` namespace has been removed. Guzzle now relies on -`Psr\Log\LoggerInterface` for all logging. The MessageFormatter class has been -moved to `GuzzleHttp\Subscriber\Log\Formatter`. - -## Parser - -The `Guzzle\Parser` namespace has been removed. This was previously used to -make it possible to plug in custom parsers for cookies, messages, URI -templates, and URLs; however, this level of complexity is not needed in Guzzle -so it has been removed. - -- Cookie: Cookie parsing logic has been moved to - `GuzzleHttp\Cookie\SetCookie::fromString`. -- Message: Message parsing logic for both requests and responses has been moved - to `GuzzleHttp\Message\MessageFactory::fromMessage`. Message parsing is only - used in debugging or deserializing messages, so it doesn't make sense for - Guzzle as a library to add this level of complexity to parsing messages. -- UriTemplate: URI template parsing has been moved to - `GuzzleHttp\UriTemplate`. The Guzzle library will automatically use the PECL - URI template library if it is installed. -- Url: URL parsing is now performed in `GuzzleHttp\Url::fromString` (previously - it was `Guzzle\Http\Url::factory()`). If custom URL parsing is necessary, - then developers are free to subclass `GuzzleHttp\Url`. - -## Plugin - -The `Guzzle\Plugin` namespace has been renamed to `GuzzleHttp\Subscriber`. -Several plugins are shipping with the core Guzzle library under this namespace. - -- `GuzzleHttp\Subscriber\Cookie`: Replaces the old CookiePlugin. Cookie jar - code has moved to `GuzzleHttp\Cookie`. -- `GuzzleHttp\Subscriber\History`: Replaces the old HistoryPlugin. -- `GuzzleHttp\Subscriber\HttpError`: Throws errors when a bad HTTP response is - received. -- `GuzzleHttp\Subscriber\Mock`: Replaces the old MockPlugin. -- `GuzzleHttp\Subscriber\Prepare`: Prepares the body of a request just before - sending. This subscriber is attached to all requests by default. -- `GuzzleHttp\Subscriber\Redirect`: Replaces the RedirectPlugin. - -The following plugins have been removed (third-parties are free to re-implement -these if needed): - -- `GuzzleHttp\Plugin\Async` has been removed. -- `GuzzleHttp\Plugin\CurlAuth` has been removed. -- `GuzzleHttp\Plugin\ErrorResponse\ErrorResponsePlugin` has been removed. This - functionality should instead be implemented with event listeners that occur - after normal response parsing occurs in the guzzle/command package. - -The following plugins are not part of the core Guzzle package, but are provided -in separate repositories: - -- `Guzzle\Http\Plugin\BackoffPlugin` has been rewritten to be much simpler - to build custom retry policies using simple functions rather than various - chained classes. See: https://github.com/guzzle/retry-subscriber -- `Guzzle\Http\Plugin\Cache\CachePlugin` has moved to - https://github.com/guzzle/cache-subscriber -- `Guzzle\Http\Plugin\Log\LogPlugin` has moved to - https://github.com/guzzle/log-subscriber -- `Guzzle\Http\Plugin\Md5\Md5Plugin` has moved to - https://github.com/guzzle/message-integrity-subscriber -- `Guzzle\Http\Plugin\Mock\MockPlugin` has moved to - `GuzzleHttp\Subscriber\MockSubscriber`. -- `Guzzle\Http\Plugin\Oauth\OauthPlugin` has moved to - https://github.com/guzzle/oauth-subscriber - -## Service - -The service description layer of Guzzle has moved into two separate packages: - -- http://github.com/guzzle/command Provides a high level abstraction over web - services by representing web service operations using commands. -- http://github.com/guzzle/guzzle-services Provides an implementation of - guzzle/command that provides request serialization and response parsing using - Guzzle service descriptions. - -## Stream - -Stream have moved to a separate package available at -https://github.com/guzzle/streams. - -`Guzzle\Stream\StreamInterface` has been given a large update to cleanly take -on the responsibilities of `Guzzle\Http\EntityBody` and -`Guzzle\Http\EntityBodyInterface` now that they have been removed. The number -of methods implemented by the `StreamInterface` has been drastically reduced to -allow developers to more easily extend and decorate stream behavior. - -## Removed methods from StreamInterface - -- `getStream` and `setStream` have been removed to better encapsulate streams. -- `getMetadata` and `setMetadata` have been removed in favor of - `GuzzleHttp\Stream\MetadataStreamInterface`. -- `getWrapper`, `getWrapperData`, `getStreamType`, and `getUri` have all been - removed. This data is accessible when - using streams that implement `GuzzleHttp\Stream\MetadataStreamInterface`. -- `rewind` has been removed. Use `seek(0)` for a similar behavior. - -## Renamed methods - -- `detachStream` has been renamed to `detach`. -- `feof` has been renamed to `eof`. -- `ftell` has been renamed to `tell`. -- `readLine` has moved from an instance method to a static class method of - `GuzzleHttp\Stream\Stream`. - -## Metadata streams - -`GuzzleHttp\Stream\MetadataStreamInterface` has been added to denote streams -that contain additional metadata accessible via `getMetadata()`. -`GuzzleHttp\Stream\StreamInterface::getMetadata` and -`GuzzleHttp\Stream\StreamInterface::setMetadata` have been removed. - -## StreamRequestFactory - -The entire concept of the StreamRequestFactory has been removed. The way this -was used in Guzzle 3 broke the actual interface of sending streaming requests -(instead of getting back a Response, you got a StreamInterface). Streaming -PHP requests are now implemented through the `GuzzleHttp\Adapter\StreamAdapter`. - -3.6 to 3.7 ----------- - -### Deprecations - -- You can now enable E_USER_DEPRECATED warnings to see if you are using any deprecated methods.: - -```php -\Guzzle\Common\Version::$emitWarnings = true; -``` - -The following APIs and options have been marked as deprecated: - -- Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use `$request->getResponseBody()->isRepeatable()` instead. -- Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. -- Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead. -- Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instead. -- Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead. -- Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated -- Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer be disabled on a Guzzle\Service\Client. -- Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent encode your UTF-8. -- Marked `Guzzle\Common\Collection::inject()` as deprecated. -- Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use - `$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest|NTLM|Any'));` or - `$client->setDefaultOption('auth', array('user', 'pass', 'Basic|Digest|NTLM|Any'));` - -3.7 introduces `request.options` as a parameter for a client configuration and as an optional argument to all creational -request methods. When paired with a client's configuration settings, these options allow you to specify default settings -for various aspects of a request. Because these options make other previous configuration options redundant, several -configuration options and methods of a client and AbstractCommand have been deprecated. - -- Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use `$client->getDefaultOption('headers')`. -- Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use `$client->setDefaultOption('headers/{header_name}', 'value')`. -- Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use `$client->setDefaultOption('params/{param_name}', 'value')` -- Marked 'command.headers', 'command.response_body' and 'command.on_complete' as deprecated for AbstractCommand. These will work through Guzzle 4.0 - - $command = $client->getCommand('foo', array( - 'command.headers' => array('Test' => '123'), - 'command.response_body' => '/path/to/file' - )); - - // Should be changed to: - - $command = $client->getCommand('foo', array( - 'command.request_options' => array( - 'headers' => array('Test' => '123'), - 'save_as' => '/path/to/file' - ) - )); - -### Interface changes - -Additions and changes (you will need to update any implementations or subclasses you may have created): - -- Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`: - createRequest, head, delete, put, patch, post, options, prepareRequest -- Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::createRequest()` -- Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface` -- Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to - `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can still pass in a - resource, string, or EntityBody into the $options parameter to specify the download location of the response. -- Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$data` but a - default `array()` -- Added `Guzzle\Stream\StreamInterface::isRepeatable` -- Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods. - -The following methods were removed from interfaces. All of these methods are still available in the concrete classes -that implement them, but you should update your code to use alternative methods: - -- Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use - `$client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or - `$client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))` or - `$client->setDefaultOption('headers/{header_name}', 'value')`. or - `$client->setDefaultOption('headers', array('header_name' => 'value'))`. -- Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use `$client->getConfig()->getPath('request.options/headers')`. -- Removed `Guzzle\Http\ClientInterface::expandTemplate()`. This is an implementation detail. -- Removed `Guzzle\Http\ClientInterface::setRequestFactory()`. This is an implementation detail. -- Removed `Guzzle\Http\ClientInterface::getCurlMulti()`. This is a very specific implementation detail. -- Removed `Guzzle\Http\Message\RequestInterface::canCache`. Use the CachePlugin. -- Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect`. Use the HistoryPlugin. -- Removed `Guzzle\Http\Message\RequestInterface::isRedirect`. Use the HistoryPlugin. - -### Cache plugin breaking changes - -- CacheKeyProviderInterface and DefaultCacheKeyProvider are no longer used. All of this logic is handled in a - CacheStorageInterface. These two objects and interface will be removed in a future version. -- Always setting X-cache headers on cached responses -- Default cache TTLs are now handled by the CacheStorageInterface of a CachePlugin -- `CacheStorageInterface::cache($key, Response $response, $ttl = null)` has changed to `cache(RequestInterface - $request, Response $response);` -- `CacheStorageInterface::fetch($key)` has changed to `fetch(RequestInterface $request);` -- `CacheStorageInterface::delete($key)` has changed to `delete(RequestInterface $request);` -- Added `CacheStorageInterface::purge($url)` -- `DefaultRevalidation::__construct(CacheKeyProviderInterface $cacheKey, CacheStorageInterface $cache, CachePlugin - $plugin)` has changed to `DefaultRevalidation::__construct(CacheStorageInterface $cache, - CanCacheStrategyInterface $canCache = null)` -- Added `RevalidationInterface::shouldRevalidate(RequestInterface $request, Response $response)` - -3.5 to 3.6 ----------- - -* Mixed casing of headers are now forced to be a single consistent casing across all values for that header. -* Messages internally use a HeaderCollection object to delegate handling case-insensitive header resolution -* Removed the whole changedHeader() function system of messages because all header changes now go through addHeader(). - For example, setHeader() first removes the header using unset on a HeaderCollection and then calls addHeader(). - Keeping the Host header and URL host in sync is now handled by overriding the addHeader method in Request. -* Specific header implementations can be created for complex headers. When a message creates a header, it uses a - HeaderFactory which can map specific headers to specific header classes. There is now a Link header and - CacheControl header implementation. -* Moved getLinks() from Response to just be used on a Link header object. - -If you previously relied on Guzzle\Http\Message\Header::raw(), then you will need to update your code to use the -HeaderInterface (e.g. toArray(), getAll(), etc.). - -### Interface changes - -* Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate -* Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti() -* Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in - Guzzle\Http\Curl\RequestMediator -* Removed the optional $asString parameter from MessageInterface::getHeader(). Just cast the header to a string. -* Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestInterface -* Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders() - -### Removed deprecated functions - -* Removed Guzzle\Parser\ParserRegister::get(). Use getParser() -* Removed Guzzle\Parser\ParserRegister::set(). Use registerParser(). - -### Deprecations - -* The ability to case-insensitively search for header values -* Guzzle\Http\Message\Header::hasExactHeader -* Guzzle\Http\Message\Header::raw. Use getAll() -* Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheControl header object - instead. - -### Other changes - -* All response header helper functions return a string rather than mixing Header objects and strings inconsistently -* Removed cURL blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle - directly via interfaces -* Removed the injecting of a request object onto a response object. The methods to get and set a request still exist - but are a no-op until removed. -* Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now request a - `Guzzle\Service\Command\ArrayCommandInterface`. -* Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle injecting a response - on a request while the request is still being transferred -* `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess - -3.3 to 3.4 ----------- - -Base URLs of a client now follow the rules of http://tools.ietf.org/html/rfc3986#section-5.2.2 when merging URLs. - -3.2 to 3.3 ----------- - -### Response::getEtag() quote stripping removed - -`Guzzle\Http\Message\Response::getEtag()` no longer strips quotes around the ETag response header - -### Removed `Guzzle\Http\Utils` - -The `Guzzle\Http\Utils` class was removed. This class was only used for testing. - -### Stream wrapper and type - -`Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getStreamType()` are no longer converted to lowercase. - -### curl.emit_io became emit_io - -Emitting IO events from a RequestMediator is now a parameter that must be set in a request's curl options using the -'emit_io' key. This was previously set under a request's parameters using 'curl.emit_io' - -3.1 to 3.2 ----------- - -### CurlMulti is no longer reused globally - -Before 3.2, the same CurlMulti object was reused globally for each client. This can cause issue where plugins added -to a single client can pollute requests dispatched from other clients. - -If you still wish to reuse the same CurlMulti object with each client, then you can add a listener to the -ServiceBuilder's `service_builder.create_client` event to inject a custom CurlMulti object into each client as it is -created. - -```php -$multi = new Guzzle\Http\Curl\CurlMulti(); -$builder = Guzzle\Service\Builder\ServiceBuilder::factory('/path/to/config.json'); -$builder->addListener('service_builder.create_client', function ($event) use ($multi) { - $event['client']->setCurlMulti($multi); -} -}); -``` - -### No default path - -URLs no longer have a default path value of '/' if no path was specified. - -Before: - -```php -$request = $client->get('http://www.foo.com'); -echo $request->getUrl(); -// >> http://www.foo.com/ -``` - -After: - -```php -$request = $client->get('http://www.foo.com'); -echo $request->getUrl(); -// >> http://www.foo.com -``` - -### Less verbose BadResponseException - -The exception message for `Guzzle\Http\Exception\BadResponseException` no longer contains the full HTTP request and -response information. You can, however, get access to the request and response object by calling `getRequest()` or -`getResponse()` on the exception object. - -### Query parameter aggregation - -Multi-valued query parameters are no longer aggregated using a callback function. `Guzzle\Http\Query` now has a -setAggregator() method that accepts a `Guzzle\Http\QueryAggregator\QueryAggregatorInterface` object. This object is -responsible for handling the aggregation of multi-valued query string variables into a flattened hash. - -2.8 to 3.x ----------- - -### Guzzle\Service\Inspector - -Change `\Guzzle\Service\Inspector::fromConfig` to `\Guzzle\Common\Collection::fromConfig` - -**Before** - -```php -use Guzzle\Service\Inspector; - -class YourClient extends \Guzzle\Service\Client -{ - public static function factory($config = array()) - { - $default = array(); - $required = array('base_url', 'username', 'api_key'); - $config = Inspector::fromConfig($config, $default, $required); - - $client = new self( - $config->get('base_url'), - $config->get('username'), - $config->get('api_key') - ); - $client->setConfig($config); - - $client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json')); - - return $client; - } -``` - -**After** - -```php -use Guzzle\Common\Collection; - -class YourClient extends \Guzzle\Service\Client -{ - public static function factory($config = array()) - { - $default = array(); - $required = array('base_url', 'username', 'api_key'); - $config = Collection::fromConfig($config, $default, $required); - - $client = new self( - $config->get('base_url'), - $config->get('username'), - $config->get('api_key') - ); - $client->setConfig($config); - - $client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json')); - - return $client; - } -``` - -### Convert XML Service Descriptions to JSON - -**Before** - -```xml - - - - - - Get a list of groups - - - Uses a search query to get a list of groups - - - - Create a group - - - - - Delete a group by ID - - - - - - - Update a group - - - - - - -``` - -**After** - -```json -{ - "name": "Zendesk REST API v2", - "apiVersion": "2012-12-31", - "description":"Provides access to Zendesk views, groups, tickets, ticket fields, and users", - "operations": { - "list_groups": { - "httpMethod":"GET", - "uri": "groups.json", - "summary": "Get a list of groups" - }, - "search_groups":{ - "httpMethod":"GET", - "uri": "search.json?query=\"{query} type:group\"", - "summary": "Uses a search query to get a list of groups", - "parameters":{ - "query":{ - "location": "uri", - "description":"Zendesk Search Query", - "type": "string", - "required": true - } - } - }, - "create_group": { - "httpMethod":"POST", - "uri": "groups.json", - "summary": "Create a group", - "parameters":{ - "data": { - "type": "array", - "location": "body", - "description":"Group JSON", - "filters": "json_encode", - "required": true - }, - "Content-Type":{ - "type": "string", - "location":"header", - "static": "application/json" - } - } - }, - "delete_group": { - "httpMethod":"DELETE", - "uri": "groups/{id}.json", - "summary": "Delete a group", - "parameters":{ - "id":{ - "location": "uri", - "description":"Group to delete by ID", - "type": "integer", - "required": true - } - } - }, - "get_group": { - "httpMethod":"GET", - "uri": "groups/{id}.json", - "summary": "Get a ticket", - "parameters":{ - "id":{ - "location": "uri", - "description":"Group to get by ID", - "type": "integer", - "required": true - } - } - }, - "update_group": { - "httpMethod":"PUT", - "uri": "groups/{id}.json", - "summary": "Update a group", - "parameters":{ - "id": { - "location": "uri", - "description":"Group to update by ID", - "type": "integer", - "required": true - }, - "data": { - "type": "array", - "location": "body", - "description":"Group JSON", - "filters": "json_encode", - "required": true - }, - "Content-Type":{ - "type": "string", - "location":"header", - "static": "application/json" - } - } - } -} -``` - -### Guzzle\Service\Description\ServiceDescription - -Commands are now called Operations - -**Before** - -```php -use Guzzle\Service\Description\ServiceDescription; - -$sd = new ServiceDescription(); -$sd->getCommands(); // @returns ApiCommandInterface[] -$sd->hasCommand($name); -$sd->getCommand($name); // @returns ApiCommandInterface|null -$sd->addCommand($command); // @param ApiCommandInterface $command -``` - -**After** - -```php -use Guzzle\Service\Description\ServiceDescription; - -$sd = new ServiceDescription(); -$sd->getOperations(); // @returns OperationInterface[] -$sd->hasOperation($name); -$sd->getOperation($name); // @returns OperationInterface|null -$sd->addOperation($operation); // @param OperationInterface $operation -``` - -### Guzzle\Common\Inflection\Inflector - -Namespace is now `Guzzle\Inflection\Inflector` - -### Guzzle\Http\Plugin - -Namespace is now `Guzzle\Plugin`. Many other changes occur within this namespace and are detailed in their own sections below. - -### Guzzle\Http\Plugin\LogPlugin and Guzzle\Common\Log - -Now `Guzzle\Plugin\Log\LogPlugin` and `Guzzle\Log` respectively. - -**Before** - -```php -use Guzzle\Common\Log\ClosureLogAdapter; -use Guzzle\Http\Plugin\LogPlugin; - -/** @var \Guzzle\Http\Client */ -$client; - -// $verbosity is an integer indicating desired message verbosity level -$client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $verbosity = LogPlugin::LOG_VERBOSE); -``` - -**After** - -```php -use Guzzle\Log\ClosureLogAdapter; -use Guzzle\Log\MessageFormatter; -use Guzzle\Plugin\Log\LogPlugin; - -/** @var \Guzzle\Http\Client */ -$client; - -// $format is a string indicating desired message format -- @see MessageFormatter -$client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $format = MessageFormatter::DEBUG_FORMAT); -``` - -### Guzzle\Http\Plugin\CurlAuthPlugin - -Now `Guzzle\Plugin\CurlAuth\CurlAuthPlugin`. - -### Guzzle\Http\Plugin\ExponentialBackoffPlugin - -Now `Guzzle\Plugin\Backoff\BackoffPlugin`, and other changes. - -**Before** - -```php -use Guzzle\Http\Plugin\ExponentialBackoffPlugin; - -$backoffPlugin = new ExponentialBackoffPlugin($maxRetries, array_merge( - ExponentialBackoffPlugin::getDefaultFailureCodes(), array(429) - )); - -$client->addSubscriber($backoffPlugin); -``` - -**After** - -```php -use Guzzle\Plugin\Backoff\BackoffPlugin; -use Guzzle\Plugin\Backoff\HttpBackoffStrategy; - -// Use convenient factory method instead -- see implementation for ideas of what -// you can do with chaining backoff strategies -$backoffPlugin = BackoffPlugin::getExponentialBackoff($maxRetries, array_merge( - HttpBackoffStrategy::getDefaultFailureCodes(), array(429) - )); -$client->addSubscriber($backoffPlugin); -``` - -### Known Issues - -#### [BUG] Accept-Encoding header behavior changed unintentionally. - -(See #217) (Fixed in 09daeb8c666fb44499a0646d655a8ae36456575e) - -In version 2.8 setting the `Accept-Encoding` header would set the CURLOPT_ENCODING option, which permitted cURL to -properly handle gzip/deflate compressed responses from the server. In versions affected by this bug this does not happen. -See issue #217 for a workaround, or use a version containing the fix. diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/composer.json b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/composer.json deleted file mode 100644 index 65687a5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/composer.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "guzzlehttp/guzzle", - "type": "library", - "description": "Guzzle is a PHP HTTP client library", - "keywords": ["framework", "http", "rest", "web service", "curl", "client", "HTTP client"], - "homepage": "http://guzzlephp.org/", - "license": "MIT", - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "require": { - "php": ">=5.5", - "guzzlehttp/psr7": "^1.4", - "guzzlehttp/promises": "^1.0" - }, - "require-dev": { - "ext-curl": "*", - "phpunit/phpunit": "^4.0 || ^5.0", - "psr/log": "^1.0" - }, - "autoload": { - "files": ["src/functions_include.php"], - "psr-4": { - "GuzzleHttp\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "GuzzleHttp\\Tests\\": "tests/" - } - }, - "suggest": { - "psr/log": "Required for using the Log middleware" - }, - "extra": { - "branch-alias": { - "dev-master": "6.2-dev" - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Client.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Client.php deleted file mode 100644 index de4df8a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Client.php +++ /dev/null @@ -1,414 +0,0 @@ - 'http://www.foo.com/1.0/', - * 'timeout' => 0, - * 'allow_redirects' => false, - * 'proxy' => '192.168.16.1:10' - * ]); - * - * Client configuration settings include the following options: - * - * - handler: (callable) Function that transfers HTTP requests over the - * wire. The function is called with a Psr7\Http\Message\RequestInterface - * and array of transfer options, and must return a - * GuzzleHttp\Promise\PromiseInterface that is fulfilled with a - * Psr7\Http\Message\ResponseInterface on success. "handler" is a - * constructor only option that cannot be overridden in per/request - * options. If no handler is provided, a default handler will be created - * that enables all of the request options below by attaching all of the - * default middleware to the handler. - * - base_uri: (string|UriInterface) Base URI of the client that is merged - * into relative URIs. Can be a string or instance of UriInterface. - * - **: any request option - * - * @param array $config Client configuration settings. - * - * @see \GuzzleHttp\RequestOptions for a list of available request options. - */ - public function __construct(array $config = []) - { - if (!isset($config['handler'])) { - $config['handler'] = HandlerStack::create(); - } elseif (!is_callable($config['handler'])) { - throw new \InvalidArgumentException('handler must be a callable'); - } - - // Convert the base_uri to a UriInterface - if (isset($config['base_uri'])) { - $config['base_uri'] = Psr7\uri_for($config['base_uri']); - } - - $this->configureDefaults($config); - } - - public function __call($method, $args) - { - if (count($args) < 1) { - throw new \InvalidArgumentException('Magic request methods require a URI and optional options array'); - } - - $uri = $args[0]; - $opts = isset($args[1]) ? $args[1] : []; - - return substr($method, -5) === 'Async' - ? $this->requestAsync(substr($method, 0, -5), $uri, $opts) - : $this->request($method, $uri, $opts); - } - - public function sendAsync(RequestInterface $request, array $options = []) - { - // Merge the base URI into the request URI if needed. - $options = $this->prepareDefaults($options); - - return $this->transfer( - $request->withUri($this->buildUri($request->getUri(), $options), $request->hasHeader('Host')), - $options - ); - } - - public function send(RequestInterface $request, array $options = []) - { - $options[RequestOptions::SYNCHRONOUS] = true; - return $this->sendAsync($request, $options)->wait(); - } - - public function requestAsync($method, $uri = '', array $options = []) - { - $options = $this->prepareDefaults($options); - // Remove request modifying parameter because it can be done up-front. - $headers = isset($options['headers']) ? $options['headers'] : []; - $body = isset($options['body']) ? $options['body'] : null; - $version = isset($options['version']) ? $options['version'] : '1.1'; - // Merge the URI into the base URI. - $uri = $this->buildUri($uri, $options); - if (is_array($body)) { - $this->invalidBody(); - } - $request = new Psr7\Request($method, $uri, $headers, $body, $version); - // Remove the option so that they are not doubly-applied. - unset($options['headers'], $options['body'], $options['version']); - - return $this->transfer($request, $options); - } - - public function request($method, $uri = '', array $options = []) - { - $options[RequestOptions::SYNCHRONOUS] = true; - return $this->requestAsync($method, $uri, $options)->wait(); - } - - public function getConfig($option = null) - { - return $option === null - ? $this->config - : (isset($this->config[$option]) ? $this->config[$option] : null); - } - - private function buildUri($uri, array $config) - { - // for BC we accept null which would otherwise fail in uri_for - $uri = Psr7\uri_for($uri === null ? '' : $uri); - - if (isset($config['base_uri'])) { - $uri = Psr7\UriResolver::resolve(Psr7\uri_for($config['base_uri']), $uri); - } - - return $uri->getScheme() === '' && $uri->getHost() !== '' ? $uri->withScheme('http') : $uri; - } - - /** - * Configures the default options for a client. - * - * @param array $config - */ - private function configureDefaults(array $config) - { - $defaults = [ - 'allow_redirects' => RedirectMiddleware::$defaultSettings, - 'http_errors' => true, - 'decode_content' => true, - 'verify' => true, - 'cookies' => false - ]; - - // Use the standard Linux HTTP_PROXY and HTTPS_PROXY if set. - - // We can only trust the HTTP_PROXY environment variable in a CLI - // process due to the fact that PHP has no reliable mechanism to - // get environment variables that start with "HTTP_". - if (php_sapi_name() == 'cli' && getenv('HTTP_PROXY')) { - $defaults['proxy']['http'] = getenv('HTTP_PROXY'); - } - - if ($proxy = getenv('HTTPS_PROXY')) { - $defaults['proxy']['https'] = $proxy; - } - - if ($noProxy = getenv('NO_PROXY')) { - $cleanedNoProxy = str_replace(' ', '', $noProxy); - $defaults['proxy']['no'] = explode(',', $cleanedNoProxy); - } - - $this->config = $config + $defaults; - - if (!empty($config['cookies']) && $config['cookies'] === true) { - $this->config['cookies'] = new CookieJar(); - } - - // Add the default user-agent header. - if (!isset($this->config['headers'])) { - $this->config['headers'] = ['User-Agent' => default_user_agent()]; - } else { - // Add the User-Agent header if one was not already set. - foreach (array_keys($this->config['headers']) as $name) { - if (strtolower($name) === 'user-agent') { - return; - } - } - $this->config['headers']['User-Agent'] = default_user_agent(); - } - } - - /** - * Merges default options into the array. - * - * @param array $options Options to modify by reference - * - * @return array - */ - private function prepareDefaults($options) - { - $defaults = $this->config; - - if (!empty($defaults['headers'])) { - // Default headers are only added if they are not present. - $defaults['_conditional'] = $defaults['headers']; - unset($defaults['headers']); - } - - // Special handling for headers is required as they are added as - // conditional headers and as headers passed to a request ctor. - if (array_key_exists('headers', $options)) { - // Allows default headers to be unset. - if ($options['headers'] === null) { - $defaults['_conditional'] = null; - unset($options['headers']); - } elseif (!is_array($options['headers'])) { - throw new \InvalidArgumentException('headers must be an array'); - } - } - - // Shallow merge defaults underneath options. - $result = $options + $defaults; - - // Remove null values. - foreach ($result as $k => $v) { - if ($v === null) { - unset($result[$k]); - } - } - - return $result; - } - - /** - * Transfers the given request and applies request options. - * - * The URI of the request is not modified and the request options are used - * as-is without merging in default options. - * - * @param RequestInterface $request - * @param array $options - * - * @return Promise\PromiseInterface - */ - private function transfer(RequestInterface $request, array $options) - { - // save_to -> sink - if (isset($options['save_to'])) { - $options['sink'] = $options['save_to']; - unset($options['save_to']); - } - - // exceptions -> http_errors - if (isset($options['exceptions'])) { - $options['http_errors'] = $options['exceptions']; - unset($options['exceptions']); - } - - $request = $this->applyOptions($request, $options); - $handler = $options['handler']; - - try { - return Promise\promise_for($handler($request, $options)); - } catch (\Exception $e) { - return Promise\rejection_for($e); - } - } - - /** - * Applies the array of request options to a request. - * - * @param RequestInterface $request - * @param array $options - * - * @return RequestInterface - */ - private function applyOptions(RequestInterface $request, array &$options) - { - $modify = []; - - if (isset($options['form_params'])) { - if (isset($options['multipart'])) { - throw new \InvalidArgumentException('You cannot use ' - . 'form_params and multipart at the same time. Use the ' - . 'form_params option if you want to send application/' - . 'x-www-form-urlencoded requests, and the multipart ' - . 'option to send multipart/form-data requests.'); - } - $options['body'] = http_build_query($options['form_params'], '', '&'); - unset($options['form_params']); - $options['_conditional']['Content-Type'] = 'application/x-www-form-urlencoded'; - } - - if (isset($options['multipart'])) { - $options['body'] = new Psr7\MultipartStream($options['multipart']); - unset($options['multipart']); - } - - if (isset($options['json'])) { - $options['body'] = \GuzzleHttp\json_encode($options['json']); - unset($options['json']); - $options['_conditional']['Content-Type'] = 'application/json'; - } - - if (!empty($options['decode_content']) - && $options['decode_content'] !== true - ) { - $modify['set_headers']['Accept-Encoding'] = $options['decode_content']; - } - - if (isset($options['headers'])) { - if (isset($modify['set_headers'])) { - $modify['set_headers'] = $options['headers'] + $modify['set_headers']; - } else { - $modify['set_headers'] = $options['headers']; - } - unset($options['headers']); - } - - if (isset($options['body'])) { - if (is_array($options['body'])) { - $this->invalidBody(); - } - $modify['body'] = Psr7\stream_for($options['body']); - unset($options['body']); - } - - if (!empty($options['auth']) && is_array($options['auth'])) { - $value = $options['auth']; - $type = isset($value[2]) ? strtolower($value[2]) : 'basic'; - switch ($type) { - case 'basic': - $modify['set_headers']['Authorization'] = 'Basic ' - . base64_encode("$value[0]:$value[1]"); - break; - case 'digest': - // @todo: Do not rely on curl - $options['curl'][CURLOPT_HTTPAUTH] = CURLAUTH_DIGEST; - $options['curl'][CURLOPT_USERPWD] = "$value[0]:$value[1]"; - break; - case 'ntlm': - $options['curl'][CURLOPT_HTTPAUTH] = CURLAUTH_NTLM; - $options['curl'][CURLOPT_USERPWD] = "$value[0]:$value[1]"; - break; - } - } - - if (isset($options['query'])) { - $value = $options['query']; - if (is_array($value)) { - $value = http_build_query($value, null, '&', PHP_QUERY_RFC3986); - } - if (!is_string($value)) { - throw new \InvalidArgumentException('query must be a string or array'); - } - $modify['query'] = $value; - unset($options['query']); - } - - // Ensure that sink is not an invalid value. - if (isset($options['sink'])) { - // TODO: Add more sink validation? - if (is_bool($options['sink'])) { - throw new \InvalidArgumentException('sink must not be a boolean'); - } - } - - $request = Psr7\modify_request($request, $modify); - if ($request->getBody() instanceof Psr7\MultipartStream) { - // Use a multipart/form-data POST if a Content-Type is not set. - $options['_conditional']['Content-Type'] = 'multipart/form-data; boundary=' - . $request->getBody()->getBoundary(); - } - - // Merge in conditional headers if they are not present. - if (isset($options['_conditional'])) { - // Build up the changes so it's in a single clone of the message. - $modify = []; - foreach ($options['_conditional'] as $k => $v) { - if (!$request->hasHeader($k)) { - $modify['set_headers'][$k] = $v; - } - } - $request = Psr7\modify_request($request, $modify); - // Don't pass this internal value along to middleware/handlers. - unset($options['_conditional']); - } - - return $request; - } - - private function invalidBody() - { - throw new \InvalidArgumentException('Passing in the "body" request ' - . 'option as an array to send a POST request has been deprecated. ' - . 'Please use the "form_params" request option to send a ' - . 'application/x-www-form-urlencoded request, or the "multipart" ' - . 'request option to send a multipart/form-data request.'); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/ClientInterface.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/ClientInterface.php deleted file mode 100644 index 5a67b66..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/ClientInterface.php +++ /dev/null @@ -1,84 +0,0 @@ -strictMode = $strictMode; - - foreach ($cookieArray as $cookie) { - if (!($cookie instanceof SetCookie)) { - $cookie = new SetCookie($cookie); - } - $this->setCookie($cookie); - } - } - - /** - * Create a new Cookie jar from an associative array and domain. - * - * @param array $cookies Cookies to create the jar from - * @param string $domain Domain to set the cookies to - * - * @return self - */ - public static function fromArray(array $cookies, $domain) - { - $cookieJar = new self(); - foreach ($cookies as $name => $value) { - $cookieJar->setCookie(new SetCookie([ - 'Domain' => $domain, - 'Name' => $name, - 'Value' => $value, - 'Discard' => true - ])); - } - - return $cookieJar; - } - - /** - * @deprecated - */ - public static function getCookieValue($value) - { - return $value; - } - - /** - * Evaluate if this cookie should be persisted to storage - * that survives between requests. - * - * @param SetCookie $cookie Being evaluated. - * @param bool $allowSessionCookies If we should persist session cookies - * @return bool - */ - public static function shouldPersist( - SetCookie $cookie, - $allowSessionCookies = false - ) { - if ($cookie->getExpires() || $allowSessionCookies) { - if (!$cookie->getDiscard()) { - return true; - } - } - - return false; - } - - /** - * Finds and returns the cookie based on the name - * - * @param string $name cookie name to search for - * @return SetCookie|null cookie that was found or null if not found - */ - public function getCookieByName($name) - { - // don't allow a null name - if($name === null) { - return null; - } - foreach($this->cookies as $cookie) { - if($cookie->getName() !== null && strcasecmp($cookie->getName(), $name) === 0) { - return $cookie; - } - } - } - - public function toArray() - { - return array_map(function (SetCookie $cookie) { - return $cookie->toArray(); - }, $this->getIterator()->getArrayCopy()); - } - - public function clear($domain = null, $path = null, $name = null) - { - if (!$domain) { - $this->cookies = []; - return; - } elseif (!$path) { - $this->cookies = array_filter( - $this->cookies, - function (SetCookie $cookie) use ($path, $domain) { - return !$cookie->matchesDomain($domain); - } - ); - } elseif (!$name) { - $this->cookies = array_filter( - $this->cookies, - function (SetCookie $cookie) use ($path, $domain) { - return !($cookie->matchesPath($path) && - $cookie->matchesDomain($domain)); - } - ); - } else { - $this->cookies = array_filter( - $this->cookies, - function (SetCookie $cookie) use ($path, $domain, $name) { - return !($cookie->getName() == $name && - $cookie->matchesPath($path) && - $cookie->matchesDomain($domain)); - } - ); - } - } - - public function clearSessionCookies() - { - $this->cookies = array_filter( - $this->cookies, - function (SetCookie $cookie) { - return !$cookie->getDiscard() && $cookie->getExpires(); - } - ); - } - - public function setCookie(SetCookie $cookie) - { - // If the name string is empty (but not 0), ignore the set-cookie - // string entirely. - $name = $cookie->getName(); - if (!$name && $name !== '0') { - return false; - } - - // Only allow cookies with set and valid domain, name, value - $result = $cookie->validate(); - if ($result !== true) { - if ($this->strictMode) { - throw new \RuntimeException('Invalid cookie: ' . $result); - } else { - $this->removeCookieIfEmpty($cookie); - return false; - } - } - - // Resolve conflicts with previously set cookies - foreach ($this->cookies as $i => $c) { - - // Two cookies are identical, when their path, and domain are - // identical. - if ($c->getPath() != $cookie->getPath() || - $c->getDomain() != $cookie->getDomain() || - $c->getName() != $cookie->getName() - ) { - continue; - } - - // The previously set cookie is a discard cookie and this one is - // not so allow the new cookie to be set - if (!$cookie->getDiscard() && $c->getDiscard()) { - unset($this->cookies[$i]); - continue; - } - - // If the new cookie's expiration is further into the future, then - // replace the old cookie - if ($cookie->getExpires() > $c->getExpires()) { - unset($this->cookies[$i]); - continue; - } - - // If the value has changed, we better change it - if ($cookie->getValue() !== $c->getValue()) { - unset($this->cookies[$i]); - continue; - } - - // The cookie exists, so no need to continue - return false; - } - - $this->cookies[] = $cookie; - - return true; - } - - public function count() - { - return count($this->cookies); - } - - public function getIterator() - { - return new \ArrayIterator(array_values($this->cookies)); - } - - public function extractCookies( - RequestInterface $request, - ResponseInterface $response - ) { - if ($cookieHeader = $response->getHeader('Set-Cookie')) { - foreach ($cookieHeader as $cookie) { - $sc = SetCookie::fromString($cookie); - if (!$sc->getDomain()) { - $sc->setDomain($request->getUri()->getHost()); - } - if (0 !== strpos($sc->getPath(), '/')) { - $sc->setPath($this->getCookiePathFromRequest($request)); - } - $this->setCookie($sc); - } - } - } - - /** - * Computes cookie path following RFC 6265 section 5.1.4 - * - * @link https://tools.ietf.org/html/rfc6265#section-5.1.4 - * - * @param RequestInterface $request - * @return string - */ - private function getCookiePathFromRequest(RequestInterface $request) - { - $uriPath = $request->getUri()->getPath(); - if ('' === $uriPath) { - return '/'; - } - if (0 !== strpos($uriPath, '/')) { - return '/'; - } - if ('/' === $uriPath) { - return '/'; - } - if (0 === $lastSlashPos = strrpos($uriPath, '/')) { - return '/'; - } - - return substr($uriPath, 0, $lastSlashPos); - } - - public function withCookieHeader(RequestInterface $request) - { - $values = []; - $uri = $request->getUri(); - $scheme = $uri->getScheme(); - $host = $uri->getHost(); - $path = $uri->getPath() ?: '/'; - - foreach ($this->cookies as $cookie) { - if ($cookie->matchesPath($path) && - $cookie->matchesDomain($host) && - !$cookie->isExpired() && - (!$cookie->getSecure() || $scheme === 'https') - ) { - $values[] = $cookie->getName() . '=' - . $cookie->getValue(); - } - } - - return $values - ? $request->withHeader('Cookie', implode('; ', $values)) - : $request; - } - - /** - * If a cookie already exists and the server asks to set it again with a - * null value, the cookie must be deleted. - * - * @param SetCookie $cookie - */ - private function removeCookieIfEmpty(SetCookie $cookie) - { - $cookieValue = $cookie->getValue(); - if ($cookieValue === null || $cookieValue === '') { - $this->clear( - $cookie->getDomain(), - $cookie->getPath(), - $cookie->getName() - ); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php deleted file mode 100644 index 2cf298a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php +++ /dev/null @@ -1,84 +0,0 @@ -filename = $cookieFile; - $this->storeSessionCookies = $storeSessionCookies; - - if (file_exists($cookieFile)) { - $this->load($cookieFile); - } - } - - /** - * Saves the file when shutting down - */ - public function __destruct() - { - $this->save($this->filename); - } - - /** - * Saves the cookies to a file. - * - * @param string $filename File to save - * @throws \RuntimeException if the file cannot be found or created - */ - public function save($filename) - { - $json = []; - foreach ($this as $cookie) { - /** @var SetCookie $cookie */ - if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { - $json[] = $cookie->toArray(); - } - } - - $jsonStr = \GuzzleHttp\json_encode($json); - if (false === file_put_contents($filename, $jsonStr)) { - throw new \RuntimeException("Unable to save file {$filename}"); - } - } - - /** - * Load cookies from a JSON formatted file. - * - * Old cookies are kept unless overwritten by newly loaded ones. - * - * @param string $filename Cookie file to load. - * @throws \RuntimeException if the file cannot be loaded. - */ - public function load($filename) - { - $json = file_get_contents($filename); - if (false === $json) { - throw new \RuntimeException("Unable to load file {$filename}"); - } elseif ($json === '') { - return; - } - - $data = \GuzzleHttp\json_decode($json, true); - if (is_array($data)) { - foreach (json_decode($json, true) as $cookie) { - $this->setCookie(new SetCookie($cookie)); - } - } elseif (strlen($data)) { - throw new \RuntimeException("Invalid cookie file: {$filename}"); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php deleted file mode 100644 index e4bfafd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php +++ /dev/null @@ -1,71 +0,0 @@ -sessionKey = $sessionKey; - $this->storeSessionCookies = $storeSessionCookies; - $this->load(); - } - - /** - * Saves cookies to session when shutting down - */ - public function __destruct() - { - $this->save(); - } - - /** - * Save cookies to the client session - */ - public function save() - { - $json = []; - foreach ($this as $cookie) { - /** @var SetCookie $cookie */ - if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { - $json[] = $cookie->toArray(); - } - } - - $_SESSION[$this->sessionKey] = json_encode($json); - } - - /** - * Load the contents of the client session into the data array - */ - protected function load() - { - if (!isset($_SESSION[$this->sessionKey])) { - return; - } - $data = json_decode($_SESSION[$this->sessionKey], true); - if (is_array($data)) { - foreach ($data as $cookie) { - $this->setCookie(new SetCookie($cookie)); - } - } elseif (strlen($data)) { - throw new \RuntimeException("Invalid cookie data"); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php deleted file mode 100644 index c911e2a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php +++ /dev/null @@ -1,404 +0,0 @@ - null, - 'Value' => null, - 'Domain' => null, - 'Path' => '/', - 'Max-Age' => null, - 'Expires' => null, - 'Secure' => false, - 'Discard' => false, - 'HttpOnly' => false - ]; - - /** @var array Cookie data */ - private $data; - - /** - * Create a new SetCookie object from a string - * - * @param string $cookie Set-Cookie header string - * - * @return self - */ - public static function fromString($cookie) - { - // Create the default return array - $data = self::$defaults; - // Explode the cookie string using a series of semicolons - $pieces = array_filter(array_map('trim', explode(';', $cookie))); - // The name of the cookie (first kvp) must include an equal sign. - if (empty($pieces) || !strpos($pieces[0], '=')) { - return new self($data); - } - - // Add the cookie pieces into the parsed data array - foreach ($pieces as $part) { - - $cookieParts = explode('=', $part, 2); - $key = trim($cookieParts[0]); - $value = isset($cookieParts[1]) - ? trim($cookieParts[1], " \n\r\t\0\x0B") - : true; - - // Only check for non-cookies when cookies have been found - if (empty($data['Name'])) { - $data['Name'] = $key; - $data['Value'] = $value; - } else { - foreach (array_keys(self::$defaults) as $search) { - if (!strcasecmp($search, $key)) { - $data[$search] = $value; - continue 2; - } - } - $data[$key] = $value; - } - } - - return new self($data); - } - - /** - * @param array $data Array of cookie data provided by a Cookie parser - */ - public function __construct(array $data = []) - { - $this->data = array_replace(self::$defaults, $data); - // Extract the Expires value and turn it into a UNIX timestamp if needed - if (!$this->getExpires() && $this->getMaxAge()) { - // Calculate the Expires date - $this->setExpires(time() + $this->getMaxAge()); - } elseif ($this->getExpires() && !is_numeric($this->getExpires())) { - $this->setExpires($this->getExpires()); - } - } - - public function __toString() - { - $str = $this->data['Name'] . '=' . $this->data['Value'] . '; '; - foreach ($this->data as $k => $v) { - if ($k !== 'Name' && $k !== 'Value' && $v !== null && $v !== false) { - if ($k === 'Expires') { - $str .= 'Expires=' . gmdate('D, d M Y H:i:s \G\M\T', $v) . '; '; - } else { - $str .= ($v === true ? $k : "{$k}={$v}") . '; '; - } - } - } - - return rtrim($str, '; '); - } - - public function toArray() - { - return $this->data; - } - - /** - * Get the cookie name - * - * @return string - */ - public function getName() - { - return $this->data['Name']; - } - - /** - * Set the cookie name - * - * @param string $name Cookie name - */ - public function setName($name) - { - $this->data['Name'] = $name; - } - - /** - * Get the cookie value - * - * @return string - */ - public function getValue() - { - return $this->data['Value']; - } - - /** - * Set the cookie value - * - * @param string $value Cookie value - */ - public function setValue($value) - { - $this->data['Value'] = $value; - } - - /** - * Get the domain - * - * @return string|null - */ - public function getDomain() - { - return $this->data['Domain']; - } - - /** - * Set the domain of the cookie - * - * @param string $domain - */ - public function setDomain($domain) - { - $this->data['Domain'] = $domain; - } - - /** - * Get the path - * - * @return string - */ - public function getPath() - { - return $this->data['Path']; - } - - /** - * Set the path of the cookie - * - * @param string $path Path of the cookie - */ - public function setPath($path) - { - $this->data['Path'] = $path; - } - - /** - * Maximum lifetime of the cookie in seconds - * - * @return int|null - */ - public function getMaxAge() - { - return $this->data['Max-Age']; - } - - /** - * Set the max-age of the cookie - * - * @param int $maxAge Max age of the cookie in seconds - */ - public function setMaxAge($maxAge) - { - $this->data['Max-Age'] = $maxAge; - } - - /** - * The UNIX timestamp when the cookie Expires - * - * @return mixed - */ - public function getExpires() - { - return $this->data['Expires']; - } - - /** - * Set the unix timestamp for which the cookie will expire - * - * @param int $timestamp Unix timestamp - */ - public function setExpires($timestamp) - { - $this->data['Expires'] = is_numeric($timestamp) - ? (int) $timestamp - : strtotime($timestamp); - } - - /** - * Get whether or not this is a secure cookie - * - * @return null|bool - */ - public function getSecure() - { - return $this->data['Secure']; - } - - /** - * Set whether or not the cookie is secure - * - * @param bool $secure Set to true or false if secure - */ - public function setSecure($secure) - { - $this->data['Secure'] = $secure; - } - - /** - * Get whether or not this is a session cookie - * - * @return null|bool - */ - public function getDiscard() - { - return $this->data['Discard']; - } - - /** - * Set whether or not this is a session cookie - * - * @param bool $discard Set to true or false if this is a session cookie - */ - public function setDiscard($discard) - { - $this->data['Discard'] = $discard; - } - - /** - * Get whether or not this is an HTTP only cookie - * - * @return bool - */ - public function getHttpOnly() - { - return $this->data['HttpOnly']; - } - - /** - * Set whether or not this is an HTTP only cookie - * - * @param bool $httpOnly Set to true or false if this is HTTP only - */ - public function setHttpOnly($httpOnly) - { - $this->data['HttpOnly'] = $httpOnly; - } - - /** - * Check if the cookie matches a path value. - * - * A request-path path-matches a given cookie-path if at least one of - * the following conditions holds: - * - * - The cookie-path and the request-path are identical. - * - The cookie-path is a prefix of the request-path, and the last - * character of the cookie-path is %x2F ("/"). - * - The cookie-path is a prefix of the request-path, and the first - * character of the request-path that is not included in the cookie- - * path is a %x2F ("/") character. - * - * @param string $requestPath Path to check against - * - * @return bool - */ - public function matchesPath($requestPath) - { - $cookiePath = $this->getPath(); - - // Match on exact matches or when path is the default empty "/" - if ($cookiePath === '/' || $cookiePath == $requestPath) { - return true; - } - - // Ensure that the cookie-path is a prefix of the request path. - if (0 !== strpos($requestPath, $cookiePath)) { - return false; - } - - // Match if the last character of the cookie-path is "/" - if (substr($cookiePath, -1, 1) === '/') { - return true; - } - - // Match if the first character not included in cookie path is "/" - return substr($requestPath, strlen($cookiePath), 1) === '/'; - } - - /** - * Check if the cookie matches a domain value - * - * @param string $domain Domain to check against - * - * @return bool - */ - public function matchesDomain($domain) - { - // Remove the leading '.' as per spec in RFC 6265. - // http://tools.ietf.org/html/rfc6265#section-5.2.3 - $cookieDomain = ltrim($this->getDomain(), '.'); - - // Domain not set or exact match. - if (!$cookieDomain || !strcasecmp($domain, $cookieDomain)) { - return true; - } - - // Matching the subdomain according to RFC 6265. - // http://tools.ietf.org/html/rfc6265#section-5.1.3 - if (filter_var($domain, FILTER_VALIDATE_IP)) { - return false; - } - - return (bool) preg_match('/\.' . preg_quote($cookieDomain) . '$/', $domain); - } - - /** - * Check if the cookie is expired - * - * @return bool - */ - public function isExpired() - { - return $this->getExpires() && time() > $this->getExpires(); - } - - /** - * Check if the cookie is valid according to RFC 6265 - * - * @return bool|string Returns true if valid or an error message if invalid - */ - public function validate() - { - // Names must not be empty, but can be 0 - $name = $this->getName(); - if (empty($name) && !is_numeric($name)) { - return 'The cookie name must not be empty'; - } - - // Check if any of the invalid characters are present in the cookie name - if (preg_match( - '/[\x00-\x20\x22\x28-\x29\x2c\x2f\x3a-\x40\x5c\x7b\x7d\x7f]/', - $name) - ) { - return 'Cookie name must not contain invalid characters: ASCII ' - . 'Control characters (0-31;127), space, tab and the ' - . 'following characters: ()<>@,;:\"/?={}'; - } - - // Value must not be empty, but can be 0 - $value = $this->getValue(); - if (empty($value) && !is_numeric($value)) { - return 'The cookie value must not be empty'; - } - - // Domains must not be empty, but can be 0 - // A "0" is not a valid internet domain, but may be used as server name - // in a private network. - $domain = $this->getDomain(); - if (empty($domain) && !is_numeric($domain)) { - return 'The cookie domain must not be empty'; - } - - return true; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php deleted file mode 100644 index 427d896..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php +++ /dev/null @@ -1,27 +0,0 @@ -getStatusCode() - : 0; - parent::__construct($message, $code, $previous); - $this->request = $request; - $this->response = $response; - $this->handlerContext = $handlerContext; - } - - /** - * Wrap non-RequestExceptions with a RequestException - * - * @param RequestInterface $request - * @param \Exception $e - * - * @return RequestException - */ - public static function wrapException(RequestInterface $request, \Exception $e) - { - return $e instanceof RequestException - ? $e - : new RequestException($e->getMessage(), $request, null, $e); - } - - /** - * Factory method to create a new exception with a normalized error message - * - * @param RequestInterface $request Request - * @param ResponseInterface $response Response received - * @param \Exception $previous Previous exception - * @param array $ctx Optional handler context. - * - * @return self - */ - public static function create( - RequestInterface $request, - ResponseInterface $response = null, - \Exception $previous = null, - array $ctx = [] - ) { - if (!$response) { - return new self( - 'Error completing request', - $request, - null, - $previous, - $ctx - ); - } - - $level = (int) floor($response->getStatusCode() / 100); - if ($level === 4) { - $label = 'Client error'; - $className = ClientException::class; - } elseif ($level === 5) { - $label = 'Server error'; - $className = ServerException::class; - } else { - $label = 'Unsuccessful request'; - $className = __CLASS__; - } - - $uri = $request->getUri(); - $uri = static::obfuscateUri($uri); - - // Client Error: `GET /` resulted in a `404 Not Found` response: - // ... (truncated) - $message = sprintf( - '%s: `%s %s` resulted in a `%s %s` response', - $label, - $request->getMethod(), - $uri, - $response->getStatusCode(), - $response->getReasonPhrase() - ); - - $summary = static::getResponseBodySummary($response); - - if ($summary !== null) { - $message .= ":\n{$summary}\n"; - } - - return new $className($message, $request, $response, $previous, $ctx); - } - - /** - * Get a short summary of the response - * - * Will return `null` if the response is not printable. - * - * @param ResponseInterface $response - * - * @return string|null - */ - public static function getResponseBodySummary(ResponseInterface $response) - { - $body = $response->getBody(); - - if (!$body->isSeekable()) { - return null; - } - - $size = $body->getSize(); - - if ($size === 0) { - return null; - } - - $summary = $body->read(120); - $body->rewind(); - - if ($size > 120) { - $summary .= ' (truncated...)'; - } - - // Matches any printable character, including unicode characters: - // letters, marks, numbers, punctuation, spacing, and separators. - if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/', $summary)) { - return null; - } - - return $summary; - } - - /** - * Obfuscates URI if there is an username and a password present - * - * @param UriInterface $uri - * - * @return UriInterface - */ - private static function obfuscateUri($uri) - { - $userInfo = $uri->getUserInfo(); - - if (false !== ($pos = strpos($userInfo, ':'))) { - return $uri->withUserInfo(substr($userInfo, 0, $pos), '***'); - } - - return $uri; - } - - /** - * Get the request that caused the exception - * - * @return RequestInterface - */ - public function getRequest() - { - return $this->request; - } - - /** - * Get the associated response - * - * @return ResponseInterface|null - */ - public function getResponse() - { - return $this->response; - } - - /** - * Check if a response was received - * - * @return bool - */ - public function hasResponse() - { - return $this->response !== null; - } - - /** - * Get contextual information about the error from the underlying handler. - * - * The contents of this array will vary depending on which handler you are - * using. It may also be just an empty array. Relying on this data will - * couple you to a specific handler, but can give more debug information - * when needed. - * - * @return array - */ - public function getHandlerContext() - { - return $this->handlerContext; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php deleted file mode 100644 index a77c289..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php +++ /dev/null @@ -1,27 +0,0 @@ -stream = $stream; - $msg = $msg ?: 'Could not seek the stream to position ' . $pos; - parent::__construct($msg); - } - - /** - * @return StreamInterface - */ - public function getStream() - { - return $this->stream; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php deleted file mode 100644 index 7cdd340..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php +++ /dev/null @@ -1,7 +0,0 @@ -maxHandles = $maxHandles; - } - - public function create(RequestInterface $request, array $options) - { - if (isset($options['curl']['body_as_string'])) { - $options['_body_as_string'] = $options['curl']['body_as_string']; - unset($options['curl']['body_as_string']); - } - - $easy = new EasyHandle; - $easy->request = $request; - $easy->options = $options; - $conf = $this->getDefaultConf($easy); - $this->applyMethod($easy, $conf); - $this->applyHandlerOptions($easy, $conf); - $this->applyHeaders($easy, $conf); - unset($conf['_headers']); - - // Add handler options from the request configuration options - if (isset($options['curl'])) { - $conf = array_replace($conf, $options['curl']); - } - - $conf[CURLOPT_HEADERFUNCTION] = $this->createHeaderFn($easy); - $easy->handle = $this->handles - ? array_pop($this->handles) - : curl_init(); - curl_setopt_array($easy->handle, $conf); - - return $easy; - } - - public function release(EasyHandle $easy) - { - $resource = $easy->handle; - unset($easy->handle); - - if (count($this->handles) >= $this->maxHandles) { - curl_close($resource); - } else { - // Remove all callback functions as they can hold onto references - // and are not cleaned up by curl_reset. Using curl_setopt_array - // does not work for some reason, so removing each one - // individually. - curl_setopt($resource, CURLOPT_HEADERFUNCTION, null); - curl_setopt($resource, CURLOPT_READFUNCTION, null); - curl_setopt($resource, CURLOPT_WRITEFUNCTION, null); - curl_setopt($resource, CURLOPT_PROGRESSFUNCTION, null); - curl_reset($resource); - $this->handles[] = $resource; - } - } - - /** - * Completes a cURL transaction, either returning a response promise or a - * rejected promise. - * - * @param callable $handler - * @param EasyHandle $easy - * @param CurlFactoryInterface $factory Dictates how the handle is released - * - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public static function finish( - callable $handler, - EasyHandle $easy, - CurlFactoryInterface $factory - ) { - if (isset($easy->options['on_stats'])) { - self::invokeStats($easy); - } - - if (!$easy->response || $easy->errno) { - return self::finishError($handler, $easy, $factory); - } - - // Return the response if it is present and there is no error. - $factory->release($easy); - - // Rewind the body of the response if possible. - $body = $easy->response->getBody(); - if ($body->isSeekable()) { - $body->rewind(); - } - - return new FulfilledPromise($easy->response); - } - - private static function invokeStats(EasyHandle $easy) - { - $curlStats = curl_getinfo($easy->handle); - $stats = new TransferStats( - $easy->request, - $easy->response, - $curlStats['total_time'], - $easy->errno, - $curlStats - ); - call_user_func($easy->options['on_stats'], $stats); - } - - private static function finishError( - callable $handler, - EasyHandle $easy, - CurlFactoryInterface $factory - ) { - // Get error information and release the handle to the factory. - $ctx = [ - 'errno' => $easy->errno, - 'error' => curl_error($easy->handle), - ] + curl_getinfo($easy->handle); - $factory->release($easy); - - // Retry when nothing is present or when curl failed to rewind. - if (empty($easy->options['_err_message']) - && (!$easy->errno || $easy->errno == 65) - ) { - return self::retryFailedRewind($handler, $easy, $ctx); - } - - return self::createRejection($easy, $ctx); - } - - private static function createRejection(EasyHandle $easy, array $ctx) - { - static $connectionErrors = [ - CURLE_OPERATION_TIMEOUTED => true, - CURLE_COULDNT_RESOLVE_HOST => true, - CURLE_COULDNT_CONNECT => true, - CURLE_SSL_CONNECT_ERROR => true, - CURLE_GOT_NOTHING => true, - ]; - - // If an exception was encountered during the onHeaders event, then - // return a rejected promise that wraps that exception. - if ($easy->onHeadersException) { - return \GuzzleHttp\Promise\rejection_for( - new RequestException( - 'An error was encountered during the on_headers event', - $easy->request, - $easy->response, - $easy->onHeadersException, - $ctx - ) - ); - } - - $message = sprintf( - 'cURL error %s: %s (%s)', - $ctx['errno'], - $ctx['error'], - 'see http://curl.haxx.se/libcurl/c/libcurl-errors.html' - ); - - // Create a connection exception if it was a specific error code. - $error = isset($connectionErrors[$easy->errno]) - ? new ConnectException($message, $easy->request, null, $ctx) - : new RequestException($message, $easy->request, $easy->response, null, $ctx); - - return \GuzzleHttp\Promise\rejection_for($error); - } - - private function getDefaultConf(EasyHandle $easy) - { - $conf = [ - '_headers' => $easy->request->getHeaders(), - CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(), - CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''), - CURLOPT_RETURNTRANSFER => false, - CURLOPT_HEADER => false, - CURLOPT_CONNECTTIMEOUT => 150, - ]; - - if (defined('CURLOPT_PROTOCOLS')) { - $conf[CURLOPT_PROTOCOLS] = CURLPROTO_HTTP | CURLPROTO_HTTPS; - } - - $version = $easy->request->getProtocolVersion(); - if ($version == 1.1) { - $conf[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_1; - } elseif ($version == 2.0) { - $conf[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_2_0; - } else { - $conf[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_0; - } - - return $conf; - } - - private function applyMethod(EasyHandle $easy, array &$conf) - { - $body = $easy->request->getBody(); - $size = $body->getSize(); - - if ($size === null || $size > 0) { - $this->applyBody($easy->request, $easy->options, $conf); - return; - } - - $method = $easy->request->getMethod(); - if ($method === 'PUT' || $method === 'POST') { - // See http://tools.ietf.org/html/rfc7230#section-3.3.2 - if (!$easy->request->hasHeader('Content-Length')) { - $conf[CURLOPT_HTTPHEADER][] = 'Content-Length: 0'; - } - } elseif ($method === 'HEAD') { - $conf[CURLOPT_NOBODY] = true; - unset( - $conf[CURLOPT_WRITEFUNCTION], - $conf[CURLOPT_READFUNCTION], - $conf[CURLOPT_FILE], - $conf[CURLOPT_INFILE] - ); - } - } - - private function applyBody(RequestInterface $request, array $options, array &$conf) - { - $size = $request->hasHeader('Content-Length') - ? (int) $request->getHeaderLine('Content-Length') - : null; - - // Send the body as a string if the size is less than 1MB OR if the - // [curl][body_as_string] request value is set. - if (($size !== null && $size < 1000000) || - !empty($options['_body_as_string']) - ) { - $conf[CURLOPT_POSTFIELDS] = (string) $request->getBody(); - // Don't duplicate the Content-Length header - $this->removeHeader('Content-Length', $conf); - $this->removeHeader('Transfer-Encoding', $conf); - } else { - $conf[CURLOPT_UPLOAD] = true; - if ($size !== null) { - $conf[CURLOPT_INFILESIZE] = $size; - $this->removeHeader('Content-Length', $conf); - } - $body = $request->getBody(); - if ($body->isSeekable()) { - $body->rewind(); - } - $conf[CURLOPT_READFUNCTION] = function ($ch, $fd, $length) use ($body) { - return $body->read($length); - }; - } - - // If the Expect header is not present, prevent curl from adding it - if (!$request->hasHeader('Expect')) { - $conf[CURLOPT_HTTPHEADER][] = 'Expect:'; - } - - // cURL sometimes adds a content-type by default. Prevent this. - if (!$request->hasHeader('Content-Type')) { - $conf[CURLOPT_HTTPHEADER][] = 'Content-Type:'; - } - } - - private function applyHeaders(EasyHandle $easy, array &$conf) - { - foreach ($conf['_headers'] as $name => $values) { - foreach ($values as $value) { - $conf[CURLOPT_HTTPHEADER][] = "$name: $value"; - } - } - - // Remove the Accept header if one was not set - if (!$easy->request->hasHeader('Accept')) { - $conf[CURLOPT_HTTPHEADER][] = 'Accept:'; - } - } - - /** - * Remove a header from the options array. - * - * @param string $name Case-insensitive header to remove - * @param array $options Array of options to modify - */ - private function removeHeader($name, array &$options) - { - foreach (array_keys($options['_headers']) as $key) { - if (!strcasecmp($key, $name)) { - unset($options['_headers'][$key]); - return; - } - } - } - - private function applyHandlerOptions(EasyHandle $easy, array &$conf) - { - $options = $easy->options; - if (isset($options['verify'])) { - if ($options['verify'] === false) { - unset($conf[CURLOPT_CAINFO]); - $conf[CURLOPT_SSL_VERIFYHOST] = 0; - $conf[CURLOPT_SSL_VERIFYPEER] = false; - } else { - $conf[CURLOPT_SSL_VERIFYHOST] = 2; - $conf[CURLOPT_SSL_VERIFYPEER] = true; - if (is_string($options['verify'])) { - // Throw an error if the file/folder/link path is not valid or doesn't exist. - if (!file_exists($options['verify'])) { - throw new \InvalidArgumentException( - "SSL CA bundle not found: {$options['verify']}" - ); - } - // If it's a directory or a link to a directory use CURLOPT_CAPATH. - // If not, it's probably a file, or a link to a file, so use CURLOPT_CAINFO. - if (is_dir($options['verify']) || - (is_link($options['verify']) && is_dir(readlink($options['verify'])))) { - $conf[CURLOPT_CAPATH] = $options['verify']; - } else { - $conf[CURLOPT_CAINFO] = $options['verify']; - } - } - } - } - - if (!empty($options['decode_content'])) { - $accept = $easy->request->getHeaderLine('Accept-Encoding'); - if ($accept) { - $conf[CURLOPT_ENCODING] = $accept; - } else { - $conf[CURLOPT_ENCODING] = ''; - // Don't let curl send the header over the wire - $conf[CURLOPT_HTTPHEADER][] = 'Accept-Encoding:'; - } - } - - if (isset($options['sink'])) { - $sink = $options['sink']; - if (!is_string($sink)) { - $sink = \GuzzleHttp\Psr7\stream_for($sink); - } elseif (!is_dir(dirname($sink))) { - // Ensure that the directory exists before failing in curl. - throw new \RuntimeException(sprintf( - 'Directory %s does not exist for sink value of %s', - dirname($sink), - $sink - )); - } else { - $sink = new LazyOpenStream($sink, 'w+'); - } - $easy->sink = $sink; - $conf[CURLOPT_WRITEFUNCTION] = function ($ch, $write) use ($sink) { - return $sink->write($write); - }; - } else { - // Use a default temp stream if no sink was set. - $conf[CURLOPT_FILE] = fopen('php://temp', 'w+'); - $easy->sink = Psr7\stream_for($conf[CURLOPT_FILE]); - } - $timeoutRequiresNoSignal = false; - if (isset($options['timeout'])) { - $timeoutRequiresNoSignal |= $options['timeout'] < 1; - $conf[CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000; - } - - // CURL default value is CURL_IPRESOLVE_WHATEVER - if (isset($options['force_ip_resolve'])) { - if ('v4' === $options['force_ip_resolve']) { - $conf[CURLOPT_IPRESOLVE] = CURL_IPRESOLVE_V4; - } else if ('v6' === $options['force_ip_resolve']) { - $conf[CURLOPT_IPRESOLVE] = CURL_IPRESOLVE_V6; - } - } - - if (isset($options['connect_timeout'])) { - $timeoutRequiresNoSignal |= $options['connect_timeout'] < 1; - $conf[CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000; - } - - if ($timeoutRequiresNoSignal && strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { - $conf[CURLOPT_NOSIGNAL] = true; - } - - if (isset($options['proxy'])) { - if (!is_array($options['proxy'])) { - $conf[CURLOPT_PROXY] = $options['proxy']; - } else { - $scheme = $easy->request->getUri()->getScheme(); - if (isset($options['proxy'][$scheme])) { - $host = $easy->request->getUri()->getHost(); - if (!isset($options['proxy']['no']) || - !\GuzzleHttp\is_host_in_noproxy($host, $options['proxy']['no']) - ) { - $conf[CURLOPT_PROXY] = $options['proxy'][$scheme]; - } - } - } - } - - if (isset($options['cert'])) { - $cert = $options['cert']; - if (is_array($cert)) { - $conf[CURLOPT_SSLCERTPASSWD] = $cert[1]; - $cert = $cert[0]; - } - if (!file_exists($cert)) { - throw new \InvalidArgumentException( - "SSL certificate not found: {$cert}" - ); - } - $conf[CURLOPT_SSLCERT] = $cert; - } - - if (isset($options['ssl_key'])) { - $sslKey = $options['ssl_key']; - if (is_array($sslKey)) { - $conf[CURLOPT_SSLKEYPASSWD] = $sslKey[1]; - $sslKey = $sslKey[0]; - } - if (!file_exists($sslKey)) { - throw new \InvalidArgumentException( - "SSL private key not found: {$sslKey}" - ); - } - $conf[CURLOPT_SSLKEY] = $sslKey; - } - - if (isset($options['progress'])) { - $progress = $options['progress']; - if (!is_callable($progress)) { - throw new \InvalidArgumentException( - 'progress client option must be callable' - ); - } - $conf[CURLOPT_NOPROGRESS] = false; - $conf[CURLOPT_PROGRESSFUNCTION] = function () use ($progress) { - $args = func_get_args(); - // PHP 5.5 pushed the handle onto the start of the args - if (is_resource($args[0])) { - array_shift($args); - } - call_user_func_array($progress, $args); - }; - } - - if (!empty($options['debug'])) { - $conf[CURLOPT_STDERR] = \GuzzleHttp\debug_resource($options['debug']); - $conf[CURLOPT_VERBOSE] = true; - } - } - - /** - * This function ensures that a response was set on a transaction. If one - * was not set, then the request is retried if possible. This error - * typically means you are sending a payload, curl encountered a - * "Connection died, retrying a fresh connect" error, tried to rewind the - * stream, and then encountered a "necessary data rewind wasn't possible" - * error, causing the request to be sent through curl_multi_info_read() - * without an error status. - */ - private static function retryFailedRewind( - callable $handler, - EasyHandle $easy, - array $ctx - ) { - try { - // Only rewind if the body has been read from. - $body = $easy->request->getBody(); - if ($body->tell() > 0) { - $body->rewind(); - } - } catch (\RuntimeException $e) { - $ctx['error'] = 'The connection unexpectedly failed without ' - . 'providing an error. The request would have been retried, ' - . 'but attempting to rewind the request body failed. ' - . 'Exception: ' . $e; - return self::createRejection($easy, $ctx); - } - - // Retry no more than 3 times before giving up. - if (!isset($easy->options['_curl_retries'])) { - $easy->options['_curl_retries'] = 1; - } elseif ($easy->options['_curl_retries'] == 2) { - $ctx['error'] = 'The cURL request was retried 3 times ' - . 'and did not succeed. The most likely reason for the failure ' - . 'is that cURL was unable to rewind the body of the request ' - . 'and subsequent retries resulted in the same error. Turn on ' - . 'the debug option to see what went wrong. See ' - . 'https://bugs.php.net/bug.php?id=47204 for more information.'; - return self::createRejection($easy, $ctx); - } else { - $easy->options['_curl_retries']++; - } - - return $handler($easy->request, $easy->options); - } - - private function createHeaderFn(EasyHandle $easy) - { - if (isset($easy->options['on_headers'])) { - $onHeaders = $easy->options['on_headers']; - - if (!is_callable($onHeaders)) { - throw new \InvalidArgumentException('on_headers must be callable'); - } - } else { - $onHeaders = null; - } - - return function ($ch, $h) use ( - $onHeaders, - $easy, - &$startingResponse - ) { - $value = trim($h); - if ($value === '') { - $startingResponse = true; - $easy->createResponse(); - if ($onHeaders !== null) { - try { - $onHeaders($easy->response); - } catch (\Exception $e) { - // Associate the exception with the handle and trigger - // a curl header write error by returning 0. - $easy->onHeadersException = $e; - return -1; - } - } - } elseif ($startingResponse) { - $startingResponse = false; - $easy->headers = [$value]; - } else { - $easy->headers[] = $value; - } - return strlen($h); - }; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php deleted file mode 100644 index b0fc236..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php +++ /dev/null @@ -1,27 +0,0 @@ -factory = isset($options['handle_factory']) - ? $options['handle_factory'] - : new CurlFactory(3); - } - - public function __invoke(RequestInterface $request, array $options) - { - if (isset($options['delay'])) { - usleep($options['delay'] * 1000); - } - - $easy = $this->factory->create($request, $options); - curl_exec($easy->handle); - $easy->errno = curl_errno($easy->handle); - - return CurlFactory::finish($this, $easy, $this->factory); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php deleted file mode 100644 index 945d06e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php +++ /dev/null @@ -1,197 +0,0 @@ -factory = isset($options['handle_factory']) - ? $options['handle_factory'] : new CurlFactory(50); - $this->selectTimeout = isset($options['select_timeout']) - ? $options['select_timeout'] : 1; - } - - public function __get($name) - { - if ($name === '_mh') { - return $this->_mh = curl_multi_init(); - } - - throw new \BadMethodCallException(); - } - - public function __destruct() - { - if (isset($this->_mh)) { - curl_multi_close($this->_mh); - unset($this->_mh); - } - } - - public function __invoke(RequestInterface $request, array $options) - { - $easy = $this->factory->create($request, $options); - $id = (int) $easy->handle; - - $promise = new Promise( - [$this, 'execute'], - function () use ($id) { return $this->cancel($id); } - ); - - $this->addRequest(['easy' => $easy, 'deferred' => $promise]); - - return $promise; - } - - /** - * Ticks the curl event loop. - */ - public function tick() - { - // Add any delayed handles if needed. - if ($this->delays) { - $currentTime = microtime(true); - foreach ($this->delays as $id => $delay) { - if ($currentTime >= $delay) { - unset($this->delays[$id]); - curl_multi_add_handle( - $this->_mh, - $this->handles[$id]['easy']->handle - ); - } - } - } - - // Step through the task queue which may add additional requests. - P\queue()->run(); - - if ($this->active && - curl_multi_select($this->_mh, $this->selectTimeout) === -1 - ) { - // Perform a usleep if a select returns -1. - // See: https://bugs.php.net/bug.php?id=61141 - usleep(250); - } - - while (curl_multi_exec($this->_mh, $this->active) === CURLM_CALL_MULTI_PERFORM); - - $this->processMessages(); - } - - /** - * Runs until all outstanding connections have completed. - */ - public function execute() - { - $queue = P\queue(); - - while ($this->handles || !$queue->isEmpty()) { - // If there are no transfers, then sleep for the next delay - if (!$this->active && $this->delays) { - usleep($this->timeToNext()); - } - $this->tick(); - } - } - - private function addRequest(array $entry) - { - $easy = $entry['easy']; - $id = (int) $easy->handle; - $this->handles[$id] = $entry; - if (empty($easy->options['delay'])) { - curl_multi_add_handle($this->_mh, $easy->handle); - } else { - $this->delays[$id] = microtime(true) + ($easy->options['delay'] / 1000); - } - } - - /** - * Cancels a handle from sending and removes references to it. - * - * @param int $id Handle ID to cancel and remove. - * - * @return bool True on success, false on failure. - */ - private function cancel($id) - { - // Cannot cancel if it has been processed. - if (!isset($this->handles[$id])) { - return false; - } - - $handle = $this->handles[$id]['easy']->handle; - unset($this->delays[$id], $this->handles[$id]); - curl_multi_remove_handle($this->_mh, $handle); - curl_close($handle); - - return true; - } - - private function processMessages() - { - while ($done = curl_multi_info_read($this->_mh)) { - $id = (int) $done['handle']; - curl_multi_remove_handle($this->_mh, $done['handle']); - - if (!isset($this->handles[$id])) { - // Probably was cancelled. - continue; - } - - $entry = $this->handles[$id]; - unset($this->handles[$id], $this->delays[$id]); - $entry['easy']->errno = $done['result']; - $entry['deferred']->resolve( - CurlFactory::finish( - $this, - $entry['easy'], - $this->factory - ) - ); - } - } - - private function timeToNext() - { - $currentTime = microtime(true); - $nextTime = PHP_INT_MAX; - foreach ($this->delays as $time) { - if ($time < $nextTime) { - $nextTime = $time; - } - } - - return max(0, $nextTime - $currentTime) * 1000000; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php deleted file mode 100644 index 7754e91..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php +++ /dev/null @@ -1,92 +0,0 @@ -headers)) { - throw new \RuntimeException('No headers have been received'); - } - - // HTTP-version SP status-code SP reason-phrase - $startLine = explode(' ', array_shift($this->headers), 3); - $headers = \GuzzleHttp\headers_from_lines($this->headers); - $normalizedKeys = \GuzzleHttp\normalize_header_keys($headers); - - if (!empty($this->options['decode_content']) - && isset($normalizedKeys['content-encoding']) - ) { - $headers['x-encoded-content-encoding'] - = $headers[$normalizedKeys['content-encoding']]; - unset($headers[$normalizedKeys['content-encoding']]); - if (isset($normalizedKeys['content-length'])) { - $headers['x-encoded-content-length'] - = $headers[$normalizedKeys['content-length']]; - - $bodyLength = (int) $this->sink->getSize(); - if ($bodyLength) { - $headers[$normalizedKeys['content-length']] = $bodyLength; - } else { - unset($headers[$normalizedKeys['content-length']]); - } - } - } - - // Attach a response to the easy handle with the parsed headers. - $this->response = new Response( - $startLine[1], - $headers, - $this->sink, - substr($startLine[0], 5), - isset($startLine[2]) ? (string) $startLine[2] : null - ); - } - - public function __get($name) - { - $msg = $name === 'handle' - ? 'The EasyHandle has been released' - : 'Invalid property: ' . $name; - throw new \BadMethodCallException($msg); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php deleted file mode 100644 index d892061..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php +++ /dev/null @@ -1,189 +0,0 @@ -onFulfilled = $onFulfilled; - $this->onRejected = $onRejected; - - if ($queue) { - call_user_func_array([$this, 'append'], $queue); - } - } - - public function __invoke(RequestInterface $request, array $options) - { - if (!$this->queue) { - throw new \OutOfBoundsException('Mock queue is empty'); - } - - if (isset($options['delay'])) { - usleep($options['delay'] * 1000); - } - - $this->lastRequest = $request; - $this->lastOptions = $options; - $response = array_shift($this->queue); - - if (isset($options['on_headers'])) { - if (!is_callable($options['on_headers'])) { - throw new \InvalidArgumentException('on_headers must be callable'); - } - try { - $options['on_headers']($response); - } catch (\Exception $e) { - $msg = 'An error was encountered during the on_headers event'; - $response = new RequestException($msg, $request, $response, $e); - } - } - - if (is_callable($response)) { - $response = call_user_func($response, $request, $options); - } - - $response = $response instanceof \Exception - ? \GuzzleHttp\Promise\rejection_for($response) - : \GuzzleHttp\Promise\promise_for($response); - - return $response->then( - function ($value) use ($request, $options) { - $this->invokeStats($request, $options, $value); - if ($this->onFulfilled) { - call_user_func($this->onFulfilled, $value); - } - if (isset($options['sink'])) { - $contents = (string) $value->getBody(); - $sink = $options['sink']; - - if (is_resource($sink)) { - fwrite($sink, $contents); - } elseif (is_string($sink)) { - file_put_contents($sink, $contents); - } elseif ($sink instanceof \Psr\Http\Message\StreamInterface) { - $sink->write($contents); - } - } - - return $value; - }, - function ($reason) use ($request, $options) { - $this->invokeStats($request, $options, null, $reason); - if ($this->onRejected) { - call_user_func($this->onRejected, $reason); - } - return \GuzzleHttp\Promise\rejection_for($reason); - } - ); - } - - /** - * Adds one or more variadic requests, exceptions, callables, or promises - * to the queue. - */ - public function append() - { - foreach (func_get_args() as $value) { - if ($value instanceof ResponseInterface - || $value instanceof \Exception - || $value instanceof PromiseInterface - || is_callable($value) - ) { - $this->queue[] = $value; - } else { - throw new \InvalidArgumentException('Expected a response or ' - . 'exception. Found ' . \GuzzleHttp\describe_type($value)); - } - } - } - - /** - * Get the last received request. - * - * @return RequestInterface - */ - public function getLastRequest() - { - return $this->lastRequest; - } - - /** - * Get the last received request options. - * - * @return array - */ - public function getLastOptions() - { - return $this->lastOptions; - } - - /** - * Returns the number of remaining items in the queue. - * - * @return int - */ - public function count() - { - return count($this->queue); - } - - private function invokeStats( - RequestInterface $request, - array $options, - ResponseInterface $response = null, - $reason = null - ) { - if (isset($options['on_stats'])) { - $stats = new TransferStats($request, $response, 0, $reason); - call_user_func($options['on_stats'], $stats); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php deleted file mode 100644 index f8b00be..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php +++ /dev/null @@ -1,55 +0,0 @@ -withoutHeader('Expect'); - - // Append a content-length header if body size is zero to match - // cURL's behavior. - if (0 === $request->getBody()->getSize()) { - $request = $request->withHeader('Content-Length', 0); - } - - return $this->createResponse( - $request, - $options, - $this->createStream($request, $options), - $startTime - ); - } catch (\InvalidArgumentException $e) { - throw $e; - } catch (\Exception $e) { - // Determine if the error was a networking error. - $message = $e->getMessage(); - // This list can probably get more comprehensive. - if (strpos($message, 'getaddrinfo') // DNS lookup failed - || strpos($message, 'Connection refused') - || strpos($message, "couldn't connect to host") // error on HHVM - ) { - $e = new ConnectException($e->getMessage(), $request, $e); - } - $e = RequestException::wrapException($request, $e); - $this->invokeStats($options, $request, $startTime, null, $e); - - return \GuzzleHttp\Promise\rejection_for($e); - } - } - - private function invokeStats( - array $options, - RequestInterface $request, - $startTime, - ResponseInterface $response = null, - $error = null - ) { - if (isset($options['on_stats'])) { - $stats = new TransferStats( - $request, - $response, - microtime(true) - $startTime, - $error, - [] - ); - call_user_func($options['on_stats'], $stats); - } - } - - private function createResponse( - RequestInterface $request, - array $options, - $stream, - $startTime - ) { - $hdrs = $this->lastHeaders; - $this->lastHeaders = []; - $parts = explode(' ', array_shift($hdrs), 3); - $ver = explode('/', $parts[0])[1]; - $status = $parts[1]; - $reason = isset($parts[2]) ? $parts[2] : null; - $headers = \GuzzleHttp\headers_from_lines($hdrs); - list ($stream, $headers) = $this->checkDecode($options, $headers, $stream); - $stream = Psr7\stream_for($stream); - $sink = $stream; - - if (strcasecmp('HEAD', $request->getMethod())) { - $sink = $this->createSink($stream, $options); - } - - $response = new Psr7\Response($status, $headers, $sink, $ver, $reason); - - if (isset($options['on_headers'])) { - try { - $options['on_headers']($response); - } catch (\Exception $e) { - $msg = 'An error was encountered during the on_headers event'; - $ex = new RequestException($msg, $request, $response, $e); - return \GuzzleHttp\Promise\rejection_for($ex); - } - } - - // Do not drain when the request is a HEAD request because they have - // no body. - if ($sink !== $stream) { - $this->drain( - $stream, - $sink, - $response->getHeaderLine('Content-Length') - ); - } - - $this->invokeStats($options, $request, $startTime, $response, null); - - return new FulfilledPromise($response); - } - - private function createSink(StreamInterface $stream, array $options) - { - if (!empty($options['stream'])) { - return $stream; - } - - $sink = isset($options['sink']) - ? $options['sink'] - : fopen('php://temp', 'r+'); - - return is_string($sink) - ? new Psr7\LazyOpenStream($sink, 'w+') - : Psr7\stream_for($sink); - } - - private function checkDecode(array $options, array $headers, $stream) - { - // Automatically decode responses when instructed. - if (!empty($options['decode_content'])) { - $normalizedKeys = \GuzzleHttp\normalize_header_keys($headers); - if (isset($normalizedKeys['content-encoding'])) { - $encoding = $headers[$normalizedKeys['content-encoding']]; - if ($encoding[0] === 'gzip' || $encoding[0] === 'deflate') { - $stream = new Psr7\InflateStream( - Psr7\stream_for($stream) - ); - $headers['x-encoded-content-encoding'] - = $headers[$normalizedKeys['content-encoding']]; - // Remove content-encoding header - unset($headers[$normalizedKeys['content-encoding']]); - // Fix content-length header - if (isset($normalizedKeys['content-length'])) { - $headers['x-encoded-content-length'] - = $headers[$normalizedKeys['content-length']]; - - $length = (int) $stream->getSize(); - if ($length === 0) { - unset($headers[$normalizedKeys['content-length']]); - } else { - $headers[$normalizedKeys['content-length']] = [$length]; - } - } - } - } - } - - return [$stream, $headers]; - } - - /** - * Drains the source stream into the "sink" client option. - * - * @param StreamInterface $source - * @param StreamInterface $sink - * @param string $contentLength Header specifying the amount of - * data to read. - * - * @return StreamInterface - * @throws \RuntimeException when the sink option is invalid. - */ - private function drain( - StreamInterface $source, - StreamInterface $sink, - $contentLength - ) { - // If a content-length header is provided, then stop reading once - // that number of bytes has been read. This can prevent infinitely - // reading from a stream when dealing with servers that do not honor - // Connection: Close headers. - Psr7\copy_to_stream( - $source, - $sink, - (strlen($contentLength) > 0 && (int) $contentLength > 0) ? (int) $contentLength : -1 - ); - - $sink->seek(0); - $source->close(); - - return $sink; - } - - /** - * Create a resource and check to ensure it was created successfully - * - * @param callable $callback Callable that returns stream resource - * - * @return resource - * @throws \RuntimeException on error - */ - private function createResource(callable $callback) - { - $errors = null; - set_error_handler(function ($_, $msg, $file, $line) use (&$errors) { - $errors[] = [ - 'message' => $msg, - 'file' => $file, - 'line' => $line - ]; - return true; - }); - - $resource = $callback(); - restore_error_handler(); - - if (!$resource) { - $message = 'Error creating resource: '; - foreach ($errors as $err) { - foreach ($err as $key => $value) { - $message .= "[$key] $value" . PHP_EOL; - } - } - throw new \RuntimeException(trim($message)); - } - - return $resource; - } - - private function createStream(RequestInterface $request, array $options) - { - static $methods; - if (!$methods) { - $methods = array_flip(get_class_methods(__CLASS__)); - } - - // HTTP/1.1 streams using the PHP stream wrapper require a - // Connection: close header - if ($request->getProtocolVersion() == '1.1' - && !$request->hasHeader('Connection') - ) { - $request = $request->withHeader('Connection', 'close'); - } - - // Ensure SSL is verified by default - if (!isset($options['verify'])) { - $options['verify'] = true; - } - - $params = []; - $context = $this->getDefaultContext($request, $options); - - if (isset($options['on_headers']) && !is_callable($options['on_headers'])) { - throw new \InvalidArgumentException('on_headers must be callable'); - } - - if (!empty($options)) { - foreach ($options as $key => $value) { - $method = "add_{$key}"; - if (isset($methods[$method])) { - $this->{$method}($request, $context, $value, $params); - } - } - } - - if (isset($options['stream_context'])) { - if (!is_array($options['stream_context'])) { - throw new \InvalidArgumentException('stream_context must be an array'); - } - $context = array_replace_recursive( - $context, - $options['stream_context'] - ); - } - - // Microsoft NTLM authentication only supported with curl handler - if (isset($options['auth']) - && is_array($options['auth']) - && isset($options['auth'][2]) - && 'ntlm' == $options['auth'][2] - ) { - - throw new \InvalidArgumentException('Microsoft NTLM authentication only supported with curl handler'); - } - - $uri = $this->resolveHost($request, $options); - - $context = $this->createResource( - function () use ($context, $params) { - return stream_context_create($context, $params); - } - ); - - return $this->createResource( - function () use ($uri, &$http_response_header, $context, $options) { - $resource = fopen((string) $uri, 'r', null, $context); - $this->lastHeaders = $http_response_header; - - if (isset($options['read_timeout'])) { - $readTimeout = $options['read_timeout']; - $sec = (int) $readTimeout; - $usec = ($readTimeout - $sec) * 100000; - stream_set_timeout($resource, $sec, $usec); - } - - return $resource; - } - ); - } - - private function resolveHost(RequestInterface $request, array $options) - { - $uri = $request->getUri(); - - if (isset($options['force_ip_resolve']) && !filter_var($uri->getHost(), FILTER_VALIDATE_IP)) { - if ('v4' === $options['force_ip_resolve']) { - $records = dns_get_record($uri->getHost(), DNS_A); - if (!isset($records[0]['ip'])) { - throw new ConnectException(sprintf("Could not resolve IPv4 address for host '%s'", $uri->getHost()), $request); - } - $uri = $uri->withHost($records[0]['ip']); - } elseif ('v6' === $options['force_ip_resolve']) { - $records = dns_get_record($uri->getHost(), DNS_AAAA); - if (!isset($records[0]['ipv6'])) { - throw new ConnectException(sprintf("Could not resolve IPv6 address for host '%s'", $uri->getHost()), $request); - } - $uri = $uri->withHost('[' . $records[0]['ipv6'] . ']'); - } - } - - return $uri; - } - - private function getDefaultContext(RequestInterface $request) - { - $headers = ''; - foreach ($request->getHeaders() as $name => $value) { - foreach ($value as $val) { - $headers .= "$name: $val\r\n"; - } - } - - $context = [ - 'http' => [ - 'method' => $request->getMethod(), - 'header' => $headers, - 'protocol_version' => $request->getProtocolVersion(), - 'ignore_errors' => true, - 'follow_location' => 0, - ], - ]; - - $body = (string) $request->getBody(); - - if (!empty($body)) { - $context['http']['content'] = $body; - // Prevent the HTTP handler from adding a Content-Type header. - if (!$request->hasHeader('Content-Type')) { - $context['http']['header'] .= "Content-Type:\r\n"; - } - } - - $context['http']['header'] = rtrim($context['http']['header']); - - return $context; - } - - private function add_proxy(RequestInterface $request, &$options, $value, &$params) - { - if (!is_array($value)) { - $options['http']['proxy'] = $value; - } else { - $scheme = $request->getUri()->getScheme(); - if (isset($value[$scheme])) { - if (!isset($value['no']) - || !\GuzzleHttp\is_host_in_noproxy( - $request->getUri()->getHost(), - $value['no'] - ) - ) { - $options['http']['proxy'] = $value[$scheme]; - } - } - } - } - - private function add_timeout(RequestInterface $request, &$options, $value, &$params) - { - if ($value > 0) { - $options['http']['timeout'] = $value; - } - } - - private function add_verify(RequestInterface $request, &$options, $value, &$params) - { - if ($value === true) { - // PHP 5.6 or greater will find the system cert by default. When - // < 5.6, use the Guzzle bundled cacert. - if (PHP_VERSION_ID < 50600) { - $options['ssl']['cafile'] = \GuzzleHttp\default_ca_bundle(); - } - } elseif (is_string($value)) { - $options['ssl']['cafile'] = $value; - if (!file_exists($value)) { - throw new \RuntimeException("SSL CA bundle not found: $value"); - } - } elseif ($value === false) { - $options['ssl']['verify_peer'] = false; - $options['ssl']['verify_peer_name'] = false; - return; - } else { - throw new \InvalidArgumentException('Invalid verify request option'); - } - - $options['ssl']['verify_peer'] = true; - $options['ssl']['verify_peer_name'] = true; - $options['ssl']['allow_self_signed'] = false; - } - - private function add_cert(RequestInterface $request, &$options, $value, &$params) - { - if (is_array($value)) { - $options['ssl']['passphrase'] = $value[1]; - $value = $value[0]; - } - - if (!file_exists($value)) { - throw new \RuntimeException("SSL certificate not found: {$value}"); - } - - $options['ssl']['local_cert'] = $value; - } - - private function add_progress(RequestInterface $request, &$options, $value, &$params) - { - $this->addNotification( - $params, - function ($code, $a, $b, $c, $transferred, $total) use ($value) { - if ($code == STREAM_NOTIFY_PROGRESS) { - $value($total, $transferred, null, null); - } - } - ); - } - - private function add_debug(RequestInterface $request, &$options, $value, &$params) - { - if ($value === false) { - return; - } - - static $map = [ - STREAM_NOTIFY_CONNECT => 'CONNECT', - STREAM_NOTIFY_AUTH_REQUIRED => 'AUTH_REQUIRED', - STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT', - STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS', - STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS', - STREAM_NOTIFY_REDIRECTED => 'REDIRECTED', - STREAM_NOTIFY_PROGRESS => 'PROGRESS', - STREAM_NOTIFY_FAILURE => 'FAILURE', - STREAM_NOTIFY_COMPLETED => 'COMPLETED', - STREAM_NOTIFY_RESOLVE => 'RESOLVE', - ]; - static $args = ['severity', 'message', 'message_code', - 'bytes_transferred', 'bytes_max']; - - $value = \GuzzleHttp\debug_resource($value); - $ident = $request->getMethod() . ' ' . $request->getUri()->withFragment(''); - $this->addNotification( - $params, - function () use ($ident, $value, $map, $args) { - $passed = func_get_args(); - $code = array_shift($passed); - fprintf($value, '<%s> [%s] ', $ident, $map[$code]); - foreach (array_filter($passed) as $i => $v) { - fwrite($value, $args[$i] . ': "' . $v . '" '); - } - fwrite($value, "\n"); - } - ); - } - - private function addNotification(array &$params, callable $notify) - { - // Wrap the existing function if needed. - if (!isset($params['notification'])) { - $params['notification'] = $notify; - } else { - $params['notification'] = $this->callArray([ - $params['notification'], - $notify - ]); - } - } - - private function callArray(array $functions) - { - return function () use ($functions) { - $args = func_get_args(); - foreach ($functions as $fn) { - call_user_func_array($fn, $args); - } - }; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/HandlerStack.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/HandlerStack.php deleted file mode 100644 index a72e38a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/HandlerStack.php +++ /dev/null @@ -1,273 +0,0 @@ -push(Middleware::httpErrors(), 'http_errors'); - $stack->push(Middleware::redirect(), 'allow_redirects'); - $stack->push(Middleware::cookies(), 'cookies'); - $stack->push(Middleware::prepareBody(), 'prepare_body'); - - return $stack; - } - - /** - * @param callable $handler Underlying HTTP handler. - */ - public function __construct(callable $handler = null) - { - $this->handler = $handler; - } - - /** - * Invokes the handler stack as a composed handler - * - * @param RequestInterface $request - * @param array $options - */ - public function __invoke(RequestInterface $request, array $options) - { - $handler = $this->resolve(); - - return $handler($request, $options); - } - - /** - * Dumps a string representation of the stack. - * - * @return string - */ - public function __toString() - { - $depth = 0; - $stack = []; - if ($this->handler) { - $stack[] = "0) Handler: " . $this->debugCallable($this->handler); - } - - $result = ''; - foreach (array_reverse($this->stack) as $tuple) { - $depth++; - $str = "{$depth}) Name: '{$tuple[1]}', "; - $str .= "Function: " . $this->debugCallable($tuple[0]); - $result = "> {$str}\n{$result}"; - $stack[] = $str; - } - - foreach (array_keys($stack) as $k) { - $result .= "< {$stack[$k]}\n"; - } - - return $result; - } - - /** - * Set the HTTP handler that actually returns a promise. - * - * @param callable $handler Accepts a request and array of options and - * returns a Promise. - */ - public function setHandler(callable $handler) - { - $this->handler = $handler; - $this->cached = null; - } - - /** - * Returns true if the builder has a handler. - * - * @return bool - */ - public function hasHandler() - { - return (bool) $this->handler; - } - - /** - * Unshift a middleware to the bottom of the stack. - * - * @param callable $middleware Middleware function - * @param string $name Name to register for this middleware. - */ - public function unshift(callable $middleware, $name = null) - { - array_unshift($this->stack, [$middleware, $name]); - $this->cached = null; - } - - /** - * Push a middleware to the top of the stack. - * - * @param callable $middleware Middleware function - * @param string $name Name to register for this middleware. - */ - public function push(callable $middleware, $name = '') - { - $this->stack[] = [$middleware, $name]; - $this->cached = null; - } - - /** - * Add a middleware before another middleware by name. - * - * @param string $findName Middleware to find - * @param callable $middleware Middleware function - * @param string $withName Name to register for this middleware. - */ - public function before($findName, callable $middleware, $withName = '') - { - $this->splice($findName, $withName, $middleware, true); - } - - /** - * Add a middleware after another middleware by name. - * - * @param string $findName Middleware to find - * @param callable $middleware Middleware function - * @param string $withName Name to register for this middleware. - */ - public function after($findName, callable $middleware, $withName = '') - { - $this->splice($findName, $withName, $middleware, false); - } - - /** - * Remove a middleware by instance or name from the stack. - * - * @param callable|string $remove Middleware to remove by instance or name. - */ - public function remove($remove) - { - $this->cached = null; - $idx = is_callable($remove) ? 0 : 1; - $this->stack = array_values(array_filter( - $this->stack, - function ($tuple) use ($idx, $remove) { - return $tuple[$idx] !== $remove; - } - )); - } - - /** - * Compose the middleware and handler into a single callable function. - * - * @return callable - */ - public function resolve() - { - if (!$this->cached) { - if (!($prev = $this->handler)) { - throw new \LogicException('No handler has been specified'); - } - - foreach (array_reverse($this->stack) as $fn) { - $prev = $fn[0]($prev); - } - - $this->cached = $prev; - } - - return $this->cached; - } - - /** - * @param $name - * @return int - */ - private function findByName($name) - { - foreach ($this->stack as $k => $v) { - if ($v[1] === $name) { - return $k; - } - } - - throw new \InvalidArgumentException("Middleware not found: $name"); - } - - /** - * Splices a function into the middleware list at a specific position. - * - * @param $findName - * @param $withName - * @param callable $middleware - * @param $before - */ - private function splice($findName, $withName, callable $middleware, $before) - { - $this->cached = null; - $idx = $this->findByName($findName); - $tuple = [$middleware, $withName]; - - if ($before) { - if ($idx === 0) { - array_unshift($this->stack, $tuple); - } else { - $replacement = [$tuple, $this->stack[$idx]]; - array_splice($this->stack, $idx, 1, $replacement); - } - } elseif ($idx === count($this->stack) - 1) { - $this->stack[] = $tuple; - } else { - $replacement = [$this->stack[$idx], $tuple]; - array_splice($this->stack, $idx, 1, $replacement); - } - } - - /** - * Provides a debug string for a given callable. - * - * @param array|callable $fn Function to write as a string. - * - * @return string - */ - private function debugCallable($fn) - { - if (is_string($fn)) { - return "callable({$fn})"; - } - - if (is_array($fn)) { - return is_string($fn[0]) - ? "callable({$fn[0]}::{$fn[1]})" - : "callable(['" . get_class($fn[0]) . "', '{$fn[1]}'])"; - } - - return 'callable(' . spl_object_hash($fn) . ')'; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/MessageFormatter.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/MessageFormatter.php deleted file mode 100644 index 6b090a9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/MessageFormatter.php +++ /dev/null @@ -1,182 +0,0 @@ ->>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"; - const SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}'; - - /** @var string Template used to format log messages */ - private $template; - - /** - * @param string $template Log message template - */ - public function __construct($template = self::CLF) - { - $this->template = $template ?: self::CLF; - } - - /** - * Returns a formatted message string. - * - * @param RequestInterface $request Request that was sent - * @param ResponseInterface $response Response that was received - * @param \Exception $error Exception that was received - * - * @return string - */ - public function format( - RequestInterface $request, - ResponseInterface $response = null, - \Exception $error = null - ) { - $cache = []; - - return preg_replace_callback( - '/{\s*([A-Za-z_\-\.0-9]+)\s*}/', - function (array $matches) use ($request, $response, $error, &$cache) { - - if (isset($cache[$matches[1]])) { - return $cache[$matches[1]]; - } - - $result = ''; - switch ($matches[1]) { - case 'request': - $result = Psr7\str($request); - break; - case 'response': - $result = $response ? Psr7\str($response) : ''; - break; - case 'req_headers': - $result = trim($request->getMethod() - . ' ' . $request->getRequestTarget()) - . ' HTTP/' . $request->getProtocolVersion() . "\r\n" - . $this->headers($request); - break; - case 'res_headers': - $result = $response ? - sprintf( - 'HTTP/%s %d %s', - $response->getProtocolVersion(), - $response->getStatusCode(), - $response->getReasonPhrase() - ) . "\r\n" . $this->headers($response) - : 'NULL'; - break; - case 'req_body': - $result = $request->getBody(); - break; - case 'res_body': - $result = $response ? $response->getBody() : 'NULL'; - break; - case 'ts': - case 'date_iso_8601': - $result = gmdate('c'); - break; - case 'date_common_log': - $result = date('d/M/Y:H:i:s O'); - break; - case 'method': - $result = $request->getMethod(); - break; - case 'version': - $result = $request->getProtocolVersion(); - break; - case 'uri': - case 'url': - $result = $request->getUri(); - break; - case 'target': - $result = $request->getRequestTarget(); - break; - case 'req_version': - $result = $request->getProtocolVersion(); - break; - case 'res_version': - $result = $response - ? $response->getProtocolVersion() - : 'NULL'; - break; - case 'host': - $result = $request->getHeaderLine('Host'); - break; - case 'hostname': - $result = gethostname(); - break; - case 'code': - $result = $response ? $response->getStatusCode() : 'NULL'; - break; - case 'phrase': - $result = $response ? $response->getReasonPhrase() : 'NULL'; - break; - case 'error': - $result = $error ? $error->getMessage() : 'NULL'; - break; - default: - // handle prefixed dynamic headers - if (strpos($matches[1], 'req_header_') === 0) { - $result = $request->getHeaderLine(substr($matches[1], 11)); - } elseif (strpos($matches[1], 'res_header_') === 0) { - $result = $response - ? $response->getHeaderLine(substr($matches[1], 11)) - : 'NULL'; - } - } - - $cache[$matches[1]] = $result; - return $result; - }, - $this->template - ); - } - - private function headers(MessageInterface $message) - { - $result = ''; - foreach ($message->getHeaders() as $name => $values) { - $result .= $name . ': ' . implode(', ', $values) . "\r\n"; - } - - return trim($result); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Middleware.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Middleware.php deleted file mode 100644 index 9d79bd2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Middleware.php +++ /dev/null @@ -1,254 +0,0 @@ -withCookieHeader($request); - return $handler($request, $options) - ->then(function ($response) use ($cookieJar, $request) { - $cookieJar->extractCookies($request, $response); - return $response; - } - ); - }; - }; - } - - /** - * Middleware that throws exceptions for 4xx or 5xx responses when the - * "http_error" request option is set to true. - * - * @return callable Returns a function that accepts the next handler. - */ - public static function httpErrors() - { - return function (callable $handler) { - return function ($request, array $options) use ($handler) { - if (empty($options['http_errors'])) { - return $handler($request, $options); - } - return $handler($request, $options)->then( - function (ResponseInterface $response) use ($request, $handler) { - $code = $response->getStatusCode(); - if ($code < 400) { - return $response; - } - throw RequestException::create($request, $response); - } - ); - }; - }; - } - - /** - * Middleware that pushes history data to an ArrayAccess container. - * - * @param array $container Container to hold the history (by reference). - * - * @return callable Returns a function that accepts the next handler. - * @throws \InvalidArgumentException if container is not an array or ArrayAccess. - */ - public static function history(&$container) - { - if (!is_array($container) && !$container instanceof \ArrayAccess) { - throw new \InvalidArgumentException('history container must be an array or object implementing ArrayAccess'); - } - - return function (callable $handler) use (&$container) { - return function ($request, array $options) use ($handler, &$container) { - return $handler($request, $options)->then( - function ($value) use ($request, &$container, $options) { - $container[] = [ - 'request' => $request, - 'response' => $value, - 'error' => null, - 'options' => $options - ]; - return $value; - }, - function ($reason) use ($request, &$container, $options) { - $container[] = [ - 'request' => $request, - 'response' => null, - 'error' => $reason, - 'options' => $options - ]; - return \GuzzleHttp\Promise\rejection_for($reason); - } - ); - }; - }; - } - - /** - * Middleware that invokes a callback before and after sending a request. - * - * The provided listener cannot modify or alter the response. It simply - * "taps" into the chain to be notified before returning the promise. The - * before listener accepts a request and options array, and the after - * listener accepts a request, options array, and response promise. - * - * @param callable $before Function to invoke before forwarding the request. - * @param callable $after Function invoked after forwarding. - * - * @return callable Returns a function that accepts the next handler. - */ - public static function tap(callable $before = null, callable $after = null) - { - return function (callable $handler) use ($before, $after) { - return function ($request, array $options) use ($handler, $before, $after) { - if ($before) { - $before($request, $options); - } - $response = $handler($request, $options); - if ($after) { - $after($request, $options, $response); - } - return $response; - }; - }; - } - - /** - * Middleware that handles request redirects. - * - * @return callable Returns a function that accepts the next handler. - */ - public static function redirect() - { - return function (callable $handler) { - return new RedirectMiddleware($handler); - }; - } - - /** - * Middleware that retries requests based on the boolean result of - * invoking the provided "decider" function. - * - * If no delay function is provided, a simple implementation of exponential - * backoff will be utilized. - * - * @param callable $decider Function that accepts the number of retries, - * a request, [response], and [exception] and - * returns true if the request is to be retried. - * @param callable $delay Function that accepts the number of retries and - * returns the number of milliseconds to delay. - * - * @return callable Returns a function that accepts the next handler. - */ - public static function retry(callable $decider, callable $delay = null) - { - return function (callable $handler) use ($decider, $delay) { - return new RetryMiddleware($decider, $handler, $delay); - }; - } - - /** - * Middleware that logs requests, responses, and errors using a message - * formatter. - * - * @param LoggerInterface $logger Logs messages. - * @param MessageFormatter $formatter Formatter used to create message strings. - * @param string $logLevel Level at which to log requests. - * - * @return callable Returns a function that accepts the next handler. - */ - public static function log(LoggerInterface $logger, MessageFormatter $formatter, $logLevel = LogLevel::INFO) - { - return function (callable $handler) use ($logger, $formatter, $logLevel) { - return function ($request, array $options) use ($handler, $logger, $formatter, $logLevel) { - return $handler($request, $options)->then( - function ($response) use ($logger, $request, $formatter, $logLevel) { - $message = $formatter->format($request, $response); - $logger->log($logLevel, $message); - return $response; - }, - function ($reason) use ($logger, $request, $formatter) { - $response = $reason instanceof RequestException - ? $reason->getResponse() - : null; - $message = $formatter->format($request, $response, $reason); - $logger->notice($message); - return \GuzzleHttp\Promise\rejection_for($reason); - } - ); - }; - }; - } - - /** - * This middleware adds a default content-type if possible, a default - * content-length or transfer-encoding header, and the expect header. - * - * @return callable - */ - public static function prepareBody() - { - return function (callable $handler) { - return new PrepareBodyMiddleware($handler); - }; - } - - /** - * Middleware that applies a map function to the request before passing to - * the next handler. - * - * @param callable $fn Function that accepts a RequestInterface and returns - * a RequestInterface. - * @return callable - */ - public static function mapRequest(callable $fn) - { - return function (callable $handler) use ($fn) { - return function ($request, array $options) use ($handler, $fn) { - return $handler($fn($request), $options); - }; - }; - } - - /** - * Middleware that applies a map function to the resolved promise's - * response. - * - * @param callable $fn Function that accepts a ResponseInterface and - * returns a ResponseInterface. - * @return callable - */ - public static function mapResponse(callable $fn) - { - return function (callable $handler) use ($fn) { - return function ($request, array $options) use ($handler, $fn) { - return $handler($request, $options)->then($fn); - }; - }; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Pool.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Pool.php deleted file mode 100644 index 8f1be33..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/Pool.php +++ /dev/null @@ -1,123 +0,0 @@ - $rfn) { - if ($rfn instanceof RequestInterface) { - yield $key => $client->sendAsync($rfn, $opts); - } elseif (is_callable($rfn)) { - yield $key => $rfn($opts); - } else { - throw new \InvalidArgumentException('Each value yielded by ' - . 'the iterator must be a Psr7\Http\Message\RequestInterface ' - . 'or a callable that returns a promise that fulfills ' - . 'with a Psr7\Message\Http\ResponseInterface object.'); - } - } - }; - - $this->each = new EachPromise($requests(), $config); - } - - public function promise() - { - return $this->each->promise(); - } - - /** - * Sends multiple requests concurrently and returns an array of responses - * and exceptions that uses the same ordering as the provided requests. - * - * IMPORTANT: This method keeps every request and response in memory, and - * as such, is NOT recommended when sending a large number or an - * indeterminate number of requests concurrently. - * - * @param ClientInterface $client Client used to send the requests - * @param array|\Iterator $requests Requests to send concurrently. - * @param array $options Passes through the options available in - * {@see GuzzleHttp\Pool::__construct} - * - * @return array Returns an array containing the response or an exception - * in the same order that the requests were sent. - * @throws \InvalidArgumentException if the event format is incorrect. - */ - public static function batch( - ClientInterface $client, - $requests, - array $options = [] - ) { - $res = []; - self::cmpCallback($options, 'fulfilled', $res); - self::cmpCallback($options, 'rejected', $res); - $pool = new static($client, $requests, $options); - $pool->promise()->wait(); - ksort($res); - - return $res; - } - - private static function cmpCallback(array &$options, $name, array &$results) - { - if (!isset($options[$name])) { - $options[$name] = function ($v, $k) use (&$results) { - $results[$k] = $v; - }; - } else { - $currentFn = $options[$name]; - $options[$name] = function ($v, $k) use (&$results, $currentFn) { - $currentFn($v, $k); - $results[$k] = $v; - }; - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php deleted file mode 100644 index 2eb95f9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php +++ /dev/null @@ -1,106 +0,0 @@ -nextHandler = $nextHandler; - } - - /** - * @param RequestInterface $request - * @param array $options - * - * @return PromiseInterface - */ - public function __invoke(RequestInterface $request, array $options) - { - $fn = $this->nextHandler; - - // Don't do anything if the request has no body. - if ($request->getBody()->getSize() === 0) { - return $fn($request, $options); - } - - $modify = []; - - // Add a default content-type if possible. - if (!$request->hasHeader('Content-Type')) { - if ($uri = $request->getBody()->getMetadata('uri')) { - if ($type = Psr7\mimetype_from_filename($uri)) { - $modify['set_headers']['Content-Type'] = $type; - } - } - } - - // Add a default content-length or transfer-encoding header. - if (!$request->hasHeader('Content-Length') - && !$request->hasHeader('Transfer-Encoding') - ) { - $size = $request->getBody()->getSize(); - if ($size !== null) { - $modify['set_headers']['Content-Length'] = $size; - } else { - $modify['set_headers']['Transfer-Encoding'] = 'chunked'; - } - } - - // Add the expect header if needed. - $this->addExpectHeader($request, $options, $modify); - - return $fn(Psr7\modify_request($request, $modify), $options); - } - - private function addExpectHeader( - RequestInterface $request, - array $options, - array &$modify - ) { - // Determine if the Expect header should be used - if ($request->hasHeader('Expect')) { - return; - } - - $expect = isset($options['expect']) ? $options['expect'] : null; - - // Return if disabled or if you're not using HTTP/1.1 or HTTP/2.0 - if ($expect === false || $request->getProtocolVersion() < 1.1) { - return; - } - - // The expect header is unconditionally enabled - if ($expect === true) { - $modify['set_headers']['Expect'] = '100-Continue'; - return; - } - - // By default, send the expect header when the payload is > 1mb - if ($expect === null) { - $expect = 1048576; - } - - // Always add if the body cannot be rewound, the size cannot be - // determined, or the size is greater than the cutoff threshold - $body = $request->getBody(); - $size = $body->getSize(); - - if ($size === null || $size >= (int) $expect || !$body->isSeekable()) { - $modify['set_headers']['Expect'] = '100-Continue'; - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php deleted file mode 100644 index 131b771..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php +++ /dev/null @@ -1,237 +0,0 @@ - 5, - 'protocols' => ['http', 'https'], - 'strict' => false, - 'referer' => false, - 'track_redirects' => false, - ]; - - /** @var callable */ - private $nextHandler; - - /** - * @param callable $nextHandler Next handler to invoke. - */ - public function __construct(callable $nextHandler) - { - $this->nextHandler = $nextHandler; - } - - /** - * @param RequestInterface $request - * @param array $options - * - * @return PromiseInterface - */ - public function __invoke(RequestInterface $request, array $options) - { - $fn = $this->nextHandler; - - if (empty($options['allow_redirects'])) { - return $fn($request, $options); - } - - if ($options['allow_redirects'] === true) { - $options['allow_redirects'] = self::$defaultSettings; - } elseif (!is_array($options['allow_redirects'])) { - throw new \InvalidArgumentException('allow_redirects must be true, false, or array'); - } else { - // Merge the default settings with the provided settings - $options['allow_redirects'] += self::$defaultSettings; - } - - if (empty($options['allow_redirects']['max'])) { - return $fn($request, $options); - } - - return $fn($request, $options) - ->then(function (ResponseInterface $response) use ($request, $options) { - return $this->checkRedirect($request, $options, $response); - }); - } - - /** - * @param RequestInterface $request - * @param array $options - * @param ResponseInterface|PromiseInterface $response - * - * @return ResponseInterface|PromiseInterface - */ - public function checkRedirect( - RequestInterface $request, - array $options, - ResponseInterface $response - ) { - if (substr($response->getStatusCode(), 0, 1) != '3' - || !$response->hasHeader('Location') - ) { - return $response; - } - - $this->guardMax($request, $options); - $nextRequest = $this->modifyRequest($request, $options, $response); - - if (isset($options['allow_redirects']['on_redirect'])) { - call_user_func( - $options['allow_redirects']['on_redirect'], - $request, - $response, - $nextRequest->getUri() - ); - } - - /** @var PromiseInterface|ResponseInterface $promise */ - $promise = $this($nextRequest, $options); - - // Add headers to be able to track history of redirects. - if (!empty($options['allow_redirects']['track_redirects'])) { - return $this->withTracking( - $promise, - (string) $nextRequest->getUri(), - $response->getStatusCode() - ); - } - - return $promise; - } - - private function withTracking(PromiseInterface $promise, $uri, $statusCode) - { - return $promise->then( - function (ResponseInterface $response) use ($uri, $statusCode) { - // Note that we are pushing to the front of the list as this - // would be an earlier response than what is currently present - // in the history header. - $historyHeader = $response->getHeader(self::HISTORY_HEADER); - $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER); - array_unshift($historyHeader, $uri); - array_unshift($statusHeader, $statusCode); - return $response->withHeader(self::HISTORY_HEADER, $historyHeader) - ->withHeader(self::STATUS_HISTORY_HEADER, $statusHeader); - } - ); - } - - private function guardMax(RequestInterface $request, array &$options) - { - $current = isset($options['__redirect_count']) - ? $options['__redirect_count'] - : 0; - $options['__redirect_count'] = $current + 1; - $max = $options['allow_redirects']['max']; - - if ($options['__redirect_count'] > $max) { - throw new TooManyRedirectsException( - "Will not follow more than {$max} redirects", - $request - ); - } - } - - /** - * @param RequestInterface $request - * @param array $options - * @param ResponseInterface $response - * - * @return RequestInterface - */ - public function modifyRequest( - RequestInterface $request, - array $options, - ResponseInterface $response - ) { - // Request modifications to apply. - $modify = []; - $protocols = $options['allow_redirects']['protocols']; - - // Use a GET request if this is an entity enclosing request and we are - // not forcing RFC compliance, but rather emulating what all browsers - // would do. - $statusCode = $response->getStatusCode(); - if ($statusCode == 303 || - ($statusCode <= 302 && $request->getBody() && !$options['allow_redirects']['strict']) - ) { - $modify['method'] = 'GET'; - $modify['body'] = ''; - } - - $modify['uri'] = $this->redirectUri($request, $response, $protocols); - Psr7\rewind_body($request); - - // Add the Referer header if it is told to do so and only - // add the header if we are not redirecting from https to http. - if ($options['allow_redirects']['referer'] - && $modify['uri']->getScheme() === $request->getUri()->getScheme() - ) { - $uri = $request->getUri()->withUserInfo('', ''); - $modify['set_headers']['Referer'] = (string) $uri; - } else { - $modify['remove_headers'][] = 'Referer'; - } - - // Remove Authorization header if host is different. - if ($request->getUri()->getHost() !== $modify['uri']->getHost()) { - $modify['remove_headers'][] = 'Authorization'; - } - - return Psr7\modify_request($request, $modify); - } - - /** - * Set the appropriate URL on the request based on the location header - * - * @param RequestInterface $request - * @param ResponseInterface $response - * @param array $protocols - * - * @return UriInterface - */ - private function redirectUri( - RequestInterface $request, - ResponseInterface $response, - array $protocols - ) { - $location = Psr7\UriResolver::resolve( - $request->getUri(), - new Psr7\Uri($response->getHeaderLine('Location')) - ); - - // Ensure that the redirect URI is allowed based on the protocols. - if (!in_array($location->getScheme(), $protocols)) { - throw new BadResponseException( - sprintf( - 'Redirect URI, %s, does not use one of the allowed redirect protocols: %s', - $location, - implode(', ', $protocols) - ), - $request, - $response - ); - } - - return $location; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/RequestOptions.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/RequestOptions.php deleted file mode 100644 index c6aacfb..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/RequestOptions.php +++ /dev/null @@ -1,255 +0,0 @@ -decider = $decider; - $this->nextHandler = $nextHandler; - $this->delay = $delay ?: __CLASS__ . '::exponentialDelay'; - } - - /** - * Default exponential backoff delay function. - * - * @param $retries - * - * @return int - */ - public static function exponentialDelay($retries) - { - return (int) pow(2, $retries - 1); - } - - /** - * @param RequestInterface $request - * @param array $options - * - * @return PromiseInterface - */ - public function __invoke(RequestInterface $request, array $options) - { - if (!isset($options['retries'])) { - $options['retries'] = 0; - } - - $fn = $this->nextHandler; - return $fn($request, $options) - ->then( - $this->onFulfilled($request, $options), - $this->onRejected($request, $options) - ); - } - - private function onFulfilled(RequestInterface $req, array $options) - { - return function ($value) use ($req, $options) { - if (!call_user_func( - $this->decider, - $options['retries'], - $req, - $value, - null - )) { - return $value; - } - return $this->doRetry($req, $options, $value); - }; - } - - private function onRejected(RequestInterface $req, array $options) - { - return function ($reason) use ($req, $options) { - if (!call_user_func( - $this->decider, - $options['retries'], - $req, - null, - $reason - )) { - return \GuzzleHttp\Promise\rejection_for($reason); - } - return $this->doRetry($req, $options); - }; - } - - private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null) - { - $options['delay'] = call_user_func($this->delay, ++$options['retries'], $response); - - return $this($request, $options); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/TransferStats.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/TransferStats.php deleted file mode 100644 index 15f717e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/TransferStats.php +++ /dev/null @@ -1,126 +0,0 @@ -request = $request; - $this->response = $response; - $this->transferTime = $transferTime; - $this->handlerErrorData = $handlerErrorData; - $this->handlerStats = $handlerStats; - } - - /** - * @return RequestInterface - */ - public function getRequest() - { - return $this->request; - } - - /** - * Returns the response that was received (if any). - * - * @return ResponseInterface|null - */ - public function getResponse() - { - return $this->response; - } - - /** - * Returns true if a response was received. - * - * @return bool - */ - public function hasResponse() - { - return $this->response !== null; - } - - /** - * Gets handler specific error data. - * - * This might be an exception, a integer representing an error code, or - * anything else. Relying on this value assumes that you know what handler - * you are using. - * - * @return mixed - */ - public function getHandlerErrorData() - { - return $this->handlerErrorData; - } - - /** - * Get the effective URI the request was sent to. - * - * @return UriInterface - */ - public function getEffectiveUri() - { - return $this->request->getUri(); - } - - /** - * Get the estimated time the request was being transferred by the handler. - * - * @return float Time in seconds. - */ - public function getTransferTime() - { - return $this->transferTime; - } - - /** - * Gets an array of all of the handler specific transfer data. - * - * @return array - */ - public function getHandlerStats() - { - return $this->handlerStats; - } - - /** - * Get a specific handler statistic from the handler by name. - * - * @param string $stat Handler specific transfer stat to retrieve. - * - * @return mixed|null - */ - public function getHandlerStat($stat) - { - return isset($this->handlerStats[$stat]) - ? $this->handlerStats[$stat] - : null; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/UriTemplate.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/UriTemplate.php deleted file mode 100644 index 0b1623e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/UriTemplate.php +++ /dev/null @@ -1,241 +0,0 @@ - ['prefix' => '', 'joiner' => ',', 'query' => false], - '+' => ['prefix' => '', 'joiner' => ',', 'query' => false], - '#' => ['prefix' => '#', 'joiner' => ',', 'query' => false], - '.' => ['prefix' => '.', 'joiner' => '.', 'query' => false], - '/' => ['prefix' => '/', 'joiner' => '/', 'query' => false], - ';' => ['prefix' => ';', 'joiner' => ';', 'query' => true], - '?' => ['prefix' => '?', 'joiner' => '&', 'query' => true], - '&' => ['prefix' => '&', 'joiner' => '&', 'query' => true] - ]; - - /** @var array Delimiters */ - private static $delims = [':', '/', '?', '#', '[', ']', '@', '!', '$', - '&', '\'', '(', ')', '*', '+', ',', ';', '=']; - - /** @var array Percent encoded delimiters */ - private static $delimsPct = ['%3A', '%2F', '%3F', '%23', '%5B', '%5D', - '%40', '%21', '%24', '%26', '%27', '%28', '%29', '%2A', '%2B', '%2C', - '%3B', '%3D']; - - public function expand($template, array $variables) - { - if (false === strpos($template, '{')) { - return $template; - } - - $this->template = $template; - $this->variables = $variables; - - return preg_replace_callback( - '/\{([^\}]+)\}/', - [$this, 'expandMatch'], - $this->template - ); - } - - /** - * Parse an expression into parts - * - * @param string $expression Expression to parse - * - * @return array Returns an associative array of parts - */ - private function parseExpression($expression) - { - $result = []; - - if (isset(self::$operatorHash[$expression[0]])) { - $result['operator'] = $expression[0]; - $expression = substr($expression, 1); - } else { - $result['operator'] = ''; - } - - foreach (explode(',', $expression) as $value) { - $value = trim($value); - $varspec = []; - if ($colonPos = strpos($value, ':')) { - $varspec['value'] = substr($value, 0, $colonPos); - $varspec['modifier'] = ':'; - $varspec['position'] = (int) substr($value, $colonPos + 1); - } elseif (substr($value, -1) === '*') { - $varspec['modifier'] = '*'; - $varspec['value'] = substr($value, 0, -1); - } else { - $varspec['value'] = (string) $value; - $varspec['modifier'] = ''; - } - $result['values'][] = $varspec; - } - - return $result; - } - - /** - * Process an expansion - * - * @param array $matches Matches met in the preg_replace_callback - * - * @return string Returns the replacement string - */ - private function expandMatch(array $matches) - { - static $rfc1738to3986 = ['+' => '%20', '%7e' => '~']; - - $replacements = []; - $parsed = self::parseExpression($matches[1]); - $prefix = self::$operatorHash[$parsed['operator']]['prefix']; - $joiner = self::$operatorHash[$parsed['operator']]['joiner']; - $useQuery = self::$operatorHash[$parsed['operator']]['query']; - - foreach ($parsed['values'] as $value) { - - if (!isset($this->variables[$value['value']])) { - continue; - } - - $variable = $this->variables[$value['value']]; - $actuallyUseQuery = $useQuery; - $expanded = ''; - - if (is_array($variable)) { - - $isAssoc = $this->isAssoc($variable); - $kvp = []; - foreach ($variable as $key => $var) { - - if ($isAssoc) { - $key = rawurlencode($key); - $isNestedArray = is_array($var); - } else { - $isNestedArray = false; - } - - if (!$isNestedArray) { - $var = rawurlencode($var); - if ($parsed['operator'] === '+' || - $parsed['operator'] === '#' - ) { - $var = $this->decodeReserved($var); - } - } - - if ($value['modifier'] === '*') { - if ($isAssoc) { - if ($isNestedArray) { - // Nested arrays must allow for deeply nested - // structures. - $var = strtr( - http_build_query([$key => $var]), - $rfc1738to3986 - ); - } else { - $var = $key . '=' . $var; - } - } elseif ($key > 0 && $actuallyUseQuery) { - $var = $value['value'] . '=' . $var; - } - } - - $kvp[$key] = $var; - } - - if (empty($variable)) { - $actuallyUseQuery = false; - } elseif ($value['modifier'] === '*') { - $expanded = implode($joiner, $kvp); - if ($isAssoc) { - // Don't prepend the value name when using the explode - // modifier with an associative array. - $actuallyUseQuery = false; - } - } else { - if ($isAssoc) { - // When an associative array is encountered and the - // explode modifier is not set, then the result must be - // a comma separated list of keys followed by their - // respective values. - foreach ($kvp as $k => &$v) { - $v = $k . ',' . $v; - } - } - $expanded = implode(',', $kvp); - } - - } else { - if ($value['modifier'] === ':') { - $variable = substr($variable, 0, $value['position']); - } - $expanded = rawurlencode($variable); - if ($parsed['operator'] === '+' || $parsed['operator'] === '#') { - $expanded = $this->decodeReserved($expanded); - } - } - - if ($actuallyUseQuery) { - if (!$expanded && $joiner !== '&') { - $expanded = $value['value']; - } else { - $expanded = $value['value'] . '=' . $expanded; - } - } - - $replacements[] = $expanded; - } - - $ret = implode($joiner, $replacements); - if ($ret && $prefix) { - return $prefix . $ret; - } - - return $ret; - } - - /** - * Determines if an array is associative. - * - * This makes the assumption that input arrays are sequences or hashes. - * This assumption is a tradeoff for accuracy in favor of speed, but it - * should work in almost every case where input is supplied for a URI - * template. - * - * @param array $array Array to check - * - * @return bool - */ - private function isAssoc(array $array) - { - return $array && array_keys($array)[0] !== 0; - } - - /** - * Removes percent encoding on reserved characters (used with + and # - * modifiers). - * - * @param string $string String to fix - * - * @return string - */ - private function decodeReserved($string) - { - return str_replace(self::$delimsPct, self::$delims, $string); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/functions.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/functions.php deleted file mode 100644 index 59e212e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/functions.php +++ /dev/null @@ -1,331 +0,0 @@ -expand($template, $variables); -} - -/** - * Debug function used to describe the provided value type and class. - * - * @param mixed $input - * - * @return string Returns a string containing the type of the variable and - * if a class is provided, the class name. - */ -function describe_type($input) -{ - switch (gettype($input)) { - case 'object': - return 'object(' . get_class($input) . ')'; - case 'array': - return 'array(' . count($input) . ')'; - default: - ob_start(); - var_dump($input); - // normalize float vs double - return str_replace('double(', 'float(', rtrim(ob_get_clean())); - } -} - -/** - * Parses an array of header lines into an associative array of headers. - * - * @param array $lines Header lines array of strings in the following - * format: "Name: Value" - * @return array - */ -function headers_from_lines($lines) -{ - $headers = []; - - foreach ($lines as $line) { - $parts = explode(':', $line, 2); - $headers[trim($parts[0])][] = isset($parts[1]) - ? trim($parts[1]) - : null; - } - - return $headers; -} - -/** - * Returns a debug stream based on the provided variable. - * - * @param mixed $value Optional value - * - * @return resource - */ -function debug_resource($value = null) -{ - if (is_resource($value)) { - return $value; - } elseif (defined('STDOUT')) { - return STDOUT; - } - - return fopen('php://output', 'w'); -} - -/** - * Chooses and creates a default handler to use based on the environment. - * - * The returned handler is not wrapped by any default middlewares. - * - * @throws \RuntimeException if no viable Handler is available. - * @return callable Returns the best handler for the given system. - */ -function choose_handler() -{ - $handler = null; - if (function_exists('curl_multi_exec') && function_exists('curl_exec')) { - $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler()); - } elseif (function_exists('curl_exec')) { - $handler = new CurlHandler(); - } elseif (function_exists('curl_multi_exec')) { - $handler = new CurlMultiHandler(); - } - - if (ini_get('allow_url_fopen')) { - $handler = $handler - ? Proxy::wrapStreaming($handler, new StreamHandler()) - : new StreamHandler(); - } elseif (!$handler) { - throw new \RuntimeException('GuzzleHttp requires cURL, the ' - . 'allow_url_fopen ini setting, or a custom HTTP handler.'); - } - - return $handler; -} - -/** - * Get the default User-Agent string to use with Guzzle - * - * @return string - */ -function default_user_agent() -{ - static $defaultAgent = ''; - - if (!$defaultAgent) { - $defaultAgent = 'GuzzleHttp/' . Client::VERSION; - if (extension_loaded('curl') && function_exists('curl_version')) { - $defaultAgent .= ' curl/' . \curl_version()['version']; - } - $defaultAgent .= ' PHP/' . PHP_VERSION; - } - - return $defaultAgent; -} - -/** - * Returns the default cacert bundle for the current system. - * - * First, the openssl.cafile and curl.cainfo php.ini settings are checked. - * If those settings are not configured, then the common locations for - * bundles found on Red Hat, CentOS, Fedora, Ubuntu, Debian, FreeBSD, OS X - * and Windows are checked. If any of these file locations are found on - * disk, they will be utilized. - * - * Note: the result of this function is cached for subsequent calls. - * - * @return string - * @throws \RuntimeException if no bundle can be found. - */ -function default_ca_bundle() -{ - static $cached = null; - static $cafiles = [ - // Red Hat, CentOS, Fedora (provided by the ca-certificates package) - '/etc/pki/tls/certs/ca-bundle.crt', - // Ubuntu, Debian (provided by the ca-certificates package) - '/etc/ssl/certs/ca-certificates.crt', - // FreeBSD (provided by the ca_root_nss package) - '/usr/local/share/certs/ca-root-nss.crt', - // SLES 12 (provided by the ca-certificates package) - '/var/lib/ca-certificates/ca-bundle.pem', - // OS X provided by homebrew (using the default path) - '/usr/local/etc/openssl/cert.pem', - // Google app engine - '/etc/ca-certificates.crt', - // Windows? - 'C:\\windows\\system32\\curl-ca-bundle.crt', - 'C:\\windows\\curl-ca-bundle.crt', - ]; - - if ($cached) { - return $cached; - } - - if ($ca = ini_get('openssl.cafile')) { - return $cached = $ca; - } - - if ($ca = ini_get('curl.cainfo')) { - return $cached = $ca; - } - - foreach ($cafiles as $filename) { - if (file_exists($filename)) { - return $cached = $filename; - } - } - - throw new \RuntimeException(<<< EOT -No system CA bundle could be found in any of the the common system locations. -PHP versions earlier than 5.6 are not properly configured to use the system's -CA bundle by default. In order to verify peer certificates, you will need to -supply the path on disk to a certificate bundle to the 'verify' request -option: http://docs.guzzlephp.org/en/latest/clients.html#verify. If you do not -need a specific certificate bundle, then Mozilla provides a commonly used CA -bundle which can be downloaded here (provided by the maintainer of cURL): -https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt. Once -you have a CA bundle available on disk, you can set the 'openssl.cafile' PHP -ini setting to point to the path to the file, allowing you to omit the 'verify' -request option. See http://curl.haxx.se/docs/sslcerts.html for more -information. -EOT - ); -} - -/** - * Creates an associative array of lowercase header names to the actual - * header casing. - * - * @param array $headers - * - * @return array - */ -function normalize_header_keys(array $headers) -{ - $result = []; - foreach (array_keys($headers) as $key) { - $result[strtolower($key)] = $key; - } - - return $result; -} - -/** - * Returns true if the provided host matches any of the no proxy areas. - * - * This method will strip a port from the host if it is present. Each pattern - * can be matched with an exact match (e.g., "foo.com" == "foo.com") or a - * partial match: (e.g., "foo.com" == "baz.foo.com" and ".foo.com" == - * "baz.foo.com", but ".foo.com" != "foo.com"). - * - * Areas are matched in the following cases: - * 1. "*" (without quotes) always matches any hosts. - * 2. An exact match. - * 3. The area starts with "." and the area is the last part of the host. e.g. - * '.mit.edu' will match any host that ends with '.mit.edu'. - * - * @param string $host Host to check against the patterns. - * @param array $noProxyArray An array of host patterns. - * - * @return bool - */ -function is_host_in_noproxy($host, array $noProxyArray) -{ - if (strlen($host) === 0) { - throw new \InvalidArgumentException('Empty host provided'); - } - - // Strip port if present. - if (strpos($host, ':')) { - $host = explode($host, ':', 2)[0]; - } - - foreach ($noProxyArray as $area) { - // Always match on wildcards. - if ($area === '*') { - return true; - } elseif (empty($area)) { - // Don't match on empty values. - continue; - } elseif ($area === $host) { - // Exact matches. - return true; - } else { - // Special match if the area when prefixed with ".". Remove any - // existing leading "." and add a new leading ".". - $area = '.' . ltrim($area, '.'); - if (substr($host, -(strlen($area))) === $area) { - return true; - } - } - } - - return false; -} - -/** - * Wrapper for json_decode that throws when an error occurs. - * - * @param string $json JSON data to parse - * @param bool $assoc When true, returned objects will be converted - * into associative arrays. - * @param int $depth User specified recursion depth. - * @param int $options Bitmask of JSON decode options. - * - * @return mixed - * @throws \InvalidArgumentException if the JSON cannot be decoded. - * @link http://www.php.net/manual/en/function.json-decode.php - */ -function json_decode($json, $assoc = false, $depth = 512, $options = 0) -{ - $data = \json_decode($json, $assoc, $depth, $options); - if (JSON_ERROR_NONE !== json_last_error()) { - throw new \InvalidArgumentException( - 'json_decode error: ' . json_last_error_msg()); - } - - return $data; -} - -/** - * Wrapper for JSON encoding that throws when an error occurs. - * - * @param mixed $value The value being encoded - * @param int $options JSON encode option bitmask - * @param int $depth Set the maximum depth. Must be greater than zero. - * - * @return string - * @throws \InvalidArgumentException if the JSON cannot be encoded. - * @link http://www.php.net/manual/en/function.json-encode.php - */ -function json_encode($value, $options = 0, $depth = 512) -{ - $json = \json_encode($value, $options, $depth); - if (JSON_ERROR_NONE !== json_last_error()) { - throw new \InvalidArgumentException( - 'json_encode error: ' . json_last_error_msg()); - } - - return $json; -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/functions_include.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/functions_include.php deleted file mode 100644 index a93393a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/guzzle/src/functions_include.php +++ /dev/null @@ -1,6 +0,0 @@ - - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/Makefile b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/Makefile deleted file mode 100644 index 8d5b3ef..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -all: clean test - -test: - vendor/bin/phpunit - -coverage: - vendor/bin/phpunit --coverage-html=artifacts/coverage - -view-coverage: - open artifacts/coverage/index.html - -clean: - rm -rf artifacts/* diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/README.md b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/README.md deleted file mode 100644 index 7b607e2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/README.md +++ /dev/null @@ -1,504 +0,0 @@ -# Guzzle Promises - -[Promises/A+](https://promisesaplus.com/) implementation that handles promise -chaining and resolution iteratively, allowing for "infinite" promise chaining -while keeping the stack size constant. Read [this blog post](https://blog.domenic.me/youre-missing-the-point-of-promises/) -for a general introduction to promises. - -- [Features](#features) -- [Quick start](#quick-start) -- [Synchronous wait](#synchronous-wait) -- [Cancellation](#cancellation) -- [API](#api) - - [Promise](#promise) - - [FulfilledPromise](#fulfilledpromise) - - [RejectedPromise](#rejectedpromise) -- [Promise interop](#promise-interop) -- [Implementation notes](#implementation-notes) - - -# Features - -- [Promises/A+](https://promisesaplus.com/) implementation. -- Promise resolution and chaining is handled iteratively, allowing for - "infinite" promise chaining. -- Promises have a synchronous `wait` method. -- Promises can be cancelled. -- Works with any object that has a `then` function. -- C# style async/await coroutine promises using - `GuzzleHttp\Promise\coroutine()`. - - -# Quick start - -A *promise* represents the eventual result of an asynchronous operation. The -primary way of interacting with a promise is through its `then` method, which -registers callbacks to receive either a promise's eventual value or the reason -why the promise cannot be fulfilled. - - -## Callbacks - -Callbacks are registered with the `then` method by providing an optional -`$onFulfilled` followed by an optional `$onRejected` function. - - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise(); -$promise->then( - // $onFulfilled - function ($value) { - echo 'The promise was fulfilled.'; - }, - // $onRejected - function ($reason) { - echo 'The promise was rejected.'; - } -); -``` - -*Resolving* a promise means that you either fulfill a promise with a *value* or -reject a promise with a *reason*. Resolving a promises triggers callbacks -registered with the promises's `then` method. These callbacks are triggered -only once and in the order in which they were added. - - -## Resolving a promise - -Promises are fulfilled using the `resolve($value)` method. Resolving a promise -with any value other than a `GuzzleHttp\Promise\RejectedPromise` will trigger -all of the onFulfilled callbacks (resolving a promise with a rejected promise -will reject the promise and trigger the `$onRejected` callbacks). - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise(); -$promise - ->then(function ($value) { - // Return a value and don't break the chain - return "Hello, " . $value; - }) - // This then is executed after the first then and receives the value - // returned from the first then. - ->then(function ($value) { - echo $value; - }); - -// Resolving the promise triggers the $onFulfilled callbacks and outputs -// "Hello, reader". -$promise->resolve('reader.'); -``` - - -## Promise forwarding - -Promises can be chained one after the other. Each then in the chain is a new -promise. The return value of a promise is what's forwarded to the next -promise in the chain. Returning a promise in a `then` callback will cause the -subsequent promises in the chain to only be fulfilled when the returned promise -has been fulfilled. The next promise in the chain will be invoked with the -resolved value of the promise. - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise(); -$nextPromise = new Promise(); - -$promise - ->then(function ($value) use ($nextPromise) { - echo $value; - return $nextPromise; - }) - ->then(function ($value) { - echo $value; - }); - -// Triggers the first callback and outputs "A" -$promise->resolve('A'); -// Triggers the second callback and outputs "B" -$nextPromise->resolve('B'); -``` - -## Promise rejection - -When a promise is rejected, the `$onRejected` callbacks are invoked with the -rejection reason. - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise(); -$promise->then(null, function ($reason) { - echo $reason; -}); - -$promise->reject('Error!'); -// Outputs "Error!" -``` - -## Rejection forwarding - -If an exception is thrown in an `$onRejected` callback, subsequent -`$onRejected` callbacks are invoked with the thrown exception as the reason. - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise(); -$promise->then(null, function ($reason) { - throw new \Exception($reason); -})->then(null, function ($reason) { - assert($reason->getMessage() === 'Error!'); -}); - -$promise->reject('Error!'); -``` - -You can also forward a rejection down the promise chain by returning a -`GuzzleHttp\Promise\RejectedPromise` in either an `$onFulfilled` or -`$onRejected` callback. - -```php -use GuzzleHttp\Promise\Promise; -use GuzzleHttp\Promise\RejectedPromise; - -$promise = new Promise(); -$promise->then(null, function ($reason) { - return new RejectedPromise($reason); -})->then(null, function ($reason) { - assert($reason === 'Error!'); -}); - -$promise->reject('Error!'); -``` - -If an exception is not thrown in a `$onRejected` callback and the callback -does not return a rejected promise, downstream `$onFulfilled` callbacks are -invoked using the value returned from the `$onRejected` callback. - -```php -use GuzzleHttp\Promise\Promise; -use GuzzleHttp\Promise\RejectedPromise; - -$promise = new Promise(); -$promise - ->then(null, function ($reason) { - return "It's ok"; - }) - ->then(function ($value) { - assert($value === "It's ok"); - }); - -$promise->reject('Error!'); -``` - -# Synchronous wait - -You can synchronously force promises to complete using a promise's `wait` -method. When creating a promise, you can provide a wait function that is used -to synchronously force a promise to complete. When a wait function is invoked -it is expected to deliver a value to the promise or reject the promise. If the -wait function does not deliver a value, then an exception is thrown. The wait -function provided to a promise constructor is invoked when the `wait` function -of the promise is called. - -```php -$promise = new Promise(function () use (&$promise) { - $promise->resolve('foo'); -}); - -// Calling wait will return the value of the promise. -echo $promise->wait(); // outputs "foo" -``` - -If an exception is encountered while invoking the wait function of a promise, -the promise is rejected with the exception and the exception is thrown. - -```php -$promise = new Promise(function () use (&$promise) { - throw new \Exception('foo'); -}); - -$promise->wait(); // throws the exception. -``` - -Calling `wait` on a promise that has been fulfilled will not trigger the wait -function. It will simply return the previously resolved value. - -```php -$promise = new Promise(function () { die('this is not called!'); }); -$promise->resolve('foo'); -echo $promise->wait(); // outputs "foo" -``` - -Calling `wait` on a promise that has been rejected will throw an exception. If -the rejection reason is an instance of `\Exception` the reason is thrown. -Otherwise, a `GuzzleHttp\Promise\RejectionException` is thrown and the reason -can be obtained by calling the `getReason` method of the exception. - -```php -$promise = new Promise(); -$promise->reject('foo'); -$promise->wait(); -``` - -> PHP Fatal error: Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The promise was rejected with value: foo' - - -## Unwrapping a promise - -When synchronously waiting on a promise, you are joining the state of the -promise into the current state of execution (i.e., return the value of the -promise if it was fulfilled or throw an exception if it was rejected). This is -called "unwrapping" the promise. Waiting on a promise will by default unwrap -the promise state. - -You can force a promise to resolve and *not* unwrap the state of the promise -by passing `false` to the first argument of the `wait` function: - -```php -$promise = new Promise(); -$promise->reject('foo'); -// This will not throw an exception. It simply ensures the promise has -// been resolved. -$promise->wait(false); -``` - -When unwrapping a promise, the resolved value of the promise will be waited -upon until the unwrapped value is not a promise. This means that if you resolve -promise A with a promise B and unwrap promise A, the value returned by the -wait function will be the value delivered to promise B. - -**Note**: when you do not unwrap the promise, no value is returned. - - -# Cancellation - -You can cancel a promise that has not yet been fulfilled using the `cancel()` -method of a promise. When creating a promise you can provide an optional -cancel function that when invoked cancels the action of computing a resolution -of the promise. - - -# API - - -## Promise - -When creating a promise object, you can provide an optional `$waitFn` and -`$cancelFn`. `$waitFn` is a function that is invoked with no arguments and is -expected to resolve the promise. `$cancelFn` is a function with no arguments -that is expected to cancel the computation of a promise. It is invoked when the -`cancel()` method of a promise is called. - -```php -use GuzzleHttp\Promise\Promise; - -$promise = new Promise( - function () use (&$promise) { - $promise->resolve('waited'); - }, - function () { - // do something that will cancel the promise computation (e.g., close - // a socket, cancel a database query, etc...) - } -); - -assert('waited' === $promise->wait()); -``` - -A promise has the following methods: - -- `then(callable $onFulfilled, callable $onRejected) : PromiseInterface` - - Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler. - -- `otherwise(callable $onRejected) : PromiseInterface` - - Appends a rejection handler callback to the promise, and returns a new promise resolving to the return value of the callback if it is called, or to its original fulfillment value if the promise is instead fulfilled. - -- `wait($unwrap = true) : mixed` - - Synchronously waits on the promise to complete. - - `$unwrap` controls whether or not the value of the promise is returned for a - fulfilled promise or if an exception is thrown if the promise is rejected. - This is set to `true` by default. - -- `cancel()` - - Attempts to cancel the promise if possible. The promise being cancelled and - the parent most ancestor that has not yet been resolved will also be - cancelled. Any promises waiting on the cancelled promise to resolve will also - be cancelled. - -- `getState() : string` - - Returns the state of the promise. One of `pending`, `fulfilled`, or - `rejected`. - -- `resolve($value)` - - Fulfills the promise with the given `$value`. - -- `reject($reason)` - - Rejects the promise with the given `$reason`. - - -## FulfilledPromise - -A fulfilled promise can be created to represent a promise that has been -fulfilled. - -```php -use GuzzleHttp\Promise\FulfilledPromise; - -$promise = new FulfilledPromise('value'); - -// Fulfilled callbacks are immediately invoked. -$promise->then(function ($value) { - echo $value; -}); -``` - - -## RejectedPromise - -A rejected promise can be created to represent a promise that has been -rejected. - -```php -use GuzzleHttp\Promise\RejectedPromise; - -$promise = new RejectedPromise('Error'); - -// Rejected callbacks are immediately invoked. -$promise->then(null, function ($reason) { - echo $reason; -}); -``` - - -# Promise interop - -This library works with foreign promises that have a `then` method. This means -you can use Guzzle promises with [React promises](https://github.com/reactphp/promise) -for example. When a foreign promise is returned inside of a then method -callback, promise resolution will occur recursively. - -```php -// Create a React promise -$deferred = new React\Promise\Deferred(); -$reactPromise = $deferred->promise(); - -// Create a Guzzle promise that is fulfilled with a React promise. -$guzzlePromise = new \GuzzleHttp\Promise\Promise(); -$guzzlePromise->then(function ($value) use ($reactPromise) { - // Do something something with the value... - // Return the React promise - return $reactPromise; -}); -``` - -Please note that wait and cancel chaining is no longer possible when forwarding -a foreign promise. You will need to wrap a third-party promise with a Guzzle -promise in order to utilize wait and cancel functions with foreign promises. - - -## Event Loop Integration - -In order to keep the stack size constant, Guzzle promises are resolved -asynchronously using a task queue. When waiting on promises synchronously, the -task queue will be automatically run to ensure that the blocking promise and -any forwarded promises are resolved. When using promises asynchronously in an -event loop, you will need to run the task queue on each tick of the loop. If -you do not run the task queue, then promises will not be resolved. - -You can run the task queue using the `run()` method of the global task queue -instance. - -```php -// Get the global task queue -$queue = \GuzzleHttp\Promise\queue(); -$queue->run(); -``` - -For example, you could use Guzzle promises with React using a periodic timer: - -```php -$loop = React\EventLoop\Factory::create(); -$loop->addPeriodicTimer(0, [$queue, 'run']); -``` - -*TODO*: Perhaps adding a `futureTick()` on each tick would be faster? - - -# Implementation notes - - -## Promise resolution and chaining is handled iteratively - -By shuffling pending handlers from one owner to another, promises are -resolved iteratively, allowing for "infinite" then chaining. - -```php -then(function ($v) { - // The stack size remains constant (a good thing) - echo xdebug_get_stack_depth() . ', '; - return $v + 1; - }); -} - -$parent->resolve(0); -var_dump($p->wait()); // int(1000) - -``` - -When a promise is fulfilled or rejected with a non-promise value, the promise -then takes ownership of the handlers of each child promise and delivers values -down the chain without using recursion. - -When a promise is resolved with another promise, the original promise transfers -all of its pending handlers to the new promise. When the new promise is -eventually resolved, all of the pending handlers are delivered the forwarded -value. - - -## A promise is the deferred. - -Some promise libraries implement promises using a deferred object to represent -a computation and a promise object to represent the delivery of the result of -the computation. This is a nice separation of computation and delivery because -consumers of the promise cannot modify the value that will be eventually -delivered. - -One side effect of being able to implement promise resolution and chaining -iteratively is that you need to be able for one promise to reach into the state -of another promise to shuffle around ownership of handlers. In order to achieve -this without making the handlers of a promise publicly mutable, a promise is -also the deferred value, allowing promises of the same parent class to reach -into and modify the private properties of promises of the same type. While this -does allow consumers of the value to modify the resolution or rejection of the -deferred, it is a small price to pay for keeping the stack size constant. - -```php -$promise = new Promise(); -$promise->then(function ($value) { echo $value; }); -// The promise is the deferred value, so you can deliver a value to it. -$promise->resolve('foo'); -// prints "foo" -``` diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/composer.json b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/composer.json deleted file mode 100644 index ec41a61..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/composer.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "guzzlehttp/promises", - "description": "Guzzle promises library", - "keywords": ["promise"], - "license": "MIT", - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "require": { - "php": ">=5.5.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.0" - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\Promise\\": "src/" - }, - "files": ["src/functions_include.php"] - }, - "scripts": { - "test": "vendor/bin/phpunit", - "test-ci": "vendor/bin/phpunit --coverage-text" - }, - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/AggregateException.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/AggregateException.php deleted file mode 100644 index 6a5690c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/AggregateException.php +++ /dev/null @@ -1,16 +0,0 @@ -then(function ($v) { echo $v; }); - * - * @param callable $generatorFn Generator function to wrap into a promise. - * - * @return Promise - * @link https://github.com/petkaantonov/bluebird/blob/master/API.md#generators inspiration - */ -final class Coroutine implements PromiseInterface -{ - /** - * @var PromiseInterface|null - */ - private $currentPromise; - - /** - * @var Generator - */ - private $generator; - - /** - * @var Promise - */ - private $result; - - public function __construct(callable $generatorFn) - { - $this->generator = $generatorFn(); - $this->result = new Promise(function () { - while (isset($this->currentPromise)) { - $this->currentPromise->wait(); - } - }); - $this->nextCoroutine($this->generator->current()); - } - - public function then( - callable $onFulfilled = null, - callable $onRejected = null - ) { - return $this->result->then($onFulfilled, $onRejected); - } - - public function otherwise(callable $onRejected) - { - return $this->result->otherwise($onRejected); - } - - public function wait($unwrap = true) - { - return $this->result->wait($unwrap); - } - - public function getState() - { - return $this->result->getState(); - } - - public function resolve($value) - { - $this->result->resolve($value); - } - - public function reject($reason) - { - $this->result->reject($reason); - } - - public function cancel() - { - $this->currentPromise->cancel(); - $this->result->cancel(); - } - - private function nextCoroutine($yielded) - { - $this->currentPromise = promise_for($yielded) - ->then([$this, '_handleSuccess'], [$this, '_handleFailure']); - } - - /** - * @internal - */ - public function _handleSuccess($value) - { - unset($this->currentPromise); - try { - $next = $this->generator->send($value); - if ($this->generator->valid()) { - $this->nextCoroutine($next); - } else { - $this->result->resolve($value); - } - } catch (Exception $exception) { - $this->result->reject($exception); - } catch (Throwable $throwable) { - $this->result->reject($throwable); - } - } - - /** - * @internal - */ - public function _handleFailure($reason) - { - unset($this->currentPromise); - try { - $nextYield = $this->generator->throw(exception_for($reason)); - // The throw was caught, so keep iterating on the coroutine - $this->nextCoroutine($nextYield); - } catch (Exception $exception) { - $this->result->reject($exception); - } catch (Throwable $throwable) { - $this->result->reject($throwable); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/EachPromise.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/EachPromise.php deleted file mode 100644 index d0ddf60..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/EachPromise.php +++ /dev/null @@ -1,229 +0,0 @@ -iterable = iter_for($iterable); - - if (isset($config['concurrency'])) { - $this->concurrency = $config['concurrency']; - } - - if (isset($config['fulfilled'])) { - $this->onFulfilled = $config['fulfilled']; - } - - if (isset($config['rejected'])) { - $this->onRejected = $config['rejected']; - } - } - - public function promise() - { - if ($this->aggregate) { - return $this->aggregate; - } - - try { - $this->createPromise(); - $this->iterable->rewind(); - $this->refillPending(); - } catch (\Throwable $e) { - $this->aggregate->reject($e); - } catch (\Exception $e) { - $this->aggregate->reject($e); - } - - return $this->aggregate; - } - - private function createPromise() - { - $this->mutex = false; - $this->aggregate = new Promise(function () { - reset($this->pending); - if (empty($this->pending) && !$this->iterable->valid()) { - $this->aggregate->resolve(null); - return; - } - - // Consume a potentially fluctuating list of promises while - // ensuring that indexes are maintained (precluding array_shift). - while ($promise = current($this->pending)) { - next($this->pending); - $promise->wait(); - if ($this->aggregate->getState() !== PromiseInterface::PENDING) { - return; - } - } - }); - - // Clear the references when the promise is resolved. - $clearFn = function () { - $this->iterable = $this->concurrency = $this->pending = null; - $this->onFulfilled = $this->onRejected = null; - }; - - $this->aggregate->then($clearFn, $clearFn); - } - - private function refillPending() - { - if (!$this->concurrency) { - // Add all pending promises. - while ($this->addPending() && $this->advanceIterator()); - return; - } - - // Add only up to N pending promises. - $concurrency = is_callable($this->concurrency) - ? call_user_func($this->concurrency, count($this->pending)) - : $this->concurrency; - $concurrency = max($concurrency - count($this->pending), 0); - // Concurrency may be set to 0 to disallow new promises. - if (!$concurrency) { - return; - } - // Add the first pending promise. - $this->addPending(); - // Note this is special handling for concurrency=1 so that we do - // not advance the iterator after adding the first promise. This - // helps work around issues with generators that might not have the - // next value to yield until promise callbacks are called. - while (--$concurrency - && $this->advanceIterator() - && $this->addPending()); - } - - private function addPending() - { - if (!$this->iterable || !$this->iterable->valid()) { - return false; - } - - $promise = promise_for($this->iterable->current()); - $idx = $this->iterable->key(); - - $this->pending[$idx] = $promise->then( - function ($value) use ($idx) { - if ($this->onFulfilled) { - call_user_func( - $this->onFulfilled, $value, $idx, $this->aggregate - ); - } - $this->step($idx); - }, - function ($reason) use ($idx) { - if ($this->onRejected) { - call_user_func( - $this->onRejected, $reason, $idx, $this->aggregate - ); - } - $this->step($idx); - } - ); - - return true; - } - - private function advanceIterator() - { - // Place a lock on the iterator so that we ensure to not recurse, - // preventing fatal generator errors. - if ($this->mutex) { - return false; - } - - $this->mutex = true; - - try { - $this->iterable->next(); - $this->mutex = false; - return true; - } catch (\Throwable $e) { - $this->aggregate->reject($e); - $this->mutex = false; - return false; - } catch (\Exception $e) { - $this->aggregate->reject($e); - $this->mutex = false; - return false; - } - } - - private function step($idx) - { - // If the promise was already resolved, then ignore this step. - if ($this->aggregate->getState() !== PromiseInterface::PENDING) { - return; - } - - unset($this->pending[$idx]); - - // Only refill pending promises if we are not locked, preventing the - // EachPromise to recursively invoke the provided iterator, which - // cause a fatal error: "Cannot resume an already running generator" - if ($this->advanceIterator() && !$this->checkIfFinished()) { - // Add more pending promises if possible. - $this->refillPending(); - } - } - - private function checkIfFinished() - { - if (!$this->pending && !$this->iterable->valid()) { - // Resolve the promise if there's nothing left to do. - $this->aggregate->resolve(null); - return true; - } - - return false; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/FulfilledPromise.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/FulfilledPromise.php deleted file mode 100644 index dbbeeb9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/FulfilledPromise.php +++ /dev/null @@ -1,82 +0,0 @@ -value = $value; - } - - public function then( - callable $onFulfilled = null, - callable $onRejected = null - ) { - // Return itself if there is no onFulfilled function. - if (!$onFulfilled) { - return $this; - } - - $queue = queue(); - $p = new Promise([$queue, 'run']); - $value = $this->value; - $queue->add(static function () use ($p, $value, $onFulfilled) { - if ($p->getState() === self::PENDING) { - try { - $p->resolve($onFulfilled($value)); - } catch (\Throwable $e) { - $p->reject($e); - } catch (\Exception $e) { - $p->reject($e); - } - } - }); - - return $p; - } - - public function otherwise(callable $onRejected) - { - return $this->then(null, $onRejected); - } - - public function wait($unwrap = true, $defaultDelivery = null) - { - return $unwrap ? $this->value : null; - } - - public function getState() - { - return self::FULFILLED; - } - - public function resolve($value) - { - if ($value !== $this->value) { - throw new \LogicException("Cannot resolve a fulfilled promise"); - } - } - - public function reject($reason) - { - throw new \LogicException("Cannot reject a fulfilled promise"); - } - - public function cancel() - { - // pass - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/Promise.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/Promise.php deleted file mode 100644 index 844ada0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/Promise.php +++ /dev/null @@ -1,280 +0,0 @@ -waitFn = $waitFn; - $this->cancelFn = $cancelFn; - } - - public function then( - callable $onFulfilled = null, - callable $onRejected = null - ) { - if ($this->state === self::PENDING) { - $p = new Promise(null, [$this, 'cancel']); - $this->handlers[] = [$p, $onFulfilled, $onRejected]; - $p->waitList = $this->waitList; - $p->waitList[] = $this; - return $p; - } - - // Return a fulfilled promise and immediately invoke any callbacks. - if ($this->state === self::FULFILLED) { - return $onFulfilled - ? promise_for($this->result)->then($onFulfilled) - : promise_for($this->result); - } - - // It's either cancelled or rejected, so return a rejected promise - // and immediately invoke any callbacks. - $rejection = rejection_for($this->result); - return $onRejected ? $rejection->then(null, $onRejected) : $rejection; - } - - public function otherwise(callable $onRejected) - { - return $this->then(null, $onRejected); - } - - public function wait($unwrap = true) - { - $this->waitIfPending(); - - $inner = $this->result instanceof PromiseInterface - ? $this->result->wait($unwrap) - : $this->result; - - if ($unwrap) { - if ($this->result instanceof PromiseInterface - || $this->state === self::FULFILLED - ) { - return $inner; - } else { - // It's rejected so "unwrap" and throw an exception. - throw exception_for($inner); - } - } - } - - public function getState() - { - return $this->state; - } - - public function cancel() - { - if ($this->state !== self::PENDING) { - return; - } - - $this->waitFn = $this->waitList = null; - - if ($this->cancelFn) { - $fn = $this->cancelFn; - $this->cancelFn = null; - try { - $fn(); - } catch (\Throwable $e) { - $this->reject($e); - } catch (\Exception $e) { - $this->reject($e); - } - } - - // Reject the promise only if it wasn't rejected in a then callback. - if ($this->state === self::PENDING) { - $this->reject(new CancellationException('Promise has been cancelled')); - } - } - - public function resolve($value) - { - $this->settle(self::FULFILLED, $value); - } - - public function reject($reason) - { - $this->settle(self::REJECTED, $reason); - } - - private function settle($state, $value) - { - if ($this->state !== self::PENDING) { - // Ignore calls with the same resolution. - if ($state === $this->state && $value === $this->result) { - return; - } - throw $this->state === $state - ? new \LogicException("The promise is already {$state}.") - : new \LogicException("Cannot change a {$this->state} promise to {$state}"); - } - - if ($value === $this) { - throw new \LogicException('Cannot fulfill or reject a promise with itself'); - } - - // Clear out the state of the promise but stash the handlers. - $this->state = $state; - $this->result = $value; - $handlers = $this->handlers; - $this->handlers = null; - $this->waitList = $this->waitFn = null; - $this->cancelFn = null; - - if (!$handlers) { - return; - } - - // If the value was not a settled promise or a thenable, then resolve - // it in the task queue using the correct ID. - if (!method_exists($value, 'then')) { - $id = $state === self::FULFILLED ? 1 : 2; - // It's a success, so resolve the handlers in the queue. - queue()->add(static function () use ($id, $value, $handlers) { - foreach ($handlers as $handler) { - self::callHandler($id, $value, $handler); - } - }); - } elseif ($value instanceof Promise - && $value->getState() === self::PENDING - ) { - // We can just merge our handlers onto the next promise. - $value->handlers = array_merge($value->handlers, $handlers); - } else { - // Resolve the handlers when the forwarded promise is resolved. - $value->then( - static function ($value) use ($handlers) { - foreach ($handlers as $handler) { - self::callHandler(1, $value, $handler); - } - }, - static function ($reason) use ($handlers) { - foreach ($handlers as $handler) { - self::callHandler(2, $reason, $handler); - } - } - ); - } - } - - /** - * Call a stack of handlers using a specific callback index and value. - * - * @param int $index 1 (resolve) or 2 (reject). - * @param mixed $value Value to pass to the callback. - * @param array $handler Array of handler data (promise and callbacks). - * - * @return array Returns the next group to resolve. - */ - private static function callHandler($index, $value, array $handler) - { - /** @var PromiseInterface $promise */ - $promise = $handler[0]; - - // The promise may have been cancelled or resolved before placing - // this thunk in the queue. - if ($promise->getState() !== self::PENDING) { - return; - } - - try { - if (isset($handler[$index])) { - $promise->resolve($handler[$index]($value)); - } elseif ($index === 1) { - // Forward resolution values as-is. - $promise->resolve($value); - } else { - // Forward rejections down the chain. - $promise->reject($value); - } - } catch (\Throwable $reason) { - $promise->reject($reason); - } catch (\Exception $reason) { - $promise->reject($reason); - } - } - - private function waitIfPending() - { - if ($this->state !== self::PENDING) { - return; - } elseif ($this->waitFn) { - $this->invokeWaitFn(); - } elseif ($this->waitList) { - $this->invokeWaitList(); - } else { - // If there's not wait function, then reject the promise. - $this->reject('Cannot wait on a promise that has ' - . 'no internal wait function. You must provide a wait ' - . 'function when constructing the promise to be able to ' - . 'wait on a promise.'); - } - - queue()->run(); - - if ($this->state === self::PENDING) { - $this->reject('Invoking the wait callback did not resolve the promise'); - } - } - - private function invokeWaitFn() - { - try { - $wfn = $this->waitFn; - $this->waitFn = null; - $wfn(true); - } catch (\Exception $reason) { - if ($this->state === self::PENDING) { - // The promise has not been resolved yet, so reject the promise - // with the exception. - $this->reject($reason); - } else { - // The promise was already resolved, so there's a problem in - // the application. - throw $reason; - } - } - } - - private function invokeWaitList() - { - $waitList = $this->waitList; - $this->waitList = null; - - foreach ($waitList as $result) { - while (true) { - $result->waitIfPending(); - - if ($result->result instanceof Promise) { - $result = $result->result; - } else { - if ($result->result instanceof PromiseInterface) { - $result->result->wait(false); - } - break; - } - } - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/PromiseInterface.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/PromiseInterface.php deleted file mode 100644 index 8f5f4b9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/PromiseInterface.php +++ /dev/null @@ -1,93 +0,0 @@ -reason = $reason; - } - - public function then( - callable $onFulfilled = null, - callable $onRejected = null - ) { - // If there's no onRejected callback then just return self. - if (!$onRejected) { - return $this; - } - - $queue = queue(); - $reason = $this->reason; - $p = new Promise([$queue, 'run']); - $queue->add(static function () use ($p, $reason, $onRejected) { - if ($p->getState() === self::PENDING) { - try { - // Return a resolved promise if onRejected does not throw. - $p->resolve($onRejected($reason)); - } catch (\Throwable $e) { - // onRejected threw, so return a rejected promise. - $p->reject($e); - } catch (\Exception $e) { - // onRejected threw, so return a rejected promise. - $p->reject($e); - } - } - }); - - return $p; - } - - public function otherwise(callable $onRejected) - { - return $this->then(null, $onRejected); - } - - public function wait($unwrap = true, $defaultDelivery = null) - { - if ($unwrap) { - throw exception_for($this->reason); - } - } - - public function getState() - { - return self::REJECTED; - } - - public function resolve($value) - { - throw new \LogicException("Cannot resolve a rejected promise"); - } - - public function reject($reason) - { - if ($reason !== $this->reason) { - throw new \LogicException("Cannot reject a rejected promise"); - } - } - - public function cancel() - { - // pass - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/RejectionException.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/RejectionException.php deleted file mode 100644 index 07c1136..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/RejectionException.php +++ /dev/null @@ -1,47 +0,0 @@ -reason = $reason; - - $message = 'The promise was rejected'; - - if ($description) { - $message .= ' with reason: ' . $description; - } elseif (is_string($reason) - || (is_object($reason) && method_exists($reason, '__toString')) - ) { - $message .= ' with reason: ' . $this->reason; - } elseif ($reason instanceof \JsonSerializable) { - $message .= ' with reason: ' - . json_encode($this->reason, JSON_PRETTY_PRINT); - } - - parent::__construct($message); - } - - /** - * Returns the rejection reason. - * - * @return mixed - */ - public function getReason() - { - return $this->reason; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/TaskQueue.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/TaskQueue.php deleted file mode 100644 index 6e8a2a0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/TaskQueue.php +++ /dev/null @@ -1,66 +0,0 @@ -run(); - */ -class TaskQueue implements TaskQueueInterface -{ - private $enableShutdown = true; - private $queue = []; - - public function __construct($withShutdown = true) - { - if ($withShutdown) { - register_shutdown_function(function () { - if ($this->enableShutdown) { - // Only run the tasks if an E_ERROR didn't occur. - $err = error_get_last(); - if (!$err || ($err['type'] ^ E_ERROR)) { - $this->run(); - } - } - }); - } - } - - public function isEmpty() - { - return !$this->queue; - } - - public function add(callable $task) - { - $this->queue[] = $task; - } - - public function run() - { - /** @var callable $task */ - while ($task = array_shift($this->queue)) { - $task(); - } - } - - /** - * The task queue will be run and exhausted by default when the process - * exits IFF the exit is not the result of a PHP E_ERROR error. - * - * You can disable running the automatic shutdown of the queue by calling - * this function. If you disable the task queue shutdown process, then you - * MUST either run the task queue (as a result of running your event loop - * or manually using the run() method) or wait on each outstanding promise. - * - * Note: This shutdown will occur before any destructors are triggered. - */ - public function disableShutdown() - { - $this->enableShutdown = false; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/TaskQueueInterface.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/TaskQueueInterface.php deleted file mode 100644 index ac8306e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/TaskQueueInterface.php +++ /dev/null @@ -1,25 +0,0 @@ - - * while ($eventLoop->isRunning()) { - * GuzzleHttp\Promise\queue()->run(); - * } - * - * - * @param TaskQueueInterface $assign Optionally specify a new queue instance. - * - * @return TaskQueueInterface - */ -function queue(TaskQueueInterface $assign = null) -{ - static $queue; - - if ($assign) { - $queue = $assign; - } elseif (!$queue) { - $queue = new TaskQueue(); - } - - return $queue; -} - -/** - * Adds a function to run in the task queue when it is next `run()` and returns - * a promise that is fulfilled or rejected with the result. - * - * @param callable $task Task function to run. - * - * @return PromiseInterface - */ -function task(callable $task) -{ - $queue = queue(); - $promise = new Promise([$queue, 'run']); - $queue->add(function () use ($task, $promise) { - try { - $promise->resolve($task()); - } catch (\Throwable $e) { - $promise->reject($e); - } catch (\Exception $e) { - $promise->reject($e); - } - }); - - return $promise; -} - -/** - * Creates a promise for a value if the value is not a promise. - * - * @param mixed $value Promise or value. - * - * @return PromiseInterface - */ -function promise_for($value) -{ - if ($value instanceof PromiseInterface) { - return $value; - } - - // Return a Guzzle promise that shadows the given promise. - if (method_exists($value, 'then')) { - $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null; - $cfn = method_exists($value, 'cancel') ? [$value, 'cancel'] : null; - $promise = new Promise($wfn, $cfn); - $value->then([$promise, 'resolve'], [$promise, 'reject']); - return $promise; - } - - return new FulfilledPromise($value); -} - -/** - * Creates a rejected promise for a reason if the reason is not a promise. If - * the provided reason is a promise, then it is returned as-is. - * - * @param mixed $reason Promise or reason. - * - * @return PromiseInterface - */ -function rejection_for($reason) -{ - if ($reason instanceof PromiseInterface) { - return $reason; - } - - return new RejectedPromise($reason); -} - -/** - * Create an exception for a rejected promise value. - * - * @param mixed $reason - * - * @return \Exception|\Throwable - */ -function exception_for($reason) -{ - return $reason instanceof \Exception || $reason instanceof \Throwable - ? $reason - : new RejectionException($reason); -} - -/** - * Returns an iterator for the given value. - * - * @param mixed $value - * - * @return \Iterator - */ -function iter_for($value) -{ - if ($value instanceof \Iterator) { - return $value; - } elseif (is_array($value)) { - return new \ArrayIterator($value); - } else { - return new \ArrayIterator([$value]); - } -} - -/** - * Synchronously waits on a promise to resolve and returns an inspection state - * array. - * - * Returns a state associative array containing a "state" key mapping to a - * valid promise state. If the state of the promise is "fulfilled", the array - * will contain a "value" key mapping to the fulfilled value of the promise. If - * the promise is rejected, the array will contain a "reason" key mapping to - * the rejection reason of the promise. - * - * @param PromiseInterface $promise Promise or value. - * - * @return array - */ -function inspect(PromiseInterface $promise) -{ - try { - return [ - 'state' => PromiseInterface::FULFILLED, - 'value' => $promise->wait() - ]; - } catch (RejectionException $e) { - return ['state' => PromiseInterface::REJECTED, 'reason' => $e->getReason()]; - } catch (\Throwable $e) { - return ['state' => PromiseInterface::REJECTED, 'reason' => $e]; - } catch (\Exception $e) { - return ['state' => PromiseInterface::REJECTED, 'reason' => $e]; - } -} - -/** - * Waits on all of the provided promises, but does not unwrap rejected promises - * as thrown exception. - * - * Returns an array of inspection state arrays. - * - * @param PromiseInterface[] $promises Traversable of promises to wait upon. - * - * @return array - * @see GuzzleHttp\Promise\inspect for the inspection state array format. - */ -function inspect_all($promises) -{ - $results = []; - foreach ($promises as $key => $promise) { - $results[$key] = inspect($promise); - } - - return $results; -} - -/** - * Waits on all of the provided promises and returns the fulfilled values. - * - * Returns an array that contains the value of each promise (in the same order - * the promises were provided). An exception is thrown if any of the promises - * are rejected. - * - * @param mixed $promises Iterable of PromiseInterface objects to wait on. - * - * @return array - * @throws \Exception on error - * @throws \Throwable on error in PHP >=7 - */ -function unwrap($promises) -{ - $results = []; - foreach ($promises as $key => $promise) { - $results[$key] = $promise->wait(); - } - - return $results; -} - -/** - * Given an array of promises, return a promise that is fulfilled when all the - * items in the array are fulfilled. - * - * The promise's fulfillment value is an array with fulfillment values at - * respective positions to the original array. If any promise in the array - * rejects, the returned promise is rejected with the rejection reason. - * - * @param mixed $promises Promises or values. - * - * @return PromiseInterface - */ -function all($promises) -{ - $results = []; - return each( - $promises, - function ($value, $idx) use (&$results) { - $results[$idx] = $value; - }, - function ($reason, $idx, Promise $aggregate) { - $aggregate->reject($reason); - } - )->then(function () use (&$results) { - ksort($results); - return $results; - }); -} - -/** - * Initiate a competitive race between multiple promises or values (values will - * become immediately fulfilled promises). - * - * When count amount of promises have been fulfilled, the returned promise is - * fulfilled with an array that contains the fulfillment values of the winners - * in order of resolution. - * - * This prommise is rejected with a {@see GuzzleHttp\Promise\AggregateException} - * if the number of fulfilled promises is less than the desired $count. - * - * @param int $count Total number of promises. - * @param mixed $promises Promises or values. - * - * @return PromiseInterface - */ -function some($count, $promises) -{ - $results = []; - $rejections = []; - - return each( - $promises, - function ($value, $idx, PromiseInterface $p) use (&$results, $count) { - if ($p->getState() !== PromiseInterface::PENDING) { - return; - } - $results[$idx] = $value; - if (count($results) >= $count) { - $p->resolve(null); - } - }, - function ($reason) use (&$rejections) { - $rejections[] = $reason; - } - )->then( - function () use (&$results, &$rejections, $count) { - if (count($results) !== $count) { - throw new AggregateException( - 'Not enough promises to fulfill count', - $rejections - ); - } - ksort($results); - return array_values($results); - } - ); -} - -/** - * Like some(), with 1 as count. However, if the promise fulfills, the - * fulfillment value is not an array of 1 but the value directly. - * - * @param mixed $promises Promises or values. - * - * @return PromiseInterface - */ -function any($promises) -{ - return some(1, $promises)->then(function ($values) { return $values[0]; }); -} - -/** - * Returns a promise that is fulfilled when all of the provided promises have - * been fulfilled or rejected. - * - * The returned promise is fulfilled with an array of inspection state arrays. - * - * @param mixed $promises Promises or values. - * - * @return PromiseInterface - * @see GuzzleHttp\Promise\inspect for the inspection state array format. - */ -function settle($promises) -{ - $results = []; - - return each( - $promises, - function ($value, $idx) use (&$results) { - $results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value]; - }, - function ($reason, $idx) use (&$results) { - $results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason]; - } - )->then(function () use (&$results) { - ksort($results); - return $results; - }); -} - -/** - * Given an iterator that yields promises or values, returns a promise that is - * fulfilled with a null value when the iterator has been consumed or the - * aggregate promise has been fulfilled or rejected. - * - * $onFulfilled is a function that accepts the fulfilled value, iterator - * index, and the aggregate promise. The callback can invoke any necessary side - * effects and choose to resolve or reject the aggregate promise if needed. - * - * $onRejected is a function that accepts the rejection reason, iterator - * index, and the aggregate promise. The callback can invoke any necessary side - * effects and choose to resolve or reject the aggregate promise if needed. - * - * @param mixed $iterable Iterator or array to iterate over. - * @param callable $onFulfilled - * @param callable $onRejected - * - * @return PromiseInterface - */ -function each( - $iterable, - callable $onFulfilled = null, - callable $onRejected = null -) { - return (new EachPromise($iterable, [ - 'fulfilled' => $onFulfilled, - 'rejected' => $onRejected - ]))->promise(); -} - -/** - * Like each, but only allows a certain number of outstanding promises at any - * given time. - * - * $concurrency may be an integer or a function that accepts the number of - * pending promises and returns a numeric concurrency limit value to allow for - * dynamic a concurrency size. - * - * @param mixed $iterable - * @param int|callable $concurrency - * @param callable $onFulfilled - * @param callable $onRejected - * - * @return PromiseInterface - */ -function each_limit( - $iterable, - $concurrency, - callable $onFulfilled = null, - callable $onRejected = null -) { - return (new EachPromise($iterable, [ - 'fulfilled' => $onFulfilled, - 'rejected' => $onRejected, - 'concurrency' => $concurrency - ]))->promise(); -} - -/** - * Like each_limit, but ensures that no promise in the given $iterable argument - * is rejected. If any promise is rejected, then the aggregate promise is - * rejected with the encountered rejection. - * - * @param mixed $iterable - * @param int|callable $concurrency - * @param callable $onFulfilled - * - * @return PromiseInterface - */ -function each_limit_all( - $iterable, - $concurrency, - callable $onFulfilled = null -) { - return each_limit( - $iterable, - $concurrency, - $onFulfilled, - function ($reason, $idx, PromiseInterface $aggregate) { - $aggregate->reject($reason); - } - ); -} - -/** - * Returns true if a promise is fulfilled. - * - * @param PromiseInterface $promise - * - * @return bool - */ -function is_fulfilled(PromiseInterface $promise) -{ - return $promise->getState() === PromiseInterface::FULFILLED; -} - -/** - * Returns true if a promise is rejected. - * - * @param PromiseInterface $promise - * - * @return bool - */ -function is_rejected(PromiseInterface $promise) -{ - return $promise->getState() === PromiseInterface::REJECTED; -} - -/** - * Returns true if a promise is fulfilled or rejected. - * - * @param PromiseInterface $promise - * - * @return bool - */ -function is_settled(PromiseInterface $promise) -{ - return $promise->getState() !== PromiseInterface::PENDING; -} - -/** - * @see Coroutine - * - * @param callable $generatorFn - * - * @return PromiseInterface - */ -function coroutine(callable $generatorFn) -{ - return new Coroutine($generatorFn); -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/functions_include.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/functions_include.php deleted file mode 100644 index 34cd171..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/promises/src/functions_include.php +++ /dev/null @@ -1,6 +0,0 @@ -withPath('foo')->withHost('example.com')` will throw an exception - because the path of a URI with an authority must start with a slash "/" or be empty - - `(new Uri())->withScheme('http')` will return `'http://localhost'` -* Fix compatibility of URIs with `file` scheme and empty host. -* Added common URI utility methods based on RFC 3986 (see documentation in the readme): - - `Uri::isDefaultPort` - - `Uri::isAbsolute` - - `Uri::isNetworkPathReference` - - `Uri::isAbsolutePathReference` - - `Uri::isRelativePathReference` - - `Uri::isSameDocumentReference` - - `Uri::composeComponents` - - `UriNormalizer::normalize` - - `UriNormalizer::isEquivalent` - - `UriResolver::relativize` -* Deprecated `Uri::resolve` in favor of `UriResolver::resolve` -* Deprecated `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments` - -## 1.3.1 - 2016-06-25 - -* Fix `Uri::__toString` for network path references, e.g. `//example.org`. -* Fix missing lowercase normalization for host. -* Fix handling of URI components in case they are `'0'` in a lot of places, - e.g. as a user info password. -* Fix `Uri::withAddedHeader` to correctly merge headers with different case. -* Fix trimming of header values in `Uri::withAddedHeader`. Header values may - be surrounded by whitespace which should be ignored according to RFC 7230 - Section 3.2.4. This does not apply to header names. -* Fix `Uri::withAddedHeader` with an array of header values. -* Fix `Uri::resolve` when base path has no slash and handling of fragment. -* Fix handling of encoding in `Uri::with(out)QueryValue` so one can pass the - key/value both in encoded as well as decoded form to those methods. This is - consistent with withPath, withQuery etc. -* Fix `ServerRequest::withoutAttribute` when attribute value is null. - -## 1.3.0 - 2016-04-13 - -* Added remaining interfaces needed for full PSR7 compatibility - (ServerRequestInterface, UploadedFileInterface, etc.). -* Added support for stream_for from scalars. -* Can now extend Uri. -* Fixed a bug in validating request methods by making it more permissive. - -## 1.2.3 - 2016-02-18 - -* Fixed support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote - streams, which can sometimes return fewer bytes than requested with `fread`. -* Fixed handling of gzipped responses with FNAME headers. - -## 1.2.2 - 2016-01-22 - -* Added support for URIs without any authority. -* Added support for HTTP 451 'Unavailable For Legal Reasons.' -* Added support for using '0' as a filename. -* Added support for including non-standard ports in Host headers. - -## 1.2.1 - 2015-11-02 - -* Now supporting negative offsets when seeking to SEEK_END. - -## 1.2.0 - 2015-08-15 - -* Body as `"0"` is now properly added to a response. -* Now allowing forward seeking in CachingStream. -* Now properly parsing HTTP requests that contain proxy targets in - `parse_request`. -* functions.php is now conditionally required. -* user-info is no longer dropped when resolving URIs. - -## 1.1.0 - 2015-06-24 - -* URIs can now be relative. -* `multipart/form-data` headers are now overridden case-insensitively. -* URI paths no longer encode the following characters because they are allowed - in URIs: "(", ")", "*", "!", "'" -* A port is no longer added to a URI when the scheme is missing and no port is - present. - -## 1.0.0 - 2015-05-19 - -Initial release. - -Currently unsupported: - -- `Psr\Http\Message\ServerRequestInterface` -- `Psr\Http\Message\UploadedFileInterface` diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/LICENSE b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/LICENSE deleted file mode 100644 index 581d95f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2015 Michael Dowling, https://github.com/mtdowling - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/README.md b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/README.md deleted file mode 100644 index 1649935..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/README.md +++ /dev/null @@ -1,739 +0,0 @@ -# PSR-7 Message Implementation - -This repository contains a full [PSR-7](http://www.php-fig.org/psr/psr-7/) -message implementation, several stream decorators, and some helpful -functionality like query string parsing. - - -[![Build Status](https://travis-ci.org/guzzle/psr7.svg?branch=master)](https://travis-ci.org/guzzle/psr7) - - -# Stream implementation - -This package comes with a number of stream implementations and stream -decorators. - - -## AppendStream - -`GuzzleHttp\Psr7\AppendStream` - -Reads from multiple streams, one after the other. - -```php -use GuzzleHttp\Psr7; - -$a = Psr7\stream_for('abc, '); -$b = Psr7\stream_for('123.'); -$composed = new Psr7\AppendStream([$a, $b]); - -$composed->addStream(Psr7\stream_for(' Above all listen to me')); - -echo $composed; // abc, 123. Above all listen to me. -``` - - -## BufferStream - -`GuzzleHttp\Psr7\BufferStream` - -Provides a buffer stream that can be written to fill a buffer, and read -from to remove bytes from the buffer. - -This stream returns a "hwm" metadata value that tells upstream consumers -what the configured high water mark of the stream is, or the maximum -preferred size of the buffer. - -```php -use GuzzleHttp\Psr7; - -// When more than 1024 bytes are in the buffer, it will begin returning -// false to writes. This is an indication that writers should slow down. -$buffer = new Psr7\BufferStream(1024); -``` - - -## CachingStream - -The CachingStream is used to allow seeking over previously read bytes on -non-seekable streams. This can be useful when transferring a non-seekable -entity body fails due to needing to rewind the stream (for example, resulting -from a redirect). Data that is read from the remote stream will be buffered in -a PHP temp stream so that previously read bytes are cached first in memory, -then on disk. - -```php -use GuzzleHttp\Psr7; - -$original = Psr7\stream_for(fopen('http://www.google.com', 'r')); -$stream = new Psr7\CachingStream($original); - -$stream->read(1024); -echo $stream->tell(); -// 1024 - -$stream->seek(0); -echo $stream->tell(); -// 0 -``` - - -## DroppingStream - -`GuzzleHttp\Psr7\DroppingStream` - -Stream decorator that begins dropping data once the size of the underlying -stream becomes too full. - -```php -use GuzzleHttp\Psr7; - -// Create an empty stream -$stream = Psr7\stream_for(); - -// Start dropping data when the stream has more than 10 bytes -$dropping = new Psr7\DroppingStream($stream, 10); - -$dropping->write('01234567890123456789'); -echo $stream; // 0123456789 -``` - - -## FnStream - -`GuzzleHttp\Psr7\FnStream` - -Compose stream implementations based on a hash of functions. - -Allows for easy testing and extension of a provided stream without needing -to create a concrete class for a simple extension point. - -```php - -use GuzzleHttp\Psr7; - -$stream = Psr7\stream_for('hi'); -$fnStream = Psr7\FnStream::decorate($stream, [ - 'rewind' => function () use ($stream) { - echo 'About to rewind - '; - $stream->rewind(); - echo 'rewound!'; - } -]); - -$fnStream->rewind(); -// Outputs: About to rewind - rewound! -``` - - -## InflateStream - -`GuzzleHttp\Psr7\InflateStream` - -Uses PHP's zlib.inflate filter to inflate deflate or gzipped content. - -This stream decorator skips the first 10 bytes of the given stream to remove -the gzip header, converts the provided stream to a PHP stream resource, -then appends the zlib.inflate filter. The stream is then converted back -to a Guzzle stream resource to be used as a Guzzle stream. - - -## LazyOpenStream - -`GuzzleHttp\Psr7\LazyOpenStream` - -Lazily reads or writes to a file that is opened only after an IO operation -take place on the stream. - -```php -use GuzzleHttp\Psr7; - -$stream = new Psr7\LazyOpenStream('/path/to/file', 'r'); -// The file has not yet been opened... - -echo $stream->read(10); -// The file is opened and read from only when needed. -``` - - -## LimitStream - -`GuzzleHttp\Psr7\LimitStream` - -LimitStream can be used to read a subset or slice of an existing stream object. -This can be useful for breaking a large file into smaller pieces to be sent in -chunks (e.g. Amazon S3's multipart upload API). - -```php -use GuzzleHttp\Psr7; - -$original = Psr7\stream_for(fopen('/tmp/test.txt', 'r+')); -echo $original->getSize(); -// >>> 1048576 - -// Limit the size of the body to 1024 bytes and start reading from byte 2048 -$stream = new Psr7\LimitStream($original, 1024, 2048); -echo $stream->getSize(); -// >>> 1024 -echo $stream->tell(); -// >>> 0 -``` - - -## MultipartStream - -`GuzzleHttp\Psr7\MultipartStream` - -Stream that when read returns bytes for a streaming multipart or -multipart/form-data stream. - - -## NoSeekStream - -`GuzzleHttp\Psr7\NoSeekStream` - -NoSeekStream wraps a stream and does not allow seeking. - -```php -use GuzzleHttp\Psr7; - -$original = Psr7\stream_for('foo'); -$noSeek = new Psr7\NoSeekStream($original); - -echo $noSeek->read(3); -// foo -var_export($noSeek->isSeekable()); -// false -$noSeek->seek(0); -var_export($noSeek->read(3)); -// NULL -``` - - -## PumpStream - -`GuzzleHttp\Psr7\PumpStream` - -Provides a read only stream that pumps data from a PHP callable. - -When invoking the provided callable, the PumpStream will pass the amount of -data requested to read to the callable. The callable can choose to ignore -this value and return fewer or more bytes than requested. Any extra data -returned by the provided callable is buffered internally until drained using -the read() function of the PumpStream. The provided callable MUST return -false when there is no more data to read. - - -## Implementing stream decorators - -Creating a stream decorator is very easy thanks to the -`GuzzleHttp\Psr7\StreamDecoratorTrait`. This trait provides methods that -implement `Psr\Http\Message\StreamInterface` by proxying to an underlying -stream. Just `use` the `StreamDecoratorTrait` and implement your custom -methods. - -For example, let's say we wanted to call a specific function each time the last -byte is read from a stream. This could be implemented by overriding the -`read()` method. - -```php -use Psr\Http\Message\StreamInterface; -use GuzzleHttp\Psr7\StreamDecoratorTrait; - -class EofCallbackStream implements StreamInterface -{ - use StreamDecoratorTrait; - - private $callback; - - public function __construct(StreamInterface $stream, callable $cb) - { - $this->stream = $stream; - $this->callback = $cb; - } - - public function read($length) - { - $result = $this->stream->read($length); - - // Invoke the callback when EOF is hit. - if ($this->eof()) { - call_user_func($this->callback); - } - - return $result; - } -} -``` - -This decorator could be added to any existing stream and used like so: - -```php -use GuzzleHttp\Psr7; - -$original = Psr7\stream_for('foo'); - -$eofStream = new EofCallbackStream($original, function () { - echo 'EOF!'; -}); - -$eofStream->read(2); -$eofStream->read(1); -// echoes "EOF!" -$eofStream->seek(0); -$eofStream->read(3); -// echoes "EOF!" -``` - - -## PHP StreamWrapper - -You can use the `GuzzleHttp\Psr7\StreamWrapper` class if you need to use a -PSR-7 stream as a PHP stream resource. - -Use the `GuzzleHttp\Psr7\StreamWrapper::getResource()` method to create a PHP -stream from a PSR-7 stream. - -```php -use GuzzleHttp\Psr7\StreamWrapper; - -$stream = GuzzleHttp\Psr7\stream_for('hello!'); -$resource = StreamWrapper::getResource($stream); -echo fread($resource, 6); // outputs hello! -``` - - -# Function API - -There are various functions available under the `GuzzleHttp\Psr7` namespace. - - -## `function str` - -`function str(MessageInterface $message)` - -Returns the string representation of an HTTP message. - -```php -$request = new GuzzleHttp\Psr7\Request('GET', 'http://example.com'); -echo GuzzleHttp\Psr7\str($request); -``` - - -## `function uri_for` - -`function uri_for($uri)` - -This function accepts a string or `Psr\Http\Message\UriInterface` and returns a -UriInterface for the given value. If the value is already a `UriInterface`, it -is returned as-is. - -```php -$uri = GuzzleHttp\Psr7\uri_for('http://example.com'); -assert($uri === GuzzleHttp\Psr7\uri_for($uri)); -``` - - -## `function stream_for` - -`function stream_for($resource = '', array $options = [])` - -Create a new stream based on the input type. - -Options is an associative array that can contain the following keys: - -* - metadata: Array of custom metadata. -* - size: Size of the stream. - -This method accepts the following `$resource` types: - -- `Psr\Http\Message\StreamInterface`: Returns the value as-is. -- `string`: Creates a stream object that uses the given string as the contents. -- `resource`: Creates a stream object that wraps the given PHP stream resource. -- `Iterator`: If the provided value implements `Iterator`, then a read-only - stream object will be created that wraps the given iterable. Each time the - stream is read from, data from the iterator will fill a buffer and will be - continuously called until the buffer is equal to the requested read size. - Subsequent read calls will first read from the buffer and then call `next` - on the underlying iterator until it is exhausted. -- `object` with `__toString()`: If the object has the `__toString()` method, - the object will be cast to a string and then a stream will be returned that - uses the string value. -- `NULL`: When `null` is passed, an empty stream object is returned. -- `callable` When a callable is passed, a read-only stream object will be - created that invokes the given callable. The callable is invoked with the - number of suggested bytes to read. The callable can return any number of - bytes, but MUST return `false` when there is no more data to return. The - stream object that wraps the callable will invoke the callable until the - number of requested bytes are available. Any additional bytes will be - buffered and used in subsequent reads. - -```php -$stream = GuzzleHttp\Psr7\stream_for('foo'); -$stream = GuzzleHttp\Psr7\stream_for(fopen('/path/to/file', 'r')); - -$generator function ($bytes) { - for ($i = 0; $i < $bytes; $i++) { - yield ' '; - } -} - -$stream = GuzzleHttp\Psr7\stream_for($generator(100)); -``` - - -## `function parse_header` - -`function parse_header($header)` - -Parse an array of header values containing ";" separated data into an array of -associative arrays representing the header key value pair data of the header. -When a parameter does not contain a value, but just contains a key, this -function will inject a key with a '' string value. - - -## `function normalize_header` - -`function normalize_header($header)` - -Converts an array of header values that may contain comma separated headers -into an array of headers with no comma separated values. - - -## `function modify_request` - -`function modify_request(RequestInterface $request, array $changes)` - -Clone and modify a request with the given changes. This method is useful for -reducing the number of clones needed to mutate a message. - -The changes can be one of: - -- method: (string) Changes the HTTP method. -- set_headers: (array) Sets the given headers. -- remove_headers: (array) Remove the given headers. -- body: (mixed) Sets the given body. -- uri: (UriInterface) Set the URI. -- query: (string) Set the query string value of the URI. -- version: (string) Set the protocol version. - - -## `function rewind_body` - -`function rewind_body(MessageInterface $message)` - -Attempts to rewind a message body and throws an exception on failure. The body -of the message will only be rewound if a call to `tell()` returns a value other -than `0`. - - -## `function try_fopen` - -`function try_fopen($filename, $mode)` - -Safely opens a PHP stream resource using a filename. - -When fopen fails, PHP normally raises a warning. This function adds an error -handler that checks for errors and throws an exception instead. - - -## `function copy_to_string` - -`function copy_to_string(StreamInterface $stream, $maxLen = -1)` - -Copy the contents of a stream into a string until the given number of bytes -have been read. - - -## `function copy_to_stream` - -`function copy_to_stream(StreamInterface $source, StreamInterface $dest, $maxLen = -1)` - -Copy the contents of a stream into another stream until the given number of -bytes have been read. - - -## `function hash` - -`function hash(StreamInterface $stream, $algo, $rawOutput = false)` - -Calculate a hash of a Stream. This method reads the entire stream to calculate -a rolling hash (based on PHP's hash_init functions). - - -## `function readline` - -`function readline(StreamInterface $stream, $maxLength = null)` - -Read a line from the stream up to the maximum allowed buffer length. - - -## `function parse_request` - -`function parse_request($message)` - -Parses a request message string into a request object. - - -## `function parse_response` - -`function parse_response($message)` - -Parses a response message string into a response object. - - -## `function parse_query` - -`function parse_query($str, $urlEncoding = true)` - -Parse a query string into an associative array. - -If multiple values are found for the same key, the value of that key value pair -will become an array. This function does not parse nested PHP style arrays into -an associative array (e.g., `foo[a]=1&foo[b]=2` will be parsed into -`['foo[a]' => '1', 'foo[b]' => '2']`). - - -## `function build_query` - -`function build_query(array $params, $encoding = PHP_QUERY_RFC3986)` - -Build a query string from an array of key value pairs. - -This function can use the return value of parse_query() to build a query string. -This function does not modify the provided keys when an array is encountered -(like http_build_query would). - - -## `function mimetype_from_filename` - -`function mimetype_from_filename($filename)` - -Determines the mimetype of a file by looking at its extension. - - -## `function mimetype_from_extension` - -`function mimetype_from_extension($extension)` - -Maps a file extensions to a mimetype. - - -# Additional URI Methods - -Aside from the standard `Psr\Http\Message\UriInterface` implementation in form of the `GuzzleHttp\Psr7\Uri` class, -this library also provides additional functionality when working with URIs as static methods. - -## URI Types - -An instance of `Psr\Http\Message\UriInterface` can either be an absolute URI or a relative reference. -An absolute URI has a scheme. A relative reference is used to express a URI relative to another URI, -the base URI. Relative references can be divided into several forms according to -[RFC 3986 Section 4.2](https://tools.ietf.org/html/rfc3986#section-4.2): - -- network-path references, e.g. `//example.com/path` -- absolute-path references, e.g. `/path` -- relative-path references, e.g. `subpath` - -The following methods can be used to identify the type of the URI. - -### `GuzzleHttp\Psr7\Uri::isAbsolute` - -`public static function isAbsolute(UriInterface $uri): bool` - -Whether the URI is absolute, i.e. it has a scheme. - -### `GuzzleHttp\Psr7\Uri::isNetworkPathReference` - -`public static function isNetworkPathReference(UriInterface $uri): bool` - -Whether the URI is a network-path reference. A relative reference that begins with two slash characters is -termed an network-path reference. - -### `GuzzleHttp\Psr7\Uri::isAbsolutePathReference` - -`public static function isAbsolutePathReference(UriInterface $uri): bool` - -Whether the URI is a absolute-path reference. A relative reference that begins with a single slash character is -termed an absolute-path reference. - -### `GuzzleHttp\Psr7\Uri::isRelativePathReference` - -`public static function isRelativePathReference(UriInterface $uri): bool` - -Whether the URI is a relative-path reference. A relative reference that does not begin with a slash character is -termed a relative-path reference. - -### `GuzzleHttp\Psr7\Uri::isSameDocumentReference` - -`public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool` - -Whether the URI is a same-document reference. A same-document reference refers to a URI that is, aside from its -fragment component, identical to the base URI. When no base URI is given, only an empty URI reference -(apart from its fragment) is considered a same-document reference. - -## URI Components - -Additional methods to work with URI components. - -### `GuzzleHttp\Psr7\Uri::isDefaultPort` - -`public static function isDefaultPort(UriInterface $uri): bool` - -Whether the URI has the default port of the current scheme. `Psr\Http\Message\UriInterface::getPort` may return null -or the standard port. This method can be used independently of the implementation. - -### `GuzzleHttp\Psr7\Uri::composeComponents` - -`public static function composeComponents($scheme, $authority, $path, $query, $fragment): string` - -Composes a URI reference string from its various components according to -[RFC 3986 Section 5.3](https://tools.ietf.org/html/rfc3986#section-5.3). Usually this method does not need to be called -manually but instead is used indirectly via `Psr\Http\Message\UriInterface::__toString`. - -### `GuzzleHttp\Psr7\Uri::fromParts` - -`public static function fromParts(array $parts): UriInterface` - -Creates a URI from a hash of [`parse_url`](http://php.net/manual/en/function.parse-url.php) components. - - -### `GuzzleHttp\Psr7\Uri::withQueryValue` - -`public static function withQueryValue(UriInterface $uri, $key, $value): UriInterface` - -Creates a new URI with a specific query string value. Any existing query string values that exactly match the -provided key are removed and replaced with the given key value pair. A value of null will set the query string -key without a value, e.g. "key" instead of "key=value". - - -### `GuzzleHttp\Psr7\Uri::withoutQueryValue` - -`public static function withoutQueryValue(UriInterface $uri, $key): UriInterface` - -Creates a new URI with a specific query string value removed. Any existing query string values that exactly match the -provided key are removed. - -## Reference Resolution - -`GuzzleHttp\Psr7\UriResolver` provides methods to resolve a URI reference in the context of a base URI according -to [RFC 3986 Section 5](https://tools.ietf.org/html/rfc3986#section-5). This is for example also what web browsers -do when resolving a link in a website based on the current request URI. - -### `GuzzleHttp\Psr7\UriResolver::resolve` - -`public static function resolve(UriInterface $base, UriInterface $rel): UriInterface` - -Converts the relative URI into a new URI that is resolved against the base URI. - -### `GuzzleHttp\Psr7\UriResolver::removeDotSegments` - -`public static function removeDotSegments(string $path): string` - -Removes dot segments from a path and returns the new path according to -[RFC 3986 Section 5.2.4](https://tools.ietf.org/html/rfc3986#section-5.2.4). - -### `GuzzleHttp\Psr7\UriResolver::relativize` - -`public static function relativize(UriInterface $base, UriInterface $target): UriInterface` - -Returns the target URI as a relative reference from the base URI. This method is the counterpart to resolve(): - -```php -(string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target)) -``` - -One use-case is to use the current request URI as base URI and then generate relative links in your documents -to reduce the document size or offer self-contained downloadable document archives. - -```php -$base = new Uri('http://example.com/a/b/'); -echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'. -echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'. -echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'. -echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'. -``` - -## Normalization and Comparison - -`GuzzleHttp\Psr7\UriNormalizer` provides methods to normalize and compare URIs according to -[RFC 3986 Section 6](https://tools.ietf.org/html/rfc3986#section-6). - -### `GuzzleHttp\Psr7\UriNormalizer::normalize` - -`public static function normalize(UriInterface $uri, $flags = self::PRESERVING_NORMALIZATIONS): UriInterface` - -Returns a normalized URI. The scheme and host component are already normalized to lowercase per PSR-7 UriInterface. -This methods adds additional normalizations that can be configured with the `$flags` parameter which is a bitmask -of normalizations to apply. The following normalizations are available: - -- `UriNormalizer::PRESERVING_NORMALIZATIONS` - - Default normalizations which only include the ones that preserve semantics. - -- `UriNormalizer::CAPITALIZE_PERCENT_ENCODING` - - All letters within a percent-encoding triplet (e.g., "%3A") are case-insensitive, and should be capitalized. - - Example: `http://example.org/a%c2%b1b` → `http://example.org/a%C2%B1b` - -- `UriNormalizer::DECODE_UNRESERVED_CHARACTERS` - - Decodes percent-encoded octets of unreserved characters. For consistency, percent-encoded octets in the ranges of - ALPHA (%41–%5A and %61–%7A), DIGIT (%30–%39), hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should - not be created by URI producers and, when found in a URI, should be decoded to their corresponding unreserved - characters by URI normalizers. - - Example: `http://example.org/%7Eusern%61me/` → `http://example.org/~username/` - -- `UriNormalizer::CONVERT_EMPTY_PATH` - - Converts the empty path to "/" for http and https URIs. - - Example: `http://example.org` → `http://example.org/` - -- `UriNormalizer::REMOVE_DEFAULT_HOST` - - Removes the default host of the given URI scheme from the URI. Only the "file" scheme defines the default host - "localhost". All of `file:/myfile`, `file:///myfile`, and `file://localhost/myfile` are equivalent according to - RFC 3986. - - Example: `file://localhost/myfile` → `file:///myfile` - -- `UriNormalizer::REMOVE_DEFAULT_PORT` - - Removes the default port of the given URI scheme from the URI. - - Example: `http://example.org:80/` → `http://example.org/` - -- `UriNormalizer::REMOVE_DOT_SEGMENTS` - - Removes unnecessary dot-segments. Dot-segments in relative-path references are not removed as it would - change the semantics of the URI reference. - - Example: `http://example.org/../a/b/../c/./d.html` → `http://example.org/a/c/d.html` - -- `UriNormalizer::REMOVE_DUPLICATE_SLASHES` - - Paths which include two or more adjacent slashes are converted to one. Webservers usually ignore duplicate slashes - and treat those URIs equivalent. But in theory those URIs do not need to be equivalent. So this normalization - may change the semantics. Encoded slashes (%2F) are not removed. - - Example: `http://example.org//foo///bar.html` → `http://example.org/foo/bar.html` - -- `UriNormalizer::SORT_QUERY_PARAMETERS` - - Sort query parameters with their values in alphabetical order. However, the order of parameters in a URI may be - significant (this is not defined by the standard). So this normalization is not safe and may change the semantics - of the URI. - - Example: `?lang=en&article=fred` → `?article=fred&lang=en` - -### `GuzzleHttp\Psr7\UriNormalizer::isEquivalent` - -`public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS): bool` - -Whether two URIs can be considered equivalent. Both URIs are normalized automatically before comparison with the given -`$normalizations` bitmask. The method also accepts relative URI references and returns true when they are equivalent. -This of course assumes they will be resolved against the same base URI. If this is not the case, determination of -equivalence or difference of relative references does not mean anything. diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/composer.json b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/composer.json deleted file mode 100644 index b1c5a90..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/composer.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "guzzlehttp/psr7", - "type": "library", - "description": "PSR-7 message implementation that also provides common utility methods", - "keywords": ["request", "response", "message", "stream", "http", "uri", "url"], - "license": "MIT", - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "Tobias Schultze", - "homepage": "https://github.com/Tobion" - } - ], - "require": { - "php": ">=5.4.0", - "psr/http-message": "~1.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "provide": { - "psr/http-message-implementation": "1.0" - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\Psr7\\": "src/" - }, - "files": ["src/functions_include.php"] - }, - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/AppendStream.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/AppendStream.php deleted file mode 100644 index 23039fd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/AppendStream.php +++ /dev/null @@ -1,233 +0,0 @@ -addStream($stream); - } - } - - public function __toString() - { - try { - $this->rewind(); - return $this->getContents(); - } catch (\Exception $e) { - return ''; - } - } - - /** - * Add a stream to the AppendStream - * - * @param StreamInterface $stream Stream to append. Must be readable. - * - * @throws \InvalidArgumentException if the stream is not readable - */ - public function addStream(StreamInterface $stream) - { - if (!$stream->isReadable()) { - throw new \InvalidArgumentException('Each stream must be readable'); - } - - // The stream is only seekable if all streams are seekable - if (!$stream->isSeekable()) { - $this->seekable = false; - } - - $this->streams[] = $stream; - } - - public function getContents() - { - return copy_to_string($this); - } - - /** - * Closes each attached stream. - * - * {@inheritdoc} - */ - public function close() - { - $this->pos = $this->current = 0; - - foreach ($this->streams as $stream) { - $stream->close(); - } - - $this->streams = []; - } - - /** - * Detaches each attached stream - * - * {@inheritdoc} - */ - public function detach() - { - $this->close(); - $this->detached = true; - } - - public function tell() - { - return $this->pos; - } - - /** - * Tries to calculate the size by adding the size of each stream. - * - * If any of the streams do not return a valid number, then the size of the - * append stream cannot be determined and null is returned. - * - * {@inheritdoc} - */ - public function getSize() - { - $size = 0; - - foreach ($this->streams as $stream) { - $s = $stream->getSize(); - if ($s === null) { - return null; - } - $size += $s; - } - - return $size; - } - - public function eof() - { - return !$this->streams || - ($this->current >= count($this->streams) - 1 && - $this->streams[$this->current]->eof()); - } - - public function rewind() - { - $this->seek(0); - } - - /** - * Attempts to seek to the given position. Only supports SEEK_SET. - * - * {@inheritdoc} - */ - public function seek($offset, $whence = SEEK_SET) - { - if (!$this->seekable) { - throw new \RuntimeException('This AppendStream is not seekable'); - } elseif ($whence !== SEEK_SET) { - throw new \RuntimeException('The AppendStream can only seek with SEEK_SET'); - } - - $this->pos = $this->current = 0; - - // Rewind each stream - foreach ($this->streams as $i => $stream) { - try { - $stream->rewind(); - } catch (\Exception $e) { - throw new \RuntimeException('Unable to seek stream ' - . $i . ' of the AppendStream', 0, $e); - } - } - - // Seek to the actual position by reading from each stream - while ($this->pos < $offset && !$this->eof()) { - $result = $this->read(min(8096, $offset - $this->pos)); - if ($result === '') { - break; - } - } - } - - /** - * Reads from all of the appended streams until the length is met or EOF. - * - * {@inheritdoc} - */ - public function read($length) - { - $buffer = ''; - $total = count($this->streams) - 1; - $remaining = $length; - $progressToNext = false; - - while ($remaining > 0) { - - // Progress to the next stream if needed. - if ($progressToNext || $this->streams[$this->current]->eof()) { - $progressToNext = false; - if ($this->current === $total) { - break; - } - $this->current++; - } - - $result = $this->streams[$this->current]->read($remaining); - - // Using a loose comparison here to match on '', false, and null - if ($result == null) { - $progressToNext = true; - continue; - } - - $buffer .= $result; - $remaining = $length - strlen($buffer); - } - - $this->pos += strlen($buffer); - - return $buffer; - } - - public function isReadable() - { - return true; - } - - public function isWritable() - { - return false; - } - - public function isSeekable() - { - return $this->seekable; - } - - public function write($string) - { - throw new \RuntimeException('Cannot write to an AppendStream'); - } - - public function getMetadata($key = null) - { - return $key ? null : []; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/BufferStream.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/BufferStream.php deleted file mode 100644 index af4d4c2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/BufferStream.php +++ /dev/null @@ -1,137 +0,0 @@ -hwm = $hwm; - } - - public function __toString() - { - return $this->getContents(); - } - - public function getContents() - { - $buffer = $this->buffer; - $this->buffer = ''; - - return $buffer; - } - - public function close() - { - $this->buffer = ''; - } - - public function detach() - { - $this->close(); - } - - public function getSize() - { - return strlen($this->buffer); - } - - public function isReadable() - { - return true; - } - - public function isWritable() - { - return true; - } - - public function isSeekable() - { - return false; - } - - public function rewind() - { - $this->seek(0); - } - - public function seek($offset, $whence = SEEK_SET) - { - throw new \RuntimeException('Cannot seek a BufferStream'); - } - - public function eof() - { - return strlen($this->buffer) === 0; - } - - public function tell() - { - throw new \RuntimeException('Cannot determine the position of a BufferStream'); - } - - /** - * Reads data from the buffer. - */ - public function read($length) - { - $currentLength = strlen($this->buffer); - - if ($length >= $currentLength) { - // No need to slice the buffer because we don't have enough data. - $result = $this->buffer; - $this->buffer = ''; - } else { - // Slice up the result to provide a subset of the buffer. - $result = substr($this->buffer, 0, $length); - $this->buffer = substr($this->buffer, $length); - } - - return $result; - } - - /** - * Writes data to the buffer. - */ - public function write($string) - { - $this->buffer .= $string; - - // TODO: What should happen here? - if (strlen($this->buffer) >= $this->hwm) { - return false; - } - - return strlen($string); - } - - public function getMetadata($key = null) - { - if ($key == 'hwm') { - return $this->hwm; - } - - return $key ? null : []; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/CachingStream.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/CachingStream.php deleted file mode 100644 index ed68f08..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/CachingStream.php +++ /dev/null @@ -1,138 +0,0 @@ -remoteStream = $stream; - $this->stream = $target ?: new Stream(fopen('php://temp', 'r+')); - } - - public function getSize() - { - return max($this->stream->getSize(), $this->remoteStream->getSize()); - } - - public function rewind() - { - $this->seek(0); - } - - public function seek($offset, $whence = SEEK_SET) - { - if ($whence == SEEK_SET) { - $byte = $offset; - } elseif ($whence == SEEK_CUR) { - $byte = $offset + $this->tell(); - } elseif ($whence == SEEK_END) { - $size = $this->remoteStream->getSize(); - if ($size === null) { - $size = $this->cacheEntireStream(); - } - $byte = $size + $offset; - } else { - throw new \InvalidArgumentException('Invalid whence'); - } - - $diff = $byte - $this->stream->getSize(); - - if ($diff > 0) { - // Read the remoteStream until we have read in at least the amount - // of bytes requested, or we reach the end of the file. - while ($diff > 0 && !$this->remoteStream->eof()) { - $this->read($diff); - $diff = $byte - $this->stream->getSize(); - } - } else { - // We can just do a normal seek since we've already seen this byte. - $this->stream->seek($byte); - } - } - - public function read($length) - { - // Perform a regular read on any previously read data from the buffer - $data = $this->stream->read($length); - $remaining = $length - strlen($data); - - // More data was requested so read from the remote stream - if ($remaining) { - // If data was written to the buffer in a position that would have - // been filled from the remote stream, then we must skip bytes on - // the remote stream to emulate overwriting bytes from that - // position. This mimics the behavior of other PHP stream wrappers. - $remoteData = $this->remoteStream->read( - $remaining + $this->skipReadBytes - ); - - if ($this->skipReadBytes) { - $len = strlen($remoteData); - $remoteData = substr($remoteData, $this->skipReadBytes); - $this->skipReadBytes = max(0, $this->skipReadBytes - $len); - } - - $data .= $remoteData; - $this->stream->write($remoteData); - } - - return $data; - } - - public function write($string) - { - // When appending to the end of the currently read stream, you'll want - // to skip bytes from being read from the remote stream to emulate - // other stream wrappers. Basically replacing bytes of data of a fixed - // length. - $overflow = (strlen($string) + $this->tell()) - $this->remoteStream->tell(); - if ($overflow > 0) { - $this->skipReadBytes += $overflow; - } - - return $this->stream->write($string); - } - - public function eof() - { - return $this->stream->eof() && $this->remoteStream->eof(); - } - - /** - * Close both the remote stream and buffer stream - */ - public function close() - { - $this->remoteStream->close() && $this->stream->close(); - } - - private function cacheEntireStream() - { - $target = new FnStream(['write' => 'strlen']); - copy_to_stream($this, $target); - - return $this->tell(); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/DroppingStream.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/DroppingStream.php deleted file mode 100644 index 8935c80..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/DroppingStream.php +++ /dev/null @@ -1,42 +0,0 @@ -stream = $stream; - $this->maxLength = $maxLength; - } - - public function write($string) - { - $diff = $this->maxLength - $this->stream->getSize(); - - // Begin returning 0 when the underlying stream is too large. - if ($diff <= 0) { - return 0; - } - - // Write the stream or a subset of the stream if needed. - if (strlen($string) < $diff) { - return $this->stream->write($string); - } - - return $this->stream->write(substr($string, 0, $diff)); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/FnStream.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/FnStream.php deleted file mode 100644 index cc9b445..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/FnStream.php +++ /dev/null @@ -1,149 +0,0 @@ -methods = $methods; - - // Create the functions on the class - foreach ($methods as $name => $fn) { - $this->{'_fn_' . $name} = $fn; - } - } - - /** - * Lazily determine which methods are not implemented. - * @throws \BadMethodCallException - */ - public function __get($name) - { - throw new \BadMethodCallException(str_replace('_fn_', '', $name) - . '() is not implemented in the FnStream'); - } - - /** - * The close method is called on the underlying stream only if possible. - */ - public function __destruct() - { - if (isset($this->_fn_close)) { - call_user_func($this->_fn_close); - } - } - - /** - * Adds custom functionality to an underlying stream by intercepting - * specific method calls. - * - * @param StreamInterface $stream Stream to decorate - * @param array $methods Hash of method name to a closure - * - * @return FnStream - */ - public static function decorate(StreamInterface $stream, array $methods) - { - // If any of the required methods were not provided, then simply - // proxy to the decorated stream. - foreach (array_diff(self::$slots, array_keys($methods)) as $diff) { - $methods[$diff] = [$stream, $diff]; - } - - return new self($methods); - } - - public function __toString() - { - return call_user_func($this->_fn___toString); - } - - public function close() - { - return call_user_func($this->_fn_close); - } - - public function detach() - { - return call_user_func($this->_fn_detach); - } - - public function getSize() - { - return call_user_func($this->_fn_getSize); - } - - public function tell() - { - return call_user_func($this->_fn_tell); - } - - public function eof() - { - return call_user_func($this->_fn_eof); - } - - public function isSeekable() - { - return call_user_func($this->_fn_isSeekable); - } - - public function rewind() - { - call_user_func($this->_fn_rewind); - } - - public function seek($offset, $whence = SEEK_SET) - { - call_user_func($this->_fn_seek, $offset, $whence); - } - - public function isWritable() - { - return call_user_func($this->_fn_isWritable); - } - - public function write($string) - { - return call_user_func($this->_fn_write, $string); - } - - public function isReadable() - { - return call_user_func($this->_fn_isReadable); - } - - public function read($length) - { - return call_user_func($this->_fn_read, $length); - } - - public function getContents() - { - return call_user_func($this->_fn_getContents); - } - - public function getMetadata($key = null) - { - return call_user_func($this->_fn_getMetadata, $key); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/InflateStream.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/InflateStream.php deleted file mode 100644 index 0051d3f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/InflateStream.php +++ /dev/null @@ -1,52 +0,0 @@ -read(10); - $filenameHeaderLength = $this->getLengthOfPossibleFilenameHeader($stream, $header); - // Skip the header, that is 10 + length of filename + 1 (nil) bytes - $stream = new LimitStream($stream, -1, 10 + $filenameHeaderLength); - $resource = StreamWrapper::getResource($stream); - stream_filter_append($resource, 'zlib.inflate', STREAM_FILTER_READ); - $this->stream = new Stream($resource); - } - - /** - * @param StreamInterface $stream - * @param $header - * @return int - */ - private function getLengthOfPossibleFilenameHeader(StreamInterface $stream, $header) - { - $filename_header_length = 0; - - if (substr(bin2hex($header), 6, 2) === '08') { - // we have a filename, read until nil - $filename_header_length = 1; - while ($stream->read(1) !== chr(0)) { - $filename_header_length++; - } - } - - return $filename_header_length; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/LazyOpenStream.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/LazyOpenStream.php deleted file mode 100644 index 02cec3a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/LazyOpenStream.php +++ /dev/null @@ -1,39 +0,0 @@ -filename = $filename; - $this->mode = $mode; - } - - /** - * Creates the underlying stream lazily when required. - * - * @return StreamInterface - */ - protected function createStream() - { - return stream_for(try_fopen($this->filename, $this->mode)); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/LimitStream.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/LimitStream.php deleted file mode 100644 index 3c13d4f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/LimitStream.php +++ /dev/null @@ -1,155 +0,0 @@ -stream = $stream; - $this->setLimit($limit); - $this->setOffset($offset); - } - - public function eof() - { - // Always return true if the underlying stream is EOF - if ($this->stream->eof()) { - return true; - } - - // No limit and the underlying stream is not at EOF - if ($this->limit == -1) { - return false; - } - - return $this->stream->tell() >= $this->offset + $this->limit; - } - - /** - * Returns the size of the limited subset of data - * {@inheritdoc} - */ - public function getSize() - { - if (null === ($length = $this->stream->getSize())) { - return null; - } elseif ($this->limit == -1) { - return $length - $this->offset; - } else { - return min($this->limit, $length - $this->offset); - } - } - - /** - * Allow for a bounded seek on the read limited stream - * {@inheritdoc} - */ - public function seek($offset, $whence = SEEK_SET) - { - if ($whence !== SEEK_SET || $offset < 0) { - throw new \RuntimeException(sprintf( - 'Cannot seek to offset % with whence %s', - $offset, - $whence - )); - } - - $offset += $this->offset; - - if ($this->limit !== -1) { - if ($offset > $this->offset + $this->limit) { - $offset = $this->offset + $this->limit; - } - } - - $this->stream->seek($offset); - } - - /** - * Give a relative tell() - * {@inheritdoc} - */ - public function tell() - { - return $this->stream->tell() - $this->offset; - } - - /** - * Set the offset to start limiting from - * - * @param int $offset Offset to seek to and begin byte limiting from - * - * @throws \RuntimeException if the stream cannot be seeked. - */ - public function setOffset($offset) - { - $current = $this->stream->tell(); - - if ($current !== $offset) { - // If the stream cannot seek to the offset position, then read to it - if ($this->stream->isSeekable()) { - $this->stream->seek($offset); - } elseif ($current > $offset) { - throw new \RuntimeException("Could not seek to stream offset $offset"); - } else { - $this->stream->read($offset - $current); - } - } - - $this->offset = $offset; - } - - /** - * Set the limit of bytes that the decorator allows to be read from the - * stream. - * - * @param int $limit Number of bytes to allow to be read from the stream. - * Use -1 for no limit. - */ - public function setLimit($limit) - { - $this->limit = $limit; - } - - public function read($length) - { - if ($this->limit == -1) { - return $this->stream->read($length); - } - - // Check if the current position is less than the total allowed - // bytes + original offset - $remaining = ($this->offset + $this->limit) - $this->stream->tell(); - if ($remaining > 0) { - // Only return the amount of requested data, ensuring that the byte - // limit is not exceeded - return $this->stream->read(min($remaining, $length)); - } - - return ''; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/MessageTrait.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/MessageTrait.php deleted file mode 100644 index 1e4da64..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/MessageTrait.php +++ /dev/null @@ -1,183 +0,0 @@ - array of values */ - private $headers = []; - - /** @var array Map of lowercase header name => original name at registration */ - private $headerNames = []; - - /** @var string */ - private $protocol = '1.1'; - - /** @var StreamInterface */ - private $stream; - - public function getProtocolVersion() - { - return $this->protocol; - } - - public function withProtocolVersion($version) - { - if ($this->protocol === $version) { - return $this; - } - - $new = clone $this; - $new->protocol = $version; - return $new; - } - - public function getHeaders() - { - return $this->headers; - } - - public function hasHeader($header) - { - return isset($this->headerNames[strtolower($header)]); - } - - public function getHeader($header) - { - $header = strtolower($header); - - if (!isset($this->headerNames[$header])) { - return []; - } - - $header = $this->headerNames[$header]; - - return $this->headers[$header]; - } - - public function getHeaderLine($header) - { - return implode(', ', $this->getHeader($header)); - } - - public function withHeader($header, $value) - { - if (!is_array($value)) { - $value = [$value]; - } - - $value = $this->trimHeaderValues($value); - $normalized = strtolower($header); - - $new = clone $this; - if (isset($new->headerNames[$normalized])) { - unset($new->headers[$new->headerNames[$normalized]]); - } - $new->headerNames[$normalized] = $header; - $new->headers[$header] = $value; - - return $new; - } - - public function withAddedHeader($header, $value) - { - if (!is_array($value)) { - $value = [$value]; - } - - $value = $this->trimHeaderValues($value); - $normalized = strtolower($header); - - $new = clone $this; - if (isset($new->headerNames[$normalized])) { - $header = $this->headerNames[$normalized]; - $new->headers[$header] = array_merge($this->headers[$header], $value); - } else { - $new->headerNames[$normalized] = $header; - $new->headers[$header] = $value; - } - - return $new; - } - - public function withoutHeader($header) - { - $normalized = strtolower($header); - - if (!isset($this->headerNames[$normalized])) { - return $this; - } - - $header = $this->headerNames[$normalized]; - - $new = clone $this; - unset($new->headers[$header], $new->headerNames[$normalized]); - - return $new; - } - - public function getBody() - { - if (!$this->stream) { - $this->stream = stream_for(''); - } - - return $this->stream; - } - - public function withBody(StreamInterface $body) - { - if ($body === $this->stream) { - return $this; - } - - $new = clone $this; - $new->stream = $body; - return $new; - } - - private function setHeaders(array $headers) - { - $this->headerNames = $this->headers = []; - foreach ($headers as $header => $value) { - if (!is_array($value)) { - $value = [$value]; - } - - $value = $this->trimHeaderValues($value); - $normalized = strtolower($header); - if (isset($this->headerNames[$normalized])) { - $header = $this->headerNames[$normalized]; - $this->headers[$header] = array_merge($this->headers[$header], $value); - } else { - $this->headerNames[$normalized] = $header; - $this->headers[$header] = $value; - } - } - } - - /** - * Trims whitespace from the header values. - * - * Spaces and tabs ought to be excluded by parsers when extracting the field value from a header field. - * - * header-field = field-name ":" OWS field-value OWS - * OWS = *( SP / HTAB ) - * - * @param string[] $values Header values - * - * @return string[] Trimmed header values - * - * @see https://tools.ietf.org/html/rfc7230#section-3.2.4 - */ - private function trimHeaderValues(array $values) - { - return array_map(function ($value) { - return trim($value, " \t"); - }, $values); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/MultipartStream.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/MultipartStream.php deleted file mode 100644 index c0fd584..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/MultipartStream.php +++ /dev/null @@ -1,153 +0,0 @@ -boundary = $boundary ?: sha1(uniqid('', true)); - $this->stream = $this->createStream($elements); - } - - /** - * Get the boundary - * - * @return string - */ - public function getBoundary() - { - return $this->boundary; - } - - public function isWritable() - { - return false; - } - - /** - * Get the headers needed before transferring the content of a POST file - */ - private function getHeaders(array $headers) - { - $str = ''; - foreach ($headers as $key => $value) { - $str .= "{$key}: {$value}\r\n"; - } - - return "--{$this->boundary}\r\n" . trim($str) . "\r\n\r\n"; - } - - /** - * Create the aggregate stream that will be used to upload the POST data - */ - protected function createStream(array $elements) - { - $stream = new AppendStream(); - - foreach ($elements as $element) { - $this->addElement($stream, $element); - } - - // Add the trailing boundary with CRLF - $stream->addStream(stream_for("--{$this->boundary}--\r\n")); - - return $stream; - } - - private function addElement(AppendStream $stream, array $element) - { - foreach (['contents', 'name'] as $key) { - if (!array_key_exists($key, $element)) { - throw new \InvalidArgumentException("A '{$key}' key is required"); - } - } - - $element['contents'] = stream_for($element['contents']); - - if (empty($element['filename'])) { - $uri = $element['contents']->getMetadata('uri'); - if (substr($uri, 0, 6) !== 'php://') { - $element['filename'] = $uri; - } - } - - list($body, $headers) = $this->createElement( - $element['name'], - $element['contents'], - isset($element['filename']) ? $element['filename'] : null, - isset($element['headers']) ? $element['headers'] : [] - ); - - $stream->addStream(stream_for($this->getHeaders($headers))); - $stream->addStream($body); - $stream->addStream(stream_for("\r\n")); - } - - /** - * @return array - */ - private function createElement($name, StreamInterface $stream, $filename, array $headers) - { - // Set a default content-disposition header if one was no provided - $disposition = $this->getHeader($headers, 'content-disposition'); - if (!$disposition) { - $headers['Content-Disposition'] = ($filename === '0' || $filename) - ? sprintf('form-data; name="%s"; filename="%s"', - $name, - basename($filename)) - : "form-data; name=\"{$name}\""; - } - - // Set a default content-length header if one was no provided - $length = $this->getHeader($headers, 'content-length'); - if (!$length) { - if ($length = $stream->getSize()) { - $headers['Content-Length'] = (string) $length; - } - } - - // Set a default Content-Type if one was not supplied - $type = $this->getHeader($headers, 'content-type'); - if (!$type && ($filename === '0' || $filename)) { - if ($type = mimetype_from_filename($filename)) { - $headers['Content-Type'] = $type; - } - } - - return [$stream, $headers]; - } - - private function getHeader(array $headers, $key) - { - $lowercaseHeader = strtolower($key); - foreach ($headers as $k => $v) { - if (strtolower($k) === $lowercaseHeader) { - return $v; - } - } - - return null; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/NoSeekStream.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/NoSeekStream.php deleted file mode 100644 index 2332218..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/NoSeekStream.php +++ /dev/null @@ -1,22 +0,0 @@ -source = $source; - $this->size = isset($options['size']) ? $options['size'] : null; - $this->metadata = isset($options['metadata']) ? $options['metadata'] : []; - $this->buffer = new BufferStream(); - } - - public function __toString() - { - try { - return copy_to_string($this); - } catch (\Exception $e) { - return ''; - } - } - - public function close() - { - $this->detach(); - } - - public function detach() - { - $this->tellPos = false; - $this->source = null; - } - - public function getSize() - { - return $this->size; - } - - public function tell() - { - return $this->tellPos; - } - - public function eof() - { - return !$this->source; - } - - public function isSeekable() - { - return false; - } - - public function rewind() - { - $this->seek(0); - } - - public function seek($offset, $whence = SEEK_SET) - { - throw new \RuntimeException('Cannot seek a PumpStream'); - } - - public function isWritable() - { - return false; - } - - public function write($string) - { - throw new \RuntimeException('Cannot write to a PumpStream'); - } - - public function isReadable() - { - return true; - } - - public function read($length) - { - $data = $this->buffer->read($length); - $readLen = strlen($data); - $this->tellPos += $readLen; - $remaining = $length - $readLen; - - if ($remaining) { - $this->pump($remaining); - $data .= $this->buffer->read($remaining); - $this->tellPos += strlen($data) - $readLen; - } - - return $data; - } - - public function getContents() - { - $result = ''; - while (!$this->eof()) { - $result .= $this->read(1000000); - } - - return $result; - } - - public function getMetadata($key = null) - { - if (!$key) { - return $this->metadata; - } - - return isset($this->metadata[$key]) ? $this->metadata[$key] : null; - } - - private function pump($length) - { - if ($this->source) { - do { - $data = call_user_func($this->source, $length); - if ($data === false || $data === null) { - $this->source = null; - return; - } - $this->buffer->write($data); - $length -= strlen($data); - } while ($length > 0); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Request.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Request.php deleted file mode 100644 index 0828548..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Request.php +++ /dev/null @@ -1,142 +0,0 @@ -method = strtoupper($method); - $this->uri = $uri; - $this->setHeaders($headers); - $this->protocol = $version; - - if (!$this->hasHeader('Host')) { - $this->updateHostFromUri(); - } - - if ($body !== '' && $body !== null) { - $this->stream = stream_for($body); - } - } - - public function getRequestTarget() - { - if ($this->requestTarget !== null) { - return $this->requestTarget; - } - - $target = $this->uri->getPath(); - if ($target == '') { - $target = '/'; - } - if ($this->uri->getQuery() != '') { - $target .= '?' . $this->uri->getQuery(); - } - - return $target; - } - - public function withRequestTarget($requestTarget) - { - if (preg_match('#\s#', $requestTarget)) { - throw new InvalidArgumentException( - 'Invalid request target provided; cannot contain whitespace' - ); - } - - $new = clone $this; - $new->requestTarget = $requestTarget; - return $new; - } - - public function getMethod() - { - return $this->method; - } - - public function withMethod($method) - { - $new = clone $this; - $new->method = strtoupper($method); - return $new; - } - - public function getUri() - { - return $this->uri; - } - - public function withUri(UriInterface $uri, $preserveHost = false) - { - if ($uri === $this->uri) { - return $this; - } - - $new = clone $this; - $new->uri = $uri; - - if (!$preserveHost) { - $new->updateHostFromUri(); - } - - return $new; - } - - private function updateHostFromUri() - { - $host = $this->uri->getHost(); - - if ($host == '') { - return; - } - - if (($port = $this->uri->getPort()) !== null) { - $host .= ':' . $port; - } - - if (isset($this->headerNames['host'])) { - $header = $this->headerNames['host']; - } else { - $header = 'Host'; - $this->headerNames['host'] = 'Host'; - } - // Ensure Host is the first header. - // See: http://tools.ietf.org/html/rfc7230#section-5.4 - $this->headers = [$header => [$host]] + $this->headers; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Response.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Response.php deleted file mode 100644 index 2830c6c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Response.php +++ /dev/null @@ -1,132 +0,0 @@ - 'Continue', - 101 => 'Switching Protocols', - 102 => 'Processing', - 200 => 'OK', - 201 => 'Created', - 202 => 'Accepted', - 203 => 'Non-Authoritative Information', - 204 => 'No Content', - 205 => 'Reset Content', - 206 => 'Partial Content', - 207 => 'Multi-status', - 208 => 'Already Reported', - 300 => 'Multiple Choices', - 301 => 'Moved Permanently', - 302 => 'Found', - 303 => 'See Other', - 304 => 'Not Modified', - 305 => 'Use Proxy', - 306 => 'Switch Proxy', - 307 => 'Temporary Redirect', - 400 => 'Bad Request', - 401 => 'Unauthorized', - 402 => 'Payment Required', - 403 => 'Forbidden', - 404 => 'Not Found', - 405 => 'Method Not Allowed', - 406 => 'Not Acceptable', - 407 => 'Proxy Authentication Required', - 408 => 'Request Time-out', - 409 => 'Conflict', - 410 => 'Gone', - 411 => 'Length Required', - 412 => 'Precondition Failed', - 413 => 'Request Entity Too Large', - 414 => 'Request-URI Too Large', - 415 => 'Unsupported Media Type', - 416 => 'Requested range not satisfiable', - 417 => 'Expectation Failed', - 418 => 'I\'m a teapot', - 422 => 'Unprocessable Entity', - 423 => 'Locked', - 424 => 'Failed Dependency', - 425 => 'Unordered Collection', - 426 => 'Upgrade Required', - 428 => 'Precondition Required', - 429 => 'Too Many Requests', - 431 => 'Request Header Fields Too Large', - 451 => 'Unavailable For Legal Reasons', - 500 => 'Internal Server Error', - 501 => 'Not Implemented', - 502 => 'Bad Gateway', - 503 => 'Service Unavailable', - 504 => 'Gateway Time-out', - 505 => 'HTTP Version not supported', - 506 => 'Variant Also Negotiates', - 507 => 'Insufficient Storage', - 508 => 'Loop Detected', - 511 => 'Network Authentication Required', - ]; - - /** @var string */ - private $reasonPhrase = ''; - - /** @var int */ - private $statusCode = 200; - - /** - * @param int $status Status code - * @param array $headers Response headers - * @param string|null|resource|StreamInterface $body Response body - * @param string $version Protocol version - * @param string|null $reason Reason phrase (when empty a default will be used based on the status code) - */ - public function __construct( - $status = 200, - array $headers = [], - $body = null, - $version = '1.1', - $reason = null - ) { - $this->statusCode = (int) $status; - - if ($body !== '' && $body !== null) { - $this->stream = stream_for($body); - } - - $this->setHeaders($headers); - if ($reason == '' && isset(self::$phrases[$this->statusCode])) { - $this->reasonPhrase = self::$phrases[$this->statusCode]; - } else { - $this->reasonPhrase = (string) $reason; - } - - $this->protocol = $version; - } - - public function getStatusCode() - { - return $this->statusCode; - } - - public function getReasonPhrase() - { - return $this->reasonPhrase; - } - - public function withStatus($code, $reasonPhrase = '') - { - $new = clone $this; - $new->statusCode = (int) $code; - if ($reasonPhrase == '' && isset(self::$phrases[$new->statusCode])) { - $reasonPhrase = self::$phrases[$new->statusCode]; - } - $new->reasonPhrase = $reasonPhrase; - return $new; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/ServerRequest.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/ServerRequest.php deleted file mode 100644 index 575aab8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/ServerRequest.php +++ /dev/null @@ -1,358 +0,0 @@ -serverParams = $serverParams; - - parent::__construct($method, $uri, $headers, $body, $version); - } - - /** - * Return an UploadedFile instance array. - * - * @param array $files A array which respect $_FILES structure - * @throws InvalidArgumentException for unrecognized values - * @return array - */ - public static function normalizeFiles(array $files) - { - $normalized = []; - - foreach ($files as $key => $value) { - if ($value instanceof UploadedFileInterface) { - $normalized[$key] = $value; - } elseif (is_array($value) && isset($value['tmp_name'])) { - $normalized[$key] = self::createUploadedFileFromSpec($value); - } elseif (is_array($value)) { - $normalized[$key] = self::normalizeFiles($value); - continue; - } else { - throw new InvalidArgumentException('Invalid value in files specification'); - } - } - - return $normalized; - } - - /** - * Create and return an UploadedFile instance from a $_FILES specification. - * - * If the specification represents an array of values, this method will - * delegate to normalizeNestedFileSpec() and return that return value. - * - * @param array $value $_FILES struct - * @return array|UploadedFileInterface - */ - private static function createUploadedFileFromSpec(array $value) - { - if (is_array($value['tmp_name'])) { - return self::normalizeNestedFileSpec($value); - } - - return new UploadedFile( - $value['tmp_name'], - (int) $value['size'], - (int) $value['error'], - $value['name'], - $value['type'] - ); - } - - /** - * Normalize an array of file specifications. - * - * Loops through all nested files and returns a normalized array of - * UploadedFileInterface instances. - * - * @param array $files - * @return UploadedFileInterface[] - */ - private static function normalizeNestedFileSpec(array $files = []) - { - $normalizedFiles = []; - - foreach (array_keys($files['tmp_name']) as $key) { - $spec = [ - 'tmp_name' => $files['tmp_name'][$key], - 'size' => $files['size'][$key], - 'error' => $files['error'][$key], - 'name' => $files['name'][$key], - 'type' => $files['type'][$key], - ]; - $normalizedFiles[$key] = self::createUploadedFileFromSpec($spec); - } - - return $normalizedFiles; - } - - /** - * Return a ServerRequest populated with superglobals: - * $_GET - * $_POST - * $_COOKIE - * $_FILES - * $_SERVER - * - * @return ServerRequestInterface - */ - public static function fromGlobals() - { - $method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : 'GET'; - $headers = function_exists('getallheaders') ? getallheaders() : []; - $uri = self::getUriFromGlobals(); - $body = new LazyOpenStream('php://input', 'r+'); - $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? str_replace('HTTP/', '', $_SERVER['SERVER_PROTOCOL']) : '1.1'; - - $serverRequest = new ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER); - - return $serverRequest - ->withCookieParams($_COOKIE) - ->withQueryParams($_GET) - ->withParsedBody($_POST) - ->withUploadedFiles(self::normalizeFiles($_FILES)); - } - - /** - * Get a Uri populated with values from $_SERVER. - * - * @return UriInterface - */ - public static function getUriFromGlobals() { - $uri = new Uri(''); - - $uri = $uri->withScheme(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http'); - - $hasPort = false; - if (isset($_SERVER['HTTP_HOST'])) { - $hostHeaderParts = explode(':', $_SERVER['HTTP_HOST']); - $uri = $uri->withHost($hostHeaderParts[0]); - if (isset($hostHeaderParts[1])) { - $hasPort = true; - $uri = $uri->withPort($hostHeaderParts[1]); - } - } elseif (isset($_SERVER['SERVER_NAME'])) { - $uri = $uri->withHost($_SERVER['SERVER_NAME']); - } elseif (isset($_SERVER['SERVER_ADDR'])) { - $uri = $uri->withHost($_SERVER['SERVER_ADDR']); - } - - if (!$hasPort && isset($_SERVER['SERVER_PORT'])) { - $uri = $uri->withPort($_SERVER['SERVER_PORT']); - } - - $hasQuery = false; - if (isset($_SERVER['REQUEST_URI'])) { - $requestUriParts = explode('?', $_SERVER['REQUEST_URI']); - $uri = $uri->withPath($requestUriParts[0]); - if (isset($requestUriParts[1])) { - $hasQuery = true; - $uri = $uri->withQuery($requestUriParts[1]); - } - } - - if (!$hasQuery && isset($_SERVER['QUERY_STRING'])) { - $uri = $uri->withQuery($_SERVER['QUERY_STRING']); - } - - return $uri; - } - - - /** - * {@inheritdoc} - */ - public function getServerParams() - { - return $this->serverParams; - } - - /** - * {@inheritdoc} - */ - public function getUploadedFiles() - { - return $this->uploadedFiles; - } - - /** - * {@inheritdoc} - */ - public function withUploadedFiles(array $uploadedFiles) - { - $new = clone $this; - $new->uploadedFiles = $uploadedFiles; - - return $new; - } - - /** - * {@inheritdoc} - */ - public function getCookieParams() - { - return $this->cookieParams; - } - - /** - * {@inheritdoc} - */ - public function withCookieParams(array $cookies) - { - $new = clone $this; - $new->cookieParams = $cookies; - - return $new; - } - - /** - * {@inheritdoc} - */ - public function getQueryParams() - { - return $this->queryParams; - } - - /** - * {@inheritdoc} - */ - public function withQueryParams(array $query) - { - $new = clone $this; - $new->queryParams = $query; - - return $new; - } - - /** - * {@inheritdoc} - */ - public function getParsedBody() - { - return $this->parsedBody; - } - - /** - * {@inheritdoc} - */ - public function withParsedBody($data) - { - $new = clone $this; - $new->parsedBody = $data; - - return $new; - } - - /** - * {@inheritdoc} - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * {@inheritdoc} - */ - public function getAttribute($attribute, $default = null) - { - if (false === array_key_exists($attribute, $this->attributes)) { - return $default; - } - - return $this->attributes[$attribute]; - } - - /** - * {@inheritdoc} - */ - public function withAttribute($attribute, $value) - { - $new = clone $this; - $new->attributes[$attribute] = $value; - - return $new; - } - - /** - * {@inheritdoc} - */ - public function withoutAttribute($attribute) - { - if (false === array_key_exists($attribute, $this->attributes)) { - return $this; - } - - $new = clone $this; - unset($new->attributes[$attribute]); - - return $new; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Stream.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Stream.php deleted file mode 100644 index e336628..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Stream.php +++ /dev/null @@ -1,257 +0,0 @@ - [ - 'r' => true, 'w+' => true, 'r+' => true, 'x+' => true, 'c+' => true, - 'rb' => true, 'w+b' => true, 'r+b' => true, 'x+b' => true, - 'c+b' => true, 'rt' => true, 'w+t' => true, 'r+t' => true, - 'x+t' => true, 'c+t' => true, 'a+' => true - ], - 'write' => [ - 'w' => true, 'w+' => true, 'rw' => true, 'r+' => true, 'x+' => true, - 'c+' => true, 'wb' => true, 'w+b' => true, 'r+b' => true, - 'x+b' => true, 'c+b' => true, 'w+t' => true, 'r+t' => true, - 'x+t' => true, 'c+t' => true, 'a' => true, 'a+' => true - ] - ]; - - /** - * This constructor accepts an associative array of options. - * - * - size: (int) If a read stream would otherwise have an indeterminate - * size, but the size is known due to foreknowledge, then you can - * provide that size, in bytes. - * - metadata: (array) Any additional metadata to return when the metadata - * of the stream is accessed. - * - * @param resource $stream Stream resource to wrap. - * @param array $options Associative array of options. - * - * @throws \InvalidArgumentException if the stream is not a stream resource - */ - public function __construct($stream, $options = []) - { - if (!is_resource($stream)) { - throw new \InvalidArgumentException('Stream must be a resource'); - } - - if (isset($options['size'])) { - $this->size = $options['size']; - } - - $this->customMetadata = isset($options['metadata']) - ? $options['metadata'] - : []; - - $this->stream = $stream; - $meta = stream_get_meta_data($this->stream); - $this->seekable = $meta['seekable']; - $this->readable = isset(self::$readWriteHash['read'][$meta['mode']]); - $this->writable = isset(self::$readWriteHash['write'][$meta['mode']]); - $this->uri = $this->getMetadata('uri'); - } - - public function __get($name) - { - if ($name == 'stream') { - throw new \RuntimeException('The stream is detached'); - } - - throw new \BadMethodCallException('No value for ' . $name); - } - - /** - * Closes the stream when the destructed - */ - public function __destruct() - { - $this->close(); - } - - public function __toString() - { - try { - $this->seek(0); - return (string) stream_get_contents($this->stream); - } catch (\Exception $e) { - return ''; - } - } - - public function getContents() - { - $contents = stream_get_contents($this->stream); - - if ($contents === false) { - throw new \RuntimeException('Unable to read stream contents'); - } - - return $contents; - } - - public function close() - { - if (isset($this->stream)) { - if (is_resource($this->stream)) { - fclose($this->stream); - } - $this->detach(); - } - } - - public function detach() - { - if (!isset($this->stream)) { - return null; - } - - $result = $this->stream; - unset($this->stream); - $this->size = $this->uri = null; - $this->readable = $this->writable = $this->seekable = false; - - return $result; - } - - public function getSize() - { - if ($this->size !== null) { - return $this->size; - } - - if (!isset($this->stream)) { - return null; - } - - // Clear the stat cache if the stream has a URI - if ($this->uri) { - clearstatcache(true, $this->uri); - } - - $stats = fstat($this->stream); - if (isset($stats['size'])) { - $this->size = $stats['size']; - return $this->size; - } - - return null; - } - - public function isReadable() - { - return $this->readable; - } - - public function isWritable() - { - return $this->writable; - } - - public function isSeekable() - { - return $this->seekable; - } - - public function eof() - { - return !$this->stream || feof($this->stream); - } - - public function tell() - { - $result = ftell($this->stream); - - if ($result === false) { - throw new \RuntimeException('Unable to determine stream position'); - } - - return $result; - } - - public function rewind() - { - $this->seek(0); - } - - public function seek($offset, $whence = SEEK_SET) - { - if (!$this->seekable) { - throw new \RuntimeException('Stream is not seekable'); - } elseif (fseek($this->stream, $offset, $whence) === -1) { - throw new \RuntimeException('Unable to seek to stream position ' - . $offset . ' with whence ' . var_export($whence, true)); - } - } - - public function read($length) - { - if (!$this->readable) { - throw new \RuntimeException('Cannot read from non-readable stream'); - } - if ($length < 0) { - throw new \RuntimeException('Length parameter cannot be negative'); - } - - if (0 === $length) { - return ''; - } - - $string = fread($this->stream, $length); - if (false === $string) { - throw new \RuntimeException('Unable to read from stream'); - } - - return $string; - } - - public function write($string) - { - if (!$this->writable) { - throw new \RuntimeException('Cannot write to a non-writable stream'); - } - - // We can't know the size after writing anything - $this->size = null; - $result = fwrite($this->stream, $string); - - if ($result === false) { - throw new \RuntimeException('Unable to write to stream'); - } - - return $result; - } - - public function getMetadata($key = null) - { - if (!isset($this->stream)) { - return $key ? null : []; - } elseif (!$key) { - return $this->customMetadata + stream_get_meta_data($this->stream); - } elseif (isset($this->customMetadata[$key])) { - return $this->customMetadata[$key]; - } - - $meta = stream_get_meta_data($this->stream); - - return isset($meta[$key]) ? $meta[$key] : null; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php deleted file mode 100644 index daec6f5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php +++ /dev/null @@ -1,149 +0,0 @@ -stream = $stream; - } - - /** - * Magic method used to create a new stream if streams are not added in - * the constructor of a decorator (e.g., LazyOpenStream). - * - * @param string $name Name of the property (allows "stream" only). - * - * @return StreamInterface - */ - public function __get($name) - { - if ($name == 'stream') { - $this->stream = $this->createStream(); - return $this->stream; - } - - throw new \UnexpectedValueException("$name not found on class"); - } - - public function __toString() - { - try { - if ($this->isSeekable()) { - $this->seek(0); - } - return $this->getContents(); - } catch (\Exception $e) { - // Really, PHP? https://bugs.php.net/bug.php?id=53648 - trigger_error('StreamDecorator::__toString exception: ' - . (string) $e, E_USER_ERROR); - return ''; - } - } - - public function getContents() - { - return copy_to_string($this); - } - - /** - * Allow decorators to implement custom methods - * - * @param string $method Missing method name - * @param array $args Method arguments - * - * @return mixed - */ - public function __call($method, array $args) - { - $result = call_user_func_array([$this->stream, $method], $args); - - // Always return the wrapped object if the result is a return $this - return $result === $this->stream ? $this : $result; - } - - public function close() - { - $this->stream->close(); - } - - public function getMetadata($key = null) - { - return $this->stream->getMetadata($key); - } - - public function detach() - { - return $this->stream->detach(); - } - - public function getSize() - { - return $this->stream->getSize(); - } - - public function eof() - { - return $this->stream->eof(); - } - - public function tell() - { - return $this->stream->tell(); - } - - public function isReadable() - { - return $this->stream->isReadable(); - } - - public function isWritable() - { - return $this->stream->isWritable(); - } - - public function isSeekable() - { - return $this->stream->isSeekable(); - } - - public function rewind() - { - $this->seek(0); - } - - public function seek($offset, $whence = SEEK_SET) - { - $this->stream->seek($offset, $whence); - } - - public function read($length) - { - return $this->stream->read($length); - } - - public function write($string) - { - return $this->stream->write($string); - } - - /** - * Implement in subclasses to dynamically create streams when requested. - * - * @return StreamInterface - * @throws \BadMethodCallException - */ - protected function createStream() - { - throw new \BadMethodCallException('Not implemented'); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/StreamWrapper.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/StreamWrapper.php deleted file mode 100644 index cf7b223..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/StreamWrapper.php +++ /dev/null @@ -1,121 +0,0 @@ -isReadable()) { - $mode = $stream->isWritable() ? 'r+' : 'r'; - } elseif ($stream->isWritable()) { - $mode = 'w'; - } else { - throw new \InvalidArgumentException('The stream must be readable, ' - . 'writable, or both.'); - } - - return fopen('guzzle://stream', $mode, null, stream_context_create([ - 'guzzle' => ['stream' => $stream] - ])); - } - - /** - * Registers the stream wrapper if needed - */ - public static function register() - { - if (!in_array('guzzle', stream_get_wrappers())) { - stream_wrapper_register('guzzle', __CLASS__); - } - } - - public function stream_open($path, $mode, $options, &$opened_path) - { - $options = stream_context_get_options($this->context); - - if (!isset($options['guzzle']['stream'])) { - return false; - } - - $this->mode = $mode; - $this->stream = $options['guzzle']['stream']; - - return true; - } - - public function stream_read($count) - { - return $this->stream->read($count); - } - - public function stream_write($data) - { - return (int) $this->stream->write($data); - } - - public function stream_tell() - { - return $this->stream->tell(); - } - - public function stream_eof() - { - return $this->stream->eof(); - } - - public function stream_seek($offset, $whence) - { - $this->stream->seek($offset, $whence); - - return true; - } - - public function stream_stat() - { - static $modeMap = [ - 'r' => 33060, - 'r+' => 33206, - 'w' => 33188 - ]; - - return [ - 'dev' => 0, - 'ino' => 0, - 'mode' => $modeMap[$this->mode], - 'nlink' => 0, - 'uid' => 0, - 'gid' => 0, - 'rdev' => 0, - 'size' => $this->stream->getSize() ?: 0, - 'atime' => 0, - 'mtime' => 0, - 'ctime' => 0, - 'blksize' => 0, - 'blocks' => 0 - ]; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UploadedFile.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UploadedFile.php deleted file mode 100644 index e62bd5c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UploadedFile.php +++ /dev/null @@ -1,316 +0,0 @@ -setError($errorStatus); - $this->setSize($size); - $this->setClientFilename($clientFilename); - $this->setClientMediaType($clientMediaType); - - if ($this->isOk()) { - $this->setStreamOrFile($streamOrFile); - } - } - - /** - * Depending on the value set file or stream variable - * - * @param mixed $streamOrFile - * @throws InvalidArgumentException - */ - private function setStreamOrFile($streamOrFile) - { - if (is_string($streamOrFile)) { - $this->file = $streamOrFile; - } elseif (is_resource($streamOrFile)) { - $this->stream = new Stream($streamOrFile); - } elseif ($streamOrFile instanceof StreamInterface) { - $this->stream = $streamOrFile; - } else { - throw new InvalidArgumentException( - 'Invalid stream or file provided for UploadedFile' - ); - } - } - - /** - * @param int $error - * @throws InvalidArgumentException - */ - private function setError($error) - { - if (false === is_int($error)) { - throw new InvalidArgumentException( - 'Upload file error status must be an integer' - ); - } - - if (false === in_array($error, UploadedFile::$errors)) { - throw new InvalidArgumentException( - 'Invalid error status for UploadedFile' - ); - } - - $this->error = $error; - } - - /** - * @param int $size - * @throws InvalidArgumentException - */ - private function setSize($size) - { - if (false === is_int($size)) { - throw new InvalidArgumentException( - 'Upload file size must be an integer' - ); - } - - $this->size = $size; - } - - /** - * @param mixed $param - * @return boolean - */ - private function isStringOrNull($param) - { - return in_array(gettype($param), ['string', 'NULL']); - } - - /** - * @param mixed $param - * @return boolean - */ - private function isStringNotEmpty($param) - { - return is_string($param) && false === empty($param); - } - - /** - * @param string|null $clientFilename - * @throws InvalidArgumentException - */ - private function setClientFilename($clientFilename) - { - if (false === $this->isStringOrNull($clientFilename)) { - throw new InvalidArgumentException( - 'Upload file client filename must be a string or null' - ); - } - - $this->clientFilename = $clientFilename; - } - - /** - * @param string|null $clientMediaType - * @throws InvalidArgumentException - */ - private function setClientMediaType($clientMediaType) - { - if (false === $this->isStringOrNull($clientMediaType)) { - throw new InvalidArgumentException( - 'Upload file client media type must be a string or null' - ); - } - - $this->clientMediaType = $clientMediaType; - } - - /** - * Return true if there is no upload error - * - * @return boolean - */ - private function isOk() - { - return $this->error === UPLOAD_ERR_OK; - } - - /** - * @return boolean - */ - public function isMoved() - { - return $this->moved; - } - - /** - * @throws RuntimeException if is moved or not ok - */ - private function validateActive() - { - if (false === $this->isOk()) { - throw new RuntimeException('Cannot retrieve stream due to upload error'); - } - - if ($this->isMoved()) { - throw new RuntimeException('Cannot retrieve stream after it has already been moved'); - } - } - - /** - * {@inheritdoc} - * @throws RuntimeException if the upload was not successful. - */ - public function getStream() - { - $this->validateActive(); - - if ($this->stream instanceof StreamInterface) { - return $this->stream; - } - - return new LazyOpenStream($this->file, 'r+'); - } - - /** - * {@inheritdoc} - * - * @see http://php.net/is_uploaded_file - * @see http://php.net/move_uploaded_file - * @param string $targetPath Path to which to move the uploaded file. - * @throws RuntimeException if the upload was not successful. - * @throws InvalidArgumentException if the $path specified is invalid. - * @throws RuntimeException on any error during the move operation, or on - * the second or subsequent call to the method. - */ - public function moveTo($targetPath) - { - $this->validateActive(); - - if (false === $this->isStringNotEmpty($targetPath)) { - throw new InvalidArgumentException( - 'Invalid path provided for move operation; must be a non-empty string' - ); - } - - if ($this->file) { - $this->moved = php_sapi_name() == 'cli' - ? rename($this->file, $targetPath) - : move_uploaded_file($this->file, $targetPath); - } else { - copy_to_stream( - $this->getStream(), - new LazyOpenStream($targetPath, 'w') - ); - - $this->moved = true; - } - - if (false === $this->moved) { - throw new RuntimeException( - sprintf('Uploaded file could not be moved to %s', $targetPath) - ); - } - } - - /** - * {@inheritdoc} - * - * @return int|null The file size in bytes or null if unknown. - */ - public function getSize() - { - return $this->size; - } - - /** - * {@inheritdoc} - * - * @see http://php.net/manual/en/features.file-upload.errors.php - * @return int One of PHP's UPLOAD_ERR_XXX constants. - */ - public function getError() - { - return $this->error; - } - - /** - * {@inheritdoc} - * - * @return string|null The filename sent by the client or null if none - * was provided. - */ - public function getClientFilename() - { - return $this->clientFilename; - } - - /** - * {@inheritdoc} - */ - public function getClientMediaType() - { - return $this->clientMediaType; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Uri.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Uri.php deleted file mode 100644 index f46c1db..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/Uri.php +++ /dev/null @@ -1,702 +0,0 @@ - 80, - 'https' => 443, - 'ftp' => 21, - 'gopher' => 70, - 'nntp' => 119, - 'news' => 119, - 'telnet' => 23, - 'tn3270' => 23, - 'imap' => 143, - 'pop' => 110, - 'ldap' => 389, - ]; - - private static $charUnreserved = 'a-zA-Z0-9_\-\.~'; - private static $charSubDelims = '!\$&\'\(\)\*\+,;='; - private static $replaceQuery = ['=' => '%3D', '&' => '%26']; - - /** @var string Uri scheme. */ - private $scheme = ''; - - /** @var string Uri user info. */ - private $userInfo = ''; - - /** @var string Uri host. */ - private $host = ''; - - /** @var int|null Uri port. */ - private $port; - - /** @var string Uri path. */ - private $path = ''; - - /** @var string Uri query string. */ - private $query = ''; - - /** @var string Uri fragment. */ - private $fragment = ''; - - /** - * @param string $uri URI to parse - */ - public function __construct($uri = '') - { - // weak type check to also accept null until we can add scalar type hints - if ($uri != '') { - $parts = parse_url($uri); - if ($parts === false) { - throw new \InvalidArgumentException("Unable to parse URI: $uri"); - } - $this->applyParts($parts); - } - } - - public function __toString() - { - return self::composeComponents( - $this->scheme, - $this->getAuthority(), - $this->path, - $this->query, - $this->fragment - ); - } - - /** - * Composes a URI reference string from its various components. - * - * Usually this method does not need to be called manually but instead is used indirectly via - * `Psr\Http\Message\UriInterface::__toString`. - * - * PSR-7 UriInterface treats an empty component the same as a missing component as - * getQuery(), getFragment() etc. always return a string. This explains the slight - * difference to RFC 3986 Section 5.3. - * - * Another adjustment is that the authority separator is added even when the authority is missing/empty - * for the "file" scheme. This is because PHP stream functions like `file_get_contents` only work with - * `file:///myfile` but not with `file:/myfile` although they are equivalent according to RFC 3986. But - * `file:///` is the more common syntax for the file scheme anyway (Chrome for example redirects to - * that format). - * - * @param string $scheme - * @param string $authority - * @param string $path - * @param string $query - * @param string $fragment - * - * @return string - * - * @link https://tools.ietf.org/html/rfc3986#section-5.3 - */ - public static function composeComponents($scheme, $authority, $path, $query, $fragment) - { - $uri = ''; - - // weak type checks to also accept null until we can add scalar type hints - if ($scheme != '') { - $uri .= $scheme . ':'; - } - - if ($authority != ''|| $scheme === 'file') { - $uri .= '//' . $authority; - } - - $uri .= $path; - - if ($query != '') { - $uri .= '?' . $query; - } - - if ($fragment != '') { - $uri .= '#' . $fragment; - } - - return $uri; - } - - /** - * Whether the URI has the default port of the current scheme. - * - * `Psr\Http\Message\UriInterface::getPort` may return null or the standard port. This method can be used - * independently of the implementation. - * - * @param UriInterface $uri - * - * @return bool - */ - public static function isDefaultPort(UriInterface $uri) - { - return $uri->getPort() === null - || (isset(self::$defaultPorts[$uri->getScheme()]) && $uri->getPort() === self::$defaultPorts[$uri->getScheme()]); - } - - /** - * Whether the URI is absolute, i.e. it has a scheme. - * - * An instance of UriInterface can either be an absolute URI or a relative reference. This method returns true - * if it is the former. An absolute URI has a scheme. A relative reference is used to express a URI relative - * to another URI, the base URI. Relative references can be divided into several forms: - * - network-path references, e.g. '//example.com/path' - * - absolute-path references, e.g. '/path' - * - relative-path references, e.g. 'subpath' - * - * @param UriInterface $uri - * - * @return bool - * @see Uri::isNetworkPathReference - * @see Uri::isAbsolutePathReference - * @see Uri::isRelativePathReference - * @link https://tools.ietf.org/html/rfc3986#section-4 - */ - public static function isAbsolute(UriInterface $uri) - { - return $uri->getScheme() !== ''; - } - - /** - * Whether the URI is a network-path reference. - * - * A relative reference that begins with two slash characters is termed an network-path reference. - * - * @param UriInterface $uri - * - * @return bool - * @link https://tools.ietf.org/html/rfc3986#section-4.2 - */ - public static function isNetworkPathReference(UriInterface $uri) - { - return $uri->getScheme() === '' && $uri->getAuthority() !== ''; - } - - /** - * Whether the URI is a absolute-path reference. - * - * A relative reference that begins with a single slash character is termed an absolute-path reference. - * - * @param UriInterface $uri - * - * @return bool - * @link https://tools.ietf.org/html/rfc3986#section-4.2 - */ - public static function isAbsolutePathReference(UriInterface $uri) - { - return $uri->getScheme() === '' - && $uri->getAuthority() === '' - && isset($uri->getPath()[0]) - && $uri->getPath()[0] === '/'; - } - - /** - * Whether the URI is a relative-path reference. - * - * A relative reference that does not begin with a slash character is termed a relative-path reference. - * - * @param UriInterface $uri - * - * @return bool - * @link https://tools.ietf.org/html/rfc3986#section-4.2 - */ - public static function isRelativePathReference(UriInterface $uri) - { - return $uri->getScheme() === '' - && $uri->getAuthority() === '' - && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/'); - } - - /** - * Whether the URI is a same-document reference. - * - * A same-document reference refers to a URI that is, aside from its fragment - * component, identical to the base URI. When no base URI is given, only an empty - * URI reference (apart from its fragment) is considered a same-document reference. - * - * @param UriInterface $uri The URI to check - * @param UriInterface|null $base An optional base URI to compare against - * - * @return bool - * @link https://tools.ietf.org/html/rfc3986#section-4.4 - */ - public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null) - { - if ($base !== null) { - $uri = UriResolver::resolve($base, $uri); - - return ($uri->getScheme() === $base->getScheme()) - && ($uri->getAuthority() === $base->getAuthority()) - && ($uri->getPath() === $base->getPath()) - && ($uri->getQuery() === $base->getQuery()); - } - - return $uri->getScheme() === '' && $uri->getAuthority() === '' && $uri->getPath() === '' && $uri->getQuery() === ''; - } - - /** - * Removes dot segments from a path and returns the new path. - * - * @param string $path - * - * @return string - * - * @deprecated since version 1.4. Use UriResolver::removeDotSegments instead. - * @see UriResolver::removeDotSegments - */ - public static function removeDotSegments($path) - { - return UriResolver::removeDotSegments($path); - } - - /** - * Converts the relative URI into a new URI that is resolved against the base URI. - * - * @param UriInterface $base Base URI - * @param string|UriInterface $rel Relative URI - * - * @return UriInterface - * - * @deprecated since version 1.4. Use UriResolver::resolve instead. - * @see UriResolver::resolve - */ - public static function resolve(UriInterface $base, $rel) - { - if (!($rel instanceof UriInterface)) { - $rel = new self($rel); - } - - return UriResolver::resolve($base, $rel); - } - - /** - * Creates a new URI with a specific query string value removed. - * - * Any existing query string values that exactly match the provided key are - * removed. - * - * @param UriInterface $uri URI to use as a base. - * @param string $key Query string key to remove. - * - * @return UriInterface - */ - public static function withoutQueryValue(UriInterface $uri, $key) - { - $current = $uri->getQuery(); - if ($current === '') { - return $uri; - } - - $decodedKey = rawurldecode($key); - $result = array_filter(explode('&', $current), function ($part) use ($decodedKey) { - return rawurldecode(explode('=', $part)[0]) !== $decodedKey; - }); - - return $uri->withQuery(implode('&', $result)); - } - - /** - * Creates a new URI with a specific query string value. - * - * Any existing query string values that exactly match the provided key are - * removed and replaced with the given key value pair. - * - * A value of null will set the query string key without a value, e.g. "key" - * instead of "key=value". - * - * @param UriInterface $uri URI to use as a base. - * @param string $key Key to set. - * @param string|null $value Value to set - * - * @return UriInterface - */ - public static function withQueryValue(UriInterface $uri, $key, $value) - { - $current = $uri->getQuery(); - - if ($current === '') { - $result = []; - } else { - $decodedKey = rawurldecode($key); - $result = array_filter(explode('&', $current), function ($part) use ($decodedKey) { - return rawurldecode(explode('=', $part)[0]) !== $decodedKey; - }); - } - - // Query string separators ("=", "&") within the key or value need to be encoded - // (while preventing double-encoding) before setting the query string. All other - // chars that need percent-encoding will be encoded by withQuery(). - $key = strtr($key, self::$replaceQuery); - - if ($value !== null) { - $result[] = $key . '=' . strtr($value, self::$replaceQuery); - } else { - $result[] = $key; - } - - return $uri->withQuery(implode('&', $result)); - } - - /** - * Creates a URI from a hash of `parse_url` components. - * - * @param array $parts - * - * @return UriInterface - * @link http://php.net/manual/en/function.parse-url.php - * - * @throws \InvalidArgumentException If the components do not form a valid URI. - */ - public static function fromParts(array $parts) - { - $uri = new self(); - $uri->applyParts($parts); - $uri->validateState(); - - return $uri; - } - - public function getScheme() - { - return $this->scheme; - } - - public function getAuthority() - { - $authority = $this->host; - if ($this->userInfo !== '') { - $authority = $this->userInfo . '@' . $authority; - } - - if ($this->port !== null) { - $authority .= ':' . $this->port; - } - - return $authority; - } - - public function getUserInfo() - { - return $this->userInfo; - } - - public function getHost() - { - return $this->host; - } - - public function getPort() - { - return $this->port; - } - - public function getPath() - { - return $this->path; - } - - public function getQuery() - { - return $this->query; - } - - public function getFragment() - { - return $this->fragment; - } - - public function withScheme($scheme) - { - $scheme = $this->filterScheme($scheme); - - if ($this->scheme === $scheme) { - return $this; - } - - $new = clone $this; - $new->scheme = $scheme; - $new->removeDefaultPort(); - $new->validateState(); - - return $new; - } - - public function withUserInfo($user, $password = null) - { - $info = $user; - if ($password != '') { - $info .= ':' . $password; - } - - if ($this->userInfo === $info) { - return $this; - } - - $new = clone $this; - $new->userInfo = $info; - $new->validateState(); - - return $new; - } - - public function withHost($host) - { - $host = $this->filterHost($host); - - if ($this->host === $host) { - return $this; - } - - $new = clone $this; - $new->host = $host; - $new->validateState(); - - return $new; - } - - public function withPort($port) - { - $port = $this->filterPort($port); - - if ($this->port === $port) { - return $this; - } - - $new = clone $this; - $new->port = $port; - $new->removeDefaultPort(); - $new->validateState(); - - return $new; - } - - public function withPath($path) - { - $path = $this->filterPath($path); - - if ($this->path === $path) { - return $this; - } - - $new = clone $this; - $new->path = $path; - $new->validateState(); - - return $new; - } - - public function withQuery($query) - { - $query = $this->filterQueryAndFragment($query); - - if ($this->query === $query) { - return $this; - } - - $new = clone $this; - $new->query = $query; - - return $new; - } - - public function withFragment($fragment) - { - $fragment = $this->filterQueryAndFragment($fragment); - - if ($this->fragment === $fragment) { - return $this; - } - - $new = clone $this; - $new->fragment = $fragment; - - return $new; - } - - /** - * Apply parse_url parts to a URI. - * - * @param array $parts Array of parse_url parts to apply. - */ - private function applyParts(array $parts) - { - $this->scheme = isset($parts['scheme']) - ? $this->filterScheme($parts['scheme']) - : ''; - $this->userInfo = isset($parts['user']) ? $parts['user'] : ''; - $this->host = isset($parts['host']) - ? $this->filterHost($parts['host']) - : ''; - $this->port = isset($parts['port']) - ? $this->filterPort($parts['port']) - : null; - $this->path = isset($parts['path']) - ? $this->filterPath($parts['path']) - : ''; - $this->query = isset($parts['query']) - ? $this->filterQueryAndFragment($parts['query']) - : ''; - $this->fragment = isset($parts['fragment']) - ? $this->filterQueryAndFragment($parts['fragment']) - : ''; - if (isset($parts['pass'])) { - $this->userInfo .= ':' . $parts['pass']; - } - - $this->removeDefaultPort(); - } - - /** - * @param string $scheme - * - * @return string - * - * @throws \InvalidArgumentException If the scheme is invalid. - */ - private function filterScheme($scheme) - { - if (!is_string($scheme)) { - throw new \InvalidArgumentException('Scheme must be a string'); - } - - return strtolower($scheme); - } - - /** - * @param string $host - * - * @return string - * - * @throws \InvalidArgumentException If the host is invalid. - */ - private function filterHost($host) - { - if (!is_string($host)) { - throw new \InvalidArgumentException('Host must be a string'); - } - - return strtolower($host); - } - - /** - * @param int|null $port - * - * @return int|null - * - * @throws \InvalidArgumentException If the port is invalid. - */ - private function filterPort($port) - { - if ($port === null) { - return null; - } - - $port = (int) $port; - if (1 > $port || 0xffff < $port) { - throw new \InvalidArgumentException( - sprintf('Invalid port: %d. Must be between 1 and 65535', $port) - ); - } - - return $port; - } - - private function removeDefaultPort() - { - if ($this->port !== null && self::isDefaultPort($this)) { - $this->port = null; - } - } - - /** - * Filters the path of a URI - * - * @param string $path - * - * @return string - * - * @throws \InvalidArgumentException If the path is invalid. - */ - private function filterPath($path) - { - if (!is_string($path)) { - throw new \InvalidArgumentException('Path must be a string'); - } - - return preg_replace_callback( - '/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\/]++|%(?![A-Fa-f0-9]{2}))/', - [$this, 'rawurlencodeMatchZero'], - $path - ); - } - - /** - * Filters the query string or fragment of a URI. - * - * @param string $str - * - * @return string - * - * @throws \InvalidArgumentException If the query or fragment is invalid. - */ - private function filterQueryAndFragment($str) - { - if (!is_string($str)) { - throw new \InvalidArgumentException('Query and fragment must be a string'); - } - - return preg_replace_callback( - '/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\/\?]++|%(?![A-Fa-f0-9]{2}))/', - [$this, 'rawurlencodeMatchZero'], - $str - ); - } - - private function rawurlencodeMatchZero(array $match) - { - return rawurlencode($match[0]); - } - - private function validateState() - { - if ($this->host === '' && ($this->scheme === 'http' || $this->scheme === 'https')) { - $this->host = self::HTTP_DEFAULT_HOST; - } - - if ($this->getAuthority() === '') { - if (0 === strpos($this->path, '//')) { - throw new \InvalidArgumentException('The path of a URI without an authority must not start with two slashes "//"'); - } - if ($this->scheme === '' && false !== strpos(explode('/', $this->path, 2)[0], ':')) { - throw new \InvalidArgumentException('A relative URI must not have a path beginning with a segment containing a colon'); - } - } elseif (isset($this->path[0]) && $this->path[0] !== '/') { - @trigger_error( - 'The path of a URI with an authority must start with a slash "/" or be empty. Automagically fixing the URI ' . - 'by adding a leading slash to the path is deprecated since version 1.4 and will throw an exception instead.', - E_USER_DEPRECATED - ); - $this->path = '/'. $this->path; - //throw new \InvalidArgumentException('The path of a URI with an authority must start with a slash "/" or be empty'); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UriNormalizer.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UriNormalizer.php deleted file mode 100644 index 384c29e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UriNormalizer.php +++ /dev/null @@ -1,216 +0,0 @@ -getPath() === '' && - ($uri->getScheme() === 'http' || $uri->getScheme() === 'https') - ) { - $uri = $uri->withPath('/'); - } - - if ($flags & self::REMOVE_DEFAULT_HOST && $uri->getScheme() === 'file' && $uri->getHost() === 'localhost') { - $uri = $uri->withHost(''); - } - - if ($flags & self::REMOVE_DEFAULT_PORT && $uri->getPort() !== null && Uri::isDefaultPort($uri)) { - $uri = $uri->withPort(null); - } - - if ($flags & self::REMOVE_DOT_SEGMENTS && !Uri::isRelativePathReference($uri)) { - $uri = $uri->withPath(UriResolver::removeDotSegments($uri->getPath())); - } - - if ($flags & self::REMOVE_DUPLICATE_SLASHES) { - $uri = $uri->withPath(preg_replace('#//++#', '/', $uri->getPath())); - } - - if ($flags & self::SORT_QUERY_PARAMETERS && $uri->getQuery() !== '') { - $queryKeyValues = explode('&', $uri->getQuery()); - sort($queryKeyValues); - $uri = $uri->withQuery(implode('&', $queryKeyValues)); - } - - return $uri; - } - - /** - * Whether two URIs can be considered equivalent. - * - * Both URIs are normalized automatically before comparison with the given $normalizations bitmask. The method also - * accepts relative URI references and returns true when they are equivalent. This of course assumes they will be - * resolved against the same base URI. If this is not the case, determination of equivalence or difference of - * relative references does not mean anything. - * - * @param UriInterface $uri1 An URI to compare - * @param UriInterface $uri2 An URI to compare - * @param int $normalizations A bitmask of normalizations to apply, see constants - * - * @return bool - * @link https://tools.ietf.org/html/rfc3986#section-6.1 - */ - public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS) - { - return (string) self::normalize($uri1, $normalizations) === (string) self::normalize($uri2, $normalizations); - } - - private static function capitalizePercentEncoding(UriInterface $uri) - { - $regex = '/(?:%[A-Fa-f0-9]{2})++/'; - - $callback = function (array $match) { - return strtoupper($match[0]); - }; - - return - $uri->withPath( - preg_replace_callback($regex, $callback, $uri->getPath()) - )->withQuery( - preg_replace_callback($regex, $callback, $uri->getQuery()) - ); - } - - private static function decodeUnreservedCharacters(UriInterface $uri) - { - $regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i'; - - $callback = function (array $match) { - return rawurldecode($match[0]); - }; - - return - $uri->withPath( - preg_replace_callback($regex, $callback, $uri->getPath()) - )->withQuery( - preg_replace_callback($regex, $callback, $uri->getQuery()) - ); - } - - private function __construct() - { - // cannot be instantiated - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UriResolver.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UriResolver.php deleted file mode 100644 index c1cb8a2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/UriResolver.php +++ /dev/null @@ -1,219 +0,0 @@ -getScheme() != '') { - return $rel->withPath(self::removeDotSegments($rel->getPath())); - } - - if ($rel->getAuthority() != '') { - $targetAuthority = $rel->getAuthority(); - $targetPath = self::removeDotSegments($rel->getPath()); - $targetQuery = $rel->getQuery(); - } else { - $targetAuthority = $base->getAuthority(); - if ($rel->getPath() === '') { - $targetPath = $base->getPath(); - $targetQuery = $rel->getQuery() != '' ? $rel->getQuery() : $base->getQuery(); - } else { - if ($rel->getPath()[0] === '/') { - $targetPath = $rel->getPath(); - } else { - if ($targetAuthority != '' && $base->getPath() === '') { - $targetPath = '/' . $rel->getPath(); - } else { - $lastSlashPos = strrpos($base->getPath(), '/'); - if ($lastSlashPos === false) { - $targetPath = $rel->getPath(); - } else { - $targetPath = substr($base->getPath(), 0, $lastSlashPos + 1) . $rel->getPath(); - } - } - } - $targetPath = self::removeDotSegments($targetPath); - $targetQuery = $rel->getQuery(); - } - } - - return new Uri(Uri::composeComponents( - $base->getScheme(), - $targetAuthority, - $targetPath, - $targetQuery, - $rel->getFragment() - )); - } - - /** - * Returns the target URI as a relative reference from the base URI. - * - * This method is the counterpart to resolve(): - * - * (string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target)) - * - * One use-case is to use the current request URI as base URI and then generate relative links in your documents - * to reduce the document size or offer self-contained downloadable document archives. - * - * $base = new Uri('http://example.com/a/b/'); - * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'. - * echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'. - * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'. - * echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'. - * - * This method also accepts a target that is already relative and will try to relativize it further. Only a - * relative-path reference will be returned as-is. - * - * echo UriResolver::relativize($base, new Uri('/a/b/c')); // prints 'c' as well - * - * @param UriInterface $base Base URI - * @param UriInterface $target Target URI - * - * @return UriInterface The relative URI reference - */ - public static function relativize(UriInterface $base, UriInterface $target) - { - if ($target->getScheme() !== '' && - ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '') - ) { - return $target; - } - - if (Uri::isRelativePathReference($target)) { - // As the target is already highly relative we return it as-is. It would be possible to resolve - // the target with `$target = self::resolve($base, $target);` and then try make it more relative - // by removing a duplicate query. But let's not do that automatically. - return $target; - } - - if ($target->getAuthority() !== '' && $base->getAuthority() !== $target->getAuthority()) { - return $target->withScheme(''); - } - - // We must remove the path before removing the authority because if the path starts with two slashes, the URI - // would turn invalid. And we also cannot set a relative path before removing the authority, as that is also - // invalid. - $emptyPathUri = $target->withScheme('')->withPath('')->withUserInfo('')->withPort(null)->withHost(''); - - if ($base->getPath() !== $target->getPath()) { - return $emptyPathUri->withPath(self::getRelativePath($base, $target)); - } - - if ($base->getQuery() === $target->getQuery()) { - // Only the target fragment is left. And it must be returned even if base and target fragment are the same. - return $emptyPathUri->withQuery(''); - } - - // If the base URI has a query but the target has none, we cannot return an empty path reference as it would - // inherit the base query component when resolving. - if ($target->getQuery() === '') { - $segments = explode('/', $target->getPath()); - $lastSegment = end($segments); - - return $emptyPathUri->withPath($lastSegment === '' ? './' : $lastSegment); - } - - return $emptyPathUri; - } - - private static function getRelativePath(UriInterface $base, UriInterface $target) - { - $sourceSegments = explode('/', $base->getPath()); - $targetSegments = explode('/', $target->getPath()); - array_pop($sourceSegments); - $targetLastSegment = array_pop($targetSegments); - foreach ($sourceSegments as $i => $segment) { - if (isset($targetSegments[$i]) && $segment === $targetSegments[$i]) { - unset($sourceSegments[$i], $targetSegments[$i]); - } else { - break; - } - } - $targetSegments[] = $targetLastSegment; - $relativePath = str_repeat('../', count($sourceSegments)) . implode('/', $targetSegments); - - // A reference to am empty last segment or an empty first sub-segment must be prefixed with "./". - // This also applies to a segment with a colon character (e.g., "file:colon") that cannot be used - // as the first segment of a relative-path reference, as it would be mistaken for a scheme name. - if ('' === $relativePath || false !== strpos(explode('/', $relativePath, 2)[0], ':')) { - $relativePath = "./$relativePath"; - } elseif ('/' === $relativePath[0]) { - if ($base->getAuthority() != '' && $base->getPath() === '') { - // In this case an extra slash is added by resolve() automatically. So we must not add one here. - $relativePath = ".$relativePath"; - } else { - $relativePath = "./$relativePath"; - } - } - - return $relativePath; - } - - private function __construct() - { - // cannot be instantiated - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/functions.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/functions.php deleted file mode 100644 index e40348d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/functions.php +++ /dev/null @@ -1,828 +0,0 @@ -getMethod() . ' ' - . $message->getRequestTarget()) - . ' HTTP/' . $message->getProtocolVersion(); - if (!$message->hasHeader('host')) { - $msg .= "\r\nHost: " . $message->getUri()->getHost(); - } - } elseif ($message instanceof ResponseInterface) { - $msg = 'HTTP/' . $message->getProtocolVersion() . ' ' - . $message->getStatusCode() . ' ' - . $message->getReasonPhrase(); - } else { - throw new \InvalidArgumentException('Unknown message type'); - } - - foreach ($message->getHeaders() as $name => $values) { - $msg .= "\r\n{$name}: " . implode(', ', $values); - } - - return "{$msg}\r\n\r\n" . $message->getBody(); -} - -/** - * Returns a UriInterface for the given value. - * - * This function accepts a string or {@see Psr\Http\Message\UriInterface} and - * returns a UriInterface for the given value. If the value is already a - * `UriInterface`, it is returned as-is. - * - * @param string|UriInterface $uri - * - * @return UriInterface - * @throws \InvalidArgumentException - */ -function uri_for($uri) -{ - if ($uri instanceof UriInterface) { - return $uri; - } elseif (is_string($uri)) { - return new Uri($uri); - } - - throw new \InvalidArgumentException('URI must be a string or UriInterface'); -} - -/** - * Create a new stream based on the input type. - * - * Options is an associative array that can contain the following keys: - * - metadata: Array of custom metadata. - * - size: Size of the stream. - * - * @param resource|string|null|int|float|bool|StreamInterface|callable $resource Entity body data - * @param array $options Additional options - * - * @return Stream - * @throws \InvalidArgumentException if the $resource arg is not valid. - */ -function stream_for($resource = '', array $options = []) -{ - if (is_scalar($resource)) { - $stream = fopen('php://temp', 'r+'); - if ($resource !== '') { - fwrite($stream, $resource); - fseek($stream, 0); - } - return new Stream($stream, $options); - } - - switch (gettype($resource)) { - case 'resource': - return new Stream($resource, $options); - case 'object': - if ($resource instanceof StreamInterface) { - return $resource; - } elseif ($resource instanceof \Iterator) { - return new PumpStream(function () use ($resource) { - if (!$resource->valid()) { - return false; - } - $result = $resource->current(); - $resource->next(); - return $result; - }, $options); - } elseif (method_exists($resource, '__toString')) { - return stream_for((string) $resource, $options); - } - break; - case 'NULL': - return new Stream(fopen('php://temp', 'r+'), $options); - } - - if (is_callable($resource)) { - return new PumpStream($resource, $options); - } - - throw new \InvalidArgumentException('Invalid resource type: ' . gettype($resource)); -} - -/** - * Parse an array of header values containing ";" separated data into an - * array of associative arrays representing the header key value pair - * data of the header. When a parameter does not contain a value, but just - * contains a key, this function will inject a key with a '' string value. - * - * @param string|array $header Header to parse into components. - * - * @return array Returns the parsed header values. - */ -function parse_header($header) -{ - static $trimmed = "\"' \n\t\r"; - $params = $matches = []; - - foreach (normalize_header($header) as $val) { - $part = []; - foreach (preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) { - if (preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) { - $m = $matches[0]; - if (isset($m[1])) { - $part[trim($m[0], $trimmed)] = trim($m[1], $trimmed); - } else { - $part[] = trim($m[0], $trimmed); - } - } - } - if ($part) { - $params[] = $part; - } - } - - return $params; -} - -/** - * Converts an array of header values that may contain comma separated - * headers into an array of headers with no comma separated values. - * - * @param string|array $header Header to normalize. - * - * @return array Returns the normalized header field values. - */ -function normalize_header($header) -{ - if (!is_array($header)) { - return array_map('trim', explode(',', $header)); - } - - $result = []; - foreach ($header as $value) { - foreach ((array) $value as $v) { - if (strpos($v, ',') === false) { - $result[] = $v; - continue; - } - foreach (preg_split('/,(?=([^"]*"[^"]*")*[^"]*$)/', $v) as $vv) { - $result[] = trim($vv); - } - } - } - - return $result; -} - -/** - * Clone and modify a request with the given changes. - * - * The changes can be one of: - * - method: (string) Changes the HTTP method. - * - set_headers: (array) Sets the given headers. - * - remove_headers: (array) Remove the given headers. - * - body: (mixed) Sets the given body. - * - uri: (UriInterface) Set the URI. - * - query: (string) Set the query string value of the URI. - * - version: (string) Set the protocol version. - * - * @param RequestInterface $request Request to clone and modify. - * @param array $changes Changes to apply. - * - * @return RequestInterface - */ -function modify_request(RequestInterface $request, array $changes) -{ - if (!$changes) { - return $request; - } - - $headers = $request->getHeaders(); - - if (!isset($changes['uri'])) { - $uri = $request->getUri(); - } else { - // Remove the host header if one is on the URI - if ($host = $changes['uri']->getHost()) { - $changes['set_headers']['Host'] = $host; - - if ($port = $changes['uri']->getPort()) { - $standardPorts = ['http' => 80, 'https' => 443]; - $scheme = $changes['uri']->getScheme(); - if (isset($standardPorts[$scheme]) && $port != $standardPorts[$scheme]) { - $changes['set_headers']['Host'] .= ':'.$port; - } - } - } - $uri = $changes['uri']; - } - - if (!empty($changes['remove_headers'])) { - $headers = _caseless_remove($changes['remove_headers'], $headers); - } - - if (!empty($changes['set_headers'])) { - $headers = _caseless_remove(array_keys($changes['set_headers']), $headers); - $headers = $changes['set_headers'] + $headers; - } - - if (isset($changes['query'])) { - $uri = $uri->withQuery($changes['query']); - } - - if ($request instanceof ServerRequestInterface) { - return new ServerRequest( - isset($changes['method']) ? $changes['method'] : $request->getMethod(), - $uri, - $headers, - isset($changes['body']) ? $changes['body'] : $request->getBody(), - isset($changes['version']) - ? $changes['version'] - : $request->getProtocolVersion(), - $request->getServerParams() - ); - } - - return new Request( - isset($changes['method']) ? $changes['method'] : $request->getMethod(), - $uri, - $headers, - isset($changes['body']) ? $changes['body'] : $request->getBody(), - isset($changes['version']) - ? $changes['version'] - : $request->getProtocolVersion() - ); -} - -/** - * Attempts to rewind a message body and throws an exception on failure. - * - * The body of the message will only be rewound if a call to `tell()` returns a - * value other than `0`. - * - * @param MessageInterface $message Message to rewind - * - * @throws \RuntimeException - */ -function rewind_body(MessageInterface $message) -{ - $body = $message->getBody(); - - if ($body->tell()) { - $body->rewind(); - } -} - -/** - * Safely opens a PHP stream resource using a filename. - * - * When fopen fails, PHP normally raises a warning. This function adds an - * error handler that checks for errors and throws an exception instead. - * - * @param string $filename File to open - * @param string $mode Mode used to open the file - * - * @return resource - * @throws \RuntimeException if the file cannot be opened - */ -function try_fopen($filename, $mode) -{ - $ex = null; - set_error_handler(function () use ($filename, $mode, &$ex) { - $ex = new \RuntimeException(sprintf( - 'Unable to open %s using mode %s: %s', - $filename, - $mode, - func_get_args()[1] - )); - }); - - $handle = fopen($filename, $mode); - restore_error_handler(); - - if ($ex) { - /** @var $ex \RuntimeException */ - throw $ex; - } - - return $handle; -} - -/** - * Copy the contents of a stream into a string until the given number of - * bytes have been read. - * - * @param StreamInterface $stream Stream to read - * @param int $maxLen Maximum number of bytes to read. Pass -1 - * to read the entire stream. - * @return string - * @throws \RuntimeException on error. - */ -function copy_to_string(StreamInterface $stream, $maxLen = -1) -{ - $buffer = ''; - - if ($maxLen === -1) { - while (!$stream->eof()) { - $buf = $stream->read(1048576); - // Using a loose equality here to match on '' and false. - if ($buf == null) { - break; - } - $buffer .= $buf; - } - return $buffer; - } - - $len = 0; - while (!$stream->eof() && $len < $maxLen) { - $buf = $stream->read($maxLen - $len); - // Using a loose equality here to match on '' and false. - if ($buf == null) { - break; - } - $buffer .= $buf; - $len = strlen($buffer); - } - - return $buffer; -} - -/** - * Copy the contents of a stream into another stream until the given number - * of bytes have been read. - * - * @param StreamInterface $source Stream to read from - * @param StreamInterface $dest Stream to write to - * @param int $maxLen Maximum number of bytes to read. Pass -1 - * to read the entire stream. - * - * @throws \RuntimeException on error. - */ -function copy_to_stream( - StreamInterface $source, - StreamInterface $dest, - $maxLen = -1 -) { - $bufferSize = 8192; - - if ($maxLen === -1) { - while (!$source->eof()) { - if (!$dest->write($source->read($bufferSize))) { - break; - } - } - } else { - $remaining = $maxLen; - while ($remaining > 0 && !$source->eof()) { - $buf = $source->read(min($bufferSize, $remaining)); - $len = strlen($buf); - if (!$len) { - break; - } - $remaining -= $len; - $dest->write($buf); - } - } -} - -/** - * Calculate a hash of a Stream - * - * @param StreamInterface $stream Stream to calculate the hash for - * @param string $algo Hash algorithm (e.g. md5, crc32, etc) - * @param bool $rawOutput Whether or not to use raw output - * - * @return string Returns the hash of the stream - * @throws \RuntimeException on error. - */ -function hash( - StreamInterface $stream, - $algo, - $rawOutput = false -) { - $pos = $stream->tell(); - - if ($pos > 0) { - $stream->rewind(); - } - - $ctx = hash_init($algo); - while (!$stream->eof()) { - hash_update($ctx, $stream->read(1048576)); - } - - $out = hash_final($ctx, (bool) $rawOutput); - $stream->seek($pos); - - return $out; -} - -/** - * Read a line from the stream up to the maximum allowed buffer length - * - * @param StreamInterface $stream Stream to read from - * @param int $maxLength Maximum buffer length - * - * @return string|bool - */ -function readline(StreamInterface $stream, $maxLength = null) -{ - $buffer = ''; - $size = 0; - - while (!$stream->eof()) { - // Using a loose equality here to match on '' and false. - if (null == ($byte = $stream->read(1))) { - return $buffer; - } - $buffer .= $byte; - // Break when a new line is found or the max length - 1 is reached - if ($byte === "\n" || ++$size === $maxLength - 1) { - break; - } - } - - return $buffer; -} - -/** - * Parses a request message string into a request object. - * - * @param string $message Request message string. - * - * @return Request - */ -function parse_request($message) -{ - $data = _parse_message($message); - $matches = []; - if (!preg_match('/^[\S]+\s+([a-zA-Z]+:\/\/|\/).*/', $data['start-line'], $matches)) { - throw new \InvalidArgumentException('Invalid request string'); - } - $parts = explode(' ', $data['start-line'], 3); - $version = isset($parts[2]) ? explode('/', $parts[2])[1] : '1.1'; - - $request = new Request( - $parts[0], - $matches[1] === '/' ? _parse_request_uri($parts[1], $data['headers']) : $parts[1], - $data['headers'], - $data['body'], - $version - ); - - return $matches[1] === '/' ? $request : $request->withRequestTarget($parts[1]); -} - -/** - * Parses a response message string into a response object. - * - * @param string $message Response message string. - * - * @return Response - */ -function parse_response($message) -{ - $data = _parse_message($message); - // According to https://tools.ietf.org/html/rfc7230#section-3.1.2 the space - // between status-code and reason-phrase is required. But browsers accept - // responses without space and reason as well. - if (!preg_match('/^HTTP\/.* [0-9]{3}( .*|$)/', $data['start-line'])) { - throw new \InvalidArgumentException('Invalid response string'); - } - $parts = explode(' ', $data['start-line'], 3); - - return new Response( - $parts[1], - $data['headers'], - $data['body'], - explode('/', $parts[0])[1], - isset($parts[2]) ? $parts[2] : null - ); -} - -/** - * Parse a query string into an associative array. - * - * If multiple values are found for the same key, the value of that key - * value pair will become an array. This function does not parse nested - * PHP style arrays into an associative array (e.g., foo[a]=1&foo[b]=2 will - * be parsed into ['foo[a]' => '1', 'foo[b]' => '2']). - * - * @param string $str Query string to parse - * @param bool|string $urlEncoding How the query string is encoded - * - * @return array - */ -function parse_query($str, $urlEncoding = true) -{ - $result = []; - - if ($str === '') { - return $result; - } - - if ($urlEncoding === true) { - $decoder = function ($value) { - return rawurldecode(str_replace('+', ' ', $value)); - }; - } elseif ($urlEncoding == PHP_QUERY_RFC3986) { - $decoder = 'rawurldecode'; - } elseif ($urlEncoding == PHP_QUERY_RFC1738) { - $decoder = 'urldecode'; - } else { - $decoder = function ($str) { return $str; }; - } - - foreach (explode('&', $str) as $kvp) { - $parts = explode('=', $kvp, 2); - $key = $decoder($parts[0]); - $value = isset($parts[1]) ? $decoder($parts[1]) : null; - if (!isset($result[$key])) { - $result[$key] = $value; - } else { - if (!is_array($result[$key])) { - $result[$key] = [$result[$key]]; - } - $result[$key][] = $value; - } - } - - return $result; -} - -/** - * Build a query string from an array of key value pairs. - * - * This function can use the return value of parse_query() to build a query - * string. This function does not modify the provided keys when an array is - * encountered (like http_build_query would). - * - * @param array $params Query string parameters. - * @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986 - * to encode using RFC3986, or PHP_QUERY_RFC1738 - * to encode using RFC1738. - * @return string - */ -function build_query(array $params, $encoding = PHP_QUERY_RFC3986) -{ - if (!$params) { - return ''; - } - - if ($encoding === false) { - $encoder = function ($str) { return $str; }; - } elseif ($encoding === PHP_QUERY_RFC3986) { - $encoder = 'rawurlencode'; - } elseif ($encoding === PHP_QUERY_RFC1738) { - $encoder = 'urlencode'; - } else { - throw new \InvalidArgumentException('Invalid type'); - } - - $qs = ''; - foreach ($params as $k => $v) { - $k = $encoder($k); - if (!is_array($v)) { - $qs .= $k; - if ($v !== null) { - $qs .= '=' . $encoder($v); - } - $qs .= '&'; - } else { - foreach ($v as $vv) { - $qs .= $k; - if ($vv !== null) { - $qs .= '=' . $encoder($vv); - } - $qs .= '&'; - } - } - } - - return $qs ? (string) substr($qs, 0, -1) : ''; -} - -/** - * Determines the mimetype of a file by looking at its extension. - * - * @param $filename - * - * @return null|string - */ -function mimetype_from_filename($filename) -{ - return mimetype_from_extension(pathinfo($filename, PATHINFO_EXTENSION)); -} - -/** - * Maps a file extensions to a mimetype. - * - * @param $extension string The file extension. - * - * @return string|null - * @link http://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types - */ -function mimetype_from_extension($extension) -{ - static $mimetypes = [ - '7z' => 'application/x-7z-compressed', - 'aac' => 'audio/x-aac', - 'ai' => 'application/postscript', - 'aif' => 'audio/x-aiff', - 'asc' => 'text/plain', - 'asf' => 'video/x-ms-asf', - 'atom' => 'application/atom+xml', - 'avi' => 'video/x-msvideo', - 'bmp' => 'image/bmp', - 'bz2' => 'application/x-bzip2', - 'cer' => 'application/pkix-cert', - 'crl' => 'application/pkix-crl', - 'crt' => 'application/x-x509-ca-cert', - 'css' => 'text/css', - 'csv' => 'text/csv', - 'cu' => 'application/cu-seeme', - 'deb' => 'application/x-debian-package', - 'doc' => 'application/msword', - 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'dvi' => 'application/x-dvi', - 'eot' => 'application/vnd.ms-fontobject', - 'eps' => 'application/postscript', - 'epub' => 'application/epub+zip', - 'etx' => 'text/x-setext', - 'flac' => 'audio/flac', - 'flv' => 'video/x-flv', - 'gif' => 'image/gif', - 'gz' => 'application/gzip', - 'htm' => 'text/html', - 'html' => 'text/html', - 'ico' => 'image/x-icon', - 'ics' => 'text/calendar', - 'ini' => 'text/plain', - 'iso' => 'application/x-iso9660-image', - 'jar' => 'application/java-archive', - 'jpe' => 'image/jpeg', - 'jpeg' => 'image/jpeg', - 'jpg' => 'image/jpeg', - 'js' => 'text/javascript', - 'json' => 'application/json', - 'latex' => 'application/x-latex', - 'log' => 'text/plain', - 'm4a' => 'audio/mp4', - 'm4v' => 'video/mp4', - 'mid' => 'audio/midi', - 'midi' => 'audio/midi', - 'mov' => 'video/quicktime', - 'mp3' => 'audio/mpeg', - 'mp4' => 'video/mp4', - 'mp4a' => 'audio/mp4', - 'mp4v' => 'video/mp4', - 'mpe' => 'video/mpeg', - 'mpeg' => 'video/mpeg', - 'mpg' => 'video/mpeg', - 'mpg4' => 'video/mp4', - 'oga' => 'audio/ogg', - 'ogg' => 'audio/ogg', - 'ogv' => 'video/ogg', - 'ogx' => 'application/ogg', - 'pbm' => 'image/x-portable-bitmap', - 'pdf' => 'application/pdf', - 'pgm' => 'image/x-portable-graymap', - 'png' => 'image/png', - 'pnm' => 'image/x-portable-anymap', - 'ppm' => 'image/x-portable-pixmap', - 'ppt' => 'application/vnd.ms-powerpoint', - 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', - 'ps' => 'application/postscript', - 'qt' => 'video/quicktime', - 'rar' => 'application/x-rar-compressed', - 'ras' => 'image/x-cmu-raster', - 'rss' => 'application/rss+xml', - 'rtf' => 'application/rtf', - 'sgm' => 'text/sgml', - 'sgml' => 'text/sgml', - 'svg' => 'image/svg+xml', - 'swf' => 'application/x-shockwave-flash', - 'tar' => 'application/x-tar', - 'tif' => 'image/tiff', - 'tiff' => 'image/tiff', - 'torrent' => 'application/x-bittorrent', - 'ttf' => 'application/x-font-ttf', - 'txt' => 'text/plain', - 'wav' => 'audio/x-wav', - 'webm' => 'video/webm', - 'wma' => 'audio/x-ms-wma', - 'wmv' => 'video/x-ms-wmv', - 'woff' => 'application/x-font-woff', - 'wsdl' => 'application/wsdl+xml', - 'xbm' => 'image/x-xbitmap', - 'xls' => 'application/vnd.ms-excel', - 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - 'xml' => 'application/xml', - 'xpm' => 'image/x-xpixmap', - 'xwd' => 'image/x-xwindowdump', - 'yaml' => 'text/yaml', - 'yml' => 'text/yaml', - 'zip' => 'application/zip', - ]; - - $extension = strtolower($extension); - - return isset($mimetypes[$extension]) - ? $mimetypes[$extension] - : null; -} - -/** - * Parses an HTTP message into an associative array. - * - * The array contains the "start-line" key containing the start line of - * the message, "headers" key containing an associative array of header - * array values, and a "body" key containing the body of the message. - * - * @param string $message HTTP request or response to parse. - * - * @return array - * @internal - */ -function _parse_message($message) -{ - if (!$message) { - throw new \InvalidArgumentException('Invalid message'); - } - - // Iterate over each line in the message, accounting for line endings - $lines = preg_split('/(\\r?\\n)/', $message, -1, PREG_SPLIT_DELIM_CAPTURE); - $result = ['start-line' => array_shift($lines), 'headers' => [], 'body' => '']; - array_shift($lines); - - for ($i = 0, $totalLines = count($lines); $i < $totalLines; $i += 2) { - $line = $lines[$i]; - // If two line breaks were encountered, then this is the end of body - if (empty($line)) { - if ($i < $totalLines - 1) { - $result['body'] = implode('', array_slice($lines, $i + 2)); - } - break; - } - if (strpos($line, ':')) { - $parts = explode(':', $line, 2); - $key = trim($parts[0]); - $value = isset($parts[1]) ? trim($parts[1]) : ''; - $result['headers'][$key][] = $value; - } - } - - return $result; -} - -/** - * Constructs a URI for an HTTP request message. - * - * @param string $path Path from the start-line - * @param array $headers Array of headers (each value an array). - * - * @return string - * @internal - */ -function _parse_request_uri($path, array $headers) -{ - $hostKey = array_filter(array_keys($headers), function ($k) { - return strtolower($k) === 'host'; - }); - - // If no host is found, then a full URI cannot be constructed. - if (!$hostKey) { - return $path; - } - - $host = $headers[reset($hostKey)][0]; - $scheme = substr($host, -4) === ':443' ? 'https' : 'http'; - - return $scheme . '://' . $host . '/' . ltrim($path, '/'); -} - -/** @internal */ -function _caseless_remove($keys, array $data) -{ - $result = []; - - foreach ($keys as &$key) { - $key = strtolower($key); - } - - foreach ($data as $k => $v) { - if (!in_array(strtolower($k), $keys)) { - $result[$k] = $v; - } - } - - return $result; -} diff --git a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/functions_include.php b/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/functions_include.php deleted file mode 100644 index 96a4a83..0000000 --- a/modules/dkan_sci_citation/includes/vendor/guzzlehttp/psr7/src/functions_include.php +++ /dev/null @@ -1,6 +0,0 @@ -push(new CacheMiddleware(), 'cache'); - -// Initialize the client with the handler option -$client = new Client(['handler' => $stack]); -``` - -# Examples - -## Doctrine/Cache -You can use a cache from `Doctrine/Cache`: -```php -[...] -use Doctrine\Common\Cache\FilesystemCache; -use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy; -use Kevinrob\GuzzleCache\Storage\DoctrineCacheStorage; - -[...] -$stack->push( - new CacheMiddleware( - new PrivateCacheStrategy( - new DoctrineCacheStorage( - new FilesystemCache('/tmp/') - ) - ) - ), - 'cache' -); -``` - -You can use `ChainCache` for using multiple `CacheProvider`. With that provider, you have to sort the different cache from the faster to the slower. Like that, you can have a very fast cache. -```php -[...] -use Doctrine\Common\Cache\ChainCache; -use Doctrine\Common\Cache\ArrayCache; -use Doctrine\Common\Cache\FilesystemCache; -use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy; -use Kevinrob\GuzzleCache\Storage\DoctrineCacheStorage; - -[...] -$stack->push(new CacheMiddleware( - new PrivateCacheStrategy( - new DoctrineCacheStorage( - new ChainCache([ - new ArrayCache(), - new FilesystemCache('/tmp/'), - ]) - ) - ) -), 'cache'); -``` - -## Laravel cache -You can use a cache with Laravel, e.g. Redis, Memcache etc.: -```php -[...] -use Illuminate\Support\Facades\Cache; -use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy; -use Kevinrob\GuzzleCache\Storage\LaravelCacheStorage; - -[...] - -$stack->push( - new CacheMiddleware( - new PrivateCacheStrategy( - new LaravelCacheStorage( - Cache::store('redis') - ) - ) - ), - 'cache' -); -``` - -## Flysystem -```php -[...] -use League\Flysystem\Adapter\Local; -use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy; -use Kevinrob\GuzzleCache\Storage\FlysystemStorage; - -[...] - -$stack->push( - new CacheMiddleware( - new PrivateCacheStrategy( - new FlysystemStorage( - new Local('/path/to/cache') - ) - ) - ), - 'cache' -); -``` - -## WordPress Object Cache -```php -[...] -use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy; -use Kevinrob\GuzzleCache\Storage\WordPressObjectCacheStorage; - -[...] - -$stack->push( - new CacheMiddleware( - new PrivateCacheStrategy( - new WordPressObjectCacheStorage() - ) - ), - 'cache' -); -``` - -## Public and shared -It's possible to add a public shared cache to the stack: -```php -[...] -use Doctrine\Common\Cache\FilesystemCache; -use Doctrine\Common\Cache\PredisCache; -use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy; -use Kevinrob\GuzzleCache\Strategy\PublicCacheStrategy; -use Kevinrob\GuzzleCache\Storage\DoctrineCacheStorage; - -[...] -// Private caching -$stack->push( - new CacheMiddleware( - new PrivateCacheStrategy( - new DoctrineCacheStorage( - new FilesystemCache('/tmp/') - ) - ) - ), - 'private-cache' -); - -// Public caching -$stack->push( - new CacheMiddleware( - new PublicCacheStrategy( - new DoctrineCacheStorage( - new PredisCache( - new Predis\Client('tcp://10.0.0.1:6379') - ) - ) - ) - ), - 'shared-cache' -); -``` - -## Greedy caching -In some cases servers might send insufficient or no at all caching headers. -Using the greedy caching strategy allows defining an expiry TTL on your own while -disregarding any possibly present caching headers: -```php -[...] -use Kevinrob\GuzzleCache\KeyValueHttpHeader; -use Kevinrob\GuzzleCache\Strategy\GreedyCacheStrategy; -use Kevinrob\GuzzleCache\Storage\DoctrineCacheStorage; -use Doctrine\Common\Cache\FilesystemCache; - -[...] -// Greedy caching -$stack->push( - new CacheMiddleware( - new GreedyCacheStrategy( - new DoctrineCacheStorage( - new FilesystemCache('/tmp/') - ), - 1800, // the TTL in seconds - new KeyValueHttpHeader(['Authorization']) // Optionnal - specify the headers that can change the cache key - ) - ), - 'greedy-cache' -); -``` - -## Delegate caching -Because your client may call different apps, on different domains, you may need to define which strategy is suitable to your requests. - -To solve this, all you have to do is to define a default cache strategy, and override it by implementing your own Request Matchers. - -Here's an example: -```php -namespace App\RequestMatcher; - -use Kevinrob\GuzzleCache\Strategy\Delegate\RequestMatcherInterface; -use Psr\Http\Message\RequestInterface; - -class ExampleOrgRequestMatcher implements RequestMatcherInterface -{ - - /** - * @inheritDoc - */ - public function matches(RequestInterface $request) - { - return false !== strpos($request->getUri()->getHost(), 'example.org'); - } -} -``` - -```php -namespace App\RequestMatcher; - -use Kevinrob\GuzzleCache\Strategy\Delegate\RequestMatcherInterface; -use Psr\Http\Message\RequestInterface; - -class TwitterRequestMatcher implements RequestMatcherInterface -{ - - /** - * @inheritDoc - */ - public function matches(RequestInterface $request) - { - return false !== strpos($request->getUri()->getHost(), 'twitter.com'); - } -} -``` - -```php -require_once __DIR__ . '/vendor/autoload.php'; - -use App\RequestMatcher\ExampleOrgRequestMatcher; -use App\RequestMatcher\TwitterRequestMatcher; -use GuzzleHttp\Client; -use GuzzleHttp\HandlerStack; -use Kevinrob\GuzzleCache\CacheMiddleware; -use Kevinrob\GuzzleCache\Strategy; - -$strategy = new Strategy\Delegate\DelegatingCacheStrategy($defaultStrategy = new Strategy\NullCacheStrategy()); -$strategy->registerRequestMatcher(new ExampleOrgRequestMatcher(), new Strategy\PublicCacheStrategy()); -$strategy->registerRequestMatcher(new TwitterRequestMatcher(), new Strategy\PrivateCacheStrategy()); - -$stack = HandlerStack::create(); -$stack->push(new CacheMiddleware($strategy)); -$guzzle = new Client(['handler' => $stack]); -``` - -With this example: -* All requests to `example.org` will be handled by `PublicCacheStrategy` -* All requests to `twitter.com` will be handled by `PrivateCacheStrategy` -* All other requests won't be cached. - -## Drupal -See [Guzzle Cache](https://www.drupal.org/project/guzzle_cache) module. - -# Links that talk about the project -- [Speeding Up APIs/Apps/Smart Toasters with HTTP Response Caching](https://blog.apisyouwonthate.com/speeding-up-apis-apps-smart-toasters-with-http-response-caching-a67becf829c6) -- [Caching HTTP-Requests with Guzzle 6 and PSR-6](http://a.kabachnik.info/caching-http-requests-with-guzzle-6-and-psr-6.html) diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/composer.json b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/composer.json deleted file mode 100644 index 08fe24a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/composer.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "kevinrob/guzzle-cache-middleware", - "type": "library", - "description": "A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)", - "keywords": ["guzzle", "guzzle6", "cache", "http", "http 1.1", "psr6", "psr7", "handler", "middleware", "cache-control", "rfc7234", "performance", "php", "promise", "expiration", "validation", "Etag", "flysystem", "doctrine"], - "homepage": "https://github.com/Kevinrob/guzzle-cache-middleware", - "license": "MIT", - "authors": [ - { - "name": "Kevin Robatel", - "email": "kevinrob2@gmail.com", - "homepage": "https://github.com/Kevinrob" - } - ], - "require": { - "php": ">=5.5.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.0 || ^5.0", - "guzzlehttp/guzzle": "^6.0", - "doctrine/cache": "^1.0", - "league/flysystem": "^1.0", - "psr/cache": "^1.0", - "cache/array-adapter": "^0.4 || ^0.5 || ^1.0", - "illuminate/cache": "^5.0", - "cache/simple-cache-bridge": "^0.1 || ^1.0" - }, - "autoload": { - "psr-4": { - "Kevinrob\\GuzzleCache\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "Kevinrob\\GuzzleCache\\Tests\\": "tests/" - } - }, - "suggest": { - "guzzlehttp/guzzle": "For using this library. It was created for Guzzle6. (but you can use it with any PSR-7 HTTP Client)", - "doctrine/cache": "This library have a lot of ready-to-use cache storage (to be use with Kevinrob\\GuzzleCache\\Storage\\DoctrineCacheStorage)", - "league/flysystem": "To be use with Kevinrob\\GuzzleCache\\Storage\\FlysystemStorage", - "psr/cache": "To be use with Kevinrob\\GuzzleCache\\Storage\\Psr6CacheStorage", - "psr/simple-cache": "To be use with Kevinrob\\GuzzleCache\\Storage\\Psr16CacheStorage", - "laravel/framework": "To be use with Kevinrob\\GuzzleCache\\Storage\\LaravelCacheStorage" - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/phpunit.xml b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/phpunit.xml deleted file mode 100644 index 1d606ad..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/phpunit.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - tests - - - - - - src - - - - - - - - diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/CacheEntry.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/CacheEntry.php deleted file mode 100644 index c4a44bc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/CacheEntry.php +++ /dev/null @@ -1,274 +0,0 @@ -dateCreated = new \DateTime(); - - $this->request = $request; - $this->response = $response; - $this->staleAt = $staleAt; - - $values = new KeyValueHttpHeader($response->getHeader('Cache-Control')); - - if ($staleIfErrorTo === null && $values->has('stale-if-error')) { - $this->staleIfErrorTo = (new \DateTime( - '@'.($this->staleAt->getTimestamp() + (int) $values->get('stale-if-error')) - )); - } else { - $this->staleIfErrorTo = $staleIfErrorTo; - } - - if ($staleWhileRevalidateTo === null && $values->has('stale-while-revalidate')) { - $this->staleWhileRevalidateTo = new \DateTime( - '@'.($this->staleAt->getTimestamp() + (int) $values->get('stale-while-revalidate')) - ); - } else { - $this->staleWhileRevalidateTo = $staleWhileRevalidateTo; - } - } - - /** - * @return ResponseInterface - */ - public function getResponse() - { - return $this->response - ->withHeader('Age', $this->getAge()); - } - - /** - * @return ResponseInterface - */ - public function getOriginalResponse() - { - return $this->response; - } - - /** - * @return RequestInterface - */ - public function getOriginalRequest() - { - return $this->request; - } - - /** - * @param RequestInterface $request - * @return bool - */ - public function isVaryEquals(RequestInterface $request) - { - if ($this->response->hasHeader('Vary')) { - if ($this->request === null) { - return false; - } - - foreach ($this->getVaryHeaders() as $key => $value) { - if (!$this->request->hasHeader($key) - && !$request->hasHeader($key) - ) { - // Absent from both - continue; - } elseif ($this->request->getHeaderLine($key) - == $request->getHeaderLine($key) - ) { - // Same content - continue; - } - - return false; - } - } - - return true; - } - - /** - * Get the vary headers that should be honoured by the cache. - * - * @return KeyValueHttpHeader - */ - public function getVaryHeaders() - { - return new KeyValueHttpHeader($this->response->getHeader('Vary')); - } - - /** - * @return \DateTime - */ - public function getStaleAt() - { - return $this->staleAt; - } - - /** - * @return bool - */ - public function isFresh() - { - return !$this->isStale(); - } - - /** - * @return bool - */ - public function isStale() - { - return $this->getStaleAge() > 0; - } - - /** - * @return int positive value equal staled - */ - public function getStaleAge() - { - // This object is immutable - if ($this->timestampStale === null) { - $this->timestampStale = $this->staleAt->getTimestamp(); - } - - return time() - $this->timestampStale; - } - - /** - * @return bool - */ - public function serveStaleIfError() - { - return $this->staleIfErrorTo !== null - && $this->staleIfErrorTo->getTimestamp() >= (new \DateTime())->getTimestamp(); - } - - /** - * @return bool - */ - public function staleWhileValidate() - { - return $this->staleWhileRevalidateTo !== null - && $this->staleWhileRevalidateTo->getTimestamp() >= (new \DateTime())->getTimestamp(); - } - - /** - * @return bool - */ - public function hasValidationInformation() - { - return $this->response->hasHeader('Etag') || $this->response->hasHeader('Last-Modified'); - } - - /** - * @return int TTL in seconds (0 = infinite) - */ - public function getTTL() - { - if ($this->hasValidationInformation()) { - // No TTL if we have a way to re-validate the cache - return 0; - } - - if ($this->staleIfErrorTo !== null) { - // Keep it when stale if error - $ttl = $this->staleIfErrorTo->getTimestamp() - time(); - } else { - // Keep it until it become stale - $ttl = $this->staleAt->getTimestamp() - time(); - } - - // Don't return 0, it's reserved for infinite TTL - return $ttl !== 0 ? (int) $ttl : -1; - } - - /** - * @return int Age in seconds - */ - public function getAge() - { - return time() - $this->dateCreated->getTimestamp(); - } - - public function __sleep() - { - // Stream/Resource can't be serialized... So we copy the content - if ($this->response !== null) { - $this->responseBody = (string) $this->response->getBody(); - $this->response->getBody()->rewind(); - } - - return array_keys(get_object_vars($this)); - } - - public function __wakeup() - { - // We re-create the stream of the response - if ($this->response !== null) { - $this->response = $this->response - ->withBody( - \GuzzleHttp\Psr7\stream_for($this->responseBody) - ); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/CacheMiddleware.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/CacheMiddleware.php deleted file mode 100644 index 4776e90..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/CacheMiddleware.php +++ /dev/null @@ -1,363 +0,0 @@ - true]; - - /** - * @param CacheStrategyInterface|null $cacheStrategy - */ - public function __construct(CacheStrategyInterface $cacheStrategy = null) - { - $this->cacheStorage = $cacheStrategy !== null ? $cacheStrategy : new PrivateCacheStrategy(); - - register_shutdown_function([$this, 'purgeReValidation']); - } - - /** - * @param Client $client - */ - public function setClient(Client $client) - { - $this->client = $client; - } - - /** - * @param CacheStrategyInterface $cacheStorage - */ - public function setCacheStorage(CacheStrategyInterface $cacheStorage) - { - $this->cacheStorage = $cacheStorage; - } - - /** - * @return CacheStrategyInterface - */ - public function getCacheStorage() - { - return $this->cacheStorage; - } - - /** - * @param array $methods - */ - public function setHttpMethods(array $methods) - { - $this->httpMethods = $methods; - } - - public function getHttpMethods() - { - return $this->httpMethods; - } - - /** - * Will be called at the end of the script. - */ - public function purgeReValidation() - { - \GuzzleHttp\Promise\inspect_all($this->waitingRevalidate); - } - - /** - * @param callable $handler - * - * @return callable - */ - public function __invoke(callable $handler) - { - return function (RequestInterface $request, array $options) use (&$handler) { - if (!isset($this->httpMethods[strtoupper($request->getMethod())])) { - // No caching for this method allowed - return $handler($request, $options)->then( - function (ResponseInterface $response) { - return $response->withHeader(self::HEADER_CACHE_INFO, self::HEADER_CACHE_MISS); - } - ); - } - - if ($request->hasHeader(self::HEADER_RE_VALIDATION)) { - // It's a re-validation request, so bypass the cache! - return $handler($request->withoutHeader(self::HEADER_RE_VALIDATION), $options); - } - - // Retrieve information from request (Cache-Control) - $reqCacheControl = new KeyValueHttpHeader($request->getHeader('Cache-Control')); - $onlyFromCache = $reqCacheControl->has('only-if-cached'); - $staleResponse = $reqCacheControl->has('max-stale') - && $reqCacheControl->get('max-stale') === ''; - $maxStaleCache = $reqCacheControl->get('max-stale', null); - $minFreshCache = $reqCacheControl->get('min-fresh', null); - - // If cache => return new FulfilledPromise(...) with response - $cacheEntry = $this->cacheStorage->fetch($request); - if ($cacheEntry instanceof CacheEntry) { - $body = $cacheEntry->getResponse()->getBody(); - if ($body->tell() > 0) { - $body->rewind(); - } - - if ($cacheEntry->isFresh() - && ($minFreshCache === null || $cacheEntry->getStaleAge() + (int)$minFreshCache <= 0) - ) { - // Cache HIT! - return new FulfilledPromise( - $cacheEntry->getResponse()->withHeader(self::HEADER_CACHE_INFO, self::HEADER_CACHE_HIT) - ); - } elseif ($staleResponse - || ($maxStaleCache !== null && $cacheEntry->getStaleAge() <= $maxStaleCache) - ) { - // Staled cache! - return new FulfilledPromise( - $cacheEntry->getResponse()->withHeader(self::HEADER_CACHE_INFO, self::HEADER_CACHE_HIT) - ); - } elseif ($cacheEntry->hasValidationInformation() && !$onlyFromCache) { - // Re-validation header - $request = static::getRequestWithReValidationHeader($request, $cacheEntry); - - if ($cacheEntry->staleWhileValidate()) { - static::addReValidationRequest($request, $this->cacheStorage, $cacheEntry); - - return new FulfilledPromise( - $cacheEntry->getResponse() - ->withHeader(self::HEADER_CACHE_INFO, self::HEADER_CACHE_STALE) - ); - } - } - } else { - $cacheEntry = null; - } - - if ($cacheEntry === null && $onlyFromCache) { - // Explicit asking of a cached response => 504 - return new FulfilledPromise( - new Response(504) - ); - } - - /** @var Promise $promise */ - $promise = $handler($request, $options); - - return $promise->then( - function (ResponseInterface $response) use ($request, $cacheEntry) { - // Check if error and looking for a staled content - if ($response->getStatusCode() >= 500) { - $responseStale = static::getStaleResponse($cacheEntry); - if ($responseStale instanceof ResponseInterface) { - return $responseStale; - } - } - - $update = false; - - if ($response->getStatusCode() == 304 && $cacheEntry instanceof CacheEntry) { - // Not modified => cache entry is re-validate - /** @var ResponseInterface $response */ - $response = $response - ->withStatus($cacheEntry->getResponse()->getStatusCode()) - ->withHeader(self::HEADER_CACHE_INFO, self::HEADER_CACHE_HIT); - $response = $response->withBody($cacheEntry->getResponse()->getBody()); - - // Merge headers of the "304 Not Modified" and the cache entry - /** - * @var string $headerName - * @var string[] $headerValue - */ - foreach ($cacheEntry->getOriginalResponse()->getHeaders() as $headerName => $headerValue) { - if (!$response->hasHeader($headerName) && $headerName !== self::HEADER_CACHE_INFO) { - $response = $response->withHeader($headerName, $headerValue); - } - } - - $update = true; - } else { - $response = $response->withHeader(self::HEADER_CACHE_INFO, self::HEADER_CACHE_MISS); - } - - return static::addToCache($this->cacheStorage, $request, $response, $update); - }, - function ($reason) use ($cacheEntry) { - if ($reason instanceof TransferException) { - $response = static::getStaleResponse($cacheEntry); - if ($response instanceof ResponseInterface) { - return $response; - } - } - - return new RejectedPromise($reason); - } - ); - }; - } - - /** - * @param CacheStrategyInterface $cache - * @param RequestInterface $request - * @param ResponseInterface $response - * @param bool $update cache - * @return ResponseInterface - */ - protected static function addToCache( - CacheStrategyInterface $cache, - RequestInterface $request, - ResponseInterface $response, - $update = false - ) { - // If the body is not seekable, we have to replace it by a seekable one - if (!$response->getBody()->isSeekable()) { - $response = $response->withBody( - \GuzzleHttp\Psr7\stream_for($response->getBody()->getContents()) - ); - } - - if ($update) { - $cache->update($request, $response); - } else { - $cache->cache($request, $response); - } - - return $response; - } - - /** - * @param RequestInterface $request - * @param CacheStrategyInterface $cacheStorage - * @param CacheEntry $cacheEntry - * - * @return bool if added - */ - protected function addReValidationRequest( - RequestInterface $request, - CacheStrategyInterface &$cacheStorage, - CacheEntry $cacheEntry - ) { - // Add the promise for revalidate - if ($this->client !== null) { - /** @var RequestInterface $request */ - $request = $request->withHeader(self::HEADER_RE_VALIDATION, '1'); - $this->waitingRevalidate[] = $this->client - ->sendAsync($request) - ->then(function (ResponseInterface $response) use ($request, &$cacheStorage, $cacheEntry) { - $update = false; - - if ($response->getStatusCode() == 304) { - // Not modified => cache entry is re-validate - /** @var ResponseInterface $response */ - $response = $response->withStatus($cacheEntry->getResponse()->getStatusCode()); - $response = $response->withBody($cacheEntry->getResponse()->getBody()); - - // Merge headers of the "304 Not Modified" and the cache entry - foreach ($cacheEntry->getResponse()->getHeaders() as $headerName => $headerValue) { - if (!$response->hasHeader($headerName)) { - $response = $response->withHeader($headerName, $headerValue); - } - } - - $update = true; - } - - static::addToCache($cacheStorage, $request, $response, $update); - }); - - return true; - } - - return false; - } - - /** - * @param CacheEntry|null $cacheEntry - * - * @return null|ResponseInterface - */ - protected static function getStaleResponse(CacheEntry $cacheEntry = null) - { - // Return staled cache entry if we can - if ($cacheEntry instanceof CacheEntry && $cacheEntry->serveStaleIfError()) { - return $cacheEntry->getResponse() - ->withHeader(self::HEADER_CACHE_INFO, self::HEADER_CACHE_STALE); - } - - return; - } - - /** - * @param RequestInterface $request - * @param CacheEntry $cacheEntry - * - * @return RequestInterface - */ - protected static function getRequestWithReValidationHeader(RequestInterface $request, CacheEntry $cacheEntry) - { - if ($cacheEntry->getResponse()->hasHeader('Last-Modified')) { - $request = $request->withHeader( - 'If-Modified-Since', - $cacheEntry->getResponse()->getHeader('Last-Modified') - ); - } - if ($cacheEntry->getResponse()->hasHeader('Etag')) { - $request = $request->withHeader( - 'If-None-Match', - $cacheEntry->getResponse()->getHeader('Etag') - ); - } - - return $request; - } - - /** - * @param CacheStrategyInterface|null $cacheStorage - * - * @return CacheMiddleware the Middleware for Guzzle HandlerStack - * - * @deprecated Use constructor => `new CacheMiddleware()` - */ - public static function getMiddleware(CacheStrategyInterface $cacheStorage = null) - { - return new self($cacheStorage); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/KeyValueHttpHeader.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/KeyValueHttpHeader.php deleted file mode 100644 index 36be20b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/KeyValueHttpHeader.php +++ /dev/null @@ -1,128 +0,0 @@ -@\,;\:\\\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\\\]|\\\\.)*)\")))?/'; - - /** - * @var string[] - */ - protected $values = []; - - /** - * @param array $values - */ - public function __construct(array $values) - { - foreach ($values as $value) { - $matches = []; - if (preg_match_all(self::REGEX_SPLIT, $value, $matches, PREG_SET_ORDER)) { - foreach ($matches as $match) { - $val = ''; - if (count($match) == 3) { - $val = $match[2]; - } elseif (count($match) > 3) { - $val = $match[3]; - } - - $this->values[$match[1]] = $val; - } - } - } - } - - /** - * @param string $key - * - * @return bool - */ - public function has($key) - { - // For performance, we can use isset, - // but it will not match if value == 0 - return isset($this->values[$key]) || array_key_exists($key, $this->values); - } - - /** - * @param string $key - * @param string $default the value to return if don't exist - * @return string - */ - public function get($key, $default = '') - { - if ($this->has($key)) { - return $this->values[$key]; - } - - return $default; - } - - /** - * @return bool - */ - public function isEmpty() - { - return count($this->values) === 0; - } - - /** - * Return the current element - * @link http://php.net/manual/en/iterator.current.php - * @return mixed Can return any type. - * @since 5.0.0 - */ - public function current() - { - return current($this->values); - } - - /** - * Move forward to next element - * @link http://php.net/manual/en/iterator.next.php - * @return void Any returned value is ignored. - * @since 5.0.0 - */ - public function next() - { - next($this->values); - } - - /** - * Return the key of the current element - * @link http://php.net/manual/en/iterator.key.php - * @return mixed scalar on success, or null on failure. - * @since 5.0.0 - */ - public function key() - { - return key($this->values); - } - - /** - * Checks if current position is valid - * @link http://php.net/manual/en/iterator.valid.php - * @return boolean The return value will be casted to boolean and then evaluated. - * Returns true on success or false on failure. - * @since 5.0.0 - */ - public function valid() - { - return key($this->values) !== null; - } - - /** - * Rewind the Iterator to the first element - * @link http://php.net/manual/en/iterator.rewind.php - * @return void Any returned value is ignored. - * @since 5.0.0 - */ - public function rewind() - { - reset($this->values); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/CacheStorageInterface.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/CacheStorageInterface.php deleted file mode 100644 index 0ec9e1a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/CacheStorageInterface.php +++ /dev/null @@ -1,30 +0,0 @@ -cache = $cache; - } - - /** - * {@inheritdoc} - */ - public function fetch($key) - { - try { - $cache = unserialize(gzuncompress($this->cache->fetch($key))); - if ($cache instanceof CacheEntry) { - return $cache; - } - } catch (\Exception $ignored) { - return; - } - - return; - } - - /** - * {@inheritdoc} - */ - public function save($key, CacheEntry $data) - { - try { - $lifeTime = $data->getTTL(); - if ($lifeTime >= 0) { - return $this->cache->save( - $key, - gzcompress(serialize($data)), - $lifeTime - ); - } - } catch (\Exception $ignored) { - // No fail if we can't save it the storage - } - - return false; - } - - /** - * {@inheritdoc} - */ - public function delete($key) - { - try { - return $this->cache->delete($key); - } catch (\Exception $ignored) { - // Don't fail if we can't delete it - } - - return false; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/DoctrineCacheStorage.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/DoctrineCacheStorage.php deleted file mode 100644 index 9f5f160..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/DoctrineCacheStorage.php +++ /dev/null @@ -1,74 +0,0 @@ -cache = $cache; - } - - /** - * {@inheritdoc} - */ - public function fetch($key) - { - try { - $cache = unserialize($this->cache->fetch($key)); - if ($cache instanceof CacheEntry) { - return $cache; - } - } catch (\Exception $ignored) { - return; - } - - return; - } - - /** - * {@inheritdoc} - */ - public function save($key, CacheEntry $data) - { - try { - $lifeTime = $data->getTTL(); - if ($lifeTime >= 0) { - return $this->cache->save( - $key, - serialize($data), - $lifeTime - ); - } - } catch (\Exception $ignored) { - // No fail if we can't save it the storage - } - - return false; - } - - /** - * {@inheritdoc} - */ - public function delete($key) - { - try { - return $this->cache->delete($key); - } catch (\Exception $ignored) { - // Don't fail if we can't delete it - } - - return false; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/FlysystemStorage.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/FlysystemStorage.php deleted file mode 100644 index a50e5f8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/FlysystemStorage.php +++ /dev/null @@ -1,56 +0,0 @@ -filesystem = new Filesystem($adapter); - } - - /** - * @inheritdoc - */ - public function fetch($key) - { - if ($this->filesystem->has($key)) { - // The file exist, read it! - $data = @unserialize( - $this->filesystem->read($key) - ); - - if ($data instanceof CacheEntry) { - return $data; - } - } - - return; - } - - /** - * @inheritdoc - */ - public function save($key, CacheEntry $data) - { - return $this->filesystem->put($key, serialize($data)); - } - - /** - * {@inheritdoc} - */ - public function delete($key) - { - return $this->filesystem->delete($key); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/LaravelCacheStorage.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/LaravelCacheStorage.php deleted file mode 100644 index 1e9d006..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/LaravelCacheStorage.php +++ /dev/null @@ -1,74 +0,0 @@ -cache = $cache; - } - - /** - * {@inheritdoc} - */ - public function fetch($key) - { - try { - $cache = unserialize($this->cache->get($key)); - if ($cache instanceof CacheEntry) { - return $cache; - } - } catch (\Exception $ignored) { - return; - } - - return; - } - - /** - * {@inheritdoc} - */ - public function save($key, CacheEntry $data) - { - try { - // getTTL returns seconds, Laravel needs minutes - $lifeTime = $data->getTTL() / 60; - if ($lifeTime === 0) { - return $this->cache->forever( - $key, - serialize($data) - ); - } else if ($lifeTime > 0) { - return $this->cache->add( - $key, - serialize($data), - $lifeTime - ); - } - } catch (\Exception $ignored) { - // No fail if we can't save it the storage - } - - return false; - } - - /** - * {@inheritdoc} - */ - public function delete($key) - { - return $this->cache->forget($key); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/Psr16CacheStorage.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/Psr16CacheStorage.php deleted file mode 100644 index fe97a25..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/Psr16CacheStorage.php +++ /dev/null @@ -1,52 +0,0 @@ -cache = $cache; - } - - /** - * {@inheritdoc} - */ - public function fetch($key) - { - $data = $this->cache->get($key); - if ($data instanceof CacheEntry) { - return $data; - } - - return null; - } - - /** - * {@inheritdoc} - */ - public function save($key, CacheEntry $data) - { - $ttl = $data->getTTL(); - if ($ttl === 0) { - return $this->cache->set($key, $data); - } - return $this->cache->set($key, $data, $data->getTTL()); - } - - /** - * {@inheritdoc} - */ - public function delete($key) - { - return $this->cache->delete($key); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/Psr6CacheStorage.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/Psr6CacheStorage.php deleted file mode 100644 index b1344ef..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/Psr6CacheStorage.php +++ /dev/null @@ -1,92 +0,0 @@ -cachePool = $cachePool; - } - - /** - * {@inheritdoc} - */ - public function fetch($key) - { - $item = $this->cachePool->getItem($key); - $this->lastItem = $item; - - $cache = $item->get(); - - if ($cache instanceof CacheEntry) { - return $cache; - } - - return null; - } - - /** - * {@inheritdoc} - */ - public function save($key, CacheEntry $data) - { - if ($this->lastItem && $this->lastItem->getKey() == $key) { - $item = $this->lastItem; - } else { - $item = $this->cachePool->getItem($key); - } - - $this->lastItem = null; - - $item->set($data); - - $ttl = $data->getTTL(); - if ($ttl === 0) { - // No expiration - $item->expiresAfter(null); - } else { - $item->expiresAfter($ttl); - } - - return $this->cachePool->save($item); - } - - /** - * @param string $key - * - * @return bool - */ - public function delete($key) - { - if (null !== $this->lastItem && $this->lastItem->getKey() === $key) { - $this->lastItem = null; - } - - return $this->cachePool->deleteItem($key); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/VolatileRuntimeStorage.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/VolatileRuntimeStorage.php deleted file mode 100644 index ec77d30..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/VolatileRuntimeStorage.php +++ /dev/null @@ -1,60 +0,0 @@ -cache[$key])) { - return $this->cache[$key]; - } - - return; - } - - /** - * @param string $key - * @param CacheEntry $data - * - * @return bool - */ - public function save($key, CacheEntry $data) - { - $this->cache[$key] = $data; - - return true; - } - - /** - * @param string $key - * - * @return bool - */ - public function delete($key) - { - if (true === array_key_exists($key, $this->cache)) { - unset($this->cache[$key]); - - return true; - } - - return false; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/WordPressObjectCacheStorage.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/WordPressObjectCacheStorage.php deleted file mode 100644 index c81e739..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Storage/WordPressObjectCacheStorage.php +++ /dev/null @@ -1,73 +0,0 @@ -group = $group; - } - - /** - * @param string $key - * - * @return CacheEntry|null the data or false - */ - public function fetch($key) - { - try { - $cache = unserialize(wp_cache_get($key, $this->group)); - if ($cache instanceof CacheEntry) { - return $cache; - } - } catch (\Exception $ignored) { - // Don't fail if we can't load it - } - - return null; - } - - /** - * @param string $key - * @param CacheEntry $data - * - * @return bool - */ - public function save($key, CacheEntry $data) - { - try { - return wp_cache_set($key, serialize($data), $this->group, $data->getTTL()); - } catch (\Exception $ignored) { - // Don't fail if we can't save it - } - - return false; - } - - /** - * @param string $key - * - * @return bool - */ - public function delete($key) - { - try { - return wp_cache_delete($key, $this->group); - } catch (\Exception $ignored) { - // Don't fail if we can't delete it - } - - return false; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/CacheStrategyInterface.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/CacheStrategyInterface.php deleted file mode 100644 index a88df2d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/CacheStrategyInterface.php +++ /dev/null @@ -1,42 +0,0 @@ -defaultCacheStrategy = $defaultCacheStrategy ?: new NullCacheStrategy(); - } - - /** - * @param CacheStrategyInterface $defaultCacheStrategy - */ - public function setDefaultCacheStrategy(CacheStrategyInterface $defaultCacheStrategy) - { - $this->defaultCacheStrategy = $defaultCacheStrategy; - } - - /** - * @param RequestMatcherInterface $requestMatcher - * @param CacheStrategyInterface $cacheStrategy - */ - final public function registerRequestMatcher(RequestMatcherInterface $requestMatcher, CacheStrategyInterface $cacheStrategy) - { - $this->requestMatchers[] = [ - $requestMatcher, - $cacheStrategy, - ]; - } - - /** - * @param RequestInterface $request - * @return CacheStrategyInterface - */ - private function getStrategyFor(RequestInterface $request) - { - /** - * @var RequestMatcherInterface $requestMatcher - * @var CacheStrategyInterface $cacheStrategy - */ - foreach ($this->requestMatchers as $requestMatcher) { - list($requestMatcher, $cacheStrategy) = $requestMatcher; - if ($requestMatcher->matches($request)) { - return $cacheStrategy; - } - } - - return $this->defaultCacheStrategy; - } - - /** - * @inheritDoc - */ - public function fetch(RequestInterface $request) - { - return $this->getStrategyFor($request)->fetch($request); - } - - /** - * @inheritDoc - */ - public function cache(RequestInterface $request, ResponseInterface $response) - { - return $this->getStrategyFor($request)->cache($request, $response); - } - - /** - * @inheritDoc - */ - public function update(RequestInterface $request, ResponseInterface $response) - { - return $this->getStrategyFor($request)->update($request, $response); - } - - /** - * {@inheritdoc} - */ - public function delete(RequestInterface $request) - { - return $this->getStrategyFor($request)->delete($request); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/Delegate/RequestMatcherInterface.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/Delegate/RequestMatcherInterface.php deleted file mode 100644 index 5890bc2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/Delegate/RequestMatcherInterface.php +++ /dev/null @@ -1,15 +0,0 @@ -defaultTtl = $defaultTtl; - $this->varyHeaders = $varyHeaders; - parent::__construct($cache); - } - - protected function getCacheKey(RequestInterface $request, KeyValueHttpHeader $varyHeaders = null) - { - if (null === $varyHeaders || $varyHeaders->isEmpty()) { - return hash( - 'sha256', - 'greedy'.$request->getMethod().$request->getUri() - ); - } - - $cacheHeaders = []; - foreach ($varyHeaders as $key => $value) { - if ($request->hasHeader($key)) { - $cacheHeaders[$key] = $request->getHeader($key); - } - } - - return hash( - 'sha256', - 'greedy'.$request->getMethod().$request->getUri().json_encode($cacheHeaders) - ); - } - - public function cache(RequestInterface $request, ResponseInterface $response) - { - $warningMessage = sprintf('%d - "%s" "%s"', - 299, - 'Cached although the response headers indicate not to do it!', - (new \DateTime())->format(\DateTime::RFC1123) - ); - - $response = $response->withAddedHeader('Warning', $warningMessage); - - if ($cacheObject = $this->getCacheObject($request, $response)) { - return $this->storage->save( - $this->getCacheKey($request, $this->varyHeaders), - $cacheObject - ); - } - - return false; - } - - protected function getCacheObject(RequestInterface $request, ResponseInterface $response) - { - if (!array_key_exists($response->getStatusCode(), $this->statusAccepted)) { - // Don't cache it - return null; - } - - if (null !== $this->varyHeaders && $this->varyHeaders->has('*')) { - // This will never match with a request - return; - } - - $response = $response->withoutHeader('Etag')->withoutHeader('Last-Modified'); - - $ttl = $this->defaultTtl; - if ($request->hasHeader(self::HEADER_TTL)) { - $ttlHeaderValues = $request->getHeader(self::HEADER_TTL); - $ttl = (int)reset($ttlHeaderValues); - } - - return new CacheEntry($request->withoutHeader(self::HEADER_TTL), $response, new \DateTime(sprintf('+%d seconds', $ttl))); - } - - public function fetch(RequestInterface $request) - { - $cache = $this->storage->fetch($this->getCacheKey($request, $this->varyHeaders)); - return $cache; - } - - /** - * {@inheritdoc} - */ - public function delete(RequestInterface $request) - { - return $this->storage->delete($this->getCacheKey($request)); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/NullCacheStrategy.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/NullCacheStrategy.php deleted file mode 100644 index 22e3929..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/NullCacheStrategy.php +++ /dev/null @@ -1,43 +0,0 @@ - 200, - 203 => 203, - 204 => 204, - 300 => 300, - 301 => 301, - 404 => 404, - 405 => 405, - 410 => 410, - 414 => 414, - 418 => 418, - 501 => 501, - ]; - - /** - * @var string[] - */ - protected $ageKey = [ - 'max-age', - ]; - - public function __construct(CacheStorageInterface $cache = null) - { - $this->storage = $cache !== null ? $cache : new VolatileRuntimeStorage(); - } - - /** - * @param RequestInterface $request - * @param ResponseInterface $response - * @return CacheEntry|null entry to save, null if can't cache it - */ - protected function getCacheObject(RequestInterface $request, ResponseInterface $response) - { - if (!isset($this->statusAccepted[$response->getStatusCode()])) { - // Don't cache it - return; - } - - $cacheControl = new KeyValueHttpHeader($response->getHeader('Cache-Control')); - $varyHeader = new KeyValueHttpHeader($response->getHeader('Vary')); - - if ($varyHeader->has('*')) { - // This will never match with a request - return; - } - - if ($cacheControl->has('no-store')) { - // No store allowed (maybe some sensitives data...) - return; - } - - if ($cacheControl->has('no-cache')) { - // Stale response see RFC7234 section 5.2.1.4 - $entry = new CacheEntry($request, $response, new \DateTime('-1 seconds')); - - return $entry->hasValidationInformation() ? $entry : null; - } - - foreach ($this->ageKey as $key) { - if ($cacheControl->has($key)) { - return new CacheEntry( - $request, - $response, - new \DateTime('+'.(int) $cacheControl->get($key).'seconds') - ); - } - } - - if ($response->hasHeader('Expires')) { - $expireAt = \DateTime::createFromFormat(\DateTime::RFC1123, $response->getHeaderLine('Expires')); - if ($expireAt !== false) { - return new CacheEntry( - $request, - $response, - $expireAt - ); - } - } - - return new CacheEntry($request, $response, new \DateTime('-1 seconds')); - } - - /** - * Generate a key for the response cache. - * - * @param RequestInterface $request - * @param null|KeyValueHttpHeader $varyHeaders The vary headers which should be honoured by the cache (optional) - * - * @return string - */ - protected function getCacheKey(RequestInterface $request, KeyValueHttpHeader $varyHeaders = null) - { - if (!$varyHeaders) { - return hash('sha256', $request->getMethod().$request->getUri()); - } - - $cacheHeaders = []; - - foreach ($varyHeaders as $key => $value) { - if ($request->hasHeader($key)) { - $cacheHeaders[$key] = $request->getHeader($key); - } - } - - return hash('sha256', $request->getMethod().$request->getUri().json_encode($cacheHeaders)); - } - - /** - * Return a CacheEntry or null if no cache. - * - * @param RequestInterface $request - * - * @return CacheEntry|null - */ - public function fetch(RequestInterface $request) - { - /** @var int|null $maxAge */ - $maxAge = null; - - if ($request->hasHeader('Cache-Control')) { - $reqCacheControl = new KeyValueHttpHeader($request->getHeader('Cache-Control')); - if ($reqCacheControl->has('no-cache')) { - // Can't return cache - return null; - } - - $maxAge = $reqCacheControl->get('max-age', null); - } elseif ($request->hasHeader('Pragma')) { - $pragma = new KeyValueHttpHeader($request->getHeader('Pragma')); - if ($pragma->has('no-cache')) { - // Can't return cache - return null; - } - } - - $cache = $this->storage->fetch($this->getCacheKey($request)); - if ($cache !== null) { - $varyHeaders = $cache->getVaryHeaders(); - - // vary headers exist from a previous response, check if we have a cache that matches those headers - if (!$varyHeaders->isEmpty()) { - $cache = $this->storage->fetch($this->getCacheKey($request, $varyHeaders)); - - if (!$cache) { - return null; - } - } - - if ((string)$cache->getOriginalRequest()->getUri() !== (string)$request->getUri()) { - return null; - } - - if ($maxAge !== null) { - if ($cache->getAge() > $maxAge) { - // Cache entry is too old for the request requirements! - return null; - } - } - - if (!$cache->isVaryEquals($request)) { - return null; - } - } - - return $cache; - } - - /** - * @param RequestInterface $request - * @param ResponseInterface $response - * - * @return bool true if success - */ - public function cache(RequestInterface $request, ResponseInterface $response) - { - $reqCacheControl = new KeyValueHttpHeader($request->getHeader('Cache-Control')); - if ($reqCacheControl->has('no-store')) { - // No caching allowed - return false; - } - - $cacheObject = $this->getCacheObject($request, $response); - if ($cacheObject !== null) { - // store the cache against the URI-only key - $success = $this->storage->save( - $this->getCacheKey($request), - $cacheObject - ); - - $varyHeaders = $cacheObject->getVaryHeaders(); - - if (!$varyHeaders->isEmpty()) { - // also store the cache against the vary headers based key - $success = $this->storage->save( - $this->getCacheKey($request, $varyHeaders), - $cacheObject - ); - } - - return $success; - } - - return false; - } - - /** - * @param RequestInterface $request - * @param ResponseInterface $response - * - * @return bool true if success - */ - public function update(RequestInterface $request, ResponseInterface $response) - { - return $this->cache($request, $response); - } - - /** - * {@inheritdoc} - */ - public function delete(RequestInterface $request) - { - return $this->storage->delete($this->getCacheKey($request)); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/PublicCacheStrategy.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/PublicCacheStrategy.php deleted file mode 100644 index 873ac2c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/src/Strategy/PublicCacheStrategy.php +++ /dev/null @@ -1,42 +0,0 @@ -ageKey, 's-maxage'); - } - - /** - * {@inheritdoc} - */ - protected function getCacheObject(RequestInterface $request, ResponseInterface $response) - { - $cacheControl = new KeyValueHttpHeader($response->getHeader('Cache-Control')); - if ($cacheControl->has('private')) { - return; - } - - return parent::getCacheObject($request, $response); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/BaseTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/BaseTest.php deleted file mode 100644 index f1516f7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/BaseTest.php +++ /dev/null @@ -1,89 +0,0 @@ -getUri()->getPath() === '/no-seek') { - return new FulfilledPromise( - (new Response()) - ->withBody(new NoSeekStream(\GuzzleHttp\Psr7\stream_for('I am not seekable!'))) - ->withHeader('Expires', gmdate('D, d M Y H:i:s T', time() + 120)) - ); - } - - return new FulfilledPromise( - (new Response()) - ->withBody(\GuzzleHttp\Psr7\stream_for('Hello world!')) - ->withHeader('Expires', gmdate('D, d M Y H:i:s T', time() + 120)) - ); - }); - - // Add this middleware to the top with `push` - $stack->push(new CacheMiddleware(), 'cache'); - - // Initialize the client with the handler option - $this->client = new Client(['handler' => $stack]); - } - - public function testNoBreakClient() - { - $response = $this->client->get('anything'); - - $this->assertEquals(200, $response->getStatusCode()); - $this->assertEquals('Hello world!', $response->getBody()); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - $response = $this->client->get('anything'); - $this->assertEquals(200, $response->getStatusCode()); - $this->assertEquals('Hello world!', $response->getBody()); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testNoCacheOtherMethod() - { - $this->client->post('anything'); - $response = $this->client->post('anything'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - $this->client->put('anything'); - $response = $this->client->put('anything'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - $this->client->delete('anything'); - $response = $this->client->delete('anything'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - $this->client->patch('anything'); - $response = $this->client->patch('anything'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testMultipleHit() - { - $response = $this->client->get('/no-seek'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - $this->assertEquals('I am not seekable!', $response->getBody()->getContents()); - - $response = $this->client->get('/no-seek'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - $this->assertEquals('I am not seekable!', $response->getBody()->getContents()); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/DelegatingCacheTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/DelegatingCacheTest.php deleted file mode 100644 index 5112ebb..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/DelegatingCacheTest.php +++ /dev/null @@ -1,67 +0,0 @@ -stack = HandlerStack::create(function (RequestInterface $request, array $options) { - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'max-age=2') - ); - }); - } - - public function testDelegate() - { - $defaultStrategy = new PublicCacheStrategy(); - $strategy = new DelegatingCacheStrategy($defaultStrategy); - $strategy->registerRequestMatcher(new ClosureRequestMatcher(function (RequestInterface $request) { - return 'i-hate-being-cached.com' === $request->getUri()->getHost(); - }), new NullCacheStrategy()); - - $this->stack->push(new CacheMiddleware($strategy), 'cache'); - $client = new Client([ - 'handler' => $this->stack, - ]); - - $request = new Request('GET', 'http://i-love-being-cached.com/home'); - $client->send($request); - $response = $client->send($request); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - $request = new Request('GET', 'http://i-hate-being-cached.com/home'); - $client->send($request); - $response = $client->send($request); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/GreedyCacheTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/GreedyCacheTest.php deleted file mode 100644 index d3f05d9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/GreedyCacheTest.php +++ /dev/null @@ -1,167 +0,0 @@ -getUri()->getPath()) { - case '/vary': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Vary', '*') - ); - case '/no-store': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'no-store') - ); - case '/no-cache': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'no-cache') - ); - case '/pragma': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Pragma', 'no-cache') - ); - case '/partial-content': - return new FulfilledPromise( - (new Response()) - ->withStatus(206) - ); - case '/with-etag': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Etag', 'the-etag') - ); - } - - throw new \InvalidArgumentException(); - }); - - $stack->push(new CacheMiddleware( - new GreedyCacheStrategy(null, 10)) - ); - - $this->client = new Client(['handler' => $stack]); - } - - /** - * @param Request $request - * - * @dataProvider cachableRequestProvider - */ - public function testItIsGreedy(Request $request) - { - $this->client->send($request); // Will be cached - $response = $this->client->send($request); // Will come from cache - - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - $this->assertTrue($response->hasHeader('Warning')); - } - - /** - * @param Request $request - * - * @dataProvider nonCachableRequestProvider - */ - public function testItIsNotStupid(Request $request) - { - $this->client->send($request); // Will not be cached - $response = $this->client->send($request); // Will not come from cache - - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - /** - * @param Request $requestA - * @param Request $requestB - * @param Request $requestC - * @param Request $requestD - * - * @dataProvider varyingCachableRequestProvider - */ - public function testItCanHandleArbitraryVaryingHeaders(Request $requestA, Request $requestB, Request $requestC, Request $requestD) - { - $stack = HandlerStack::create(new MockHandler([ - new Response(), - new Response(), - new Response(), - new Response(), - ])); - - $stack->push(new CacheMiddleware( - new GreedyCacheStrategy( - null, - 10, - new KeyValueHttpHeader(['Authorization']) - )) - ); - - $this->client = new Client([ - 'handler' => $stack - ]); - - $responseA = $this->client->send($requestA); - $responseB = $this->client->send($requestB); - $responseC = $this->client->send($requestC); - $responseD = $this->client->send($requestD); - - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $responseA->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $responseB->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $responseC->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $responseD->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - } - - public function cachableRequestProvider() - { - return [ - [new Request('GET', '/vary')], - [new Request('GET', '/no-store')], - [new Request('GET', '/no-cache')], - [new Request('GET', '/pragma')], - [new Request('GET', '/with-etag')], - ]; - } - - public function nonCachableRequestProvider() - { - return [ - [new Request('POST', '/vary')], - [new Request('GET', '/partial-content')], - ]; - } - - public function varyingCachableRequestProvider() - { - return [ - [ - 'A' => new Request('GET', '/something', ['Authorization' => 'Bearer foo']), // Should not be cached - 'B' => new Request('GET', '/something', ['Authorization' => 'Bearer bar']), // Same URI but different authorization - should not be cached - 'C' => new Request('GET', '/something', ['Authorization' => 'Bearer foo']), // Same authorization token as request A - should be cached - 'D' => new Request('GET', '/some_other_thing', ['Authorization' => 'Bearer foo']), // Same authorization token as request A and C, but different URI - should not be cached - ] - ]; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/HeaderExpireTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/HeaderExpireTest.php deleted file mode 100644 index f695571..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/HeaderExpireTest.php +++ /dev/null @@ -1,99 +0,0 @@ -getUri()->getPath()) { - case '/expired': - return new FulfilledPromise( - (new Response()) - ->withHeader('Expires', gmdate('D, d M Y H:i:s T', time() - 10)) - ); - case '/2s': - return new FulfilledPromise( - (new Response()) - ->withHeader('Expires', gmdate('D, d M Y H:i:s T', time() + 2)) - ); - case '/stale-if-error': - if ($this->sendError) { - return new FulfilledPromise( - new Response(500) - ); - } - - return new FulfilledPromise( - (new Response()) - ->withHeader('Cache-Control', 'stale-if-error=120') - ); - } - - throw new \InvalidArgumentException(); - }); - - // Add this middleware to the top with `push` - $stack->push(new CacheMiddleware(), 'cache'); - - // Initialize the client with the handler option - $this->client = new Client(['handler' => $stack]); - } - - public function testAlreadyExpiredHeader() - { - $this->client->get('http://test.com/expired'); - $response = $this->client->get('http://test.com/expired'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testExpiredHeader() - { - $this->client->get('http://test.com/2s'); - - $response = $this->client->get('http://test.com/2s'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - sleep(3); - - $response = $this->client->get('http://test.com/2s'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testStaleIfErrorHeader() - { - $this->client->get('http://test.com/stale-if-error'); - - sleep(1); - - $this->sendError = true; - $response = $this->client->get('http://test.com/stale-if-error'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_STALE, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - $this->sendError = false; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/KeyValueHttpHeaderTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/KeyValueHttpHeaderTest.php deleted file mode 100644 index d31a814..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/KeyValueHttpHeaderTest.php +++ /dev/null @@ -1,49 +0,0 @@ - [ - 'max-age=120', - ' stale-while-revalidate=60 ', - ' private ', - 'zero=0', - 'nothing=', - 'false=false', - 'with-comma=1,yeah="2"', - ], - ]); - - $values = new KeyValueHttpHeader($response->getHeader('Cache-Control')); - - $this->assertTrue($values->has('max-age')); - $this->assertTrue($values->has('stale-while-revalidate')); - $this->assertTrue($values->has('private')); - $this->assertTrue($values->has('zero')); - $this->assertTrue($values->has('nothing')); - $this->assertTrue($values->has('false')); - $this->assertTrue($values->has('with-comma')); - $this->assertTrue($values->has('yeah')); - - $this->assertEquals(120, $values->get('max-age')); - $this->assertEquals(60, $values->get('stale-while-revalidate')); - $this->assertEquals(0, $values->get('zero')); - $this->assertEquals('', $values->get('nothing')); - $this->assertEquals('false', $values->get('false')); - $this->assertEquals(1, $values->get('with-comma')); - $this->assertEquals(2, $values->get('yeah')); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/NullCacheTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/NullCacheTest.php deleted file mode 100644 index 7ef4d42..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/NullCacheTest.php +++ /dev/null @@ -1,37 +0,0 @@ -push(new CacheMiddleware(new NullCacheStrategy())); - - $request = new Request('GET', '/foo'); - - $client = new Client([ - 'handler' => $stack - ]); - $client->send($request); // Will not be cached - $response = $client->send($request); // Will not come from cache - - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/PrivateCacheTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/PrivateCacheTest.php deleted file mode 100644 index c66092f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/PrivateCacheTest.php +++ /dev/null @@ -1,112 +0,0 @@ - 'max-age=60', - ], - 'Test content' - ); - $response2 = new Response( - 200, [ - 'Cache-Control' => 'max-age=90', - ], - 'Test new content' - ); - - /** @var CacheProvider $cacheProvider */ - foreach ($cacheProviders as $cacheProvider) { - $this->rrmdir($TMP_DIR); - - $cache = new PrivateCacheStrategy( - $cacheProvider - ); - $cache->cache($request, $response); - $entry = $cache->fetch($request); - - $this->assertNotNull($entry, get_class($cacheProvider)); - $this->assertEquals( - (string) $response->getBody(), - (string) $entry->getResponse()->getBody(), - get_class($cacheProvider) - ); - - $cache->update($request, $response2); - $entry = $cache->fetch($request); - - $this->assertNotNull($entry, get_class($cacheProvider)); - $this->assertEquals( - (string) $response2->getBody(), - (string) $entry->getResponse()->getBody(), - get_class($cacheProvider) - ); - - $cache->delete($request); - $entry = $cache->fetch($request); - $this->assertNull($entry, get_class($cacheProvider)); - } - - $this->rrmdir($TMP_DIR); - } - - /** - * @param $dir - * - * http://stackoverflow.com/a/9760541/244702 - */ - protected function rrmdir($dir) - { - if (is_dir($dir)) { - $objects = scandir($dir); - foreach ($objects as $object) { - if ($object != '.' && $object != '..') { - if (filetype($dir.'/'.$object) == 'dir') { - $this->rrmdir($dir.'/'.$object); - } else { - unlink($dir.'/'.$object); - } - } - } - reset($objects); - rmdir($dir); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/PublicCacheTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/PublicCacheTest.php deleted file mode 100644 index 55ca648..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/PublicCacheTest.php +++ /dev/null @@ -1,180 +0,0 @@ -getUri()->getPath()) { - case '/private': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'private,max-age=2') - ); - case '/max-age': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'max-age=2') - ); - case '/s-maxage': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 's-maxage=2,max-age=0') - ); - } - - throw new \InvalidArgumentException(); - }); - - // Add this middleware to the top with `push` - $stack->push(new CacheMiddleware( - new PublicCacheStrategy() - ), 'cache'); - - // Initialize the client with the handler option - $this->client = new Client(['handler' => $stack]); - } - - public function testNoCachePrivate() - { - $this->client->get('http://test.com/private'); - - $response = $this->client->get('http://test.com/private'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testCacheMaxAge() - { - $this->client->get('http://test.com/max-age'); - - $response = $this->client->get('http://test.com/max-age'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testCacheSMaxAge() - { - $this->client->get('http://test.com/s-maxage'); - - $response = $this->client->get('http://test.com/s-maxage'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testCacheProvider() - { - $TMP_DIR = __DIR__.'/tmp/'; - - $cacheProviders = [ - new DoctrineCacheStorage(new ArrayCache()), - new DoctrineCacheStorage(new ChainCache([new ArrayCache()])), - new DoctrineCacheStorage(new FilesystemCache($TMP_DIR)), - new DoctrineCacheStorage(new PhpFileCache($TMP_DIR)), - new FlysystemStorage(new Local($TMP_DIR)), - new Psr6CacheStorage(new ArrayCachePool()), - new Psr16CacheStorage(new SimpleCacheBridge(new ArrayCachePool())), - new CompressedDoctrineCacheStorage(new ArrayCache()), - new VolatileRuntimeStorage(), - ]; - - $request = new Request('GET', 'test.local'); - $response = new Response( - 200, [ - 'Cache-Control' => 's-maxage=60', - ], - 'Test content' - ); - $response2 = new Response( - 200, [ - 'Cache-Control' => 'max-age=90', - ], - 'Test new content' - ); - - /** @var CacheProvider $cacheProvider */ - foreach ($cacheProviders as $cacheProvider) { - $this->rrmdir($TMP_DIR); - - $cache = new PublicCacheStrategy( - $cacheProvider - ); - $cache->cache($request, $response); - $entry = $cache->fetch($request); - - $this->assertNotNull($entry, get_class($cacheProvider)); - $this->assertEquals( - (string) $response->getBody(), - (string) $entry->getResponse()->getBody(), - get_class($cacheProvider) - ); - - $cache->update($request, $response2); - $entry = $cache->fetch($request); - - $this->assertNotNull($entry, get_class($cacheProvider)); - $this->assertEquals( - (string) $response2->getBody(), - (string) $entry->getResponse()->getBody(), - get_class($cacheProvider) - ); - - $cache->delete($request); - $entry = $cache->fetch($request); - $this->assertNull($entry, get_class($cacheProvider)); - } - - $this->rrmdir($TMP_DIR); - } - - /** - * @param $dir - * - * http://stackoverflow.com/a/9760541/244702 - */ - protected function rrmdir($dir) - { - if (is_dir($dir)) { - $objects = scandir($dir); - foreach ($objects as $object) { - if ($object != '.' && $object != '..') { - if (filetype($dir.'/'.$object) == 'dir') { - $this->rrmdir($dir.'/'.$object); - } else { - unlink($dir.'/'.$object); - } - } - } - reset($objects); - rmdir($dir); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/RequestCacheControlTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/RequestCacheControlTest.php deleted file mode 100644 index f381c03..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/RequestCacheControlTest.php +++ /dev/null @@ -1,220 +0,0 @@ -getUri()->getPath()) { - case '/1s': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'max-age=1') - ); - case '/2s': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'max-age=2') - ); - case '/3s': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'max-age=3') - ); - case '/only-if-cached': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'max-age=3') - ); - } - - throw new \InvalidArgumentException(); - }); - - // Add this middleware to the top with `push` - $stack->push(new CacheMiddleware(), 'cache'); - - // Initialize the client with the handler option - $this->client = new Client(['handler' => $stack]); - } - - public function testNoStoreHeader() - { - $this->client->get('http://test.com/2s', [ - 'headers' => [ - 'Cache-Control' => 'no-store', - ] - ]); - - $response = $this->client->get('http://test.com/2s'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testNoCacheHeader() - { - $this->client->get('http://test.com/2s'); - - $response = $this->client->get('http://test.com/2s'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - $response = $this->client->get('http://test.com/2s', [ - 'headers' => [ - 'Cache-Control' => 'no-cache', - ] - ]); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testMaxAgeHeader() - { - $this->client->get('http://test.com/3s'); - - $response = $this->client->get('http://test.com/3s'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - sleep(2); - - $response = $this->client->get('http://test.com/3s', [ - 'headers' => [ - 'Cache-Control' => 'max-age=1', - ] - ]); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testOnlyIfCachedHeader() - { - $this->client->get('http://test.com/3s'); - $response = $this->client->get('http://test.com/3s', [ - 'headers' => [ - 'Cache-Control' => 'only-if-cached', - ] - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - - $this->setExpectedException('GuzzleHttp\Exception\ServerException', '504'); - $this->client->get('http://test.com/only-if-cached', [ - 'headers' => [ - 'Cache-Control' => 'only-if-cached', - ] - ]); - } - - public function testMaxStaleHeader() - { - $this->client->get('http://test.com/1s'); - - $response = $this->client->get('http://test.com/1s'); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - - sleep(1); - - $response = $this->client->get('http://test.com/1s', [ - 'headers' => [ - 'Cache-Control' => 'max-stale', - ] - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - - $response = $this->client->get('http://test.com/1s', [ - 'headers' => [ - 'Cache-Control' => 'max-stale=2', - ] - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - - sleep(2); - - $response = $this->client->get('http://test.com/1s', [ - 'headers' => [ - 'Cache-Control' => 'max-stale=1', - ] - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_MISS, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - } - - public function testMinFreshHeader() - { - $this->client->get('http://test.com/3s'); - - $response = $this->client->get('http://test.com/3s'); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - - $response = $this->client->get('http://test.com/3s', [ - 'headers' => [ - 'Cache-Control' => 'min-fresh=1', - ] - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - - $response = $this->client->get('http://test.com/3s', [ - 'headers' => [ - 'Cache-Control' => 'min-fresh=10', - ] - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_MISS, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - } - - public function testPragmaNoCacheHeader() - { - $this->client->get('http://test.com/2s'); - - $response = $this->client->get('http://test.com/2s'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - // Pragma is not important if a Cache-Control is present - $response = $this->client->get('http://test.com/2s', [ - 'headers' => [ - 'Cache-Control' => '', - 'Pragma' => 'no-cache', - ] - ]); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - $response = $this->client->get('http://test.com/2s', [ - 'headers' => [ - 'Pragma' => 'no-cache', - ] - ]); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/RequestMatcher/ClosureRequestMatcher.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/RequestMatcher/ClosureRequestMatcher.php deleted file mode 100644 index 8803eb5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/RequestMatcher/ClosureRequestMatcher.php +++ /dev/null @@ -1,32 +0,0 @@ -closure = $closure; - } - - /** - * @inheritDoc - */ - public function matches(RequestInterface $request) - { - $closure = $this->closure; - return (bool) $closure($request); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseAgeTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseAgeTest.php deleted file mode 100644 index 87fb3b8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseAgeTest.php +++ /dev/null @@ -1,55 +0,0 @@ -getUri()->getPath()) { - case '/2s': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'max-age=2') - ); - } - - throw new \InvalidArgumentException(); - }); - - // Add this middleware to the top with `push` - $stack->push(new CacheMiddleware(), 'cache'); - - // Initialize the client with the handler option - $this->client = new Client(['handler' => $stack]); - } - - public function testAgeHeader() - { - $response = $this->client->get('http://test.com/2s'); - $this->assertFalse($response->hasHeader('Age')); - - sleep(1); - - $response = $this->client->get('http://test.com/2s'); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - $this->assertGreaterThanOrEqual(1, $response->getHeaderLine('Age')); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseCacheControlTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseCacheControlTest.php deleted file mode 100644 index 9be2907..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseCacheControlTest.php +++ /dev/null @@ -1,142 +0,0 @@ -getUri()->getPath()) { - case '/2s': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'max-age=2') - ); - case '/2s-complex': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'invalid-token="yes", max-age=2, stale-while-revalidate=60') - ); - case '/no-store': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'no-store') - ); - case '/no-cache': - if ($request->getHeaderLine('If-None-Match') == 'TheHash') { - return new FulfilledPromise(new Response(304)); - } - - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'no-cache') - ->withAddedHeader('Etag', 'TheHash') - ); - case '/2s-expires': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'public') - ->withAddedHeader('Expires', gmdate('D, d M Y H:i:s T', time() + 2)) - ); - case '/no-headers': - return new FulfilledPromise( - (new Response()) - ); - } - - throw new \InvalidArgumentException(); - }); - - // Add this middleware to the top with `push` - $stack->push(new CacheMiddleware(), 'cache'); - - // Initialize the client with the handler option - $this->client = new Client(['handler' => $stack]); - } - - public function testMaxAgeHeader() - { - $this->client->get('http://test.com/2s'); - - $response = $this->client->get('http://test.com/2s'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - sleep(3); - - $response = $this->client->get('http://test.com/2s'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testMaxAgeComplexHeader() - { - $this->client->get('http://test.com/2s-complex'); - - $response = $this->client->get('http://test.com/2s-complex'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - sleep(3); - - $response = $this->client->get('http://test.com/2s-complex'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testNoStoreHeader() - { - $this->client->get('http://test.com/no-store'); - - $response = $this->client->get('http://test.com/no-store'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testNoCacheHeader() - { - $this->client->get('http://test.com/no-cache'); - - $response = $this->client->get('http://test.com/no-cache'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testWithExpires() - { - $this->client->get('http://test.com/2s-expires'); - - $response = $this->client->get('http://test.com/2s-expires'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - sleep(3); - - $response = $this->client->get('http://test.com/2s-expires'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - /** - * Test responses with no caching headers. - * - * When neither a Cache-Control or Expires header is set, caching behaviour - * is undefined as per section 13.4 in RFC2616. The current behaviour is to - * not cache those requests. - * - * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html - */ - public function testWithMissingCacheHeaders() - { - $this->client->get('http://test.com/no-headers'); - $response = $this->client->get('http://test.com/no-headers'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseVaryTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseVaryTest.php deleted file mode 100644 index 472e3f8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ResponseVaryTest.php +++ /dev/null @@ -1,167 +0,0 @@ -getUri()->getPath()) { - case '/vary-all': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'max-age=2') - ->withAddedHeader('Vary', '*') - ); - case '/vary-my-header': - return new FulfilledPromise( - (new Response()) - ->withAddedHeader('Cache-Control', 'max-age=2') - ->withAddedHeader('Vary', 'My-Header, Absent-Header') - ); - } - - throw new \InvalidArgumentException(); - }); - - // Add this middleware to the top with `push` - $stack->push(new CacheMiddleware(), 'cache'); - - // Initialize the client with the handler option - $this->client = new Client(['handler' => $stack]); - } - - public function testVaryAllHeaderDoesNotCache() - { - $this->client->get('http://test.com/vary-all'); - - $response = $this->client->get('http://test.com/vary-all'); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_MISS, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - } - - public function testVaryHeader() - { - $this->client->get('http://test.com/vary-my-header', [ - 'headers' => [ - 'My-Header' => 'hello', - ], - ]); - - // Same vary headers - $response = $this->client->get('http://test.com/vary-my-header', [ - 'headers' => [ - 'My-Header' => 'hello', - ], - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - - // Add a previously absent header - $response = $this->client->get('http://test.com/vary-my-header', [ - 'headers' => [ - 'My-Header' => 'hello', - 'Absent-Header' => 'present', - ], - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_MISS, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - - // Without any headers - $response = $this->client->get('http://test.com/vary-my-header'); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_MISS, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - } - - public function testVaryHeadersHaveUniqueCache() - { - $headerSetA = [ - 'My-Header' => 'hello' - ]; - - $headerSetB = [ - 'My-Header' => 'goodbye' - ]; - - $this->client->get('http://test.com/vary-my-header', [ - 'headers' => $headerSetA - ]); - - // Second request with A headers - cache hit - $response = $this->client->get('http://test.com/vary-my-header', [ - 'headers' => $headerSetA - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - - // First request with B headers - cache miss - $response = $this->client->get('http://test.com/vary-my-header', [ - 'headers' => $headerSetB - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_MISS, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - - // Second request with B headers - cache hit - $response = $this->client->get('http://test.com/vary-my-header', [ - 'headers' => $headerSetB - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - - // Third request with A headers - cache hit (make sure B cache did not overwrite A cache) - $response = $this->client->get('http://test.com/vary-my-header', [ - 'headers' => $headerSetA - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - } - - public function testVaryHeaderCaseChangeDoesNotCauseCacheMiss() - { - $this->client->get('http://test.com/vary-my-header', [ - 'headers' => [ - 'My-Header' => 'hello' - ] - ]); - - $response = $this->client->get('http://test.com/vary-my-header', [ - 'headers' => [ - 'my-header' => 'hello' - ] - ]); - $this->assertEquals( - CacheMiddleware::HEADER_CACHE_HIT, - $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO) - ); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/Strategy/GreedyCacheStrategyTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/Strategy/GreedyCacheStrategyTest.php deleted file mode 100644 index 77b4647..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/Strategy/GreedyCacheStrategyTest.php +++ /dev/null @@ -1,74 +0,0 @@ -push(new CacheMiddleware( - new GreedyCacheStrategy(new VolatileRuntimeStorage(), 2) - ), 'cache'); - - // Initialize the client with the handler option - $this->client = new Client(['handler' => $stack]); - } - - public function testDefaultTtl() - { - $this->client->get('http://test.com/'); - - $response = $this->client->get('http://test.com/'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - sleep(3); - - $response = $this->client->get('http://test.com/'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testHeaderTtl() - { - /** @var Request $request */ - $request = (new Request('GET', 'http://test.com/2')) - ->withHeader(GreedyCacheStrategy::HEADER_TTL, -2); - $this->client->send($request); - - $response = $this->client->send($request); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - /** @var Request $request */ - $request = (new Request('GET', 'http://test.com/2')) - ->withHeader(GreedyCacheStrategy::HEADER_TTL, 5); - - $this->client->send($request); - - $response = $this->client->send($request); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - sleep(6); - - $response = $this->client->send($request); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ValidationTest.php b/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ValidationTest.php deleted file mode 100644 index 184fa3a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/kevinrob/guzzle-cache-middleware/tests/ValidationTest.php +++ /dev/null @@ -1,129 +0,0 @@ -getUri()->getPath()) { - case '/etag': - if ($request->getHeaderLine('If-None-Match') == 'MyBeautifulHash') { - return new FulfilledPromise( - (new Response(304)) - ->withHeader('X-Replaced', '2') - ); - } - - return new FulfilledPromise( - (new Response()) - ->withHeader('Etag', 'MyBeautifulHash') - ->withHeader('X-Base-Info', '1') - ->withHeader('X-Replaced', '1') - ); - case '/etag-changed': - if ($request->getHeaderLine('If-None-Match') == 'MyBeautifulHash') { - return new FulfilledPromise( - (new Response()) - ->withHeader('Etag', 'MyBeautifulHash2') - ); - } - - return new FulfilledPromise( - (new Response()) - ->withHeader('Etag', 'MyBeautifulHash') - ); - case '/stale-while-revalidate': - if ($request->getHeaderLine('If-None-Match') == 'MyBeautifulHash') { - return new FulfilledPromise( - (new Response(304)) - ->withHeader('Cache-Control', 'max-age=10') - ); - } - - return new FulfilledPromise( - (new Response()) - ->withHeader('Etag', 'MyBeautifulHash') - ->withHeader('Cache-Control', 'max-age=1') - ->withAddedHeader('Cache-Control', 'stale-while-revalidate=60') - ); - } - - throw new \InvalidArgumentException(); - }); - - $this->cache = new CacheMiddleware(); - - // Add this middleware to the top with `push` - $stack->push($this->cache, 'cache'); - - // Initialize the client with the handler option - $this->client = new Client(['handler' => $stack]); - $this->cache->setClient($this->client); - } - - public function testEtagHeader() - { - $response = $this->client->get('http://test.com/etag'); - $this->assertEquals('1', $response->getHeaderLine('X-Base-Info')); - $this->assertEquals('1', $response->getHeaderLine('X-Replaced')); - - sleep(1); - - $response = $this->client->get('http://test.com/etag'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - $this->assertEquals('1', $response->getHeaderLine('X-Base-Info')); - $this->assertEquals('2', $response->getHeaderLine('X-Replaced')); - } - - public function testEtagChangeHeader() - { - $this->client->get('http://test.com/etag-changed'); - - sleep(1); - - $response = $this->client->get('http://test.com/etag-changed'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } - - public function testStaleWhileRevalidateHeader() - { - $this->client->get('http://test.com/stale-while-revalidate'); - - sleep(2); - - $response = $this->client->get('http://test.com/stale-while-revalidate'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_STALE, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - - // Do that at the end of the php script... - $this->cache->purgeReValidation(); - - $response = $this->client->get('http://test.com/stale-while-revalidate'); - $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO)); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/.gitattributes b/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/.gitattributes deleted file mode 100755 index 50b8b8a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/.gitattributes +++ /dev/null @@ -1,6 +0,0 @@ -# Auto detect text files and perform LF normalization -* text=auto - -tests/ export-ignore -phpunit.xml export-ignore -.travis.yml export-ignore diff --git a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/.gitignore b/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/.gitignore deleted file mode 100755 index ad5190c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -.DS_Store -nbproject/* -.idea/* -vendor/* -composer.phar -composer.lock diff --git a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/LICENSE b/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/LICENSE deleted file mode 100644 index accd5a0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -php-enum - PHP Enum implementation http://github.com/myclabs/php-enum - -Copyright (C) 2015 My C-Labs - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and -associated documentation files (the "Software"), to deal in the Software without restriction, -including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial -portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT -NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/README.md b/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/README.md deleted file mode 100644 index 6db3102..0000000 --- a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/README.md +++ /dev/null @@ -1,126 +0,0 @@ -# PHP Enum implementation inspired from SplEnum - -[![Build Status](https://travis-ci.org/myclabs/php-enum.png?branch=master)](https://travis-ci.org/myclabs/php-enum) -[![Latest Stable Version](https://poser.pugx.org/myclabs/php-enum/version.png)](https://packagist.org/packages/myclabs/php-enum) -[![Total Downloads](https://poser.pugx.org/myclabs/php-enum/downloads.png)](https://packagist.org/packages/myclabs/php-enum) - -## Why? - -First, and mainly, `SplEnum` is not integrated to PHP, you have to install it separately. - -Using an enum instead of class constants provides the following advantages: - -- You can type-hint: `function setAction(Action $action) {` -- You can enrich the enum with methods (e.g. `format`, `parse`, …) -- You can extend the enum to add new values (make your enum `final` to prevent it) -- You can get a list of all the possible values (see below) - -This Enum class is not intended to replace class constants, but only to be used when it makes sense. - -## Installation - -``` -composer require myclabs/php-enum -``` - -## Declaration - -```php -use MyCLabs\Enum\Enum; - -/** - * Action enum - */ -class Action extends Enum -{ - const VIEW = 'view'; - const EDIT = 'edit'; -} -``` - - -## Usage - -```php -$action = new Action(Action::VIEW); - -// or -$action = Action::VIEW(); -``` - -As you can see, static methods are automatically implemented to provide quick access to an enum value. - -One advantage over using class constants is to be able to type-hint enum values: - -```php -function setAction(Action $action) { - // ... -} -``` - -## Documentation - -- `__construct()` The constructor checks that the value exist in the enum -- `__toString()` You can `echo $myValue`, it will display the enum value (value of the constant) -- `getValue()` Returns the current value of the enum -- `getKey()` Returns the key of the current value on Enum -- `equals()` Tests whether enum instances are equal (returns `true` if enum values are equal, `false` otherwise) - -Static methods: - -- `toArray()` method Returns all possible values as an array (constant name in key, constant value in value) -- `keys()` Returns the names (keys) of all constants in the Enum class -- `values()` Returns instances of the Enum class of all Enum constants (constant name in key, Enum instance in value) -- `isValid()` Check if tested value is valid on enum set -- `isValidKey()` Check if tested key is valid on enum set -- `search()` Return key for searched value - -### Static methods - -```php -class Action extends Enum -{ - const VIEW = 'view'; - const EDIT = 'edit'; -} - -// Static method: -$action = Action::VIEW(); -$action = Action::EDIT(); -``` - -Static method helpers are implemented using [`__callStatic()`](http://www.php.net/manual/en/language.oop5.overloading.php#object.callstatic). - -If you care about IDE autocompletion, you can either implement the static methods yourself: - -```php -class Action extends Enum -{ - const VIEW = 'view'; - - /** - * @return Action - */ - public static function VIEW() { - return new Action(self::VIEW); - } -} -``` - -or you can use phpdoc (this is supported in PhpStorm for example): - -```php -/** - * @method static Action VIEW() - * @method static Action EDIT() - */ -class Action extends Enum -{ - const VIEW = 'view'; - const EDIT = 'edit'; -} -``` - -## Related projects - -- [Doctrine enum mapping](https://github.com/acelaya/doctrine-enum-type) diff --git a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/composer.json b/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/composer.json deleted file mode 100644 index e9769a3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/composer.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "myclabs/php-enum", - "type": "library", - "description": "PHP Enum implementation", - "keywords": ["enum"], - "homepage": "http://github.com/myclabs/php-enum", - "license": "MIT", - "authors": [ - { - "name": "PHP Enum contributors", - "homepage": "https://github.com/myclabs/php-enum/graphs/contributors" - } - ], - "autoload": { - "psr-4": { - "MyCLabs\\Enum\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "MyCLabs\\Tests\\Enum\\": "tests/" - } - }, - "require": { - "php": ">=5.3" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35|^5.7|^6.0", - "squizlabs/php_codesniffer": "1.*" - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/src/Enum.php b/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/src/Enum.php deleted file mode 100644 index 140e722..0000000 --- a/modules/dkan_sci_citation/includes/vendor/myclabs/php-enum/src/Enum.php +++ /dev/null @@ -1,186 +0,0 @@ - - * @author Daniel Costa - * @author Mirosław Filip - */ -abstract class Enum -{ - /** - * Enum value - * - * @var mixed - */ - protected $value; - - /** - * Store existing constants in a static cache per object. - * - * @var array - */ - protected static $cache = array(); - - /** - * Creates a new value of some type - * - * @param mixed $value - * - * @throws \UnexpectedValueException if incompatible type is given. - */ - public function __construct($value) - { - if (!$this->isValid($value)) { - throw new \UnexpectedValueException("Value '$value' is not part of the enum " . get_called_class()); - } - - $this->value = $value; - } - - /** - * @return mixed - */ - public function getValue() - { - return $this->value; - } - - /** - * Returns the enum key (i.e. the constant name). - * - * @return mixed - */ - public function getKey() - { - return static::search($this->value); - } - - /** - * @return string - */ - public function __toString() - { - return (string)$this->value; - } - - /** - * Compares one Enum with another. - * - * This method is final, for more information read https://github.com/myclabs/php-enum/issues/4 - * - * @return bool True if Enums are equal, false if not equal - */ - final public function equals(Enum $enum) - { - return $this->getValue() === $enum->getValue() && get_called_class() == get_class($enum); - } - - /** - * Returns the names (keys) of all constants in the Enum class - * - * @return array - */ - public static function keys() - { - return array_keys(static::toArray()); - } - - /** - * Returns instances of the Enum class of all Enum constants - * - * @return static[] Constant name in key, Enum instance in value - */ - public static function values() - { - $values = array(); - - foreach (static::toArray() as $key => $value) { - $values[$key] = new static($value); - } - - return $values; - } - - /** - * Returns all possible values as an array - * - * @return array Constant name in key, constant value in value - */ - public static function toArray() - { - $class = get_called_class(); - if (!array_key_exists($class, static::$cache)) { - $reflection = new \ReflectionClass($class); - static::$cache[$class] = $reflection->getConstants(); - } - - return static::$cache[$class]; - } - - /** - * Check if is valid enum value - * - * @param $value - * - * @return bool - */ - public static function isValid($value) - { - return in_array($value, static::toArray(), true); - } - - /** - * Check if is valid enum key - * - * @param $key - * - * @return bool - */ - public static function isValidKey($key) - { - $array = static::toArray(); - - return isset($array[$key]); - } - - /** - * Return key for value - * - * @param $value - * - * @return mixed - */ - public static function search($value) - { - return array_search($value, static::toArray(), true); - } - - /** - * Returns a value when called statically like so: MyEnum::SOME_VALUE() given SOME_VALUE is a class constant - * - * @param string $name - * @param array $arguments - * - * @return static - * @throws \BadMethodCallException - */ - public static function __callStatic($name, $arguments) - { - $array = static::toArray(); - if (isset($array[$name])) { - return new static($array[$name]); - } - - throw new \BadMethodCallException("No static method or enum constant '$name' in class " . get_called_class()); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/psr/http-message/CHANGELOG.md b/modules/dkan_sci_citation/includes/vendor/psr/http-message/CHANGELOG.md deleted file mode 100644 index 74b1ef9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/http-message/CHANGELOG.md +++ /dev/null @@ -1,36 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file, in reverse chronological order by release. - -## 1.0.1 - 2016-08-06 - -### Added - -- Nothing. - -### Deprecated - -- Nothing. - -### Removed - -- Nothing. - -### Fixed - -- Updated all `@return self` annotation references in interfaces to use - `@return static`, which more closelly follows the semantics of the - specification. -- Updated the `MessageInterface::getHeaders()` return annotation to use the - value `string[][]`, indicating the format is a nested array of strings. -- Updated the `@link` annotation for `RequestInterface::withRequestTarget()` - to point to the correct section of RFC 7230. -- Updated the `ServerRequestInterface::withUploadedFiles()` parameter annotation - to add the parameter name (`$uploadedFiles`). -- Updated a `@throws` annotation for the `UploadedFileInterface::moveTo()` - method to correctly reference the method parameter (it was referencing an - incorrect parameter name previously). - -## 1.0.0 - 2016-05-18 - -Initial stable release; reflects accepted PSR-7 specification. diff --git a/modules/dkan_sci_citation/includes/vendor/psr/http-message/LICENSE b/modules/dkan_sci_citation/includes/vendor/psr/http-message/LICENSE deleted file mode 100644 index c2d8e45..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/http-message/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2014 PHP Framework Interoperability Group - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/modules/dkan_sci_citation/includes/vendor/psr/http-message/README.md b/modules/dkan_sci_citation/includes/vendor/psr/http-message/README.md deleted file mode 100644 index 2818533..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/http-message/README.md +++ /dev/null @@ -1,13 +0,0 @@ -PSR Http Message -================ - -This repository holds all interfaces/classes/traits related to -[PSR-7](http://www.php-fig.org/psr/psr-7/). - -Note that this is not a HTTP message implementation of its own. It is merely an -interface that describes a HTTP message. See the specification for more details. - -Usage ------ - -We'll certainly need some stuff in here. \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/psr/http-message/composer.json b/modules/dkan_sci_citation/includes/vendor/psr/http-message/composer.json deleted file mode 100644 index b0d2937..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/http-message/composer.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "psr/http-message", - "description": "Common interface for HTTP messages", - "keywords": ["psr", "psr-7", "http", "http-message", "request", "response"], - "homepage": "https://github.com/php-fig/http-message", - "license": "MIT", - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "require": { - "php": ">=5.3.0" - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/psr/http-message/src/MessageInterface.php b/modules/dkan_sci_citation/includes/vendor/psr/http-message/src/MessageInterface.php deleted file mode 100644 index dd46e5e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/http-message/src/MessageInterface.php +++ /dev/null @@ -1,187 +0,0 @@ -getHeaders() as $name => $values) { - * echo $name . ": " . implode(", ", $values); - * } - * - * // Emit headers iteratively: - * foreach ($message->getHeaders() as $name => $values) { - * foreach ($values as $value) { - * header(sprintf('%s: %s', $name, $value), false); - * } - * } - * - * While header names are not case-sensitive, getHeaders() will preserve the - * exact case in which headers were originally specified. - * - * @return string[][] Returns an associative array of the message's headers. Each - * key MUST be a header name, and each value MUST be an array of strings - * for that header. - */ - public function getHeaders(); - - /** - * Checks if a header exists by the given case-insensitive name. - * - * @param string $name Case-insensitive header field name. - * @return bool Returns true if any header names match the given header - * name using a case-insensitive string comparison. Returns false if - * no matching header name is found in the message. - */ - public function hasHeader($name); - - /** - * Retrieves a message header value by the given case-insensitive name. - * - * This method returns an array of all the header values of the given - * case-insensitive header name. - * - * If the header does not appear in the message, this method MUST return an - * empty array. - * - * @param string $name Case-insensitive header field name. - * @return string[] An array of string values as provided for the given - * header. If the header does not appear in the message, this method MUST - * return an empty array. - */ - public function getHeader($name); - - /** - * Retrieves a comma-separated string of the values for a single header. - * - * This method returns all of the header values of the given - * case-insensitive header name as a string concatenated together using - * a comma. - * - * NOTE: Not all header values may be appropriately represented using - * comma concatenation. For such headers, use getHeader() instead - * and supply your own delimiter when concatenating. - * - * If the header does not appear in the message, this method MUST return - * an empty string. - * - * @param string $name Case-insensitive header field name. - * @return string A string of values as provided for the given header - * concatenated together using a comma. If the header does not appear in - * the message, this method MUST return an empty string. - */ - public function getHeaderLine($name); - - /** - * Return an instance with the provided value replacing the specified header. - * - * While header names are case-insensitive, the casing of the header will - * be preserved by this function, and returned from getHeaders(). - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * new and/or updated header and value. - * - * @param string $name Case-insensitive header field name. - * @param string|string[] $value Header value(s). - * @return static - * @throws \InvalidArgumentException for invalid header names or values. - */ - public function withHeader($name, $value); - - /** - * Return an instance with the specified header appended with the given value. - * - * Existing values for the specified header will be maintained. The new - * value(s) will be appended to the existing list. If the header did not - * exist previously, it will be added. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * new header and/or value. - * - * @param string $name Case-insensitive header field name to add. - * @param string|string[] $value Header value(s). - * @return static - * @throws \InvalidArgumentException for invalid header names or values. - */ - public function withAddedHeader($name, $value); - - /** - * Return an instance without the specified header. - * - * Header resolution MUST be done without case-sensitivity. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that removes - * the named header. - * - * @param string $name Case-insensitive header field name to remove. - * @return static - */ - public function withoutHeader($name); - - /** - * Gets the body of the message. - * - * @return StreamInterface Returns the body as a stream. - */ - public function getBody(); - - /** - * Return an instance with the specified message body. - * - * The body MUST be a StreamInterface object. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return a new instance that has the - * new body stream. - * - * @param StreamInterface $body Body. - * @return static - * @throws \InvalidArgumentException When the body is not valid. - */ - public function withBody(StreamInterface $body); -} diff --git a/modules/dkan_sci_citation/includes/vendor/psr/http-message/src/RequestInterface.php b/modules/dkan_sci_citation/includes/vendor/psr/http-message/src/RequestInterface.php deleted file mode 100644 index a96d4fd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/http-message/src/RequestInterface.php +++ /dev/null @@ -1,129 +0,0 @@ -getQuery()` - * or from the `QUERY_STRING` server param. - * - * @return array - */ - public function getQueryParams(); - - /** - * Return an instance with the specified query string arguments. - * - * These values SHOULD remain immutable over the course of the incoming - * request. They MAY be injected during instantiation, such as from PHP's - * $_GET superglobal, or MAY be derived from some other value such as the - * URI. In cases where the arguments are parsed from the URI, the data - * MUST be compatible with what PHP's parse_str() would return for - * purposes of how duplicate query parameters are handled, and how nested - * sets are handled. - * - * Setting query string arguments MUST NOT change the URI stored by the - * request, nor the values in the server params. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * updated query string arguments. - * - * @param array $query Array of query string arguments, typically from - * $_GET. - * @return static - */ - public function withQueryParams(array $query); - - /** - * Retrieve normalized file upload data. - * - * This method returns upload metadata in a normalized tree, with each leaf - * an instance of Psr\Http\Message\UploadedFileInterface. - * - * These values MAY be prepared from $_FILES or the message body during - * instantiation, or MAY be injected via withUploadedFiles(). - * - * @return array An array tree of UploadedFileInterface instances; an empty - * array MUST be returned if no data is present. - */ - public function getUploadedFiles(); - - /** - * Create a new instance with the specified uploaded files. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * updated body parameters. - * - * @param array $uploadedFiles An array tree of UploadedFileInterface instances. - * @return static - * @throws \InvalidArgumentException if an invalid structure is provided. - */ - public function withUploadedFiles(array $uploadedFiles); - - /** - * Retrieve any parameters provided in the request body. - * - * If the request Content-Type is either application/x-www-form-urlencoded - * or multipart/form-data, and the request method is POST, this method MUST - * return the contents of $_POST. - * - * Otherwise, this method may return any results of deserializing - * the request body content; as parsing returns structured content, the - * potential types MUST be arrays or objects only. A null value indicates - * the absence of body content. - * - * @return null|array|object The deserialized body parameters, if any. - * These will typically be an array or object. - */ - public function getParsedBody(); - - /** - * Return an instance with the specified body parameters. - * - * These MAY be injected during instantiation. - * - * If the request Content-Type is either application/x-www-form-urlencoded - * or multipart/form-data, and the request method is POST, use this method - * ONLY to inject the contents of $_POST. - * - * The data IS NOT REQUIRED to come from $_POST, but MUST be the results of - * deserializing the request body content. Deserialization/parsing returns - * structured data, and, as such, this method ONLY accepts arrays or objects, - * or a null value if nothing was available to parse. - * - * As an example, if content negotiation determines that the request data - * is a JSON payload, this method could be used to create a request - * instance with the deserialized parameters. - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * updated body parameters. - * - * @param null|array|object $data The deserialized body data. This will - * typically be in an array or object. - * @return static - * @throws \InvalidArgumentException if an unsupported argument type is - * provided. - */ - public function withParsedBody($data); - - /** - * Retrieve attributes derived from the request. - * - * The request "attributes" may be used to allow injection of any - * parameters derived from the request: e.g., the results of path - * match operations; the results of decrypting cookies; the results of - * deserializing non-form-encoded message bodies; etc. Attributes - * will be application and request specific, and CAN be mutable. - * - * @return array Attributes derived from the request. - */ - public function getAttributes(); - - /** - * Retrieve a single derived request attribute. - * - * Retrieves a single derived request attribute as described in - * getAttributes(). If the attribute has not been previously set, returns - * the default value as provided. - * - * This method obviates the need for a hasAttribute() method, as it allows - * specifying a default value to return if the attribute is not found. - * - * @see getAttributes() - * @param string $name The attribute name. - * @param mixed $default Default value to return if the attribute does not exist. - * @return mixed - */ - public function getAttribute($name, $default = null); - - /** - * Return an instance with the specified derived request attribute. - * - * This method allows setting a single derived request attribute as - * described in getAttributes(). - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that has the - * updated attribute. - * - * @see getAttributes() - * @param string $name The attribute name. - * @param mixed $value The value of the attribute. - * @return static - */ - public function withAttribute($name, $value); - - /** - * Return an instance that removes the specified derived request attribute. - * - * This method allows removing a single derived request attribute as - * described in getAttributes(). - * - * This method MUST be implemented in such a way as to retain the - * immutability of the message, and MUST return an instance that removes - * the attribute. - * - * @see getAttributes() - * @param string $name The attribute name. - * @return static - */ - public function withoutAttribute($name); -} diff --git a/modules/dkan_sci_citation/includes/vendor/psr/http-message/src/StreamInterface.php b/modules/dkan_sci_citation/includes/vendor/psr/http-message/src/StreamInterface.php deleted file mode 100644 index f68f391..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/http-message/src/StreamInterface.php +++ /dev/null @@ -1,158 +0,0 @@ - - * [user-info@]host[:port] - * - * - * If the port component is not set or is the standard port for the current - * scheme, it SHOULD NOT be included. - * - * @see https://tools.ietf.org/html/rfc3986#section-3.2 - * @return string The URI authority, in "[user-info@]host[:port]" format. - */ - public function getAuthority(); - - /** - * Retrieve the user information component of the URI. - * - * If no user information is present, this method MUST return an empty - * string. - * - * If a user is present in the URI, this will return that value; - * additionally, if the password is also present, it will be appended to the - * user value, with a colon (":") separating the values. - * - * The trailing "@" character is not part of the user information and MUST - * NOT be added. - * - * @return string The URI user information, in "username[:password]" format. - */ - public function getUserInfo(); - - /** - * Retrieve the host component of the URI. - * - * If no host is present, this method MUST return an empty string. - * - * The value returned MUST be normalized to lowercase, per RFC 3986 - * Section 3.2.2. - * - * @see http://tools.ietf.org/html/rfc3986#section-3.2.2 - * @return string The URI host. - */ - public function getHost(); - - /** - * Retrieve the port component of the URI. - * - * If a port is present, and it is non-standard for the current scheme, - * this method MUST return it as an integer. If the port is the standard port - * used with the current scheme, this method SHOULD return null. - * - * If no port is present, and no scheme is present, this method MUST return - * a null value. - * - * If no port is present, but a scheme is present, this method MAY return - * the standard port for that scheme, but SHOULD return null. - * - * @return null|int The URI port. - */ - public function getPort(); - - /** - * Retrieve the path component of the URI. - * - * The path can either be empty or absolute (starting with a slash) or - * rootless (not starting with a slash). Implementations MUST support all - * three syntaxes. - * - * Normally, the empty path "" and absolute path "/" are considered equal as - * defined in RFC 7230 Section 2.7.3. But this method MUST NOT automatically - * do this normalization because in contexts with a trimmed base path, e.g. - * the front controller, this difference becomes significant. It's the task - * of the user to handle both "" and "/". - * - * The value returned MUST be percent-encoded, but MUST NOT double-encode - * any characters. To determine what characters to encode, please refer to - * RFC 3986, Sections 2 and 3.3. - * - * As an example, if the value should include a slash ("/") not intended as - * delimiter between path segments, that value MUST be passed in encoded - * form (e.g., "%2F") to the instance. - * - * @see https://tools.ietf.org/html/rfc3986#section-2 - * @see https://tools.ietf.org/html/rfc3986#section-3.3 - * @return string The URI path. - */ - public function getPath(); - - /** - * Retrieve the query string of the URI. - * - * If no query string is present, this method MUST return an empty string. - * - * The leading "?" character is not part of the query and MUST NOT be - * added. - * - * The value returned MUST be percent-encoded, but MUST NOT double-encode - * any characters. To determine what characters to encode, please refer to - * RFC 3986, Sections 2 and 3.4. - * - * As an example, if a value in a key/value pair of the query string should - * include an ampersand ("&") not intended as a delimiter between values, - * that value MUST be passed in encoded form (e.g., "%26") to the instance. - * - * @see https://tools.ietf.org/html/rfc3986#section-2 - * @see https://tools.ietf.org/html/rfc3986#section-3.4 - * @return string The URI query string. - */ - public function getQuery(); - - /** - * Retrieve the fragment component of the URI. - * - * If no fragment is present, this method MUST return an empty string. - * - * The leading "#" character is not part of the fragment and MUST NOT be - * added. - * - * The value returned MUST be percent-encoded, but MUST NOT double-encode - * any characters. To determine what characters to encode, please refer to - * RFC 3986, Sections 2 and 3.5. - * - * @see https://tools.ietf.org/html/rfc3986#section-2 - * @see https://tools.ietf.org/html/rfc3986#section-3.5 - * @return string The URI fragment. - */ - public function getFragment(); - - /** - * Return an instance with the specified scheme. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified scheme. - * - * Implementations MUST support the schemes "http" and "https" case - * insensitively, and MAY accommodate other schemes if required. - * - * An empty scheme is equivalent to removing the scheme. - * - * @param string $scheme The scheme to use with the new instance. - * @return static A new instance with the specified scheme. - * @throws \InvalidArgumentException for invalid or unsupported schemes. - */ - public function withScheme($scheme); - - /** - * Return an instance with the specified user information. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified user information. - * - * Password is optional, but the user information MUST include the - * user; an empty string for the user is equivalent to removing user - * information. - * - * @param string $user The user name to use for authority. - * @param null|string $password The password associated with $user. - * @return static A new instance with the specified user information. - */ - public function withUserInfo($user, $password = null); - - /** - * Return an instance with the specified host. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified host. - * - * An empty host value is equivalent to removing the host. - * - * @param string $host The hostname to use with the new instance. - * @return static A new instance with the specified host. - * @throws \InvalidArgumentException for invalid hostnames. - */ - public function withHost($host); - - /** - * Return an instance with the specified port. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified port. - * - * Implementations MUST raise an exception for ports outside the - * established TCP and UDP port ranges. - * - * A null value provided for the port is equivalent to removing the port - * information. - * - * @param null|int $port The port to use with the new instance; a null value - * removes the port information. - * @return static A new instance with the specified port. - * @throws \InvalidArgumentException for invalid ports. - */ - public function withPort($port); - - /** - * Return an instance with the specified path. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified path. - * - * The path can either be empty or absolute (starting with a slash) or - * rootless (not starting with a slash). Implementations MUST support all - * three syntaxes. - * - * If the path is intended to be domain-relative rather than path relative then - * it must begin with a slash ("/"). Paths not starting with a slash ("/") - * are assumed to be relative to some base path known to the application or - * consumer. - * - * Users can provide both encoded and decoded path characters. - * Implementations ensure the correct encoding as outlined in getPath(). - * - * @param string $path The path to use with the new instance. - * @return static A new instance with the specified path. - * @throws \InvalidArgumentException for invalid paths. - */ - public function withPath($path); - - /** - * Return an instance with the specified query string. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified query string. - * - * Users can provide both encoded and decoded query characters. - * Implementations ensure the correct encoding as outlined in getQuery(). - * - * An empty query string value is equivalent to removing the query string. - * - * @param string $query The query string to use with the new instance. - * @return static A new instance with the specified query string. - * @throws \InvalidArgumentException for invalid query strings. - */ - public function withQuery($query); - - /** - * Return an instance with the specified URI fragment. - * - * This method MUST retain the state of the current instance, and return - * an instance that contains the specified URI fragment. - * - * Users can provide both encoded and decoded fragment characters. - * Implementations ensure the correct encoding as outlined in getFragment(). - * - * An empty fragment value is equivalent to removing the fragment. - * - * @param string $fragment The fragment to use with the new instance. - * @return static A new instance with the specified fragment. - */ - public function withFragment($fragment); - - /** - * Return the string representation as a URI reference. - * - * Depending on which components of the URI are present, the resulting - * string is either a full URI or relative reference according to RFC 3986, - * Section 4.1. The method concatenates the various components of the URI, - * using the appropriate delimiters: - * - * - If a scheme is present, it MUST be suffixed by ":". - * - If an authority is present, it MUST be prefixed by "//". - * - The path can be concatenated without delimiters. But there are two - * cases where the path has to be adjusted to make the URI reference - * valid as PHP does not allow to throw an exception in __toString(): - * - If the path is rootless and an authority is present, the path MUST - * be prefixed by "/". - * - If the path is starting with more than one "/" and no authority is - * present, the starting slashes MUST be reduced to one. - * - If a query is present, it MUST be prefixed by "?". - * - If a fragment is present, it MUST be prefixed by "#". - * - * @see http://tools.ietf.org/html/rfc3986#section-4.1 - * @return string - */ - public function __toString(); -} diff --git a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/.editorconfig b/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/.editorconfig deleted file mode 100644 index 48542cb..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -; This file is for unifying the coding style for different editors and IDEs. -; More information at http://editorconfig.org - -root = true - -[*] -charset = utf-8 -indent_size = 4 -indent_style = space -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true diff --git a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/LICENSE.md b/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/LICENSE.md deleted file mode 100644 index e49a7c8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -# The MIT License (MIT) - -Copyright (c) 2016 PHP Framework Interoperability Group - -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. diff --git a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/README.md b/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/README.md deleted file mode 100644 index 43641d1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/README.md +++ /dev/null @@ -1,8 +0,0 @@ -PHP FIG Simple Cache PSR -======================== - -This repository holds all interfaces related to PSR-16. - -Note that this is not a cache implementation of its own. It is merely an interface that describes a cache implementation. See [the specification](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-16-simple-cache.md) for more details. - -You can find implementations of the specification by looking for packages providing the [psr/simple-cache-implementation](https://packagist.org/providers/psr/simple-cache-implementation) virtual package. diff --git a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/composer.json b/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/composer.json deleted file mode 100644 index 2978fa5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/composer.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "psr/simple-cache", - "description": "Common interfaces for simple caching", - "keywords": ["psr", "psr-16", "cache", "simple-cache", "caching"], - "license": "MIT", - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "require": { - "php": ">=5.3.0" - }, - "autoload": { - "psr-4": { - "Psr\\SimpleCache\\": "src/" - } - }, - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/src/CacheException.php b/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/src/CacheException.php deleted file mode 100644 index eba5381..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/src/CacheException.php +++ /dev/null @@ -1,10 +0,0 @@ - value pairs. Cache keys that do not exist or are stale will have $default as value. - * - * @throws \Psr\SimpleCache\InvalidArgumentException - * MUST be thrown if $keys is neither an array nor a Traversable, - * or if any of the $keys are not a legal value. - */ - public function getMultiple($keys, $default = null); - - /** - * Persists a set of key => value pairs in the cache, with an optional TTL. - * - * @param iterable $values A list of key => value pairs for a multiple-set operation. - * @param null|int|DateInterval $ttl Optional. The TTL value of this item. If no value is sent and - * the driver supports TTL then the library may set a default value - * for it or let the driver take care of that. - * - * @return bool True on success and false on failure. - * - * @throws \Psr\SimpleCache\InvalidArgumentException - * MUST be thrown if $values is neither an array nor a Traversable, - * or if any of the $values are not a legal value. - */ - public function setMultiple($values, $ttl = null); - - /** - * Deletes multiple cache items in a single operation. - * - * @param iterable $keys A list of string-based keys to be deleted. - * - * @return bool True if the items were successfully removed. False if there was an error. - * - * @throws \Psr\SimpleCache\InvalidArgumentException - * MUST be thrown if $keys is neither an array nor a Traversable, - * or if any of the $keys are not a legal value. - */ - public function deleteMultiple($keys); - - /** - * Determines whether an item is present in the cache. - * - * NOTE: It is recommended that has() is only to be used for cache warming type purposes - * and not to be used within your live applications operations for get/set, as this method - * is subject to a race condition where your has() will return true and immediately after, - * another script can remove it making the state of your app out of date. - * - * @param string $key The cache item key. - * - * @return bool - * - * @throws \Psr\SimpleCache\InvalidArgumentException - * MUST be thrown if the $key string is not a legal value. - */ - public function has($key); -} diff --git a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/src/InvalidArgumentException.php b/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/src/InvalidArgumentException.php deleted file mode 100644 index 6a9524a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/psr/simple-cache/src/InvalidArgumentException.php +++ /dev/null @@ -1,13 +0,0 @@ - - -For the full copyright and license information, please view the LICENSE -file that was distributed with this source code. -EOF; - - -return PhpCsFixer\Config::create() - ->setRiskyAllowed(true) - ->setRules([ - '@Symfony:risky' => true, - 'align_multiline_comment' => true, - 'array_syntax' => ['syntax' => 'short'], - 'combine_consecutive_issets' => true, - 'combine_consecutive_unsets' => true, - 'header_comment' => ['header' => $header], - 'heredoc_to_nowdoc' => true, - 'mb_str_functions' => true, - 'no_null_property_initialization' => true, - 'no_superfluous_elseif' => true, - 'no_unreachable_default_argument_value' => true, - 'no_useless_else' => true, - 'no_useless_return' => true, - 'not_operator_with_space' => false, - 'not_operator_with_successor_space' => false, - 'ordered_imports' => true, - 'php_unit_strict' => true, - 'phpdoc_add_missing_param_annotation' => true, - 'phpdoc_order' => true, - 'phpdoc_types_order' => true, - 'strict_comparison' => true, - 'strict_param' => true, - ]) - ->setFinder( - PhpCsFixer\Finder::create() - ->in([ - __DIR__ . '/src', - __DIR__ . '/tests', - ]) - ) -; diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/.travis.yml b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/.travis.yml deleted file mode 100644 index e991b03..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -language: php - -sudo: false - -cache: - directories: - - $HOME/.composer/cache - -env: - global: - - COMPOSER_ARGS="--no-interaction --no-suggest" - -matrix: - include: - - php: 5.6 - env: DEPS=lowest - - php: 5.6 - env: DEPS=latest - - php: 7.0 - env: DEPS=lowest - - php: 7.0 - env: DEPS=latest - - php: 7.1 - env: DEPS=lowest - - php: 7.1 - env: DEPS=latest - - php: 7.2 - env: DEPS=lowest - - php: 7.2 - env: DEPS=latest - -before_script: - - if [[ $DEPS == 'lowest' ]]; then travis_retry composer update $COMPOSER_ARGS --prefer-lowest --prefer-stable ; fi - - if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi - -script: - - ./vendor/bin/phpunit diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/LICENSE b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/LICENSE deleted file mode 100644 index 05cbcd3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -Copyright (c) 2017 Renan de Lima Barbosa - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/README.md b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/README.md deleted file mode 100644 index 61ff2c9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/README.md +++ /dev/null @@ -1,202 +0,0 @@ -

PHP CrossRef Client

-

- This is a library for the - Crossref REST API - written in PHP. -

-

- - Crossref Metadata APIs logo - - - PHP logo - -

- -[![Build Status](https://travis-ci.org/renanbr/crossref-client.svg?branch=master)](https://travis-ci.org/renanbr/crossref-client) - -## Table of contents - -* [Introduction](#introduction) -* [Installing](#installing) -* [Usage](#usage) - * [Singletons](#singletons) - * [Determine existence of a singleton](#determine-existence-of-a-singleton) - * [Lists](#lists) -* [Configuration](#configuration) - * [Caching results](#caching-results) - * [Identifying your script](#identifying-your-script) - * [Tying to a specific major version](#tying-to-a-specific-major-version) -* [Handling errors](#handling-errors) - -## Introduction - -This is **NOT** an official library! The intent of this library is to provide an easy way to make requests to the CrossRef's REST API. You **SHOULD** read this documentation in conjunction with the [official documentation](https://github.com/CrossRef/rest-api-doc). - -Highlighted features: - -- You don't need to worry about making HTTP requests; -- Proper [exceptions] are thrown if a HTTP error occurs; -- You receive responses as-is, with no treatment; -- [Filter](https://github.com/CrossRef/rest-api-doc#filter-names) and [facet](https://github.com/CrossRef/rest-api-doc#facet-counts) parameters will be encoded if needed; -- You can [be polite](https://github.com/CrossRef/rest-api-doc#etiquette) (caching, identifying your script); -- You can [tie to a specific major version of the API](https://github.com/CrossRef/rest-api-doc#how-to-manage-api-versions). - -Library's summary: - -```php -class RenanBr\CrossRefClient -{ - // Returns JSON decoded as array - public function request($path, array $parameters = []); - - // Returns boolean - public function exists($path); - - public function setUserAgent($userAgent); - public function setCache(Psr\SimpleCache\CacheInterface $cache); - public function setVersion($version); -} -``` - -## Installing - -```bash -composer require renanbr/crossref-client ^1@dev -``` - -## Usage - -### Singletons - -> Singletons are single results. Retrieving metadata for a specific identifier (e.g. DOI, ISSN, funder_identifier) typically returns in a singleton result. - -See: https://github.com/CrossRef/rest-api-doc#singletons - -```php -$client = new RenanBr\CrossRefClient(); -$work = $client->request('works/10.1037/0003-066X.59.1.29'); -print_r($work); -``` - -The above example will output: - -``` -Array -( - [status] => ok - [message-type] => work - [message-version] => 1.0.0 - [message] => Array - ( - ... - - [DOI] => 10.1037/0003-066x.59.1.29 - [type] => journal-article - - ... - - [title] => Array - ( - [0] => How the Mind Hurts and Heals the Body. - ) - - ... - ) -) -``` - -### Determine existence of a singleton - -> (...) [You can] determine "existence" of a singleton. The advantage of this technique is that it is very fast because it does not return any metadata (...) - -See: https://github.com/CrossRef/rest-api-doc#headers-only - -```php -$client = new RenanBr\CrossRefClient(); -$exists = $client->exists('members/98'); -var_dump(exists); -``` - -The above example will output: - -``` -bool(true) -``` - -### Lists - -> Lists results can contain multiple entries. Searching or filtering typically returns a list result. - -A list has two parts: Summary; and Items. Normally, an API list result will return both. - -See: https://github.com/CrossRef/rest-api-doc#lists - -```php -$client = new RenanBr\CrossRefClient(); - -$parameters = [ - 'query' => 'global state', - 'filter' => [ - 'has-orcid' => true, - ], -]; -$result = $client->request('works', $parameters); - -foreach ($result['message']['items'] as $work) { - // ... -} -``` - -## Configuration - -### Caching results - -> Cache data so you don't request the same data over and over again. - -See: https://github.com/CrossRef/rest-api-doc#etiquette - -```php -$client = new RenanBr\CrossRefClient(); -$client->setCache(new voku\cache\CachePsr16()); - -// ... -``` - -The above example uses [voku/simple-cache](https://github.com/voku/simple-cache) as cache implementation, but you can use [any PSR-16 implementation](https://packagist.org/providers/psr/simple-cache-implementation) because `setCache()` accept [Psr\SimpleCache\CacheInterface](http://www.php-fig.org/psr/psr-16/#21-cacheinterface) as argument. - -### Identifying your script - -> As of September 18th 2017 any API queries that use HTTPS and have appropriate contact information will be directed to a special pool of API machines that are reserved for polite users. - -See: https://github.com/CrossRef/rest-api-doc#good-manners--more-reliable-service - -```php -$client = new RenanBr\CrossRefClient(); -$client->setUserAgent('GroovyBib/1.1 (https://example.org/GroovyBib/; mailto:GroovyBib@example.org)'); - -// ... -``` - -The above example makes all subsequent requests attach the contact information given. - -### Tying to a specific major version - -> If you need to tie your implementation to a specific major version of the API, you can do so by using version-specific routes. The default route redirects to the most recent version of the API. - -See: https://github.com/CrossRef/rest-api-doc#how-to-manage-api-versions - -```php -$client = new RenanBr\CrossRefClient(); -$client->setVersion('v55'); - -// ... -``` - -The above example tie all subsequent requests to the API version `v55`. - -## Handling errors - -As this library uses [guzzlehttp/guzzle](http://guzzlephp.org) internally. Please refer to the [Guzzle Exceptions documentation](http://docs.guzzlephp.org/en/stable/quickstart.html#exceptions) to see how to handle [exceptions] properly. - -[exceptions]: http://php.net/exception diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/composer.json b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/composer.json deleted file mode 100644 index fe1e94a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/composer.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "renanbr/crossref-client", - "description": "Client for CrossRef REST API", - "keywords": ["crossref", "client", "rest", "api", "api-client", "crossref-api", "crossref-client"], - "type": "library", - "license": "MIT", - "authors": [{ - "name": "Renan de Lima Barbosa", - "email": "renandelima@gmail.com" - }], - "autoload": { - "files": ["src/CrossRefClient.php"] - }, - "autoload-dev": { - "psr-4": { - "RenanBr\\CrossRefClient\\Test\\": "tests/" - } - }, - "require": { - "php": ">=5.6.0", - "guzzlehttp/guzzle": "^6.2", - "kevinrob/guzzle-cache-middleware": "^3.1", - "psr/simple-cache": "^1.0" - }, - "require-dev": { - "cache/array-adapter": "^1.0", - "cache/simple-cache-bridge": "^1.0", - "friendsofphp/php-cs-fixer": "^2.8", - "phpunit/phpunit": "^5.7 || ^6.0" - }, - "config": { - "sort-packages": true - }, - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/phpunit.xml b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/phpunit.xml deleted file mode 100644 index e8c5ee5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/phpunit.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - tests - - - - - src - - - diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/src/CrossRefClient.php b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/src/CrossRefClient.php deleted file mode 100644 index cdbce6e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/src/CrossRefClient.php +++ /dev/null @@ -1,185 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace RenanBr; - -use GuzzleHttp; -use GuzzleHttp\Client; -use GuzzleHttp\Exception\ClientException; -use GuzzleHttp\HandlerStack; -use GuzzleHttp\Middleware; -use GuzzleHttp\Psr7\Request; -use Kevinrob\GuzzleCache\CacheMiddleware; -use Kevinrob\GuzzleCache\Storage\Psr16CacheStorage; -use Kevinrob\GuzzleCache\Strategy\GreedyCacheStrategy; -use Psr\SimpleCache\CacheInterface; - -class CrossRefClient -{ - const BASE_URI = 'https://api.crossref.org'; - const CACHE_TTL = 1200; // 20 minutes - const LIB_VERSION = '1.x-dev'; - - /** @var Client */ - private $httpClient; - - /** @var string */ - private $userAgent; - - /** @var CacheInterface */ - private $cache; - - /** @var string */ - private $version; - - public function __construct(Client $httpClient = null) - { - $this->httpClient = $httpClient ?: new Client(); - } - - /** - * @param string $path - * @param array $parameters - * @return array - */ - public function request($path, array $parameters = []) - { - $uri = $this->buildUri($path); - $parameters = $this->encodeParameters($parameters); - $this->prepareHttpClient(); - $response = $this - ->httpClient - ->request('GET', $uri, [ - 'query' => $parameters, - 'headers' => [ - 'Accept' => 'application/json', - ], - ]) - ; - - return GuzzleHttp\json_decode($response->getBody(), true); - } - - /** - * @param string $path - * @return bool - */ - public function exists($path) - { - try { - $uri = $this->buildUri($path); - $this->prepareHttpClient(); - - return 200 === $this - ->httpClient - ->request('HEAD', $uri) - ->getStatusCode() - ; - } catch (ClientException $exception) { - if ($exception->hasResponse() && 404 === $exception->getResponse()->getStatusCode()) { - return false; - } - throw $exception; - } - } - - /** - * @param string $userAgent - */ - public function setUserAgent($userAgent) - { - $this->userAgent = $userAgent; - } - - public function setCache(CacheInterface $cache) - { - $this->cache = $cache; - } - - /** - * @param string $version - */ - public function setVersion($version) - { - $this->version = $version; - } - - /** - * @param string $path - * @return string - */ - private function buildUri($path) - { - // Prepends version to the path when it's available and path is relative - if ($this->version && '/' !== mb_substr($path, 0, 1)) { - $path = $this->version . '/' . $path; - } - - return self::BASE_URI . '/' . ltrim($path, '/'); - } - - /** - * @param array $parameters - * @return array - * @see https://github.com/CrossRef/rest-api-doc#multiple-filters - * @see https://github.com/CrossRef/rest-api-doc#facet-counts - */ - private function encodeParameters(array $parameters) - { - $encodable = ['filter', 'facet']; - foreach ($encodable as $key) { - if (!isset($parameters[$key]) || !is_array($parameters[$key])) { - continue; - } - $encoded = []; - foreach ($parameters[$key] as $name => $value) { - if (!is_array($value)) { - $value = [$value]; - } - foreach ($value as $actual) { - if (is_bool($actual)) { - $actual = $actual ? 'true' : 'false'; - } - $encoded[] = $name . ':' . $actual; - } - } - $parameters[$key] = implode(',', $encoded); - } - - return $parameters; - } - - private function prepareHttpClient() - { - $handler = $this->httpClient->getConfig('handler'); - - // Prepends middleware that injects User-Agent header - $userAgentName = __CLASS__ . '_user_agent'; - $handler->remove($userAgentName); - $handler->unshift(Middleware::mapRequest(function (Request $request) { - return $request->withHeader('User-Agent', implode(' ', array_filter([ - $this->userAgent, - sprintf('RenanBr-CrossRef-Client/%s', self::LIB_VERSION), - GuzzleHttp\default_user_agent() - ]))); - }), $userAgentName); - - // Appends cache middleware - $cacheName = __CLASS__ . '_cache'; - $handler->remove($cacheName); - $this->cache && $handler->push(new CacheMiddleware( - new GreedyCacheStrategy( - new Psr16CacheStorage($this->cache), - self::CACHE_TTL - ) - ), $cacheName); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/CachingTest.php b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/CachingTest.php deleted file mode 100644 index 117b937..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/CachingTest.php +++ /dev/null @@ -1,63 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace RenanBr\CrossRefClient\Test; - -use Cache\Adapter\PHPArray\ArrayCachePool; -use Cache\Bridge\SimpleCache\SimpleCacheBridge; -use GuzzleHttp\Handler\MockHandler; -use GuzzleHttp\HandlerStack; -use GuzzleHttp\Psr7\Response; - -class CachingTest extends TestCase -{ - public function testRequest() - { - $firstClient = $this->buildClient( - HandlerStack::create( - new MockHandler([ - new Response(200, [], '"first"'), - new Response(200, [], '"first again"'), - ]) - ) - ); - - $secondClient = $this->buildClient( - HandlerStack::create( - new MockHandler([ - new Response(200, [], '"second"'), - new Response(200, [], '"second again"'), - ]) - ) - ); - - $thirdClient = $this->buildClient( - HandlerStack::create( - new MockHandler([ - new Response(200, [], '"third"'), - new Response(200, [], '"third again"'), - ]) - ) - ); - - $cache = new SimpleCacheBridge(new ArrayCachePool()); - $firstClient->setCache($cache); - // $secondClient has no cache intentionally - $thirdClient->setCache($cache); - - $this->assertSame('first', $firstClient->request('foo')); - $this->assertSame('first', $firstClient->request('foo')); - $this->assertSame('second', $secondClient->request('foo')); - $this->assertSame('second again', $secondClient->request('foo')); - $this->assertSame('first', $thirdClient->request('foo')); - $this->assertSame('first', $thirdClient->request('foo')); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/ExistsOperationTest.php b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/ExistsOperationTest.php deleted file mode 100644 index 33bfb60..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/ExistsOperationTest.php +++ /dev/null @@ -1,64 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace RenanBr\CrossRefClient\Test; - -use GuzzleHttp\Handler\MockHandler; -use GuzzleHttp\HandlerStack; -use GuzzleHttp\Middleware; -use GuzzleHttp\Psr7\Response; - -class ExistsOperationTest extends TestCase -{ - public function testPositiveResponseReading() - { - $client = $this->buildClient( - HandlerStack::create( - new MockHandler([ - new Response(200), - ]) - ) - ); - - $this->assertTrue($client->exists('it/exists')); - } - - public function testNegativeResponseReading() - { - $client = $this->buildClient( - HandlerStack::create( - new MockHandler([ - new Response(404), - ]) - ) - ); - - $this->assertFalse($client->exists('not/found')); - } - - public function testTargetedEndpoint() - { - $handlerStack = HandlerStack::create( - new MockHandler([ - new Response(200), - ]) - ); - $transactions = []; - $handlerStack->push(Middleware::history($transactions)); - $client = $this->buildClient($handlerStack); - - $client->exists('foo/bar'); - - $request = $transactions[0]['request']; - $this->assertSame('HEAD', $request->getMethod()); - $this->assertSame('https://api.crossref.org/foo/bar', (string) $request->getUri()); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/ParametersEncodingTest.php b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/ParametersEncodingTest.php deleted file mode 100644 index 5a6531f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/ParametersEncodingTest.php +++ /dev/null @@ -1,124 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace RenanBr\CrossRefClient\Test; - -use GuzzleHttp\Handler\MockHandler; -use GuzzleHttp\HandlerStack; -use GuzzleHttp\Middleware; -use GuzzleHttp\Psr7\Response; - -class ParametersEncodingTest extends TestCase -{ - public function testFilterEncoding() - { - $handlerStack = HandlerStack::create( - new MockHandler([ - new Response(200, [], 'null'), - ]) - ); - $transactions = []; - $handlerStack->push(Middleware::history($transactions)); - $client = $this->buildClient($handlerStack); - - $client->request('with/parameters', [ - 'filter' => [ - 'foobar' => 'barfoo', - 'foo' => true, - 'bar' => false, - ], - ]); - - $request = $transactions[0]['request']; - parse_str($request->getUri()->getQuery(), $query); - $this->assertSame( - ['filter' => 'foobar:barfoo,foo:true,bar:false'], - $query - ); - } - - public function testFacetEncoding() - { - $handlerStack = HandlerStack::create( - new MockHandler([ - new Response(200, [], 'null'), - ]) - ); - $transactions = []; - $handlerStack->push(Middleware::history($transactions)); - $client = $this->buildClient($handlerStack); - - $client->request('with/parameters', [ - 'facet' => [ - 'foo' => 'oof', - 'bar' => 'rab', - ], - ]); - - $request = $transactions[0]['request']; - parse_str($request->getUri()->getQuery(), $query); - $this->assertSame( - ['facet' => 'foo:oof,bar:rab'], - $query - ); - } - - public function testEncodedParametersMustNotBeTouched() - { - $handlerStack = HandlerStack::create( - new MockHandler([ - new Response(200, [], 'null'), - ]) - ); - $transactions = []; - $handlerStack->push(Middleware::history($transactions)); - $client = $this->buildClient($handlerStack); - - $client->request('with/parameters', [ - 'filter' => 'foo', - 'facet' => 'bar', - ]); - - $request = $transactions[0]['request']; - $this->assertSame( - 'filter=foo&facet=bar', - $request->getUri()->getQuery() - ); - } - - public function testArrayValueEncoding() - { - $handlerStack = HandlerStack::create( - new MockHandler([ - new Response(200, [], 'null'), - ]) - ); - $transactions = []; - $handlerStack->push(Middleware::history($transactions)); - $client = $this->buildClient($handlerStack); - - $client->request('with/array/values', [ - 'filter' => [ - 'doi' => [ - '10.5555/12345678', - '10.5555/777766665555', - ], - ], - ]); - - $request = $transactions[0]['request']; - parse_str($request->getUri()->getQuery(), $query); - $this->assertSame( - ['filter' => 'doi:10.5555/12345678,doi:10.5555/777766665555'], - $query - ); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/RequestOperationTest.php b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/RequestOperationTest.php deleted file mode 100644 index 0732b76..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/RequestOperationTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace RenanBr\CrossRefClient\Test; - -use GuzzleHttp\Handler\MockHandler; -use GuzzleHttp\HandlerStack; -use GuzzleHttp\Middleware; -use GuzzleHttp\Psr7\Response; - -class RequestOperationTest extends TestCase -{ - public function testResponseDecoding() - { - $client = $this->buildClient( - HandlerStack::create( - new MockHandler([ - new Response(200, [], '"bar"'), - ]) - ) - ); - - $this->assertSame('bar', $client->request('foo')); - } - - public function testTargetedEndpoint() - { - $handlerStack = HandlerStack::create( - new MockHandler([ - new Response(200, [], 'null'), - ]) - ); - $transactions = []; - $handlerStack->push(Middleware::history($transactions)); - $client = $this->buildClient($handlerStack); - - $client->request('foo/bar'); - - $request = $transactions[0]['request']; - $this->assertSame('GET', $request->getMethod()); - $this->assertSame('https://api.crossref.org/foo/bar', (string) $request->getUri()); - } - - public function testTargetedUrlWithParameters() - { - $handlerStack = HandlerStack::create( - new MockHandler([ - new Response(200, [], 'null'), - ]) - ); - $transactions = []; - $handlerStack->push(Middleware::history($transactions)); - $client = $this->buildClient($handlerStack); - - $client->request('with/parameters', [ - 'foo' => 'bar', - ]); - - $request = $transactions[0]['request']; - $this->assertSame( - 'https://api.crossref.org/with/parameters?foo=bar', - (string) $request->getUri() - ); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/TestCase.php b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/TestCase.php deleted file mode 100644 index 0793db1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/TestCase.php +++ /dev/null @@ -1,32 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace RenanBr\CrossRefClient\Test; - -use GuzzleHttp\Client; -use GuzzleHttp\HandlerStack; -use PHPUnit\Framework\TestCase as BaseTestCase; -use RenanBr\CrossRefClient; - -class TestCase extends BaseTestCase -{ - /** - * @return CrossRefClient - */ - protected function buildClient(HandlerStack $handler) - { - return new CrossRefClient(new Client([ - 'handler' => $handler, - ])); - - return $client; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/TiedVersionRequestTest.php b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/TiedVersionRequestTest.php deleted file mode 100644 index e79c1c1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/TiedVersionRequestTest.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace RenanBr\CrossRefClient\Test; - -use GuzzleHttp\Handler\MockHandler; -use GuzzleHttp\HandlerStack; -use GuzzleHttp\Middleware; -use GuzzleHttp\Psr7\Response; - -class TiedVersionRequestTest extends TestCase -{ - public function testRequestOperation() - { - $handlerStack = HandlerStack::create( - new MockHandler([ - new Response(200, [], 'null'), - ]) - ); - $transactions = []; - $handlerStack->push(Middleware::history($transactions)); - $client = $this->buildClient($handlerStack); - - $client->setVersion('v10'); - $client->request('foo'); - - $request = $transactions[0]['request']; - $this->assertSame('/v10/foo', $request->getUri()->getPath()); - } - - public function testExistsOperation() - { - $handlerStack = HandlerStack::create( - new MockHandler([ - new Response(200), - ]) - ); - $transactions = []; - $handlerStack->push(Middleware::history($transactions)); - $client = $this->buildClient($handlerStack); - - $client->setVersion('v50'); - $client->exists('bar'); - - $request = $transactions[0]['request']; - $this->assertSame('/v50/bar', $request->getUri()->getPath()); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/UserAgentTest.php b/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/UserAgentTest.php deleted file mode 100644 index 57bf56c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/renanbr/crossref-client/tests/UserAgentTest.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace RenanBr\CrossRefClient\Test; - -use GuzzleHttp\Handler\MockHandler; -use GuzzleHttp\HandlerStack; -use GuzzleHttp\Middleware; -use GuzzleHttp\Psr7\Response; - -class UserAgentTest extends TestCase -{ - public function testRequestOperation() - { - $handlerStack = HandlerStack::create( - new MockHandler([ - new Response(200, [], 'null'), - ]) - ); - $transactions = []; - $handlerStack->push(Middleware::history($transactions)); - $client = $this->buildClient($handlerStack); - - $client->setUserAgent('GroovyBib/1.1'); - $client->request('foo'); - - $userAgent = $transactions[0]['request']->getHeaderLine('User-Agent'); - $this->assertStringStartsWith('GroovyBib/1.1', $userAgent); - } - - public function testExistsOperation() - { - $handlerStack = HandlerStack::create( - new MockHandler([ - new Response(200), - ]) - ); - $transactions = []; - $handlerStack->push(Middleware::history($transactions)); - $client = $this->buildClient($handlerStack); - - $client->setUserAgent('FunkyLib/1.4'); - $client->exists('bar'); - - $userAgent = $transactions[0]['request']->getHeaderLine('User-Agent'); - $this->assertStringStartsWith('FunkyLib/1.4', $userAgent); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.gitignore b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.gitignore deleted file mode 100644 index d11ba5a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -.DS_Store -/vendor/ -/.idea/ -composer.lock -build/ -review/ diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.scrutinizer.yml b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.scrutinizer.yml deleted file mode 100644 index fe49aea..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.scrutinizer.yml +++ /dev/null @@ -1,53 +0,0 @@ -filter: - excluded_paths: - - 'tests/*' -checks: - php: - more_specific_types_in_doc_comments: true - naming_conventions: - local_variable: '^[a-z][a-zA-Z0-9]*$' - abstract_class_name: ^Abstract|Factory$ - utility_class_name: '.*' - constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$' - property_name: '^[a-z][a-zA-Z0-9]*$' - method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$' - parameter_name: '^[a-z][a-zA-Z0-9]*$' - interface_name: '^[A-Z][a-zA-Z0-9]*Interface$' - type_name: '^[A-Z][a-zA-Z0-9]*$' - exception_name: '^[A-Z][a-zA-Z0-9]*Exception$' - isser_method_name: '^(?:is|has|should|may|supports)' - overriding_parameter: true - param_doc_comment_if_not_inferrable: true - parameter_doc_comments: true - parameters_in_camelcaps: true - properties_in_camelcaps: true - return_doc_comment_if_not_inferrable: true - return_doc_comments: true - check_method_contracts: - verify_interface_like_constraints: true - verify_documented_constraints: true - verify_parent_constraints: true -coding_style: - php: - indentation: - general: - size: 1 - spaces: - around_operators: - bitwise: false -build: - tests: - override: - - command: 'mkdir -p build/logs' - - command: 'php vendor/bin/phpunit --coverage-clover=build/logs/clover.xml' - coverage: - file: 'build/logs/clover.xml' - format: 'clover' - nodes: - tests: true - analysis: - tests: - override: - - command: phpcs-run ./ - use_website_config: false - - php-scrutinizer-run \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.travis.yml b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.travis.yml deleted file mode 100644 index 67c5510..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: php -php: - - '7.0' - - '7.1' - -before_script: - - wget http://getcomposer.org/composer.phar - - php composer.phar install --dev --no-interaction - - php composer.phar run-script post-install-cmd - -script: - - mkdir -p build/logs - - phpunit --coverage-clover build/logs/clover.xml tests - -after_script: - - php vendor/bin/coveralls -v diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/CHANGELOG.md b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/CHANGELOG.md deleted file mode 100644 index b80d261..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/CHANGELOG.md +++ /dev/null @@ -1,75 +0,0 @@ -# CHANGELOG - -## 2.1.7 - 2019-03-24 - -* bugfix of [PR 64](https://github.com/seboettg/citeproc-php/pull/64) Call to a member function getRangeDelimiter() on null -* bugfix of [PR 63](https://github.com/seboettg/citeproc-php/pull/63) Don't show "et-al" text for citation witch don't reach et-al number - -## 2.1.6 - 2018-10-13 - -* bugfix of [issue 59](https://github.com/seboettg/citeproc-php/issues/59) -* bugfix of [issue 58](https://github.com/seboettg/citeproc-php/issues/60) - -## 2.1.5 - 2018-09-23 - -* bugfix of [issue 57](https://github.com/seboettg/citeproc-php/issues/57) -* bugfix of [issue 58](https://github.com/seboettg/citeproc-php/issues/58) - -## 2.1.4 - 2018-07-30 - -* bugfix of [PR 52](https://github.com/seboettg/citeproc-php/pull/52): Fix locale overrides using inactive language -* bugfix of [PR 53](https://github.com/seboettg/citeproc-php/pull/53): Guard against unset variable -* improvement of [PR 54](https://github.com/seboettg/citeproc-php/pull/54): Add loading of primary dialect - -Thanks to [@jonathonwalz](https://github.com/jonathonwalz) for these Pull Requests. - -## 2.1.3 - 2018-06-15 - -* bugfix for issue [50](https://github.com/seboettg/citeproc-php/issues/50): In some cases punctuation in quote did not work. - -## 2.1.2 - 2018-04-18 - -* bugfix for issue [49](https://github.com/seboettg/citeproc-php/issues/49): Stylesheets that used the ``text-case="title"`` option, in combination with some in Slavic (or Serbo-Croatian) language, caused errors that destroyed the entire output. This was caused by the capitalization of non-letter characters. - -## 2.1.1 - 2018-02-08 -* Support for render variables that are using "-short" suffixes, if Text tags have a "form" attribute which is set to "short": ````. This is used e.g. for abbreviated journal title (container-title-short) and occurred a wrong output in different styles (for example AMA American Medical Association) in previous citeproc-php versions. Have a look at issue [47](https://github.com/seboettg/citeproc-php/issues/47). - -## 2.1.0 - 2017-11-23 - -* possibility to filter specific citations independently from CSL input data (inspired by @CarlosCraviotto PR #39). Have a look [here](https://github.com/seboettg/citeproc-php/blob/master/README.md#filter-citations). -* possibility to use custom Lambda functions to enrich bibliographies and citations with additional HTML markup. Have a look [here](https://github.com/seboettg/citeproc-php/blob/master/README.md#advanced-usage-of-citeproc-php). - -## 2.0.4 - 2017-11-15 - -* bugfix for issue [46](https://github.com/seboettg/citeproc-php/issues/46): initialize names didn't work for cyrillic characters - - -## 2.0.3 - 2017-11-11 - -* bugfix for issue [44](https://github.com/seboettg/citeproc-php/issues/44): Missing title with chicago-fullnote-bibliography. The problem occurred because of an incorrect implementation of the "none-condition" in ChooseIf. -* bugfix for an issue that appears sometimes in connection with date-parts. - -## 2.0.2 - 2017-10-04 - -* bugfix for issue [41](https://github.com/seboettg/citeproc-php/issues/41): fixed missing suppression of substituted values -* bugfix for issue [42](https://github.com/seboettg/citeproc-php/issues/42): citeproc-php caused a fatal error if php 5.6 was used -* citeproc-php uses now version 1.2 of [seboettg/collection](https://packagist.org/packages/seboettg/collection) - -## 2.0.1 - 2017-05-23 - -* bugfix for issue [36](https://github.com/seboettg/citeproc-php/issues/36). -* bugfix for issue [37](https://github.com/seboettg/citeproc-php/issues/37). -* solves a problem of exceeded script runtime which sometimes occurs while running `composer update`. Now, -the depended citation styles and locales are not longer composer dependencies but will be cloned by a shell script instead which simply will triggered from `composer update`. - -## 2.0.0 - 2017-05-11 - -* 1st stable release -* fix issues that causing if styles using uncertain dates -* add info node parser and getInfo() method in Context class. Thus, it's now possible to get meta data of given stylesheet -* fix issues in et-al abbreviation which was appearing in citation - -## 2.0.0-beta 2017-05-01 - -* beta release -* all features of milestone "Version 2.0" have been implemented diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/CONTRIBUTING.md b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/CONTRIBUTING.md deleted file mode 100644 index 3e58eab..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/CONTRIBUTING.md +++ /dev/null @@ -1,51 +0,0 @@ -## Contribution ## - -citeproc-php is an Open Source project. You can support it by reporting bugs, contributing code or contributing documentation. - -### Star the Repo ### -Developing software is a hard job and one has to spend a lot of time. Every open-source developer is looking forward -about esteem for his work. If you use citeproc-php and if you like it, star it and talk about it in Blogs. - -### Reporting a Bug ### -Use the [Issue Tracker](https://github.com/seboettg/citeproc-php/issues) in order to report a bug. - -### Contribute Code ### -You are a developer and you like to help developing new features or bug fixes? Fork citeproc-php, setup a workspace and send -a pull request. - -I would suggest the following way: - -* Fork citeproc-php on Github -* Clone the forked repo -```bash -$ git clone https://github.com//citeproc-php -``` -* Setup your preferred IDE -* Run the UnitTests within your IDE -* Write a test case for your issue. My tests are based on the original [test-suite](https://github.com/citation-style-language/test-suite). You can build custom (human-readable) test cases following the described [Fixture layout](https://github.com/citation-style-language/test-suite#fixture-layout). -* Additionally, you have to translate (human-readable) test-cases into json format (machine-readable) -```bash -$ cd /tests/fixtures/basic-tests -$ ./processor.py -g -``` -* create a test function within an already existing test class or create a new test class: -```php -_testRenderTestSuite("myBrandNewFunction"); - } - // ... -} -``` -* Make sure that your test case covers relevant code parts -* Implement the code until all tests finishing successfully -* Send a pull request diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/ISSUE_TEMPLATE.md b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/ISSUE_TEMPLATE.md deleted file mode 100644 index 5b50fd1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,35 +0,0 @@ -# Please follow the general troubleshooting steps first: - -- [ ] I read the README and followed the instructions. -- [ ] I am sure that the used CSL metadata follows the [CSL schema](https://github.com/citation-style-language/schema/blob/master/csl-data.json). -- [ ] I use a valid CSL stylesheet - -### Bug reports: - -Please replace this line with a brief summary of your issue - -#### Used CSL stylesheet: #### - -Please replace this line with the name of your used CSL stylesheet (i.e. chicago-author-date-16th-edition.csl) - -#### Used CSL metadata #### - -Please replace these lines with your used metadata, for instance: - - [ - { - "author": [ - { - "family": "Anderson", - "given": "John" - }, - { - "family": "Brown", - "given": "John" - } - ], - "id": "ITEM-2", - "type": "book", - "title": "Two authors writing a book" - } - ] diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/LICENSE.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/LICENSE.txt deleted file mode 100644 index b7a3447..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Sebastian Böttger - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/README.md b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/README.md deleted file mode 100644 index 2e1dfcf..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/README.md +++ /dev/null @@ -1,390 +0,0 @@ -# citeproc-php # -[![Latest Stable Version](https://poser.pugx.org/seboettg/citeproc-php/v/stable)](https://packagist.org/packages/seboettg/citeproc-php) -[![Unstable Version](https://poser.pugx.org/seboettg/citeproc-php/v/unstable)](https://packagist.org/packages/seboettg/citeproc-php) -[![Total Downloads](https://poser.pugx.org/seboettg/citeproc-php/downloads)](https://packagist.org/packages/seboettg/citeproc-php/stats) -[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://opensource.org/licenses/MIT) -[![Build Status](https://scrutinizer-ci.com/g/seboettg/citeproc-php/badges/build.png?b=master)](https://scrutinizer-ci.com/g/seboettg/citeproc-php/build-status/master) -[![Code Coverage](https://scrutinizer-ci.com/g/seboettg/citeproc-php/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/seboettg/citeproc-php/code-structure/master/code-coverage/src/) -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/seboettg/citeproc-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/seboettg/citeproc-php/?branch=master) -[![Code Intelligence Status](https://scrutinizer-ci.com/g/seboettg/citeproc-php/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence) -![PHP](https://img.shields.io/badge/PHP-5.6-green.svg?style=flat) -![PHP](https://img.shields.io/badge/PHP-7.0-green.svg?style=flat) -![PHP](https://img.shields.io/badge/PHP-7.1-green.svg?style=flat) - -citeproc-php is a full-featured CSL 1.0.1 processor that renders bibliographic metadata into html formatted citations or bibliographies using CSL stylesheets. citeproc-php renders bibliographies as well as citations (except of [Citation-specific Options](http://docs.citationstyles.org/en/stable/specification.html#citation-specific-options)). - -## Citation Style Language CSL ## - -The Citation Style Language (CSL) is an XML-based format to describe the formatting of citations, notes and bibliographies, offering: - -* An open format -* Compact and robust styles -* Extensive support for style requirements -* Automatic style localization -* Infrastructure for style distribution and updating -* Thousands of freely available styles (Creative Commons BY-SA licensed) - -For additional documentation of CSL visit [http://citationstyles.org](http://citationstyles.org). - -## Version 1.x ## - -The old version 1.x (established by Ron Jerome) has been moved to [this Repository](https://github.com/seboettg/citeproc-php-old). - -## Version 2.x ## - -Version 2.x is a completely new written version of citeproc-php. In this connection, the license of version 2.x has been changed from GPLv3 to MIT. - -## Installing citeproc-php ## - -The recommended way to install citeproc-php is through -[Composer](https://getcomposer.org). - -```bash -$ curl -sS https://getcomposer.org/installer | php -``` -Add the following lines to your `composer.json` file in order to add required program libraries as well as CSL styles and locales: - -```javascript -{ - "name": "vendor-name/program-name", - "repositories": [ - { - "type": "package", - "package": { - "name": "citation-style-language/locales", - "version":"1.0.0", - "source": { - "type": "git", - "url": "https://github.com/citation-style-language/locales.git", - "reference": "master" - } - } - }, - { - "type": "package", - "package": { - "name": "citation-style-language/styles-distribution", - "version":"1.0.0", - "source": { - "type": "git", - "url": "https://github.com/citation-style-language/styles-distribution.git", - "reference": "master" - } - } - } - ], - "require": { - "citation-style-language/locales":"@dev", - "citation-style-language/styles-distribution":"@dev", - "seboettg/citeproc-php": "^2" - } -} -``` - -Next, run the Composer command to install the latest stable version of citeproc-php and its dependencies: - -```bash -$ php composer.phar install --no-dev -``` - -After installing, you need to require Composer's autoloader: - -```php -require 'vendor/autoload.php'; -``` - -You can then later update citeproc-php using composer: - - ```bash -$ composer.phar update --no-dev - ``` - -If you have trouble using composer you will find further information on [https://getcomposer.org/doc/](https://getcomposer.org/doc/). - -## How to use citeproc-php ## - -citeproc-php renders bibliographical metadata into html formatted citations or bibliographies using a stylesheet which defines the -citation rules. - - -### Get the metadata of your publications ### - -Create a project folder: - -```bash -$ mkdir mycslproject -$ cd mycslproject -``` - -First, you need json formatted metadata array of publication's metadata. There are a lot of services that supports CSL exports. For instance [BibSonomy](https://www.bibsonomy.org), [Zotero](https://www.zotero.org/), [Mendeley](https://www.mendeley.com/). -If you don't use any of these services, you can use the following test data for a first step. - -```javascript -[ - { - "author": [ - { - "family": "Doe", - "given": "James", - "suffix": "III" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "My Anonymous Heritage", - "type": "book" - }, - { - "author": [ - { - "family": "Anderson", - "given": "John" - }, - { - "family": "Brown", - "given": "John" - } - ], - "id": "ITEM-2", - "type": "book", - "title": "Two authors writing a book" - } -] -``` -Copy this into a file in your project root and name that file `metadata.json`. - -### Build a first simple script ### - -```php -render(json_decode($data), "bibliography"); -``` - -You can also render citations instead of bibliographies: - -```php -echo $citeProc->render(json_decode($data), "citation"); -``` - -### Filter Citations ### - -Since version 2.1 you have also the possibility to apply a filter so that just specific citations appear. - -```php -

This a wise sentence -render($data, "citation", json_decode('[{"id":"item-1"}]')); ?>.

-

This is the most wise setence -render($data, "citation", json_decode('[{"id":"item-1"},{"id":"ITEM-2"}]')); ?>.

-``` - -### Bibliography-specific styles using CSS ### - -Some CSL stylesheets use bibliography-specific style options like hanging indents or alignments. To get an effect of these options you can render separated Cascading Stylesheets using CiteProc. -You have to insert these styles within the `` tag of your html output page. - -```php -render(json_decode($data), "bibliography"); -$cssStyles = $citeProc->renderCssStyles(); -?> - - - CSL Test - - - -

Bibliography

- - - -``` - -Now, you can watch and test the output using PHP's internal web server: - -```bash -$ php -S localhost:8080 -``` - -Start your Browser and open the URL `http://localhost:8080`. - -Under `examples` folder you will find another example script. - - -## Advanced usage of citeproc-php ## - -Since version 2.1, citeproc-php comes with additional features that are not a part of the CSL specifications. - -You can enrich bibliographies and citations with additional HTML tags to inject links (i.e. to set a link to an author's CV), or to add other html markup. - -### Use Lambda Functions to setup citeproc-php in order to render advanced citations or bibliographies ### - -```php -id . '">' . $renderedText . ''; -}; - -//pimp author names -$authorFunction = function($authorItem, $renderedText) { - if (isset($authorItem->id)) { - return '' . $renderedText . ''; - } - return $renderedText; -}; -?> -``` - -As you can see, `$titleFunction` wraps the title and `$authorFunction` wraps author's name in a link. - -Assign these functions to its associated CSL variable (in this case title and author) as follows. - -```php - $titleFunction, - "author" => $authorFunction -]; - -$citeProc = new CiteProc($style, "en-US", $additionalMarkup); -?> - - - CSL Test - - -

Bibliography

- render(json_decode($data), "bibliography"); ?> - - -``` - -You can also use custom Lambda Functions in order to enrich citations with additional HTML markup. - -If you want to restrict citeproc-php to use a custom Lambda Function either for bibliographies or citations, or you want to apply different -functions for both, you can define the array as follows: - -```php - [ - "author" => $authorFunction, - "title" => $titleFunction, - "csl-entry" => function($cslItem, $renderedText) { - return '' . $renderedText; - } - ], - "citation" => [ - "citation-number" => function($cslItem, $renderedText) { - return ''.$renderedText.''; - } - ] -]; - -$citeProc = new CiteProc($style, "en-US", $additionalMarkup); - -?> -

This ia a wise sentence render(json_decode($data), "citation", json_decode('[{"id":"item-1"}]')); ?>.

-

Literature

-render(json_decode($data), "bibliography"); - -``` -In this example each entry of the bibliography gets an anchor by its `id` and the citation (in Elsevier-Vancouver style [1]) gets an URL with a fragment by its `id`. Hence, every citation mark gets a link to its entry in the bibliography. -Further examples you will find in the example folder. - -### Good to know ### -* A custom Lambda Function must have two parameters (`function ($item, $renderedValue) { ... }`) in their signature and must return a string. -* The 1st parameter of a custom Lambda Function is the item (either a citation item or a name item. Both of type `\stdClass`). The 2nd parameter is the rendered result of the associated item. -* Custom Lambda Functions may be applied on all Standard Variables (according to the [CSL specification](http://docs.citationstyles.org/en/1.0.1/specification.html#standard-variables)). -* Custom Lambda Functions may be applied on all Name Variables (according to the [CSL specification](http://docs.citationstyles.org/en/1.0.1/specification.html#name-variables)). Be aware, just one name item will passed as parameter instead of the full citation item. -* Custom Lambda Function for Number Variables or Date Variables will be ignored. -* ```csl-entry``` is not a valid variable according to the CSL specifications. citeproc-php use ```csl-entry``` to hook in and apply a custom Lambda Function after a whole citation item or bibliography entry is rendered. - -## Contribution ## - -citeproc-php is an Open Source project. You can support it by reporting bugs, contributing code or contributing documentation. - -### Star the Repo ### -Developing software is a hard job and one has to spend a lot of time. Every open-source developer is looking forward -about esteem for his work. If you use citeproc-php and if you like it, star it and talk about it in Blogs. - -### Reporting a Bug ### -Use the [Issue Tracker](https://github.com/seboettg/citeproc-php/issues) in order to report a bug. - -### Contribute Code ### -You are a developer and you like to help developing new features or bug fixes? Fork citeproc-php, setup a workspace and send -a pull request. - -I would suggest the following way: - -* Fork citeproc-php on Github -* Clone the forked repo -```bash -$ git clone https://github.com//citeproc-php -``` -* Setup your preferred IDE -* Run the UnitTests within your IDE -* Write a test case for your issue. My tests are based on the original [test-suite](https://github.com/citation-style-language/test-suite). You can build custom (human-readable) test cases following the described [Fixture layout](https://github.com/citation-style-language/test-suite#fixture-layout). -* Additionally, you have to translate (human-readable) test-cases into json format (machine-readable) -```bash -$ cd /tests/fixtures/basic-tests -$ ./processor.py -g -``` -* create a test function within an already existing test class or create a new test class: -```php -_testRenderTestSuite("myBrandNewFunction"); - } - // ... -} -``` -* Implement or adapt your code as long as all tests finishing successfully -* Make sure that your test case covers relevant code parts -* Send a pull request - -## Testing ## - -You can also run test cases without IDE: - -```bash -$ composer test -``` diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/composer.json b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/composer.json deleted file mode 100644 index b196b4e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/composer.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "seboettg/citeproc-php", - "description": "Full-featured CSL processor (https://citationstyles.org)", - "license": "MIT", - "authors": [ - { - "name": "Sebastian Böttger", - "email": "seboettg@gmail.com", - "homepage": "http://sebastianboettger.net", - "role": "Developer" - } - ], - "support": { - "issues": "https://github.com/seboettg/citeproc-php/issues" - }, - "autoload": { - "psr-4": { - "Seboettg\\": "src/Seboettg/" - } - }, - "autoload-dev": { - "psr-4": { - "Seboettg\\": "tests/src/Seboettg/" - } - }, - "require": { - "seboettg/collection": "^1.2", - "myclabs/php-enum": "^1.5", - "symfony/polyfill-mbstring": "v1.10.*", - "ext-simplexml": "*", - "ext-json": "*", - "ext-intl": "*" - }, - "require-dev": { - "satooshi/php-coveralls": "^1", - "phpunit/phpunit": "6.0.13" - }, - - "scripts": { - "post-install-cmd": [ - "./install.sh styles-distribution", - "./install.sh locales", - "cd ./tests/fixtures/basic-tests/; ./processor.py -g", - "chmod +x vendor/bin/phpunit" - ], - "post-update-cmd": [ - "./install.sh styles-distribution", - "./install.sh locales", - "cd ./tests/fixtures/basic-tests/; ./processor.py -g", - "chmod +x vendor/bin/phpunit" - ], - "test": "vendor/bin/phpunit" - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/example/data.json b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/example/data.json deleted file mode 100644 index f14fd4b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/example/data.json +++ /dev/null @@ -1,158 +0,0 @@ -[ - { - "author": [ - { - "family": "Doe", - "given": "James", - "suffix": "III" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "My Anonymous Heritage", - "type": "book" - }, - { - "author": [ - { - "family": "Anderson", - "given": "John", - "id": "anderson.j" - }, - { - "family": "Brown", - "given": "John", - "id": "brown.j" - } - ], - "issued": { - "date-parts": [ - [ - "1998" - ] - ] - }, - "id": "ITEM-2", - "type": "book", - "title": "Two authors writing a book" - }, - { - "DOI": "10.1016/j.jhydrol.2008.05.025", - "ISSN": "0022-1694", - "author": [ - { - "family": "Cole", - "given": "Steven J.", - "id": "steven.j" - }, - { - "family": "Moore", - "given": "Robert", - "id": "moore.r" - } - ], - "container-title": "Journal of Hydrology", - "id": "ITEM-3", - "issue": "3-4", - "issued": { - "date-parts": [ - [ - 2008 - ] - ] - }, - "page": "159-181", - "title": "Hydrological modelling using raingauge- and radar-based estimators of areal rainfall", - "type": "article-journal", - "url": "http://www.sciencedirect.com/science/article/pii/S0022169408002394", - "volume": "358" - }, - { - "abstract": "The PUMA project fosters the Open Access movement und aims at a better support of the researcher’s publication work. PUMA stands for an integrated solution, where the upload of a publication results automatically in an update of both the personal and institutional homepage, the creation of an entry in a social bookmarking systems like BibSonomy, an entry in the academic reporting system of the university, and its publication in the institutional repository. In this poster, we present the main features of our solution.", - "annote": "", - "author": [ - { - "family": "Benz", - "given": "Dominik", - "id": "benz" - }, - { - "family": "Hotho", - "given": "Andreas", - "id": "hotho" - }, - { - "family": "Jäschke", - "given": "Robert", - "id": "rjaeschke" - }, - { - "family": "Stumme", - "given": "Gerd", - "id": "stumme" - }, - { - "family": "Halle", - "given": "Axel" - }, - { - "family": "Lima", - "given": "Angela Gerlach Sanches" - }, - { - "family": "Steenweg", - "given": "Helge" - }, - { - "family": "Stefani", - "given": "Sven" - }, - { - "family": "Dietrich", - "given": "Bernhard" - } - ], - "citation-label": "benz2010academic", - "collection-title": "Lecture Notes in Computer Science", - "container-title": "Proceedings of the European Conference on Research and Advanced Technology for Digital Libraries", - "container-title-short": "ECDL", - "edition": "", - "event-date": { - "date-parts": [ - [ - "2010" - ] - ], - "literal": "2010" - }, - "event-place": "Berlin/Heidelberg", - "id": "ITEM-4", - "interhash": "db94bafecb815048ede11f6d28e5a9f1", - "intrahash": "11bdf4636bc92aed96461eace25484f7", - "issue": "", - "issued": { - "date-parts": [ - [ - "2010" - ] - ], - "literal": "2010" - }, - "keyword": "2010 ecdl myown puma", - "number-of-pages": "3", - "page": "417--420", - "page-first": "417", - "publisher": "Springer", - "publisher-place": "Berlin/Heidelberg", - "status": "", - "title": "Academic Publication Management with PUMA - collect, organize and share publications", - "type": "paper-conference", - "volume": "6273" - } -] diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/example/index.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/example/index.php deleted file mode 100644 index 6c656c4..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/example/index.php +++ /dev/null @@ -1,152 +0,0 @@ -render($data, "bibliography"); -$cssStyles = $citeProc->renderCssStyles(); -?> - - - CSL Test - - - -
-

Chapter I – Use CiteProc for Citations and Bibliographies

-

Lorem Ipsum

-

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore - magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd - gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing - elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero - eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum - dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut - labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. - Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet - render($data, "citation", json_decode('[{"id":"ITEM-4"}]')); ?>.

- -

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat - nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue - duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy - nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat - render($data, "citation", json_decode('[{"id":"ITEM-2"}]')); ?>.

- -

Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo - consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore - eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril - delenit augue duis dolore te feugait nulla facilisi.

- -

Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim - assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet - dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit - lobortis nisl ut aliquip ex ea commodo consequat render($data, "citation", json_decode('[{"id":"ITEM-1"}]')); ?>.

- -

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat - nulla facilisis render($data, "citation", json_decode('[{"id":"ITEM-3"}]')); ?>.

- -

At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem - ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor - invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et - ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet - render($data, "citation", json_decode('[{"id":"ITEM-3"},{"id":"ITEM-4"}]')); ?>.

- -

Literature

- - - - -

Chapter II – Enrich Citations and Bibliographies with additional Markup.

- - [ - "author" => function($authorItem, $renderedText) { - if (isset($authorItem->id)) { - return '' . $renderedText . ''; - } - return $renderedText; - }, - "title" => function($cslItem, $renderedText) { - return '' . $renderedText . ''; - }, - "csl-entry" => function($cslItem, $renderedText) { - return '' . $renderedText; - } - ], - "citation" => [ - "citation-number" => function($cslItem, $renderedText) { - return ''.$renderedText.''; - } - ] -]); -$data = json_decode($dataString); -$bibliography = $citeProc->render($data, "bibliography"); -$cssStyles = $citeProc->renderCssStyles(); -?> -

Lorem Ipsum

-

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore - magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd - gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing - elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero - eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum - dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut - labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. - Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet - render($data, "citation", json_decode('[{"id":"ITEM-4"}]')); ?>.

- -

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat - nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue - duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy - nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat - render($data, "citation", json_decode('[{"id":"ITEM-2"}]')); ?>.

- -

Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo - consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore - eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril - delenit augue duis dolore te feugait nulla facilisi.

- -

Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim - assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet - dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit - lobortis nisl ut aliquip ex ea commodo consequat render($data, "citation", json_decode('[{"id":"ITEM-1"}]')); ?>.

- -

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat - nulla facilisis render($data, "citation", json_decode('[{"id":"ITEM-3"}]')); ?>.

- -

At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem - ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor - invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et - ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet - render($data, "citation", json_decode('[{"id":"ITEM-3"},{"id":"ITEM-4"}]')); ?>.

- -

Literature

- -
- - - diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/install.sh b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/install.sh deleted file mode 100755 index a1bea7b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/install.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if [ -d ./vendor/citation-style-language/$1 ] - then - cd ./vendor/citation-style-language/$1 - git pull origin master - else - git clone --branch=master https://github.com/citation-style-language/$1.git vendor/citation-style-language/$1 -fi \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/phpunit.xml b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/phpunit.xml deleted file mode 100644 index 03f2406..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/phpunit.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - tests/src/Seboettg/CiteProc - - - - - - ./src - - ./vendor - ./tests - - - - - - - diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/CiteProc.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/CiteProc.php deleted file mode 100644 index 2d0ba23..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/CiteProc.php +++ /dev/null @@ -1,234 +0,0 @@ - - */ -class CiteProc -{ - - /** - * @var Context - */ - private static $context; - - - /** - * @return Context - */ - public static function getContext() - { - return self::$context; - } - - /** - * @param Context $context - */ - public static function setContext($context) - { - self::$context = $context; - } - - private $lang; - - /** - * @var string - */ - private $styleSheet; - - /** - * @var SimpleXMLElement - */ - private $styleSheetXml; - - /** - * @var array - */ - private $markupExtension; - - /** - * CiteProc constructor. - * @param string $styleSheet xml formatted csl stylesheet - * @param string $lang - * @param array $markupExtension - */ - public function __construct($styleSheet, $lang = "en-US", $markupExtension = []) - { - $this->styleSheet = $styleSheet; - $this->lang = $lang; - $this->markupExtension = $markupExtension; - } - - public function __destruct() - { - self::$context = null; - } - - /** - * @param SimpleXMLElement $style - * @throws CiteProcException - */ - private function parse(SimpleXMLElement $style) - { - $root = new Root(); - $root->initInheritableNameAttributes($style); - self::$context->setRoot($root); - $globalOptions = new GlobalOptions($style); - self::$context->setGlobalOptions($globalOptions); - - /** @var SimpleXMLElement $node */ - foreach ($style as $node) { - $name = $node->getName(); - switch ($name) { - case 'info': - self::$context->setInfo(new Info($node)); - break; - case 'locale': - self::$context->getLocale()->addXml($node); - break; - case 'macro': - $macro = new Macro($node, $root); - self::$context->addMacro($macro->getName(), $macro); - break; - case 'bibliography': - $bibliography = new Bibliography($node, $root); - self::$context->setBibliography($bibliography); - break; - case 'citation': - $citation = new Citation($node, $root); - self::$context->setCitation($citation); - break; - } - } - } - - /** - * @param DataList $data - * @return string - */ - protected function bibliography($data) - { - - return self::$context->getBibliography()->render($data); - } - - /** - * @param DataList $data - * @param ArrayList $citationItems - * @return string - */ - protected function citation($data, $citationItems) - { - return self::$context->getCitation()->render($data, $citationItems); - } - - /** - * @param array|DataList $data - * @param string $mode (citation|bibliography) - * @param array $citationItems - * @param bool $citationAsArray - * @return string - * @throws CiteProcException - */ - public function render($data, $mode = "bibliography", $citationItems = [], $citationAsArray = false) - { - if (is_array($data)) { - $data = CiteProcHelper::cloneArray($data); - } - - if (!in_array($mode, ['citation', 'bibliography'])) { - throw new \InvalidArgumentException("\"$mode\" is not a valid mode."); - } - - $this->init($citationAsArray); //initialize - - $res = ""; - - if (is_array($data)) { - $data = new DataList($data); - } else if (!($data instanceof DataList)) { - throw new CiteProcException('No valid format for variable data. Either DataList or array expected'); - } - - switch ($mode) { - case 'bibliography': - self::$context->setMode($mode); - // set CitationItems to Context - self::getContext()->setCitationItems($data); - $res = $this->bibliography($data); - break; - case 'citation': - if (is_array($citationItems)) { - $citationItems = new ArrayList($citationItems); - } else if (!($citationItems instanceof ArrayList)) { - throw new CiteProcException('No valid format for variable `citationItems`, ArrayList expected.'); - } - self::$context->setMode($mode); - // set CitationItems to Context - //self::getContext()->setCitationItems($data); will now set in Layout - $res = $this->citation($data, $citationItems); - } - self::setContext(null); - - return $res; - } - - /** - * initializes CiteProc and start parsing XML stylesheet - * @param bool $citationAsArray - * @throws CiteProcException - */ - public function init($citationAsArray = false) - { - self::$context = new Context($this); - self::$context->setLocale(new Locale\Locale($this->lang)); //init locale - self::$context->setCitationsAsArray($citationAsArray); - // set markup extensions - self::$context->setMarkupExtension($this->markupExtension); - $this->styleSheetXml = new SimpleXMLElement($this->styleSheet); - $this->parse($this->styleSheetXml); - } - - /** - * @return string - * @throws CiteProcException - */ - public function renderCssStyles() - { - if (self::getContext() === null) { - $this->init(); - } - - if (self::getContext()->getCssStyle() == null) { - $cssStyle = new CssStyle(self::getContext()->getBibliographySpecificOptions()); - self::getContext()->setCssStyle($cssStyle); - } - - return self::getContext()->getCssStyle()->render(); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/ConstraintInterface.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/ConstraintInterface.php deleted file mode 100644 index 9272cdc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/ConstraintInterface.php +++ /dev/null @@ -1,27 +0,0 @@ - - */ -interface ConstraintInterface -{ - /** - * @param $value - * @param null $citationNumber - * @return bool - */ - public function validate($value, $citationNumber = null); -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Disambiguate.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Disambiguate.php deleted file mode 100644 index 5aec8ff..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Disambiguate.php +++ /dev/null @@ -1,36 +0,0 @@ - - */ -class Disambiguate implements ConstraintInterface -{ - /** - * @param $value - * @param int|null $citationNumber - * @return bool - */ - public function validate($value, $citationNumber = null) - { - return false; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Factory.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Factory.php deleted file mode 100644 index baffc0f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Factory.php +++ /dev/null @@ -1,45 +0,0 @@ - - */ -class Factory extends \Seboettg\CiteProc\Util\Factory -{ - - const NAMESPACE_CONSTRAINTS = "Seboettg\\CiteProc\\Constraint\\"; - - /** - * @param string $name - * @param string $value - * @return mixed - * @throws ClassNotFoundException - */ - public static function createConstraint($name, $value) - { - $className = ""; - $parts = explode("-", $name); - array_walk($parts, function($part) use (&$className) { - $className .= ucfirst($part); - }); - $className = self::NAMESPACE_CONSTRAINTS . $className; - - if (!class_exists($className)) { - throw new ClassNotFoundException($className); - } - return new $className($value); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/IsNumeric.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/IsNumeric.php deleted file mode 100644 index a6eddc8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/IsNumeric.php +++ /dev/null @@ -1,70 +0,0 @@ - - */ -class IsNumeric implements ConstraintInterface -{ - - private $isNumeric; - - public function __construct($value) - { - $this->isNumeric = $value; - } - - /** - * @param $value - * @param int|null $citationNumber - * @return bool - */ - public function validate($value, $citationNumber = null) - { - if (isset($value->{$this->isNumeric})) { - return $this->parseValue($value->{$this->isNumeric}); - } - - return false; - } - - /** - * Tests whether the given variables (Appendix IV - Variables) contain numeric content. Content is considered - * numeric if it solely consists of numbers. Numbers may have prefixes and suffixes (“D2”, “2b”, “L2d”), and may be - * separated by a comma, hyphen, or ampersand, with or without spaces (“2, 3”, “2-4”, “2 & 4”). For example, “2nd” - * tests “true” whereas “second” and “2nd edition” test “false”. - * - * @param $evalValue - * @return bool - */ - private function parseValue($evalValue) - { - if (is_numeric($evalValue)) { - return true; - } else if (preg_match(NumberHelper::PATTERN_ORDINAL, $evalValue)) { - $numberFormatter = new NumberFormatter(CiteProc::getContext()->getLocale()->getLanguage(), NumberFormatter::ORDINAL); - return $numberFormatter->parse($evalValue) !== false; - } else if (preg_match(NumberHelper::PATTERN_ROMAN, $evalValue)) { - return NumberHelper::roman2Dec($evalValue) !== false; - } else if (preg_match(NumberHelper::PATTERN_COMMA_AMPERSAND_RANGE, $evalValue)) { - return true; - } - return false; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/IsUncertainDate.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/IsUncertainDate.php deleted file mode 100644 index a9085b0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/IsUncertainDate.php +++ /dev/null @@ -1,52 +0,0 @@ - - */ -class IsUncertainDate implements ConstraintInterface -{ - /** - * @var string - */ - private $varName; - - - private $match; - - public function __construct($value, $match = "all") - { - $this->varName = $value; - $this->match = $match; - } - - /** - * @param $value - * @param int|null $citationNumber - * @return bool - */ - public function validate($value, $citationNumber = null) - { - if (!empty($value->{$this->varName})) { - if (isset($value->{$this->varName}->{'circa'}) && !empty($value->{$this->varName})) { - return true; - } - } - - return false; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Jurisdiction.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Jurisdiction.php deleted file mode 100644 index 00a50aa..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Jurisdiction.php +++ /dev/null @@ -1,32 +0,0 @@ - - */ -class Jurisdiction implements ConstraintInterface -{ - /** - * @param $value - * @param int|null $citationNumber - * @return bool - */ - public function validate($value, $citationNumber = null) - { - return false; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Locator.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Locator.php deleted file mode 100644 index 511515b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Locator.php +++ /dev/null @@ -1,36 +0,0 @@ - - */ -class Locator implements ConstraintInterface -{ - /** - * @param $value - * @param int|null $citationNumber - * @return bool - */ - public function validate($value, $citationNumber = null) - { - return false; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Position.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Position.php deleted file mode 100644 index 85b2c84..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Position.php +++ /dev/null @@ -1,55 +0,0 @@ - - */ -class Position implements ConstraintInterface -{ - /** - * @param $value - * @param int|null $citationNumber - * @return bool - */ - public function validate($value, $citationNumber = null) - { - return false; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Type.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Type.php deleted file mode 100644 index be4e049..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Type.php +++ /dev/null @@ -1,52 +0,0 @@ - - */ -class Type implements ConstraintInterface -{ - - /** - * @var array - */ - private $typeValue; - - /** - * @var string - */ - private $match; - - /** - * Type constructor. - * @param string $value - * @param $match - */ - public function __construct($value, $match = "any") - { - $this->typeValue = explode(" ", $value); - $this->match = $match; - } - - /** - * @param $value - * @param int|null $citationNumber - * @return bool - */ - public function validate($value, $citationNumber = null) - { - return in_array($value->type, $this->typeValue); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Variable.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Variable.php deleted file mode 100644 index b846cba..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Variable.php +++ /dev/null @@ -1,44 +0,0 @@ - - */ -class Variable implements ConstraintInterface -{ - /** - * @var string - */ - private $name; - - /** - * Variable constructor. - * @param $name - */ - public function __construct($name) - { - $this->name = $name; - } - - /** - * @param $value - * @param int|null $citationNumber - * @return bool - */ - public function validate($value, $citationNumber = null) - { - return !empty($value->{$this->name}); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Context.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Context.php deleted file mode 100644 index 6cbeb0f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Context.php +++ /dev/null @@ -1,409 +0,0 @@ - - */ -class Context -{ - /** - * @var ArrayList - */ - private $macros; - - /** - * @var Locale - */ - private $locale; - - /** - * @var Bibliography - */ - private $bibliography; - - /** - * @var Citation - */ - private $citation; - - /** - * @var Sort - */ - private $sorting; - - /** - * @var string - */ - private $mode; - - /** - * @var DataList - */ - private $citationItems; - - /** - * @var ArrayList - */ - private $results; - - /** - * @var Root - */ - private $root; - - /** - * @var GlobalOptions - */ - private $globalOptions; - - /** - * @var BibliographyOptions - */ - private $bibliographySpecificOptions; - - /** - * @var CitationOptions - */ - private $citationSpecificOptions; - - /** - * @var RenderingState - */ - private $renderingState; - - /** - * @var CssStyle - */ - private $cssStyle; - - /** - * @var Info - */ - private $info; - - /** - * @var array - */ - protected $markupExtension = []; - - /** - * @var bool - */ - private $citationsAsArray = false; - - public function __construct($locale = null) - { - if (!empty($locale)) { - $this->locale = $locale; - } - - $this->macros = new ArrayList(); - $this->citationItems = new DataList(); - $this->results = new ArrayList(); - $this->renderingState = new RenderingState(RenderingState::__default); - } - - public function addMacro($key, $macro) - { - $this->macros->add($key, $macro); - } - - /** - * @param $key - * @return Macro - */ - public function getMacro($key) - { - return $this->macros->get($key); - } - - /** - * @param Locale $locale - */ - public function setLocale(Locale $locale) - { - $this->locale = $locale; - } - - /** - * @return Locale - */ - public function getLocale() - { - return $this->locale; - } - - /** - * @return Bibliography - */ - public function getBibliography() - { - return $this->bibliography; - } - - /** - * @param Bibliography $bibliography - */ - public function setBibliography(Bibliography $bibliography) - { - $this->bibliography = $bibliography; - } - - /** - * @return Citation - */ - public function getCitation() - { - return $this->citation; - } - - /** - * @param Citation $citation - */ - public function setCitation($citation) - { - $this->citation = $citation; - } - - /** - * @param $citationsAsArray - */ - public function setCitationsAsArray($citationsAsArray = true) - { - $this->citationsAsArray = $citationsAsArray; - } - - public function isCitationsAsArray() - { - return $this->citationsAsArray; - } - - public function setSorting($sorting) - { - $this->sorting = $sorting; - } - - public function getSorting() - { - return $this->sorting; - } - - /** - * return the render mode (citation|bibliography) - * @return string - */ - public function getMode() - { - return $this->mode; - } - - /** - * @param string $mode - */ - public function setMode($mode) - { - $this->mode = $mode; - } - - /** - * returns true if the render mode is set to citation - * @return bool - */ - public function isModeCitation() - { - return $this->mode === "citation"; - } - - /** - * returns true if the render mode is set to bibliography - * @return bool - */ - public function isModeBibliography() - { - return $this->mode === "bibliography"; - } - - /** - * @return DataList - */ - public function getCitationItems() - { - return $this->citationItems; - } - - /** - * @param DataList $citationItems - */ - public function setCitationItems(&$citationItems) - { - $this->citationItems = $citationItems; - } - - public function hasCitationItems() - { - return ($this->citationItems->count() > 0); - } - - /** - * @return ArrayList - */ - public function getMacros() - { - return $this->macros; - } - - /** - * @return ArrayList - */ - public function getResults() - { - return $this->results; - } - - /** - * @return Root - */ - public function getRoot() - { - return $this->root; - } - - /** - * @param Root $root - */ - public function setRoot(Root $root) - { - $this->root = $root; - } - - /** - * @return GlobalOptions - */ - public function getGlobalOptions() - { - return $this->globalOptions; - } - - /** - * @param GlobalOptions $globalOptions - */ - public function setGlobalOptions(GlobalOptions $globalOptions) - { - $this->globalOptions = $globalOptions; - } - - /** - * @return RenderingState - */ - public function getRenderingState() - { - return $this->renderingState; - } - - /** - * @param RenderingState|string $renderingState - */ - public function setRenderingState(RenderingState $renderingState) - { - $this->renderingState = $renderingState; - } - - /** - * @return BibliographyOptions - */ - public function getBibliographySpecificOptions() - { - return $this->bibliographySpecificOptions; - } - - /** - * @param BibliographyOptions $bibliographySpecificOptions - */ - public function setBibliographySpecificOptions(BibliographyOptions $bibliographySpecificOptions) - { - $this->bibliographySpecificOptions = $bibliographySpecificOptions; - } - - /** - * @return CitationOptions - */ - public function getCitationSpecificOptions() - { - return $this->citationSpecificOptions; - } - - /** - * @param CitationOptions $citationSpecificOptions - */ - public function setCitationSpecificOptions(CitationOptions $citationSpecificOptions) - { - $this->citationSpecificOptions = $citationSpecificOptions; - } - - /** - * @param CssStyle $cssStyle - */ - public function setCssStyle(CssStyle $cssStyle) - { - $this->cssStyle = $cssStyle; - } - - /** - * @return CssStyle - */ - public function getCssStyle() - { - return $this->cssStyle; - } - - public function setInfo(Info $info) - { - $this->info = $info; - } - - public function getInfo() - { - return $this->info; - } - - /** - * @return array - */ - public function getMarkupExtension() - { - return $this->markupExtension; - } - - /** - * @param array $markupExtension - */ - public function setMarkupExtension($markupExtension) - { - $this->markupExtension = $markupExtension; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Data/DataList.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Data/DataList.php deleted file mode 100644 index 9afca6f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Data/DataList.php +++ /dev/null @@ -1,78 +0,0 @@ - - */ -class DataList extends ArrayList -{ - /** - * @var string - */ - private $subsequentAuthorSubstitute; - - /** - * @var SubsequentAuthorSubstituteRule - */ - private $subsequentAuthorSubstituteRule = "complete-all"; - - /** - * @var Citation - */ - private $citation; - - public function __construct(array $data = [], $citation = null) - { - parent::__construct($data); - $this->citation = $citation; - } - - /** - * @return string - */ - public function getSubsequentAuthorSubstitute() - { - return $this->subsequentAuthorSubstitute; - } - - /** - * @param string $subsequentAuthorSubstitute - */ - public function setSubsequentAuthorSubstitute($subsequentAuthorSubstitute) - { - $this->subsequentAuthorSubstitute = $subsequentAuthorSubstitute; - } - - /** - * @return SubsequentAuthorSubstituteRule - */ - public function getSubsequentAuthorSubstituteRule() - { - return $this->subsequentAuthorSubstituteRule; - } - - /** - * @param SubsequentAuthorSubstituteRule $subsequentAuthorSubstituteRule - */ - public function setSubsequentAuthorSubstituteRule(SubsequentAuthorSubstituteRule $subsequentAuthorSubstituteRule) - { - $this->subsequentAuthorSubstituteRule = $subsequentAuthorSubstituteRule; - } - - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/CiteProcException.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/CiteProcException.php deleted file mode 100644 index 92a6628..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/CiteProcException.php +++ /dev/null @@ -1,22 +0,0 @@ - - */ -class CiteProcException extends \Exception -{ - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/ClassNotFoundException.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/ClassNotFoundException.php deleted file mode 100644 index 49cc3f3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/ClassNotFoundException.php +++ /dev/null @@ -1,28 +0,0 @@ - - */ -class ClassNotFoundException extends CiteProcException -{ - - public function __construct($class, $code = 0, \Exception $previous = null) - { - parent::__construct("Class \"$class\" could not be found.", $code, $previous); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/InvalidDateTimeException.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/InvalidDateTimeException.php deleted file mode 100644 index b0bb33d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/InvalidDateTimeException.php +++ /dev/null @@ -1,14 +0,0 @@ - - * created at 2019-03-01, 16:42 - */ - -namespace Seboettg\CiteProc\Exception; - - -class InvalidDateTimeException extends CiteProcException -{ - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/InvalidStylesheetException.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/InvalidStylesheetException.php deleted file mode 100644 index 4589142..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Exception/InvalidStylesheetException.php +++ /dev/null @@ -1,14 +0,0 @@ - - * created at 2019-03-01, 16:08 - */ - -namespace Seboettg\CiteProc\Exception; - - -class InvalidStylesheetException extends CiteProcException -{ - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/Locale.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/Locale.php deleted file mode 100644 index 1407c15..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/Locale.php +++ /dev/null @@ -1,124 +0,0 @@ - - */ -class Locale -{ - use LocaleXmlParserTrait; - - /** - * @var \SimpleXMLElement - */ - private $localeXml; - - /** - * @var string - */ - private $language; - - /** - * Locale constructor. - * @param string $lang - * @param string $xmlString - * @throws \Seboettg\CiteProc\Exception\CiteProcException - */ - public function __construct($lang = "en-US", $xmlString = null) - { - $this->language = $lang; - - if (!empty($xmlString)) { - $this->localeXml = new \SimpleXMLElement($xmlString); - } else { - $this->localeXml = new \SimpleXMLElement(StyleSheet::loadLocales($lang)); - } - - $this->initLocaleXmlParser(); - $this->parseXml($this->localeXml); - } - - /** - * @param \SimpleXMLElement $xml - * @return $this - */ - public function addXml(\SimpleXMLElement $xml) - { - $lang = (string) $xml->attributes('http://www.w3.org/XML/1998/namespace')->{'lang'}; - if (empty($lang) || $this->getLanguage() === $lang || explode('-', $this->getLanguage())[0] === $lang) { - $this->parseXml($xml); - } - return $this; - } - - /** - * @return string - */ - public function getLanguage() - { - return $this->language; - } - - /** - * @param string $type - * @param $name - * @param string $form - * @return \stdClass - */ - public function filter($type, $name, $form = "long") { - - if (!isset($this->{$type})) { - throw new \InvalidArgumentException("There is no locale of type \"$type\"."); - } - - /** @var ArrayList $localeList */ - $localeList = $this->{$type}; - - if (is_null($name)) { - $name = ""; - } - - //filter by name - $array = $localeList->get($name); - - if (empty($array)) { - $ret = new \stdClass(); - $ret->name = null; - $ret->single = null; - $ret->multiple = null; - return $ret; - } - - //filter by form - - if ($type !== "options") { - /** @var Term $value */ - $array = array_filter($array, function($term) use($form) { - return $term->form === $form; - }); - } - - return array_pop($array); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/LocaleXmlParserTrait.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/LocaleXmlParserTrait.php deleted file mode 100644 index 51d7f8a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/LocaleXmlParserTrait.php +++ /dev/null @@ -1,177 +0,0 @@ - - */ -trait LocaleXmlParserTrait -{ - - /** - * @var ArrayList - */ - private $options; - - /** - * @var ArrayList - */ - private $date; - - /** - * @var ArrayList - */ - private $terms; - - /** - * @var ArrayList - */ - private $optionsXml; - - /** - * @var ArrayList - */ - private $dateXml; - - /** - * @var ArrayList - */ - private $termsXml; - - /** - * init parser - */ - protected function initLocaleXmlParser() - { - $this->options = new ArrayList(); - $this->optionsXml = new ArrayList(); - $this->date = new ArrayList(); - $this->dateXml = new ArrayList(); - $this->terms = new ArrayList(); - $this->termsXml = new ArrayList(); - - } - - /** - * @param \SimpleXMLElement $locale - */ - private function parseXml(\SimpleXMLElement $locale) - { - /** @var \SimpleXMLElement $node */ - foreach ($locale as $node) { - switch ($node->getName()) { - case 'style-options': - $this->optionsXml->add('options', $node); - foreach ($node->attributes() as $name => $value) { - - if ((string) $value == 'true') { - $this->options->add($name, [true]); - } else { - $this->options->add($name, [false]); - } - } - break; - case 'terms': - $this->termsXml->add('terms', $node); - $plural = ['single', 'multiple']; - - /** @var \SimpleXMLElement $child */ - foreach ($node->children() as $child) { - $term = new Term(); - - foreach ($child->attributes() as $key => $value) { - $term->{$key} = (string) $value; - } - - $subChildren = $child->children(); - $count = $subChildren->count(); - if ($count > 0) { - /** @var \SimpleXMLElement $subChild */ - foreach ($subChildren as $subChild) { - $name = $subChild->getName(); - $value = (string) $subChild; - if (in_array($subChild->getName(), $plural)) { - $term->{$name} = $value; - } - } - } else { - $value = (string) $child; - $term->{'single'} = $value; - $term->{'multiple'} = $value; - } - if (!$this->terms->hasKey($term->name)) { - $this->terms->add($term->name, []); - } - - $this->terms->add($term->name, $term); - } - break; - case 'date': - $form = (string) $node["form"]; - $this->dateXml->add($form, $node); - foreach ($node->children() as $child) { - $date = new \stdClass(); - $name = ""; - foreach ($child->attributes() as $key => $value) { - if ("name" === $key) { - $name = (string) $value; - } - $date->{$key} = (string) $value; - } - if ($child->getName() !== "name-part" && !$this->terms->hasKey($name)) { - $this->terms->add($name, []); - } - $this->date->add($form, $date); - } - - break; - } - } - } - - /** - * @return \SimpleXMLElement - */ - public function getLatestOptionsXml() - { - $arr = $this->optionsXml->toArray(); - return array_pop($arr); - } - - /** - * @return array - */ - public function getDateXml() - { - return $this->dateXml->toArray(); - } - - /** - * @return \SimpleXMLElement - */ - public function getLatestDateXml() - { - $arr = $this->dateXml->toArray(); - return array_pop($arr['date']); - } - - /** - * @return \SimpleXMLElement - */ - public function getTermsXml() - { - $arr = $this->termsXml->toArray(); - return array_pop($arr); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/Term.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/Term.php deleted file mode 100644 index 35a1310..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/Term.php +++ /dev/null @@ -1,59 +0,0 @@ - - */ -class Term -{ - - private $name = ""; - - private $form = "long"; - - private $single = ""; - - private $multiple = ""; - - private $match = ""; - - private $genderForm = ""; - - private $gender = ""; - - public function __set($name, $value) - { - $nameParts = explode("-", $name); - $attr = ""; - for ($i = count($nameParts) - 1; $i >= 0; --$i) { - if ($i > 0) { - $attr = ucfirst($nameParts[$i]) . $attr; - } else { - $attr = $nameParts[$i] . $attr; - } - } - if (!isset($this->{$attr})) { - throw new \InvalidArgumentException("Property \"$attr\" ($name) does not exist in " . __CLASS__); - } - $this->{$attr} = $value; - } - - public function __get($name) - { - return $this->{$name}; - } - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/Choose.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/Choose.php deleted file mode 100644 index d68d40a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/Choose.php +++ /dev/null @@ -1,106 +0,0 @@ - - */ -class Choose implements Rendering, HasParent -{ - - /** - * @var ArrayList - */ - private $children; - - private $parent; - - /** - * Choose constructor. - * @param \SimpleXMLElement $node - * @param $parent - * @throws \Seboettg\CiteProc\Exception\ClassNotFoundException - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - */ - public function __construct(\SimpleXMLElement $node, $parent) - { - $this->parent = $parent; - $this->children = new ArrayList(); - $elseIf = []; - foreach ($node->children() as $child) { - switch ($child->getName()) { - case 'if': - $this->children->add("if", new ChooseIf($child, $this)); - break; - case 'else-if': - $elseIf[] = new ChooseElseIf($child, $this); - break; - case 'else': - $this->children->add("else", new ChooseElse($child, $this)); - break; - } - } - if (!empty($elseIf)) { - $this->children->add("elseif", $elseIf); - } - } - - /** - * @param array|\Seboettg\CiteProc\Data\DataList $data - * @param null|int $citationNumber - * @return string - */ - public function render($data, $citationNumber = null) - { - $arr = []; - - // IF - if ($prevCondition = $this->children->get("if")->match($data)) { - $arr[] = $this->children->get("if")->render($data); - - } else if (!$prevCondition && $this->children->hasKey("elseif")) { // ELSEIF - /** @var ChooseElseIf $child */ - foreach ($this->children->get("elseif") as $child) { - $condition = $child->match($data); - if ($condition && !$prevCondition) { - $arr[] = $child->render($data); - $prevCondition = true; - break; //break loop as soon as condition matches - } - $prevCondition = $condition; - } - } - - //ELSE - if (!$prevCondition && $this->children->hasKey("else")) { - $arr[] = $this->children->get("else")->render($data); - - } - return implode("", $arr); - } - - - /** - * @return mixed - */ - public function getParent() - { - return $this->parent; - } -} - diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseElse.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseElse.php deleted file mode 100644 index ca4eed1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseElse.php +++ /dev/null @@ -1,21 +0,0 @@ - - */ -class ChooseElse extends ChooseIf -{ - //render function is inherited from ChooseIf -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseElseIf.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseElseIf.php deleted file mode 100644 index d711483..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseElseIf.php +++ /dev/null @@ -1,22 +0,0 @@ - - */ -class ChooseElseIf extends ChooseElse -{ - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseIf.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseIf.php deleted file mode 100644 index a07eb51..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseIf.php +++ /dev/null @@ -1,133 +0,0 @@ - - */ -class ChooseIf implements Rendering, HasParent -{ - - /** - * @var ArrayList - */ - private $constraints; - - /** - * @var ConstraintInterface - */ - private $constraint; - - /** - * @var ArrayList - */ - protected $children; - - private $match; - - /** - * @var - */ - protected $parent; - - /** - * @param \SimpleXMLElement $node - * @param Choose $parent - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - * @throws \Seboettg\CiteProc\Exception\ClassNotFoundException - */ - public function __construct(\SimpleXMLElement $node, $parent) - { - $this->parent = $parent; - $this->constraints = new ArrayList(); - $this->children = new ArrayList(); - $this->match = (string) $node['match']; - - if (empty($this->match)) { - $this->match = "all"; - } - - foreach ($node->attributes() as $name => $value) { - if ('match' !== $name) { - $this->constraints->append(Factory::createConstraint((string) $name, (string) $value)); - } - } - - foreach ($node->children() as $child) { - $this->children->append(Factory::create($child, $this)); - } - } - - /** - * @param array|\Seboettg\CiteProc\Data\DataList $data - * @param null|int $citationNumber - * @return string - */ - public function render($data, $citationNumber = null) - { - $ret = []; - /** @var Rendering $child */ - foreach ($this->children as $child) { - $ret[] = $child->render($data, $citationNumber); - } - return implode("", $ret); - } - - /** - * @param $data - * @param null|int $citationNumber - * @return bool - */ - public function match($data, $citationNumber = null) - { - if (isset($this->constraint)) { - return $this->constraint->validate($data); - } - - $result = true; - - /** @var ConstraintInterface $constraint */ - foreach ($this->constraints as $constraint) { - if ($this->match === "any") { - if ($constraint->validate($data, $citationNumber)) { - return true; - } - } else { - $result &= $constraint->validate($data, $citationNumber); - } - } - - if ($this->match === "all") { - return (bool) $result; - } else if ($this->match === "none") { - return !$result; - } - return false; - } - - /** - * @return Choose - */ - public function getParent() - { - return $this->parent; - } - -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/Date.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/Date.php deleted file mode 100644 index 6dd66dd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/Date.php +++ /dev/null @@ -1,541 +0,0 @@ - - */ -class Date -{ - - use AffixesTrait, - DisplayTrait, - FormattingTrait, - TextCaseTrait; - - // bitmask: ymd - const DATE_RANGE_STATE_NONE = 0; // 000 - const DATE_RANGE_STATE_DAY = 1; // 001 - const DATE_RANGE_STATE_MONTH = 2; // 010 - const DATE_RANGE_STATE_MONTHDAY = 3; // 011 - const DATE_RANGE_STATE_YEAR = 4; // 100 - const DATE_RANGE_STATE_YEARDAY = 5; // 101 - const DATE_RANGE_STATE_YEARMONTH = 6; // 110 - const DATE_RANGE_STATE_YEARMONTHDAY = 7; // 111 - - private static $localizedDateFormats = [ - 'numeric', - 'text' - ]; - - /** - * @var ArrayList - */ - private $dateParts; - - /** - * @var string - */ - private $form = ""; - - /** - * @var string - */ - private $variable = ""; - - /** - * @var string - */ - private $datePartsAttribute = ""; - - /** - * Date constructor. - * @param \SimpleXMLElement $node - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - */ - public function __construct(\SimpleXMLElement $node) - { - $this->dateParts = new ArrayList(); - - /** @var \SimpleXMLElement $attribute */ - foreach ($node->attributes() as $attribute) { - switch ($attribute->getName()) { - case 'form': - $this->form = (string) $attribute; - break; - case 'variable': - $this->variable = (string) $attribute; - break; - case 'date-parts': - $this->datePartsAttribute = (string) $attribute; - } - } - /** @var \SimpleXMLElement $child */ - foreach ($node->children() as $child) { - if ($child->getName() === "date-part") { - $datePartName = (string) $child->attributes()["name"]; - $this->dateParts->set($this->form . "-" . $datePartName, Util\Factory::create($child)); - } - } - - $this->initAffixesAttributes($node); - $this->initDisplayAttributes($node); - $this->initFormattingAttributes($node); - $this->initTextCaseAttributes($node); - } - - /** - * @param $data - * @return string - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - * @throws \Exception - */ - public function render($data) - { - $ret = ""; - $var = null; - if (isset($data->{$this->variable})) { - $var = $data->{$this->variable}; - } else { - return ""; - } - - try { - $this->prepareDatePartsInVariable($data, $var); - } catch (CiteProcException $e) { - if (!preg_match("/(\p{L}+)\s?([\-\-\&,])\s?(\p{L}+)/u", $data->{$this->variable}->raw)) { - return $this->addAffixes($this->format($this->applyTextCase($data->{$this->variable}->raw))); - } - } - - $form = $this->form; - $dateParts = !empty($this->datePartsAttribute) ? explode("-", $this->datePartsAttribute) : []; - $this->prepareDatePartsChildren($dateParts, $form); - - - // No date-parts in date-part attribute defined, take into account that the defined date-part children will be used. - if (empty($this->datePartsAttribute) && $this->dateParts->count() > 0) { - /** @var DatePart $part */ - foreach ($this->dateParts as $part) { - $dateParts[] = $part->getName(); - } - } - - /* cs:date may have one or more cs:date-part child elements (see Date-part). The attributes set on - these elements override those specified for the localized date formats (e.g. to get abbreviated months for all - locales, the form attribute on the month-cs:date-part element can be set to “short”). These cs:date-part - elements do not affect which, or in what order, date parts are rendered. Affixes, which are very - locale-specific, are not allowed on these cs:date-part elements. */ - - if ($this->dateParts->count() > 0) { - if (!isset($var->{'date-parts'})) { // ignore empty date-parts - return ""; - } - - if (count($data->{$this->variable}->{'date-parts'}) === 1) { - $data_ = $this->createDateTime($data->{$this->variable}->{'date-parts'}); - $ret .= $this->iterateAndRenderDateParts($dateParts, $data_); - } else if (count($var->{'date-parts'}) === 2) { //date range - $data_ = $this->createDateTime($var->{'date-parts'}); - $from = $data_[0]; - $to = $data_[1]; - $interval = $to->diff($from); - $delim = ""; - $toRender = 0; - if ($interval->y > 0 && in_array('year', $dateParts)) { - $toRender |= self::DATE_RANGE_STATE_YEAR; - $delim = $this->dateParts->get($this->form . "-year")->getRangeDelimiter(); - } - if ($interval->m > 0 && $from->getMonth() - $to->getMonth() !== 0 && in_array('month', $dateParts)) { - $toRender |= self::DATE_RANGE_STATE_MONTH; - $delim = $this->dateParts->get($this->form . "-month")->getRangeDelimiter(); - } - if ($interval->d > 0 && $from->getDay() - $to->getDay() !== 0 && in_array('day', $dateParts)) { - $toRender |= self::DATE_RANGE_STATE_DAY; - $delim = $this->dateParts->get($this->form . "-day")->getRangeDelimiter(); - } - if ($toRender === self::DATE_RANGE_STATE_NONE) { - $ret .= $this->iterateAndRenderDateParts($dateParts, $data_); - } else { - $ret .= $this->renderDateRange($toRender, $from, $to, $delim); - } - } - - if (isset($var->raw) && preg_match("/(\p{L}+)\s?([\-\-\&,])\s?(\p{L}+)/u", $var->raw, $matches)) { - return $matches[1] . $matches[2] . $matches[3]; - } - } - // fallback: - // When there are no dateParts children, but date-parts attribute in date - // render numeric - else if (!empty($this->datePartsAttribute)) { - $data = $this->createDateTime($var->{'date-parts'}); - $ret = $this->renderNumeric($data[0]); - } - - return !empty($ret) ? $this->addAffixes($this->format($this->applyTextCase($ret))) : ""; - } - - /** - * @param array $dates - * @return array - * @throws \Exception - */ - private function createDateTime($dates) - { - $data = []; - foreach ($dates as $date) { - $date = $this->cleanDate($date); - if ($date[0] < 1000) { - $dateTime = new DateTime(0, 0, 0); - $dateTime->setDay(0)->setMonth(0)->setYear(0); - $data[] = $dateTime; - } - $dateTime = new DateTime($date[0], array_key_exists(1, $date) ? $date[1] : 1, array_key_exists(2, $date) ? $date[2] : 1); - if (!array_key_exists(1, $date)) { - $dateTime->setMonth(0); - } - if (!array_key_exists(2, $date)) { - $dateTime->setDay(0); - } - $data[] = $dateTime; - } - - return $data; - } - - /** - * @param integer $differentParts - * @param DateTime $from - * @param DateTime $to - * @param $delim - * @return string - */ - private function renderDateRange($differentParts, DateTime $from, DateTime $to, $delim) - { - $ret = ""; - $dateParts_ = []; - switch ($differentParts) { - case self::DATE_RANGE_STATE_YEAR: - foreach ($this->dateParts as $key => $datePart) { - if (strpos($key, "year") !== false) { - $ret .= $this->renderOneRangePart($datePart, $from, $to, $delim); - } - if (strpos($key, "month") !== false) { - $day = !empty($d = $from->getMonth()) ? $d : ""; - $ret .= $day; - } - if (strpos($key, "day") !== false) { - $day = !empty($d = $from->getDay()) ? $datePart->render($from, $this) : ""; - $ret .= $day; - } - } - break; - case self::DATE_RANGE_STATE_MONTH: - /** - * @var string $key - * @var DatePart $datePart - */ - foreach ($this->dateParts as $key => $datePart) { - if (strpos($key, "year") !== false) { - $ret .= $datePart->render($from, $this); - } - if (strpos($key, "month")) { - $ret .= $this->renderOneRangePart($datePart, $from, $to, $delim); - } - if (strpos($key, "day") !== false) { - $day = !empty($d = $from->getDay()) ? $datePart->render($from, $this) : ""; - $ret .= $day; - } - } - break; - case self::DATE_RANGE_STATE_DAY: - /** - * @var string $key - * @var DatePart $datePart - */ - foreach ($this->dateParts as $key => $datePart) { - if (strpos($key, "year") !== false) { - $ret .= $datePart->render($from, $this); - } - if (strpos($key, "month") !== false) { - $ret .= $datePart->render($from, $this); - } - if (strpos($key, "day")) { - $ret .= $this->renderOneRangePart($datePart, $from, $to, $delim); - } - } - break; - case self::DATE_RANGE_STATE_YEARMONTHDAY: - $i = 0; - foreach ($this->dateParts as $datePart) { - if ($i === $this->dateParts->count() - 1) { - $ret .= $datePart->renderPrefix(); - $ret .= $datePart->renderWithoutAffixes($from, $this); - } else { - $ret .= $datePart->render($from, $this); - } - ++$i; - } - $ret .= $delim; - $i = 0; - foreach ($this->dateParts as $datePart) { - if ($i == 0) { - $ret .= $datePart->renderWithoutAffixes($to, $this); - $ret .= $datePart->renderSuffix(); - } else { - $ret .= $datePart->render($to, $this); - } - ++$i; - } - break; - case self::DATE_RANGE_STATE_YEARMONTH: - $dp = $this->dateParts->toArray(); - $i = 0; - $dateParts_ = []; - array_walk($dp, function($datePart, $key) use (&$i, &$dateParts_, $differentParts) { - if (strpos($key, "year") !== false || strpos($key, "month") !== false) { - $dateParts_["yearmonth"][] = $datePart; - } - if (strpos($key, "day") !== false) { - $dateParts_["day"] = $datePart; - } - }); - break; - case self::DATE_RANGE_STATE_YEARDAY: - $dp = $this->dateParts->toArray(); - $i = 0; - $dateParts_ = []; - array_walk($dp, function($datePart, $key) use (&$i, &$dateParts_, $differentParts) { - if (strpos($key, "year") !== false || strpos($key, "day") !== false) { - $dateParts_["yearday"][] = $datePart; - } - if (strpos($key, "month") !== false) { - $dateParts_["month"] = $datePart; - } - }); - break; - case self::DATE_RANGE_STATE_MONTHDAY: - $dp = $this->dateParts->toArray(); - $i = 0; - $dateParts_ = []; - array_walk($dp, function($datePart, $key) use (&$i, &$dateParts_, $differentParts) { - //$bit = sprintf("%03d", decbin($differentParts)); - if (strpos($key, "month") !== false || strpos($key, "day") !== false) { - $dateParts_["monthday"][] = $datePart; - } - if (strpos($key, "year") !== false) { - $dateParts_["year"] = $datePart; - } - }); - break; - } - switch ($differentParts) { - case self::DATE_RANGE_STATE_YEARMONTH: - case self::DATE_RANGE_STATE_YEARDAY: - case self::DATE_RANGE_STATE_MONTHDAY: - /** - * @var $key - * @var DatePart $datePart */ - foreach ($dateParts_ as $key => $datePart) { - if (is_array($datePart)) { - - $f = $datePart[0]->render($from, $this); - $f .= $datePart[1]->renderPrefix(); - $f .= $datePart[1]->renderWithoutAffixes($from, $this); - $t = $datePart[0]->renderWithoutAffixes($to, $this); - $t .= $datePart[0]->renderSuffix(); - $t .= $datePart[1]->render($to, $this); - $ret .= $f . $delim . $t; - } else { - $ret .= $datePart->render($from, $this); - } - } - break; - } - return $ret; - } - - /** - * @param $datePart - * @param DateTime $from - * @param DateTime $to - * @param $delim - * @return string - */ - protected function renderOneRangePart(DatePart $datePart, $from, $to, $delim) - { - $prefix = $datePart->renderPrefix(); - $from = $datePart->renderWithoutAffixes($from, $this); - $to = $datePart->renderWithoutAffixes($to, $this); - $suffix = !empty($to) ? $datePart->renderSuffix() : ""; - return $prefix . $from . $delim . $to . $suffix; - } - - /** - * @param string $format - * @return bool - */ - private function hasDatePartsFromLocales($format) - { - $dateXml = CiteProc::getContext()->getLocale()->getDateXml(); - return !empty($dateXml[$format]); - } - - /** - * @param string $format - * @return array - */ - private function getDatePartsFromLocales($format) - { - $ret = []; - // date parts from locales - $dateFromLocale_ = CiteProc::getContext()->getLocale()->getDateXml(); - $dateFromLocale = $dateFromLocale_[$format]; - - // no custom date parts within the date element (this)? - if (!empty($dateFromLocale)) { - - $dateForm = array_filter(is_array($dateFromLocale) ? $dateFromLocale : [$dateFromLocale], function($element) use ($format) { - /** @var \SimpleXMLElement $element */ - $dateForm = (string) $element->attributes()["form"]; - return $dateForm === $format; - }); - - //has dateForm from locale children (date-part elements)? - $localeDate = array_pop($dateForm); - - if ($localeDate instanceof \SimpleXMLElement && $localeDate->count() > 0) { - foreach ($localeDate as $child) { - $ret[] = $child; - } - } - } - return $ret; - } - - /** - * @return string - */ - public function getVariable() - { - return $this->variable; - } - - /** - * @param $data - * @param $var - * @throws CiteProcException - */ - private function prepareDatePartsInVariable($data, $var) - { - if (!isset($data->{$this->variable}->{'date-parts'}) || empty($data->{$this->variable}->{'date-parts'})) { - if (isset($data->{$this->variable}->raw) && !empty($data->{$this->variable}->raw)) { - //try { - // try to parse date parts from "raw" attribute - $var->{'date-parts'} = Util\DateHelper::parseDateParts($data->{$this->variable}); - //} catch (CiteProcException $e) { - // if (!preg_match("/(\p{L}+)\s?([\-\-\&,])\s?(\p{L}+)/u", $data->{$this->variable}->raw)) { - // return $this->addAffixes($this->format($this->applyTextCase($data->{$this->variable}->raw))); - // } - //} - } else { - throw new CiteProcException("No valid date format"); - //return ""; - } - } - } - - /** - * @param $dateParts - * @param string $form - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - */ - private function prepareDatePartsChildren($dateParts, $form) - { - /* Localized date formats are selected with the optional form attribute, which must set to either “numeric” - (for fully numeric formats, e.g. “12-15-2005”), or “text” (for formats with a non-numeric month, e.g. - “December 15, 2005”). Localized date formats can be customized in two ways. First, the date-parts attribute may - be used to show fewer date parts. The possible values are: - - “year-month-day” - (default), renders the year, month and day - - “year-month” - renders the year and month - - “year” - renders the year */ - - if ($this->dateParts->count() < 1 && in_array($form, self::$localizedDateFormats)) { - if ($this->hasDatePartsFromLocales($form)) { - $datePartsFromLocales = $this->getDatePartsFromLocales($form); - array_filter($datePartsFromLocales, function(\SimpleXMLElement $item) use ($dateParts) { - return in_array($item["name"], $dateParts); - }); - - foreach ($datePartsFromLocales as $datePartNode) { - $datePart = $datePartNode["name"]; - $this->dateParts->set("$form-$datePart", Util\Factory::create($datePartNode)); - } - } else { //otherwise create default date parts - foreach ($dateParts as $datePart) { - $this->dateParts->add("$form-$datePart", new DatePart(new \SimpleXMLElement(''))); - } - } - } - } - - - private function renderNumeric(DateTime $date) - { - return $date->renderNumeric(); - } - - public function getForm() - { - return $this->form; - } - - private function cleanDate($date) - { - $ret = []; - foreach ($date as $key => $datePart) { - $ret[$key] = Util\NumberHelper::extractNumber(Util\StringHelper::removeBrackets($datePart)); - } - return $ret; - } - - /** - * @param array $dateParts - * @param array $data_ - * @return string - */ - private function iterateAndRenderDateParts(array $dateParts, array $data_) - { - $ret = ""; - /** @var DatePart $datePart */ - foreach ($this->dateParts as $key => $datePart) { - /** @noinspection PhpUnusedLocalVariableInspection */ - list($f, $p) = explode("-", $key); - if (in_array($p, $dateParts)) { - $ret .= $datePart->render($data_[0], $this); - } - } - return $ret; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/DatePart.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/DatePart.php deleted file mode 100644 index 1c18445..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/DatePart.php +++ /dev/null @@ -1,231 +0,0 @@ - - */ -class DatePart -{ - - const DEFAULT_RANGE_DELIMITER = "–"; - - use FormattingTrait, - AffixesTrait, - TextCaseTrait, - RangeDelimiterTrait; - - /** - * @var string - */ - private $name; - - /** - * @var string - */ - private $form; - - /** - * @var string - */ - private $rangeDelimiter; - - /** - * @var Date - */ - private $parent; - - public function __construct(\SimpleXMLElement $node) - { - foreach ($node->attributes() as $attribute) { - if ("name" === $attribute->getName()) { - $this->name = (string) $attribute; - } - if ("form" === $attribute->getName()) { - $this->form = (string) $attribute; - } - if ("range-delimiter" === $attribute->getName()) { - $this->rangeDelimiter = (string) $attribute; - } - } - - if (empty($this->rangeDelimiter)) { - $this->rangeDelimiter = self::DEFAULT_RANGE_DELIMITER; - } - - $this->initFormattingAttributes($node); - $this->initAffixesAttributes($node); - $this->initTextCaseAttributes($node); - } - - - /** - * @param DateTime $date - * @param Date $parent - * @return string - */ - public function render(DateTime $date, Date $parent) - { - $this->parent = $parent; //set parent - $text = $this->renderWithoutAffixes($date); - return !empty($text) ? $this->addAffixes($text) : ""; - } - - /** - * @param DateTime $date - * @param Date|null $parent - * @return string - */ - public function renderWithoutAffixes(DateTime $date, Date $parent = null) - { - if (!is_null($parent)) { - $this->parent = $parent; - } - $text = ""; - switch ($this->name) { - case 'year': - $text = $this->renderYear($date); - break; - case 'month': - $text = $this->renderMonth($date); - break; - case 'day': - $text = $this->renderDay($date); - } - - return !empty($text) ? $this->format($this->applyTextCase($text)) : ""; - } - - /** - * @return string - */ - public function getForm() - { - return $this->form; - } - - /** - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * @return string - */ - public function getRangeDelimiter() - { - return $this->rangeDelimiter; - } - - /** - * @param DateTime $date - * @return string|int - */ - protected function renderYear(DateTime $date) - { - $text = $date->getYear(); - if ($text > 0 && $text < 1000) { - $text = $text . CiteProc::getContext()->getLocale()->filter("terms", "ad")->single; - return $text; - } elseif ($text < 0) { - $text = $text * -1; - $text = $text . CiteProc::getContext()->getLocale()->filter("terms", "bc")->single; - return $text; - } - return $text; - } - - /** - * @param DateTime $date - * @return string - */ - protected function renderMonth(DateTime $date) - { - if ($date->getMonth() < 1 || $date->getMonth() > 12) { - return ""; - } - - $text = $date->getMonth(); - - $form = !empty($this->form) ? $this->form : "long"; - switch ($form) { - case 'numeric': - break; - case 'numeric-leading-zeros': - $text = sprintf("%02d", $text); - break; - case 'short': - $text = $this->monthFromLocale($text, $form); - break; - case 'long': - default: - $text = $this->monthFromLocale($text, $form); - break; - } - return $text; - } - - /** - * @param DateTime $date - * @return int|string - */ - protected function renderDay(DateTime $date) - { - if ($date->getDay() < 1 || $date->getDay() > 31) { - return ""; - } - - $text = $date->getDay(); - $form = !empty($this->form) ? $this->form : $this->parent->getForm(); - switch ($form) { - case 'numeric': - break; - case 'numeric-leading-zeros': - $text = sprintf("%02d", $text); - break; - case 'ordinal': - $limitDayOrdinals = CiteProc::getContext()->getLocale()->filter("options", "limit-day-ordinals-to-day-1"); - if (!$limitDayOrdinals || Layout::getNumberOfCitedItems() <= 1) { - $text = Number::ordinal($text); - } - } - return $text; - } - - /** - * @param $text - * @param $form - * @return mixed - */ - protected function monthFromLocale($text, $form) - { - if (empty($form)) { - $form = "long"; - } - $month = 'month-' . sprintf('%02d', $text); - $text = CiteProc::getContext()->getLocale()->filter('terms', $month, $form)->single; - return $text; - } - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/DateTime.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/DateTime.php deleted file mode 100644 index a79f3ec..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Date/DateTime.php +++ /dev/null @@ -1,140 +0,0 @@ -year = intval(self::format("Y")); - $this->month = intval(self::format("n")); - $this->day = intval(self::format("j")); - } - - /** - * @param int $year - * @return $this - */ - public function setYear($year) - { - $this->year = $year; - return $this; - } - - /** - * @param int $month - * @return $this - */ - public function setMonth($month) - { - $this->month = $month; - return $this; - } - - /** - * @param int $day - * @return $this - */ - public function setDay($day) - { - $this->day = $day; - return $this; - } - - /** - * @param int $year - * @param int $month - * @param int $day - * @return $this - */ - public function setDate($year, $month, $day) - { - $this->year = $year; - $this->month = $month; - $this->day = $day; - parent::setDate($year, $month, $day); - return $this; - } - - /** - * @return array - */ - public function getArray() - { - return [$this->year, $this->month, $this->day]; - } - - /** - * @return int - */ - public function getYear() - { - return $this->year; - } - - /** - * @return int - */ - public function getMonth() - { - return $this->month; - } - - /** - * @return int - */ - public function getDay() - { - return $this->day; - } - - /** - * @return string - */ - public function renderNumeric() - { - $ret = $this->year; - $ret .= $this->month > 0 && $this->month < 13 ? "-" . sprintf("%02s", $this->month) : ""; - $ret .= $this->day > 0 && $this->day < 32 ? "-" . sprintf("%02s", $this->day) : ""; - return $ret; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Group.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Group.php deleted file mode 100644 index e7f88c6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Group.php +++ /dev/null @@ -1,178 +0,0 @@ - - */ -class Group implements Rendering, HasParent -{ - use DelimiterTrait, - AffixesTrait, - DisplayTrait, - FormattingTrait, - ConsecutivePunctuationCharacterTrait; - - const CLASS_PATH = 'Seboettg\CiteProc\Rendering'; - - /** - * @var ArrayList - */ - private $children; - - /** - * cs:group may carry the delimiter attribute to separate its child elements - * @var - */ - private $delimiter = ""; - - private $parent; - - /** - * @var array - */ - private $renderedChildsWithVariable = []; - - - /** - * Group constructor. - * @param \SimpleXMLElement $node - * @param $parent - * @throws InvalidStylesheetException - */ - public function __construct(\SimpleXMLElement $node, $parent) - { - $this->parent = $parent; - $this->children = new ArrayList(); - foreach ($node->children() as $child) { - $this->children->append(Factory::create($child, $this)); - } - $this->initDisplayAttributes($node); - $this->initAffixesAttributes($node); - $this->initDelimiterAttributes($node); - $this->initFormattingAttributes($node); - } - - /** - * @param $data - * @param int|null $citationNumber - * @return string - */ - public function render($data, $citationNumber = null) - { - $textParts = array(); - $terms = $variables = $haveVariables = $elementCount = 0; - foreach ($this->children as $child) { - $elementCount++; - - if (($child instanceof Text) && - ($child->getSource() == 'term' || - $child->getSource() == 'value')) { - ++$terms; - } - - if (($child instanceof Label)) { - ++$terms; - } - if (method_exists($child, "getSource") && $child->getSource() == 'variable' && - !empty($child->getVariable()) && $child->getVariable() != "date" && - !empty($data->{$child->getVariable()}) - ) { - ++$variables; - } - - /** @var \stdClass $data */ - $text = $child->render($data, $citationNumber); - $delimiter = $this->delimiter; - if (!empty($text)) { - if ($delimiter && ($elementCount < count($this->children))) { - //check to see if the delimiter is already the last character of the text string - //if so, remove it so we don't have two of them when the group will be merged - $stext = strip_tags(trim($text)); - if ((strrpos($stext, $delimiter[0]) + 1) == strlen($stext) && strlen($stext) > 1) { - $text = str_replace($stext, '----REPLACE----', $text); - $stext = substr($stext, 0, -1); - $text = str_replace('----REPLACE----', $stext, $text); - } - } - $textParts[] = $text; - - if (method_exists($child, "getSource") && $child->getSource() == 'variable' || - (method_exists($child, - "getVariable") && $child->getVariable() != "date" && !empty($child->getVariable()))) { - - $haveVariables++; - } - - if (method_exists($child, "getSource") && $child->getSource() == 'macro') { - $haveVariables++; - } - } - } - return $this->formatting($textParts, $variables, $haveVariables, $terms); - } - - /** - * @return mixed - */ - public function getParent() - { - return $this->parent; - } - - /** - * @param $textParts - * @param $variables - * @param $haveVariables - * @param $terms - * @return string - */ - protected function formatting($textParts, $variables, $haveVariables, $terms) - { - if (empty($textParts)) { - return ""; - } - - if ($variables && !$haveVariables) { - return ""; // there has to be at least one other none empty value before the term is output - } - - if (count($textParts) == $terms) { - return ""; // there has to be at least one other none empty value before the term is output - } - - $text = implode($this->delimiter, $textParts); // insert the delimiter if supplied. - if (!empty($text)) { - return $this->wrapDisplayBlock($this->addAffixes($this->format(($text)))); - } - - return ""; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/HasParent.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/HasParent.php deleted file mode 100644 index db0e3c4..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/HasParent.php +++ /dev/null @@ -1,20 +0,0 @@ - - */ -interface HasParent -{ - public function getParent(); -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Label.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Label.php deleted file mode 100644 index 10f7894..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Label.php +++ /dev/null @@ -1,251 +0,0 @@ - - */ -class Label implements Rendering -{ - use AffixesTrait, - FormattingTrait, - TextCaseTrait; - - private $variable; - - /** - * Selects the form of the term, with allowed values: - * - * - “long” - (default), e.g. “page”/”pages” for the “page” term - * - “short” - e.g. “p.”/”pp.” for the “page” term - * - “symbol” - e.g. “§”/”§§” for the “section” term - * - * @var string - */ - private $form = ""; - - /** - * Sets pluralization of the term, with allowed values: - * - * - “contextual” - (default), the term plurality matches that of the variable content. Content is considered - * plural when it contains multiple numbers (e.g. “page 1”, “pages 1-3”, “volume 2”, “volumes 2 & 4”), or, in - * the case of the “number-of-pages” and “number-of-volumes” variables, when the number is higher than 1 - * (“1 volume” and “3 volumes”). - * - “always” - always use the plural form, e.g. “pages 1” and “pages 1-3” - * - “never” - always use the singular form, e.g. “page 1” and “page 1-3” - * - * @var string - */ - private $plural = "contextual"; - - /** - * Label constructor. - * @param \SimpleXMLElement $node - */ - public function __construct(\SimpleXMLElement $node) - { - /** @var \SimpleXMLElement $attribute */ - foreach ($node->attributes() as $attribute) { - switch ($attribute->getName()) { - case "variable": - $this->variable = (string) $attribute; - break; - case "form": - $this->form = (string) $attribute; - break; - case "plural": - $this->plural = (string) $attribute; - break; - } - } - - $this->initFormattingAttributes($node); - $this->initAffixesAttributes($node); - $this->initTextCaseAttributes($node); - } - - /** - * @param \stdClass $data - * @param int|null $citationNumber - * @return string - */ - public function render($data, $citationNumber = null) - { - $lang = (isset($data->language) && $data->language != 'en') ? $data->language : 'en'; - - $text = ''; - $variables = explode(' ', $this->variable); - $form = !empty($this->form) ? $this->form : 'long'; - $plural = $this->defaultPlural(); - - if ($this->variable === "editortranslator") { - if (isset($data->editor) && isset($data->translator)) { - $plural = $this->getPlural($data, $plural, "editortranslator"); - $term = CiteProc::getContext()->getLocale()->filter('terms', "editortranslator", $form); - $pluralForm = $term->{$plural}; - if (!empty($pluralForm)) { - $text = $pluralForm; - } - } - } else { - foreach ($variables as $variable) { - - if (isset($data->{$variable})) { - $plural = $this->getPlural($data, $plural, $variable); - $term = CiteProc::getContext()->getLocale()->filter('terms', $variable, $form); - $pluralForm = $term->{$plural}; - if (!empty($data->{$variable}) && !empty($pluralForm)) { - $text = $pluralForm; - break; - } - } - } - } - - return $this->formatting($text, $lang); - } - - /** - * @param $data - * @param $variable - * @return string - */ - private function evaluateStringPluralism($data, $variable) - { - $str = isset($data->{$variable}) ? $data->{$variable} : ''; - $plural = 'single'; - if (!empty($str)) { - switch ($variable) { - case 'page': - $pageRegex = "/([a-zA-Z]*)([0-9]+)\s*(?:–|-)\s*([a-zA-Z]*)([0-9]+)/"; - $err = preg_match($pageRegex, $str, $m); - if ($err !== false && count($m) == 0) { - $plural = 'single'; - } elseif ($err !== false && count($m)) { - $plural = 'multiple'; - } - break; - default: - if (is_numeric($str)) { - return $str > 1 ? 'multiple' : 'single'; - } - } - } - return $plural; - } - - /** - * @param string $variable - */ - public function setVariable($variable) - { - $this->variable = $variable; - } - - /** - * @param $data - * @param $plural - * @param $variable - * @return string - */ - protected function getPlural($data, $plural, $variable) - { - - if ($variable === "editortranslator" && isset($data->editor)) { - $var = $data->editor; - } else { - $var = $data->{$variable}; - } - if (((!isset($this->plural) || empty($plural))) && !empty($var)) { - if (is_array($var)) { - $count = count($var); - if ($count == 1) { - $plural = 'single'; - return $plural; - } elseif ($count > 1) { - $plural = 'multiple'; - return $plural; - } - return $plural; - } else { - return $this->evaluateStringPluralism($data, $variable); - } - - } else { - if ($this->plural != "always") { - $plural = $this->evaluateStringPluralism($data, $variable); - return $plural; - } - return $plural; - } - } - - /** - * @return string - */ - public function getForm() - { - return $this->form; - } - - /** - * @param string $form - */ - public function setForm($form) - { - $this->form = $form; - } - - /** - * @param $text - * @param $lang - * @return string - */ - protected function formatting($text, $lang) - { - if (empty($text)) { - return ""; - } - if ($this->stripPeriods) { - $text = str_replace('.', '', $text); - } - - $text = preg_replace("/\s\&\s/", " & ", $text); //replace ampersands by html entity - $text = $this->format($this->applyTextCase($text, $lang)); - return $this->addAffixes($text); - } - - /** - * @return string - */ - protected function defaultPlural() - { - $plural = ""; - switch ($this->plural) { - case 'never': - $plural = 'single'; - break; - case 'always': - $plural = 'multiple'; - break; - case 'contextual': - default: - } - return $plural; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Layout.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Layout.php deleted file mode 100644 index d20c98b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Layout.php +++ /dev/null @@ -1,258 +0,0 @@ - - */ -class Layout implements Rendering -{ - - private static $numberOfCitedItems = 0; - - use AffixesTrait, - FormattingTrait, - DelimiterTrait, - ConsecutivePunctuationCharacterTrait; - - /** - * @var ArrayList - */ - private $children; - - /** - * When used within cs:citation, the delimiter attribute may be used to specify a delimiter for cites within a - * citation. - * @var string - */ - private $delimiter = ""; - - - private $parent; - - /** - * @param \SimpleXMLElement $node - * @param \Seboettg\CiteProc\Style\StyleElement $parent - * @throws InvalidStylesheetException - */ - public function __construct($node, $parent) - { - $this->parent = $parent; - self::$numberOfCitedItems = 0; - $this->children = new ArrayList(); - foreach ($node->children() as $child) { - $this->children->append(Factory::create($child, $this)); - } - $this->initDelimiterAttributes($node); - $this->initAffixesAttributes($node); - $this->initFormattingAttributes($node); - } - - /** - * @param array|DataList $data - * @param array|ArrayList $citationItems - * @return string|array - */ - public function render($data, $citationItems = []) - { - $ret = ""; - $sorting = CiteProc::getContext()->getSorting(); - if (!empty($sorting)) { - CiteProc::getContext()->setRenderingState(new RenderingState("sorting")); - $sorting->sort($data); - CiteProc::getContext()->setRenderingState(new RenderingState("rendering")); - } - - if (CiteProc::getContext()->isModeBibliography()) { - foreach ($data as $citationNumber => $item) { - ++self::$numberOfCitedItems; - CiteProc::getContext()->getResults()->append($this->wrapBibEntry($item, $this->renderSingle($item, $citationNumber))); - } - $ret .= implode($this->delimiter, CiteProc::getContext()->getResults()->toArray()); - $ret = StringHelper::clearApostrophes($ret); - return "
" . $ret . "\n
"; - - } else if (CiteProc::getContext()->isModeCitation()) { - if ($citationItems->count() > 0) { //is there a filter for specific citations? - if ($this->isGroupedCitations($citationItems)) { //if citation items grouped? - return $this->renderGroupedCitations($data, $citationItems); - } else { - $data = $this->filterCitationItems($data, $citationItems); - $ret = $this->renderCitations($data, $ret); - } - - } else { - $ret = $this->renderCitations($data, $ret); - } - } - $ret = StringHelper::clearApostrophes($ret); - return $this->addAffixes($ret); - } - - /** - * @param $data - * @param int|null $citationNumber - * @return string - */ - private function renderSingle($data, $citationNumber = null) - { - - $bibliographyOptions = CiteProc::getContext()->getBibliographySpecificOptions(); - $inMargin = []; - $margin = []; - foreach ($this->children as $key => $child) { - $rendered = $child->render($data, $citationNumber); - $this->getChildsAffixesAndDelimiter($child); - if (CiteProc::getContext()->isModeBibliography() && $bibliographyOptions->getSecondFieldAlign() === "flush") { - - if ($key === 0 && !empty($rendered)) { - $inMargin[] = $rendered; - } else { - $margin[] = $rendered; - } - } else { - $inMargin[] = $rendered; - } - } - - - if (!empty($inMargin) && !empty($margin) && CiteProc::getContext()->isModeBibliography()) { - $leftMargin = $this->removeConsecutiveChars($this->htmlentities($this->format(implode("", $inMargin)))); - $rightInline = $this->removeConsecutiveChars($this->htmlentities($this->format(implode("", $margin))) . $this->suffix); - $res = '
' . $leftMargin . '
'; - $res .= '
' . $rightInline . '
'; - return $res; - } else if (!empty($inMargin)) { - $res = $this->format(implode("", $inMargin)); - return $this->htmlentities($this->removeConsecutiveChars($res)); - } - return ""; - } - - /** - * @return int - */ - public static function getNumberOfCitedItems() - { - return self::$numberOfCitedItems; - } - - /** - * @param \stdClass $dataItem - * @param string $value - * @return string - */ - private function wrapBibEntry($dataItem, $value) - { - $value = $this->addAffixes($value); - return "\n " . - "
" . - $renderedItem = CiteProcHelper::applyAdditionMarkupFunction($dataItem, "csl-entry", $value) . - "
"; - } - - /** - * @param string $text - * @return string - */ - private function htmlentities($text) - { - $text = preg_replace("/(.*)&([^#38;|amp;].*)/u", "$1&$2", $text); - return $text; - } - - /** - * @param $data - * @param $ret - * @return string - */ - private function renderCitations($data, $ret) - { - CiteProc::getContext()->getResults()->replace([]); - foreach ($data as $citationNumber => $item) { - $renderedItem = $this->renderSingle($item, $citationNumber); - $renderedItem = CiteProcHelper::applyAdditionMarkupFunction($item, "csl-entry", $renderedItem); - CiteProc::getContext()->getResults()->append($renderedItem); - } - $ret .= implode($this->delimiter, CiteProc::getContext()->getResults()->toArray()); - return $ret; - } - - /** - * @param DataList $data - * @param ArrayList $citationItems - * @return mixed - */ - private function filterCitationItems($data, $citationItems) - { - $arr = $data->toArray(); - - $arr_ = array_filter($arr, function($dataItem) use ($citationItems) { - foreach ($citationItems as $citationItem) { - if ($dataItem->id === $citationItem->id) { - return true; - } - } - return false; - }); - - return $data->replace($arr_); - } - - /** - * @param ArrayList $citationItems - * @return bool - */ - private function isGroupedCitations(ArrayList $citationItems) - { - $firstItem = array_values($citationItems->toArray())[0]; - if (is_array($firstItem)) { - return true; - } - return false; - } - - /** - * @param DataList $data - * @param ArrayList $citationItems - * @return array|string - */ - private function renderGroupedCitations($data, $citationItems) - { - $group = []; - foreach ($citationItems as $citationItemGroup) { - $data_ = $this->filterCitationItems(clone $data, $citationItemGroup); - CiteProc::getContext()->setCitationItems($data_); - $group[] = $this->addAffixes(StringHelper::clearApostrophes($this->renderCitations($data_, ""))); - } - if (CiteProc::getContext()->isCitationsAsArray()) { - return $group; - } - return implode("\n", $group); - } - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/EtAl.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/EtAl.php deleted file mode 100644 index fed01e5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/EtAl.php +++ /dev/null @@ -1,49 +0,0 @@ - - */ -class EtAl implements Rendering -{ - use FormattingTrait; - - private $term; - - public function __construct(\SimpleXMLElement $node) - { - /** @var \SimpleXMLElement $attribute */ - foreach ($node->attributes() as $attribute) { - switch ($attribute->getName()) { - case 'term': - $this->term = (string) $attribute; - break; - } - } - $this->initFormattingAttributes($node); - } - - public function render($data, $citationNumber = null) { - return $this->format(CiteProc::getContext()->getLocale()->filter('terms', $this->term)->single); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Name.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Name.php deleted file mode 100644 index 610edfc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Name.php +++ /dev/null @@ -1,645 +0,0 @@ - - */ -class Name implements HasParent -{ - use InheritableNameAttributesTrait, - FormattingTrait, - AffixesTrait, - DelimiterTrait; - - /** - * @var array - */ - protected $nameParts; - - /** - * Specifies the text string used to separate names in a name variable. Default is ”, ” (e.g. “Doe, Smith”). - * @var - */ - private $delimiter = ", "; - - /** - * @var Names - */ - private $parent; - - /** - * @var \SimpleXMLElement - */ - private $node; - - /** - * @var string - */ - private $etAl; - - /** - * @var string - */ - private $variable; - - /** - * Name constructor. - * @param \SimpleXMLElement $node - * @param Names $parent - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - */ - public function __construct(\SimpleXMLElement $node, Names $parent) - { - $this->node = $node; - $this->parent = $parent; - - $this->nameParts = []; - - /** @var \SimpleXMLElement $child */ - foreach ($node->children() as $child) { - - switch ($child->getName()) { - case "name-part": - /** @var NamePart $namePart */ - $namePart = Factory::create($child, $this); - $this->nameParts[$namePart->getName()] = $namePart; - } - } - - foreach ($node->attributes() as $attribute) { - switch ($attribute->getName()) { - case 'form': - $this->form = (string)$attribute; - break; - } - - } - - $this->initFormattingAttributes($node); - $this->initAffixesAttributes($node); - $this->initDelimiterAttributes($node); - } - - /** - * @param \stdClass $data - * @param string $var - * @param integer|null $citationNumber - * @return string - * @throws CiteProcException - */ - public function render($data, $var, $citationNumber = null) - { - $this->variable = $var; - $name = $data->{$var}; - if (!$this->attributesInitialized) { - $this->initInheritableNameAttributes($this->node); - } - if ("text" === $this->and) { - $this->and = CiteProc::getContext()->getLocale()->filter('terms', 'and')->single; - } elseif ('symbol' === $this->and) { - $this->and = '&'; - } - - $resultNames = $this->handleSubsequentAuthorSubstitution($name, $citationNumber); - - if (empty($resultNames)) { - return CiteProc::getContext()->getCitationItems()->getSubsequentAuthorSubstitute(); - } - - $resultNames = $this->prepareAbbreviation($resultNames); - - /* When set to “true” (the default is “false”), name lists truncated by et-al abbreviation are followed by - the name delimiter, the ellipsis character, and the last name of the original name list. This is only - possible when the original name list has at least two more names than the truncated name list (for this - the value of et-al-use-first/et-al-subsequent-min must be at least 2 less than the value of - et-al-min/et-al-subsequent-use-first). */ - if ($this->etAlUseLast) { - $this->and = "…"; // set "and" - $this->etAl = null; //reset $etAl; - } - - /* add "and" */ - $this->addAnd($resultNames); - - $text = $this->renderDelimiterPrecedesLast($resultNames); - - if (empty($text)) { - $text = implode($this->delimiter, $resultNames); - } - - $text = $this->appendEtAl($name, $text, $resultNames); - - /* A third value, “count”, returns the total number of names that would otherwise be rendered by the use of the - cs:names element (taking into account the effects of et-al abbreviation and editor/translator collapsing), - which allows for advanced sorting. */ - if ($this->form == 'count') { - return (int)count($resultNames); - } - - return $text; - } - - /** - * @param \stdClass $nameItem - * @param int $rank - * @return string - * @throws CiteProcException - */ - private function formatName($nameItem, $rank) - { - - $nameObj = $this->cloneNamePOSC($nameItem); - - $useInitials = $this->initialize && !is_null($this->initializeWith) && $this->initializeWith !== false; - if ($useInitials && isset($nameItem->given)) { - $nameObj->given = StringHelper::initializeBySpaceOrHyphen($nameItem->given, $this->initializeWith); - } - - $renderedResult = $this->getNamesString($nameObj, $rank); - CiteProcHelper::applyAdditionMarkupFunction($nameItem, $this->parent->getVariables()[0], $renderedResult); - return trim($renderedResult); - } - - /** - * @param \stdClass $name - * @param int $rank - * @return string - * @throws CiteProcException - */ - private function getNamesString($name, $rank) - { - $text = ""; - - if (!isset($name->family)) { - return $text; - } - - $text = $this->nameOrder($name, $rank); - - //contains nbsp prefixed by normal space or followed by normal space? - $text = htmlentities($text); - if (strpos($text, "  ") !== false || strpos($text, "  ") !== false) { - - $text = preg_replace("/[\s]+/", "", $text); //remove normal spaces - return preg_replace("/ +/", " ", $text); - } - $text = html_entity_decode(preg_replace("/[\s]+/", " ", $text)); - return $this->format(trim($text)); - } - - /** - * @param \stdClass $name - * @return \stdClass - */ - private function cloneNamePOSC($name) - { - $nameObj = new \stdClass(); - if (isset($name->family)) { - $nameObj->family = $name->family; - } - if (isset($name->given)) { - $nameObj->given = $name->given; - } - if (isset($name->{'non-dropping-particle'})) { - $nameObj->{'non-dropping-particle'} = $name->{'non-dropping-particle'}; - } - if (isset($name->{'dropping-particle'})) { - $nameObj->{'dropping-particle'} = $name->{'dropping-particle'}; - } - if (isset($name->{'suffix'})) { - $nameObj->{'suffix'} = $name->{'suffix'}; - } - return $nameObj; - } - - /** - * @param $data - * @param $text - * @param $resultNames - * @return string - */ - protected function appendEtAl($data, $text, $resultNames) - { - //append et al abbreviation - if (count($data) > 1 && - !empty($resultNames) && - !empty($this->etAl) && - !empty($this->etAlMin) && - !empty($this->etAlUseFirst) && - count($data) != count($resultNames) - ) { - - - /* By default, when a name list is truncated to a single name, the name and the “et-al” (or “and others”) - term are separated by a space (e.g. “Doe et al.”). When a name list is truncated to two or more names, the - name delimiter is used (e.g. “Doe, Smith, et al.”). This behavior can be changed with the - delimiter-precedes-et-al attribute. */ - - switch ($this->delimiterPrecedesEtAl) { - case 'never': - $text = $text . " " . $this->etAl; - break; - case 'always': - $text = $text . $this->delimiter . $this->etAl; - break; - case 'contextual': - default: - if (count($resultNames) === 1) { - $text .= " " . $this->etAl; - } else { - $text .= $this->delimiter . $this->etAl; - } - } - } - return $text; - } - - /** - * @param $resultNames - * @return array - */ - protected function prepareAbbreviation($resultNames) - { - $cnt = count($resultNames); - /* Use of et-al-min and et-al-user-first enables et-al abbreviation. If the number of names in a name variable - matches or exceeds the number set on et-al-min, the rendered name list is truncated after reaching the number of - names set on et-al-use-first. */ - - if (isset($this->etAlMin) && isset($this->etAlUseFirst)) { - - if ($this->etAlMin <= $cnt) { - if ($this->etAlUseLast && $this->etAlMin - $this->etAlUseFirst >= 2) { - /* et-al-use-last: When set to “true” (the default is “false”), name lists truncated by et-al - abbreviation are followed by the name delimiter, the ellipsis character, and the last name of the - original name list. This is only possible when the original name list has at least two more names - than the truncated name list (for this the value of et-al-use-first/et-al-subsequent-min must be at - least 2 less than the value of et-al-min/et-al-subsequent-use-first).*/ - - $lastName = array_pop($resultNames); //remove last Element and remember in $lastName - - } - for ($i = $this->etAlUseFirst; $i < $cnt; ++$i) { - unset($resultNames[$i]); - } - - $resultNames = array_values($resultNames); - - if (!empty($lastName)) { // append $lastName if exist - $resultNames[] = $lastName; - } - - if ($this->parent->hasEtAl()) { - $this->etAl = $this->parent->getEtAl()->render(null); - return $resultNames; - } else { - $this->etAl = CiteProc::getContext()->getLocale()->filter('terms', 'et-al')->single; - return $resultNames; - } - } - return $resultNames; - } - return $resultNames; - } - - /** - * @param $data - * @param \stdClass $preceding - * @return array - * @throws CiteProcException - */ - protected function renderSubsequentSubstitution($data, $preceding) - { - $resultNames = []; - $subsequentSubstitution = CiteProc::getContext()->getCitationItems()->getSubsequentAuthorSubstitute(); - $subsequentSubstitutionRule = CiteProc::getContext()->getCitationItems()->getSubsequentAuthorSubstituteRule(); - - /** - * @var string $type - * @var \stdClass $name - */ - foreach ($data as $rank => $name) { - - switch ($subsequentSubstitutionRule) { - - /* “partial-each” - when one or more rendered names in the name variable match those in the preceding - bibliographic entry, the value of subsequent-author-substitute substitutes for each matching name. - Matching starts with the first name, and continues up to the first mismatch. */ - case SubsequentAuthorSubstituteRule::PARTIAL_EACH: - - if (NameHelper::precedingHasAuthor($preceding, $name)) { - $resultNames[] = $subsequentSubstitution; - } else { - $resultNames[] = $this->formatName($name, $rank); - } - break; - - - /* “partial-first” - as “partial-each”, but substitution is limited to the first name of the name - variable. */ - case SubsequentAuthorSubstituteRule::PARTIAL_FIRST: - - if ($rank === 0) { - if ($preceding->author[0]->family === $name->family) { - $resultNames[] = $subsequentSubstitution; - } else { - $resultNames[] = $this->formatName($name, $rank); - } - } else { - $resultNames[] = $this->formatName($name, $rank); - } - break; - - /* “complete-each” - requires a complete match like “complete-all”, but now the value of - subsequent-author-substitute substitutes for each rendered name. */ - case SubsequentAuthorSubstituteRule::COMPLETE_EACH: - try { - if (NameHelper::identicalAuthors($preceding, $data)) { - $resultNames[] = $subsequentSubstitution; - } else { - $resultNames[] = $this->formatName($name, $rank); - } - } catch (CiteProcException $e) { - $resultNames[] = $this->formatName($name, $rank); - } - break; - } - } - return $resultNames; - } - - /** - * @param array $data - * @param int $citationNumber - * @return array - * @throws CiteProcException - */ - private function handleSubsequentAuthorSubstitution($data, $citationNumber) - { - $hasPreceding = CiteProc::getContext()->getCitationItems()->hasKey($citationNumber - 1); - $subsequentSubstitution = CiteProc::getContext()->getCitationItems()->getSubsequentAuthorSubstitute(); - $subsequentSubstitutionRule = CiteProc::getContext()->getCitationItems()->getSubsequentAuthorSubstituteRule(); - $preceding = CiteProc::getContext()->getCitationItems()->get($citationNumber - 1); - - - if ($hasPreceding && !is_null($subsequentSubstitution) && !empty($subsequentSubstitutionRule)) { - /** @var \stdClass $preceding */ - if ($subsequentSubstitutionRule == SubsequentAuthorSubstituteRule::COMPLETE_ALL) { - try { - if (NameHelper::identicalAuthors($preceding, $data)) { - return []; - } else { - $resultNames = $this->getFormattedNames($data); - } - } catch (CiteProcException $e) { - $resultNames = $this->getFormattedNames($data); - } - } else { - $resultNames = $this->renderSubsequentSubstitution($data, $preceding); - } - } else { - $resultNames = $this->getFormattedNames($data); - } - return $resultNames; - } - - - /** - * @param array $data - * @return array - * @throws CiteProcException - */ - protected function getFormattedNames($data) - { - $resultNames = []; - foreach ($data as $rank => $name) { - $formatted = $this->formatName($name, $rank); - $resultNames[] = NameHelper::addExtendedMarkup($this->variable, $name, $formatted); - } - return $resultNames; - } - - /** - * @param $resultNames - * @return array - */ - protected function renderDelimiterPrecedesLastNever($resultNames) - { - $text = ""; - if (!$this->etAlUseLast) { - if (count($resultNames) === 1) { - $text = $resultNames[0]; - } else if (count($resultNames) === 2) { - $text = implode(" ", $resultNames); - } else { // >2 - $lastName = array_pop($resultNames); - $text = implode($this->delimiter, $resultNames) . " " . $lastName; - } - } - return $text; - } - - /** - * @param $resultNames - * @return string - */ - protected function renderDelimiterPrecedesLastContextual($resultNames) - { - if (count($resultNames) === 1) { - $text = $resultNames[0]; - } else if (count($resultNames) === 2) { - $text = implode(" ", $resultNames); - } else { - $text = implode($this->delimiter, $resultNames); - } - return $text; - } - - /** - * @param $resultNames - */ - protected function addAnd(&$resultNames) - { - $count = count($resultNames); - if (!empty($this->and) && $count > 1 && empty($this->etAl)) { - $new = $this->and . ' ' . end($resultNames); // add and-prefix of the last name if "and" is defined - $resultNames[count($resultNames) - 1] = $new; //set prefixed last name at the last position of $resultNames array - } - } - - /** - * @param $resultNames - * @return array|string - */ - protected function renderDelimiterPrecedesLast($resultNames) - { - $text = ""; - if (!empty($this->and) && empty($this->etAl)) { - switch ($this->delimiterPrecedesLast) { - case 'after-inverted-name': - //TODO: implement - break; - case 'always': - $text = implode($this->delimiter, $resultNames); - break; - case 'never': - $text = $this->renderDelimiterPrecedesLastNever($resultNames); - break; - case 'contextual': - default: - $text = $this->renderDelimiterPrecedesLastContextual($resultNames); - } - } - return $text; - } - - - /** - * @param \stdClass $data - * @param integer $rank - * - * @return string - * @throws CiteProcException - */ - private function nameOrder($data, $rank) - { - $nameAsSortOrder = (($this->nameAsSortOrder === "first" && $rank === 0) || $this->nameAsSortOrder === "all"); - $demoteNonDroppingParticle = CiteProc::getContext()->getGlobalOptions()->getDemoteNonDroppingParticles(); - - if (StringHelper::isLatinString(NameHelper::normalizeName($data)) || StringHelper::isCyrillicString(NameHelper::normalizeName($data))) { - if ($this->form === "long" && $nameAsSortOrder && - ((string)$demoteNonDroppingParticle === DemoteNonDroppingParticle::NEVER || - (string)$demoteNonDroppingParticle === DemoteNonDroppingParticle::SORT_ONLY) - ) { - - // [La] [Fontaine], [Jean] [de], [III] - NameHelper::prependParticleTo($data, "family", "non-dropping-particle"); - NameHelper::appendParticleTo($data, "given", "dropping-particle"); - - list($family, $given) = $this->renderNameParts($data); - - $text = $family . (!empty($given) ? $this->sortSeparator . $given : ""); - $text .= !empty($data->suffix) ? $this->sortSeparator . $data->suffix : ""; - } else if ($this->form === "long" && $nameAsSortOrder && - (is_null($demoteNonDroppingParticle) || - (string)$demoteNonDroppingParticle === DemoteNonDroppingParticle::DISPLAY_AND_SORT) - ) { - // [Fontaine], [Jean] [de] [La], [III] - - NameHelper::appendParticleTo($data, "given", "dropping-particle"); - NameHelper::appendParticleTo($data, "given", "non-dropping-particle"); - list($family, $given) = $this->renderNameParts($data); - $text = $family; - $text .= !empty($given) ? $this->sortSeparator . $given : ""; - $text .= !empty($data->suffix) ? $this->sortSeparator . $data->suffix : ""; - - } else if ($this->form === "long" && $nameAsSortOrder && empty($demoteNonDroppingParticle)) { - list($family, $given) = $this->renderNameParts($data); - $text = $family; - $text .= !empty($given) ? $this->delimiter . $given : ""; - $text .= !empty($data->suffix) ? $this->sortSeparator . $data->suffix : ""; - } else if ($this->form === "short") { - // [La] [Fontaine] - NameHelper::prependParticleTo($data, "family", "non-dropping-particle"); - $text = $data->family; - } else { //form "long" (default) - - // [Jean] [de] [La] [Fontaine] [III] - NameHelper::prependParticleTo($data, "family", "non-dropping-particle"); - NameHelper::prependParticleTo($data, "family", "dropping-particle"); - NameHelper::appendParticleTo($data, "family", "suffix"); - list($family, $given) = $this->renderNameParts($data); - $text = !empty($given) ? $given . " " . $family : $family; - } - } else { - $text = $this->form === "long" ? $data->family.$data->given : $data->family; - } - - return $text; - } - - /** - * @param $data - * @return array - */ - private function renderNameParts($data) - { - $given = ""; - $family = array_key_exists("family", $this->nameParts) ? $this->nameParts["family"]->render($data) : $data->family; - if (isset($data->given)) { - $given = array_key_exists("given", $this->nameParts) ? $this->nameParts["given"]->render($data) : $data->given; - } - return [$family, $given]; - } - - - /** - * @return string - */ - public function getForm() - { - return $this->form; - } - - /** - * @return string - */ - public function isNameAsSortOrder() - { - return $this->nameAsSortOrder; - } - - /** - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * @param mixed $delimiter - */ - public function setDelimiter($delimiter) - { - $this->delimiter = $delimiter; - } - - /** - * @return Names - */ - public function getParent() - { - return $this->parent; - } - -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/NamePart.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/NamePart.php deleted file mode 100644 index 7611707..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/NamePart.php +++ /dev/null @@ -1,110 +0,0 @@ - - */ -class NamePart -{ - - use FormattingTrait, - TextCaseTrait, - AffixesTrait; - - private $name; - - /** - * @var Name - */ - private $parent; - - /** - * NamePart constructor. - * @param \SimpleXMLElement $node - * @param Name $parent - */ - public function __construct(\SimpleXMLElement $node, $parent) - { - $this->parent = $parent; - - /** @var \SimpleXMLElement $attribute */ - foreach ($node->attributes() as $attribute) { - if ($attribute->getName() === 'name') { - $this->name = (string) $attribute; - } - } - - $this->initFormattingAttributes($node); - $this->initTextCaseAttributes($node); - $this->initAffixesAttributes($node); - } - - /** - * @param $data - * @return mixed - * @throws CiteProcException - */ - public function render($data) - { - if (!isset($data->{$this->name})) { - return ""; - } - - switch ($this->name) { - - /* If set to “given”, formatting and text-case attributes on cs:name-part affect the “given” and - “dropping-particle” name-parts. affixes surround the “given” name-part, enclosing any demoted name particles - for inverted names.*/ - case 'given': - return $this->addAffixes($this->format($this->applyTextCase($data->given))); - - /* if name set to “family”, formatting and text-case attributes affect the “family” and - “non-dropping-particle” name-parts. affixes surround the “family” name-part, enclosing any preceding name - particles, as well as the “suffix” name-part for non-inverted names.*/ - case 'family': - return $this->addAffixes($this->format($this->applyTextCase($data->family))); - - } - throw new CiteProcException("This shouldn't happen."); - } - - /** - * @return string - */ - public function getName() - { - return $this->name; - } - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Names.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Names.php deleted file mode 100644 index 041fb3b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Names.php +++ /dev/null @@ -1,368 +0,0 @@ - - */ -class Names implements Rendering, HasParent -{ - use DelimiterTrait, - AffixesTrait, - FormattingTrait, - InheritableNameAttributesTrait; - - /** - * Variables (selected with the required variable attribute), each of which can contain multiple names (e.g. the - * “author” variable contains all the author names of the cited item). If multiple variables are selected - * (separated by single spaces, see example below), each variable is independently rendered in the order specified. - * - * @var ArrayList - */ - private $variables; - - /** - * The Name element, an optional child element of Names, can be used to describe the formatting of individual - * names, and the separation of names within a name variable. - * - * @var Name - */ - private $name; - - /** - * The optional Label element must be included after the Name and EtAl elements, but before - * the Substitute element. When used as a child element of Names, Label does not carry the variable - * attribute; it uses the variable(s) set on the parent Names element instead. - * - * @var Label - */ - private $label; - - /** - * The optional Substitute element, which must be included as the last child element of Names, adds - * substitution in case the name variables specified in the parent cs:names element are empty. The substitutions - * are specified as child elements of Substitute, and must consist of one or more rendering elements (with the - * exception of Layout). A shorthand version of Names without child elements, which inherits the attributes - * values set on the cs:name and EtAl child elements of the original Names element, may also be used. If - * Substitute contains multiple child elements, the first element to return a non-empty result is used for - * substitution. Substituted variables are suppressed in the rest of the output to prevent duplication. An example, - * where an empty “author” name variable is substituted by the “editor” name variable, or, when no editors exist, - * by the “title” macro: - * - * - * - * - * - * - * - * - * - * - * @var Substitute - */ - private $substitute; - - /** - * Et-al abbreviation, controlled via the et-al-... attributes (see Name), can be further customized with the - * optional cs:et-al element, which must follow the cs:name element (if present). The term attribute may be set to - * either “et-al” (the default) or to “and others” to use either term. The formatting attributes may also be used, - * for example to italicize the “et-al” term: - * - * @var EtAl - */ - private $etAl; - - /** - * The delimiter attribute may be set on cs:names to separate the names of the different name variables (e.g. the - * semicolon in “Doe, Smith (editors); Johnson (translator)”). - * - * @var string - */ - private $delimiter = ", "; - - private $parent; - - /** - * Names constructor. - * @param \SimpleXMLElement $node - * @param $parent - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - */ - public function __construct(\SimpleXMLElement $node, $parent) - { - $this->initInheritableNameAttributes($node); - $this->parent = $parent; - /** @var \SimpleXMLElement $child */ - foreach ($node->children() as $child) { - - switch ($child->getName()) { - case "name": - $this->name = Factory::create($child, $this); - break; - case "label": - $this->label = Factory::create($child); - break; - case "substitute": - $this->substitute = new Substitute($child, $this); - break; - case "et-al": - $this->etAl = Factory::create($child); - } - } - - /** @var \SimpleXMLElement $attribute */ - foreach ($node->attributes() as $attribute) { - if ("variable" === $attribute->getName()) { - $this->variables = new ArrayList(explode(" ", (string) $attribute)); - break; - } - } - - $this->initDelimiterAttributes($node); - $this->initAffixesAttributes($node); - $this->initFormattingAttributes($node); - } - - /** - * This outputs the contents of one or more name variables (selected with the required variable attribute), each - * of which can contain multiple names (e.g. the “author” variable contains all the author names of the cited item). - * If multiple variables are selected (separated by single spaces), each variable is independently rendered in the - * order specified, with one exception: when the selection consists of “editor” and “translator”, and when the - * contents of these two name variables is identical, then the contents of only one name variable is rendered. In - * addition, the “editortranslator” term is used if the Names element contains a Label element, replacing the - * default “editor” and “translator” terms (e.g. resulting in “Doe (editor & translator)”). - * - * @param \stdClass $data - * @param int|null $citationNumber - * @return string - * @throws \Seboettg\CiteProc\Exception\CiteProcException - */ - public function render($data, $citationNumber = null) - { - $str = ""; - - /* when the selection consists of “editor” and “translator”, and when the contents of these two name variables - is identical, then the contents of only one name variable is rendered. In addition, the “editortranslator” - term is used if the cs:names element contains a cs:label element, replacing the default “editor” and - “translator” terms (e.g. resulting in “Doe (editor & translator)”) */ - if ($this->variables->hasValue("editor") && $this->variables->hasValue("translator")) { - if (isset($data->editor) && isset($data->translator) && NameHelper::sameNames($data->editor, $data->translator)) { - if (isset($this->name)) { - $str .= $this->name->render($data, 'editor'); - } else { - $arr = []; - foreach ($data->editor as $editor) { - $edt = $this->format($editor->family . ", " . $editor->given); - $results[] = NameHelper::addExtendedMarkup('editor', $editor, $edt); - } - $str .= implode($this->delimiter, $arr); - } - if (isset($this->label)) { - $this->label->setVariable("editortranslator"); - $str .= $this->label->render($data); - } - $vars = $this->variables->toArray(); - $vars = array_filter($vars, function($value) { - return !($value === "editor" || $value === "translator"); - }); - $this->variables->setArray($vars); - } - } - - $results = []; - foreach ($this->variables as $var) { - - if (!empty($data->{$var})) { - if (!empty($this->name)) { - $res = $this->name->render($data, $var, $citationNumber); - $name = $res; - if (!empty($this->label)) { - $name = $this->appendLabel($data, $var, $name); - } - //add multiple counting values - if (is_numeric($name) && $this->name->getForm() === "count") { - $results = $this->addCountValues($res, $results); - } else { - $results[] = $this->format($name); - } - } else { - foreach ($data->{$var} as $name) { - $formatted = $this->format($name->given . " " . $name->family); - $results[] = NameHelper::addExtendedMarkup($var, $name, $formatted); - } - } - // suppress substituted variables - if (CiteProc::getContext()->getRenderingState()->getValue() === RenderingState::SUBSTITUTION) { - unset($data->{$var}); - } - } else { - if (!empty($this->substitute)) { - $results[] = $this->substitute->render($data); - } - } - } - $str .= implode($this->delimiter, $results); - return !empty($str) ? $this->addAffixes($str) : ""; - } - - - /** - * @param $data - * @param $var - * @param $name - * @return string - */ - private function appendLabel($data, $var, $name) - { - $this->label->setVariable($var); - if (in_array($this->label->getForm(), ["verb", "verb-short"])) { - $name = $this->label->render($data) . $name; - } else { - $name .= $this->label->render($data); - } - return $name; - } - - /** - * @param $res - * @param $results - * @return array - */ - private function addCountValues($res, $results) - { - $lastElement = current($results); - $key = key($results); - if (!empty($lastElement)) { - $lastElement += $res; - $results[$key] = $lastElement; - } else { - $results[] = $res; - } - return $results; - } - - /** - * @return bool - */ - public function hasEtAl() - { - return !empty($this->etAl); - } - - /** - * @return EtAl - */ - public function getEtAl() - { - return $this->etAl; - } - - /** - * @param EtAl $etAl - * @return $this - */ - public function setEtAl(EtAl $etAl) - { - $this->etAl = $etAl; - return $this; - } - - /** - * @return bool - */ - public function hasName() - { - return !empty($this->name); - } - - /** - * @return Name - */ - public function getName() - { - return $this->name; - } - - /** - * @param Name $name - * @return $this - */ - public function setName(Name $name) - { - $this->name = $name; - return $this; - } - - /** - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * @return ArrayList - */ - public function getVariables() - { - return $this->variables; - } - - /** - * @return bool - */ - public function hasLabel() - { - return !empty($this->label); - } - - /** - * @return Label - */ - public function getLabel() - { - return $this->label; - } - - /** - * @param Label $label - */ - public function setLabel($label) - { - $this->label = $label; - } - - /** - * @return mixed - */ - public function getParent() - { - return $this->parent; - } - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Substitute.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Substitute.php deleted file mode 100644 index ed5c955..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Substitute.php +++ /dev/null @@ -1,131 +0,0 @@ - - * - * - * - * - * - * - * - * - * - * @package Seboettg\CiteProc\Rendering\Name - * - * @author Sebastian Böttger - */ -class Substitute implements Rendering -{ - - /** - * @var ArrayList - */ - private $children; - - /** - * @var Names - */ - private $parent; - - /** - * Substitute constructor. - * @param \SimpleXMLElement $node - * @param Names $parent - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - */ - public function __construct(\SimpleXMLElement $node, Names $parent) - { - $this->parent = $parent; - $this->children = new ArrayList(); - foreach ($node->children() as $child) { - - /** @var \SimpleXMLElement $child */ - if ($child->getName() === "names") { - - /** @var Names $names */ - $names = Factory::create($child, $this); - - /* A shorthand version of cs:names without child elements, which inherits the attributes values set on - the cs:name and cs:et-al child elements of the original cs:names element, may also be used. */ - if (!$names->hasEtAl()) { - // inherit et-al - if ($this->parent->hasEtAl()) { - $names->setEtAl($this->parent->getEtAl()); - } - } - if (!$names->hasName()) { - // inherit name - if ($this->parent->hasName()) { - $names->setName($this->parent->getName()); - } - } - // inherit label - if (!$names->hasLabel() && $this->parent->hasLabel()) { - $names->setLabel($this->parent->getLabel()); - } - - $this->children->append($names); - } else { - $object = Factory::create($child, $this); - $this->children->append($object); - } - } - } - - /** - * @param \stdClass $data - * @param int|null $citationNumber - * @return string - */ - public function render($data, $citationNumber = null) - { - $ret = []; - if (CiteProc::getContext()->getRenderingState()->getValue() !== RenderingState::SORTING) { - CiteProc::getContext()->setRenderingState(new RenderingState(RenderingState::SUBSTITUTION)); - } - - /** @var Rendering $child */ - foreach ($this->children as $child) { - /* If cs:substitute contains multiple child elements, the first element to return a - non-empty result is used for substitution. */ - $res = $child->render($data, $citationNumber); - if (!empty($res)) { - $ret[] = $res; - break; - } - } - if (CiteProc::getContext()->getRenderingState()->getValue() === RenderingState::SUBSTITUTION) { - CiteProc::getContext()->setRenderingState(new RenderingState(RenderingState::RENDERING)); - } - return implode("", $ret); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Number.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Number.php deleted file mode 100644 index 02474a2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Number.php +++ /dev/null @@ -1,187 +0,0 @@ - - */ -class Number implements Rendering -{ - - const RANGE_DELIMITER_HYPHEN = "-"; - - const RANGE_DELIMITER_AMPERSAND = "&"; - - const RANGE_DELIMITER_COMMA = ","; - - use FormattingTrait, - AffixesTrait, - TextCaseTrait, - DisplayTrait; - - /** - * @var string - */ - private $variable; - - /** - * @var string - */ - private $form; - - public function __construct(\SimpleXMLElement $node) - { - // - /** @var \SimpleXMLElement $attribute */ - foreach ($node->attributes() as $attribute) { - switch ($attribute->getName()) { - case 'variable': - $this->variable = (string) $attribute; - break; - case 'form': - $this->form = (string) $attribute; - } - } - - $this->initFormattingAttributes($node); - $this->initAffixesAttributes($node); - $this->initTextCaseAttributes($node); - } - - /** - * @param \stdClass $data - * @param int|null $citationNumber - * @return string - */ - public function render($data, $citationNumber = null) - { - $lang = (isset($data->language) && $data->language != 'en') ? $data->language : 'en'; - - if (empty($this->variable) || empty($data->{$this->variable})) { - return ""; - } - switch ($this->form) { - case 'ordinal': - $var = $data->{$this->variable}; - if (preg_match("/\s*(\d+)\s*([\-\-\&,])\s*(\d+)\s*/", $var, $matches)) { - $num1 = self::ordinal($matches[1]); - $num2 = self::ordinal($matches[3]); - $text = $this->buildNumberRangeString($num1, $num2, $matches[2]); - } else { - $text = self::ordinal($var); - } - break; - case 'long-ordinal': - $var = $data->{$this->variable}; - if (preg_match("/\s*(\d+)\s*([\-\-\&,])\s*(\d+)\s*/", $var, $matches)) { - if ($this->textCase === "capitalize-first" || $this->textCase === "sentence") { - $num1 = self::longOrdinal($matches[1]); - $num2 = self::longOrdinal($matches[3]); - } else { - $num1 = $this->applyTextCase(self::longOrdinal($matches[1])); - $num2 = $this->applyTextCase(self::longOrdinal($matches[3])); - } - $text = $this->buildNumberRangeString($num1, $num2, $matches[2]); - } else { - $text = self::longOrdinal($var); - } - break; - case 'roman': - $var = $data->{$this->variable}; - if (preg_match("/\s*(\d+)\s*([\-\-\&,])\s*(\d+)\s*/", $var, $matches)) { - $num1 = Util\NumberHelper::dec2roman($matches[1]); - $num2 = Util\NumberHelper::dec2roman($matches[3]); - $text = $this->buildNumberRangeString($num1, $num2, $matches[2]); - } else { - $text = Util\NumberHelper::dec2roman($var); - } - break; - case 'numeric': - default: - /* - During the extraction, numbers separated by a hyphen are stripped of intervening spaces (“2 - 4” - becomes “2-4”). Numbers separated by a comma receive one space after the comma (“2,3” and “2 , 3” - become “2, 3”), while numbers separated by an ampersand receive one space before and one after the - ampersand (“2&3” becomes “2 & 3”). - */ - $var = $data->{$this->variable}; - if (preg_match("/\s*(\d+)\s*([\-\-\&,])\s*(\d+)\s*/", $var, $matches)) { - $text = $this->buildNumberRangeString($matches[1], $matches[3], $matches[2]); - } else { - $text = $var; - } - break; - } - return $this->wrapDisplayBlock($this->addAffixes($this->format($this->applyTextCase($text, $lang)))); - } - - /** - * @param $num - * @return string - */ - public static function ordinal($num) { - if (($num / 10) % 10 == 1) { - $ordinalSuffix = CiteProc::getContext()->getLocale()->filter('terms', 'ordinal')->single; - } elseif ($num % 10 == 1) { - $ordinalSuffix = CiteProc::getContext()->getLocale()->filter('terms', 'ordinal-01')->single; - } elseif ($num % 10 == 2) { - $ordinalSuffix = CiteProc::getContext()->getLocale()->filter('terms', 'ordinal-02')->single; - } elseif ($num % 10 == 3) { - $ordinalSuffix = CiteProc::getContext()->getLocale()->filter('terms', 'ordinal-03')->single; - } else { - $ordinalSuffix = CiteProc::getContext()->getLocale()->filter('terms', 'ordinal-04')->single; - } - if (empty($ordinalSuffix)) { - $ordinalSuffix = CiteProc::getContext()->getLocale()->filter('terms', 'ordinal')->single; - } - return $num . $ordinalSuffix; - } - - /** - * @param $num - * @return string - */ - public static function longOrdinal($num) { - $num = sprintf("%02d", $num); - $ret = CiteProc::getContext()->getLocale()->filter('terms', 'long-ordinal-' . $num)->single; - if (!$ret) { - return self::ordinal($num); - } - return $ret; - } - - /** - * @param string|int $num1 - * @param string|int $num2 - * @param string $delim - * @return string - */ - public function buildNumberRangeString($num1, $num2, $delim) { - - if (self::RANGE_DELIMITER_AMPERSAND === $delim) { - $numRange = "$num1 " . htmlentities(self::RANGE_DELIMITER_AMPERSAND) . " $num2"; - } else if (self::RANGE_DELIMITER_COMMA === $delim) { - $numRange = $num1 . htmlentities(self::RANGE_DELIMITER_COMMA) . " $num2"; - } else { - $numRange = $num1 . self::RANGE_DELIMITER_HYPHEN . $num2; - } - return $numRange; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Rendering.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Rendering.php deleted file mode 100644 index 4392247..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Rendering.php +++ /dev/null @@ -1,30 +0,0 @@ - - */ -class Text implements Rendering -{ - use FormattingTrait, - AffixesTrait, - TextCaseTrait, - DisplayTrait, - ConsecutivePunctuationCharacterTrait, - QuotesTrait; - - /** - * @var string - */ - private $toRenderType; - - /** - * @var string - */ - private $toRenderTypeValue; - - /** - * @var string - */ - private $form = "long"; - - /** - * Text constructor. - * @param \SimpleXMLElement $node - */ - public function __construct(\SimpleXMLElement $node) - { - foreach ($node->attributes() as $attribute) { - $name = $attribute->getName(); - if (in_array($name, ['value', 'variable', 'macro', 'term'])) { - $this->toRenderType = $name; - $this->toRenderTypeValue = (string) $attribute; - } - if ($name === "form") { - $this->form = (string) $attribute; - } - } - $this->initFormattingAttributes($node); - $this->initDisplayAttributes($node); - $this->initTextCaseAttributes($node); - $this->initAffixesAttributes($node); - $this->initQuotesAttributes($node); - } - - /** - * @param \stdClass $data - * @param int|null $citationNumber - * @return string - */ - public function render($data, $citationNumber = null) - { - $lang = (isset($data->language) && $data->language != 'en') ? $data->language : 'en'; - - $renderedText = ""; - switch ($this->toRenderType) { - case 'value': - $renderedText = $this->applyTextCase($this->toRenderTypeValue, $lang); - break; - case 'variable': - if ($this->toRenderTypeValue === "citation-number") { - $renderedText = $this->renderCitationNumber($data, $citationNumber); - break; - } else if ($this->toRenderTypeValue === "page") { - $renderedText = $this->renderPage($data); - // for test sort_BibliographyCitationNumberDescending.json - } else { - $renderedText = $this->renderVariable($data, $lang); - } - if (CiteProc::getContext()->getRenderingState()->getValue() === RenderingState::SUBSTITUTION) { - unset($data->{$this->toRenderTypeValue}); - } - $renderedText = $this->applyAdditionalMarkupFunction($data, $renderedText); - break; - case 'macro': - $renderedText = $this->renderMacro($data); - break; - case 'term': - $term = CiteProc::getContext()->getLocale()->filter("terms", $this->toRenderTypeValue, $this->form)->single; - $renderedText = !empty($term) ? $this->applyTextCase($term, $lang) : ""; - } - if (!empty($renderedText)) { - $renderedText = $this->formatRenderedText($renderedText); - } - return $renderedText; - } - - /** - * @return string - */ - public function getSource() - { - return $this->toRenderType; - } - - /** - * @return string - */ - public function getVariable() - { - return $this->toRenderTypeValue; - } - - private function renderPage($data) - { - if (empty($data->page)) { - return ""; - } - - if (preg_match(NumberHelper::PATTERN_COMMA_AMPERSAND_RANGE, $data->page)) { - $data->page = $this->normalizeDateRange($data->page); - $ranges = preg_split("/[-–]/", trim($data->page)); - if (count($ranges) > 1) { - if (!empty(CiteProc::getContext()->getGlobalOptions()) && !empty(CiteProc::getContext()->getGlobalOptions()->getPageRangeFormat())) { - return PageHelper::processPageRangeFormats($ranges, CiteProc::getContext()->getGlobalOptions()->getPageRangeFormat()); - } - list($from, $to) = $ranges; - return "$from-$to"; - } - } - return $data->page; - } - - private function normalizeDateRange($page) - { - if (preg_match("/^(\d+)--(\d+)$/", trim($page), $matches)) { - return $matches[1]."-".$matches[2]; - } - return $page; - } - - /** - * @param $data - * @param $renderedText - * @return mixed - */ - private function applyAdditionalMarkupFunction($data, $renderedText) - { - return CiteProcHelper::applyAdditionMarkupFunction($data, $this->toRenderTypeValue, $renderedText); - } - - /** - * @param $data - * @param $lang - * @return string - */ - private function renderVariable($data, $lang) - { - // check if there is an attribute with prefix short or long e.g. shortTitle or longAbstract - // test case group_ShortOutputOnly.json - $renderedText = ""; - if (in_array($this->form, ["short", "long"])) { - $attrWithPrefix = $this->form . ucfirst($this->toRenderTypeValue); - $attrWithSuffix = $this->toRenderTypeValue . "-" . $this->form; - if (isset($data->{$attrWithPrefix}) && !empty($data->{$attrWithPrefix})) { - $renderedText = $this->applyTextCase(StringHelper::clearApostrophes($data->{$attrWithPrefix}), $lang); - } else { - if (isset($data->{$attrWithSuffix}) && !empty($data->{$attrWithSuffix})) { - $renderedText = $this->applyTextCase(StringHelper::clearApostrophes($data->{$attrWithSuffix}), - $lang); - } else { - if (isset($data->{$this->toRenderTypeValue})) { - $renderedText = $this->applyTextCase(StringHelper::clearApostrophes($data->{$this->toRenderTypeValue}), - $lang); - } - - } - } - } else { - if (!empty($data->{$this->toRenderTypeValue})) { - $renderedText = $this->applyTextCase(StringHelper::clearApostrophes($data->{$this->toRenderTypeValue}), - $lang); - } - } - return $renderedText; - } - - /** - * @param $renderedText - * @return string - */ - private function formatRenderedText($renderedText) - { - $text = $this->format($renderedText); - $res = $this->addAffixes($text); - if (!empty($res)) { - $res = $this->removeConsecutiveChars($res); - } - $res = $this->addSurroundingQuotes($res); - return $this->wrapDisplayBlock($res); - } - - /** - * @param $data - * @param $citationNumber - * @return int|mixed - */ - private function renderCitationNumber($data, $citationNumber) - { - $renderedText = $citationNumber + 1; - $renderedText = $this->applyAdditionalMarkupFunction($data, $renderedText); - return $renderedText; - } - - /** - * @param $data - * @return string - */ - private function renderMacro($data) - { - $macro = CiteProc::getContext()->getMacro($this->toRenderTypeValue); - if (is_null($macro)) { - try { - throw new CiteProcException("Macro \"" . $this->toRenderTypeValue . "\" does not exist."); - } catch (CiteProcException $e) { - $renderedText = ""; - } - } else { - $renderedText = $macro->render($data); - } - return $renderedText; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/RenderingState.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/RenderingState.php deleted file mode 100644 index 86a9bf7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/RenderingState.php +++ /dev/null @@ -1,35 +0,0 @@ - - */ -class RenderingState extends Enum -{ - - const __default = self::RENDERING; - - - const RENDERING = "rendering"; - - const SORTING = "sorting"; - - const SUBSTITUTION = "substitution"; -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Root/Info.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Root/Info.php deleted file mode 100644 index 2517773..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Root/Info.php +++ /dev/null @@ -1,103 +0,0 @@ -authors = []; - $this->links = []; - - /** @var \SimpleXMLElement $child */ - foreach ($node->children() as $child) { - switch ($child->getName()) { - case 'author': - case 'contributor': - $author = new \stdClass(); - /** @var \SimpleXMLElement $authorNode */ - foreach ($child->children() as $authorNode) { - $author->{$authorNode->getName()} = (string) $authorNode; - } - $this->authors[] = $author; - break; - case 'link': - foreach ($child->attributes() as $attribute) { - if ($attribute->getName() === "value") { - $this->links[] = (string) $attribute; - } - } - break; - default: - $this->{$child->getName()} = (string) $child; - } - } - } - - /** - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * @return array - */ - public function getAuthors() - { - return $this->authors; - } - - /** - * @return array - */ - public function getLinks() - { - return $this->links; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Root/Root.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Root/Root.php deleted file mode 100644 index 7d3bb8e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Root/Root.php +++ /dev/null @@ -1,22 +0,0 @@ - - */ -class Root -{ - use InheritableNameAttributesTrait; -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Bibliography.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Bibliography.php deleted file mode 100644 index ab62667..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Bibliography.php +++ /dev/null @@ -1,73 +0,0 @@ - - */ -class Bibliography extends StyleElement -{ - private $node; - - /** - * Bibliography constructor. - * @param \SimpleXMLElement $node - * @param Root $parent - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - */ - public function __construct(\SimpleXMLElement $node, Root $parent) - { - parent::__construct($node, $parent); - $this->node = $node; - $bibliographyOptions = new BibliographyOptions($node); - CiteProc::getContext()->setBibliographySpecificOptions($bibliographyOptions); - $this->initInheritableNameAttributes($node); - } - - /** - * @param array|DataList $data - * @param int|null $citationNumber - * @return string - */ - public function render($data, $citationNumber = null) - { - if (!$this->attributesInitialized) { - $this->initInheritableNameAttributes($this->node); - } - $subsequentAuthorSubstitute = CiteProc::getContext() - ->getBibliographySpecificOptions() - ->getSubsequentAuthorSubstitute(); - - $subsequentAuthorSubstituteRule = CiteProc::getContext() - ->getBibliographySpecificOptions() - ->getSubsequentAuthorSubstituteRule(); - - if ($subsequentAuthorSubstitute !== null && !empty($subsequentAuthorSubstituteRule)) { - CiteProc::getContext()->getCitationItems()->setSubsequentAuthorSubstitute($subsequentAuthorSubstitute); - CiteProc::getContext()->getCitationItems()->setSubsequentAuthorSubstituteRule($subsequentAuthorSubstituteRule); - } - - return $this->layout->render($data, $citationNumber); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Citation.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Citation.php deleted file mode 100644 index 1df8774..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Citation.php +++ /dev/null @@ -1,62 +0,0 @@ - - */ -class Citation extends StyleElement -{ - - private $node; - - /** - * Citation constructor. - * @param \SimpleXMLElement $node - * @param $parent - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - */ - public function __construct(\SimpleXMLElement $node, $parent) - { - parent::__construct($node, $parent); - $citationOptions = new CitationOptions($node); - CiteProc::getContext()->setCitationSpecificOptions($citationOptions); - $this->node = $node; - } - - /** - * @param array|DataList $data - * @param ArrayList $citationItems - * @return string - */ - public function render($data, $citationItems) - { - if (!$this->attributesInitialized) { - $this->initInheritableNameAttributes($this->node); - } - return $this->layout->render($data, $citationItems); - } - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/InheritableNameAttributesTrait.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/InheritableNameAttributesTrait.php deleted file mode 100644 index d672391..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/InheritableNameAttributesTrait.php +++ /dev/null @@ -1,627 +0,0 @@ - - */ -trait InheritableNameAttributesTrait -{ - static public $attributes = [ - 'and', - 'delimiter-precedes-et-al', - 'delimiter-precedes-last', - 'et-al-min', - 'et-al-use-first', - 'et-al-use-last', - 'et-al-subsequent-min', - 'et-al-subsequent-use-first', - 'initialize', - 'initialize-with', - 'name-as-sort-order', - 'sort-separator', - 'name-form', - 'form', - 'name-delimiter', - 'delimiter' - ]; - - /** - * @var bool - */ - protected $attributesInitialized = false; - - /** - * Specifies the delimiter between the second to last and last name of the names in a name variable. Allowed values - * are “text” (selects the “and” term, e.g. “Doe, Johnson and Smith”) and “symbol” (selects the ampersand, - * e.g. “Doe, Johnson & Smith”). - * - * @var string - */ - private $and; - - /** - * Determines when the name delimiter or a space is used between a truncated name list and the “et-al” - * (or “and others”) term in case of et-al abbreviation. Allowed values: - * - “contextual” - (default), name delimiter is only used for name lists truncated to two or more names - * - 1 name: “J. Doe et al.” - * - 2 names: “J. Doe, S. Smith, et al.” - * - “after-inverted-name” - name delimiter is only used if the preceding name is inverted as a result of the - * - name-as-sort-order attribute. E.g. with name-as-sort-order set to “first”: - * - “Doe, J., et al.” - * - “Doe, J., S. Smith et al.” - * - “always” - name delimiter is always used - * - 1 name: “J. Doe, et al.” - * - 2 names: “J. Doe, S. Smith, et al.” - * - “never” - name delimiter is never used - * - 1 name: “J. Doe et al.” - * - 2 names: “J. Doe, S. Smith et al.” - * - * @var string - */ - private $delimiterPrecedesEtAl; - - /** - * Determines when the name delimiter is used to separate the second to last and the last name in name lists (if - * and is not set, the name delimiter is always used, regardless of the value of delimiter-precedes-last). Allowed - * values: - * - * - “contextual” - (default), name delimiter is only used for name lists with three or more names - * - 2 names: “J. Doe and T. Williams” - * - 3 names: “J. Doe, S. Smith, and T. Williams” - * - “after-inverted-name” - name delimiter is only used if the preceding name is inverted as a result of the - * name-as-sort-order attribute. E.g. with name-as-sort-order set to “first”: - * - “Doe, J., and T. Williams” - * - “Doe, J., S. Smith and T. Williams” - * - “always” - name delimiter is always used - * - 2 names: “J. Doe, and T. Williams” - * - 3 names: “J. Doe, S. Smith, and T. Williams” - * - “never” - name delimiter is never used - * - 2 names: “J. Doe and T. Williams” - * - 3 names: “J. Doe, S. Smith and T. Williams” - * - * @var string - */ - private $delimiterPrecedesLast; - - /** - * Use of etAlMin (et-al-min attribute) and etAlUseFirst (et-al-use-first attribute) enables et-al abbreviation. If - * the number of names in a name variable matches or exceeds the number set on etAlMin, the rendered name list is - * truncated after reaching the number of names set on etAlUseFirst. - * - * @var int - */ - private $etAlMin; - - /** - * Use of etAlMin (et-al-min attribute) and etAlUseFirst (et-al-use-first attribute) enables et-al abbreviation. If - * the number of names in a name variable matches or exceeds the number set on etAlMin, the rendered name list is - * truncated after reaching the number of names set on etAlUseFirst. - * - * @var int - */ - private $etAlUseFirst; - - /** - * When set to “true” (the default is “false”), name lists truncated by et-al abbreviation are followed by the name - * delimiter, the ellipsis character, and the last name of the original name list. This is only possible when the - * original name list has at least two more names than the truncated name list (for this the value of - * et-al-use-first/et-al-subsequent-min must be at least 2 less than the value of - * et-al-min/et-al-subsequent-use-first). - * - * @var bool - */ - private $etAlUseLast = false; - - /** - * If used, the values of these attributes (et-al-subsequent-min and et-al-subsequent-use-first) replace those of - * respectively et-al-min and et-al-use-first for subsequent cites (cites referencing earlier cited items). - * - * @var int - */ - private $etAlSubsequentMin; - - /** - * If used, the values of these attributes (et-al-subsequent-min and et-al-subsequent-use-first) replace those of - * respectively et-al-min and et-al-use-first for subsequent cites (cites referencing earlier cited items). - * - * @var int - */ - private $etAlSubsequentUseFirst; - - /** - * When set to “false” (the default is “true”), given names are no longer initialized when “initialize-with” is set. - * However, the value of “initialize-with” is still added after initials present in the full name (e.g. with - * initialize set to “false”, and initialize-with set to ”.”, “James T Kirk” becomes “James T. Kirk”). - * - * @var bool - */ - private $initialize = true; - - /** - * When set, given names are converted to initials. The attribute value is added after each initial (”.” results - * in “J.J. Doe”). For compound given names (e.g. “Jean-Luc”), hyphenation of the initials can be controlled with - * the global initialize-with-hyphen option - * - * @var string - */ - private $initializeWith = false; - - /** - * Specifies that names should be displayed with the given name following the family name (e.g. “John Doe” becomes - * “Doe, John”). The attribute has two possible values: - * - “first” - attribute only has an effect on the first name of each name variable - * - “all” - attribute has an effect on all names - * Note that even when name-as-sort-order changes the name-part order, the display order is not necessarily the same - * as the sorting order for names containing particles and suffixes (see Name-part order). Also, name-as-sort-order - * only affects names written in the latin or Cyrillic alphabets. Names written in other alphabets (e.g. Asian - * scripts) are always displayed with the family name preceding the given name. - * - * @var string - */ - private $nameAsSortOrder = ""; - - /** - * Sets the delimiter for name-parts that have switched positions as a result of name-as-sort-order. The default - * value is ”, ” (“Doe, John”). As is the case for name-as-sort-order, this attribute only affects names written in - * the latin or Cyrillic alphabets. - * - * @var string - */ - private $sortSeparator = ", "; - - /** - * Specifies whether all the name-parts of personal names should be displayed (value “long”, the default), or only - * the family name and the non-dropping-particle (value “short”). A third value, “count”, returns the total number - * of names that would otherwise be rendered by the use of the cs:names element (taking into account the effects of - * et-al abbreviation and editor/translator collapsing), which allows for advanced sorting. - * - * @var string - */ - private $form; - - private $nameForm = "long"; - - private $nameDelimiter = ", "; - - public function isDescendantOfMacro() - { - $parent = $this->parent; - - while ($parent != null && $parent instanceof HasParent) { - if ($parent instanceof Macro) { - return true; - } - $parent = $parent->getParent(); - } - return false; - } - - /** - * @param \SimpleXMLElement $node - */ - public function initInheritableNameAttributes(\SimpleXMLElement $node) - { - $context = CiteProc::getContext(); - $parentStyleElement = null; - if ($this instanceof Name || $this instanceof Names) { - if ($context->getMode() === "bibliography") { - if ($this->isDescendantOfMacro()) { - $parentStyleElement = $context->getRoot(); - } else { - $parentStyleElement = $context->getBibliography(); - } - } else { - $parentStyleElement = $context->getCitation(); - } - - } else if ($this instanceof StyleElement) { - $parentStyleElement = $context->getRoot(); - } - - foreach (self::$attributes as $nameAttribute) { - $attribute = $node[$nameAttribute]; - switch ($nameAttribute) { - case 'and': - if (!empty($attribute)) { - $this->and = (string) $attribute; - - } else if (!empty($parentStyleElement)) { //inherit from parent style - $this->and = $parentStyleElement->getAnd(); - } - break; - case 'delimiter-precedes-et-al': - if (!empty($attribute)) { - $this->delimiterPrecedesEtAl = (string) $attribute; - } else if (!empty($parentStyleElement)) { //inherit from parent style - $this->delimiterPrecedesEtAl = $parentStyleElement->getDelimiterPrecedesEtAl(); - } - break; - case 'delimiter-precedes-last': - if (!empty($attribute)) { - $this->delimiterPrecedesLast = (string) $attribute; - } else if (!empty($parentStyleElement)) { //inherit from parent style - $this->delimiterPrecedesLast = $parentStyleElement->getDelimiterPrecedesLast(); - } - break; - case 'et-al-min': - if (!empty($attribute)) { - $this->etAlMin = intval((string) $attribute); - } else if (!empty($parentStyleElement)) { - $this->etAlMin = $parentStyleElement->getEtAlMin(); - } - break; - case 'et-al-use-first': - if (!empty($attribute)) { - $this->etAlUseFirst = intval((string) $attribute); - } else if (!empty($parentStyleElement)) { - $this->etAlUseFirst = $parentStyleElement->getEtAlUseFirst(); - } - break; - case 'et-al-subsequent-min': - if (!empty($attribute)) { - $this->etAlSubsequentMin = intval((string) $attribute); - } else if (!empty($parentStyleElement)) { - $this->etAlSubsequentMin = $parentStyleElement->getEtAlSubsequentMin(); - } - break; - case 'et-al-subsequent-use-first': - if (!empty($attribute)) { - $this->etAlSubsequentUseFirst = intval((string) $attribute); - } else if (!empty($parentStyleElement)) { - $this->etAlSubsequentUseFirst = $parentStyleElement->getEtAlSubsequentUseFirst(); - } - break; - case 'et-al-use-last': - if (!empty($attribute)) { - $this->etAlUseLast = boolval((string) $attribute); - } else if (!empty($parentStyleElement)) { - $this->etAlUseLast = $parentStyleElement->getEtAlUseLast(); - } - - break; - case 'initialize': - if (!empty($attribute)) { - $this->initialize = boolval((string) $attribute); - } else if (!empty($parentStyleElement)) { - $this->initialize = $parentStyleElement->getInitialize(); - } - - break; - case 'initialize-with': - if (!empty($attribute)) { - $this->initializeWith = (string) $attribute; - } else if (!empty($parentStyleElement)) { - $this->initializeWith = $parentStyleElement->getInitializeWith(); - } - break; - case 'name-as-sort-order': - if (!empty($attribute)) { - $this->nameAsSortOrder = (string) $attribute; - } else if (!empty($parentStyleElement)) { - $this->nameAsSortOrder = $parentStyleElement->getNameAsSortOrder(); - } - break; - case 'sort-separator': - if (!empty($attribute)) { - $this->sortSeparator = (string) $attribute; - } else if (!empty($parentStyleElement)) { - $this->sortSeparator = $parentStyleElement->getSortSeparator(); - } - break; - case 'name-form': - if ($this instanceof Root || $this instanceof StyleElement) { - if (!empty($attribute)) { - $this->setNameForm((string) $attribute); - } else if (!empty($parentStyleElement)) { - $this->setNameForm($parentStyleElement->getNameForm()); - } - } - break; - case 'form': - if ($this instanceof Name) { - if (!empty($attribute)) { - $this->setForm((string) $attribute); - } else if (!empty($parentStyleElement)) { - $this->setForm($parentStyleElement->getNameForm()); - } - } - break; - case 'name-delimiter': - if ($this instanceof Root || $this instanceof StyleElement) { - if (!empty($attribute)) { - $this->setNameDelimiter((string) $attribute); - } else if (!empty($parentStyleElement)) { - $this->setNameDelimiter($parentStyleElement->getNameDelimiter()); - } - } else { - /* The attributes name-form and name-delimiter correspond to the form and delimiter attributes - on cs:name. Similarly, names-delimiter corresponds to the delimiter attribute on cs:names. */ - if (!empty($attribute)) { - $this->nameDelimiter = $this->delimiter = (string) $attribute; - } else if (!empty($parentStyleElement)) { - $this->nameDelimiter = $this->delimiter = $parentStyleElement->getNameDelimiter(); - } - } - break; - case 'delimiter': - if ($this instanceof Name) { - if (!empty($attribute)) { - $this->setDelimiter((string) $attribute); - } else if (!empty($parentStyleElement)) { - $this->setDelimiter($parentStyleElement->getNameDelimiter()); - } - } - - } - } - $this->attributesInitialized = true; - } - - /** - * @return string - */ - public function getAnd() - { - return $this->and; - } - - /** - * @param string $and - */ - public function setAnd($and) - { - $this->and = $and; - } - - /** - * @return string - */ - public function getDelimiterPrecedesEtAl() - { - return $this->delimiterPrecedesEtAl; - } - - /** - * @param string $delimiterPrecedesEtAl - */ - public function setDelimiterPrecedesEtAl($delimiterPrecedesEtAl) - { - $this->delimiterPrecedesEtAl = $delimiterPrecedesEtAl; - } - - /** - * @return string - */ - public function getDelimiterPrecedesLast() - { - return $this->delimiterPrecedesLast; - } - - /** - * @param string $delimiterPrecedesLast - */ - public function setDelimiterPrecedesLast($delimiterPrecedesLast) - { - $this->delimiterPrecedesLast = $delimiterPrecedesLast; - } - - /** - * @return int - */ - public function getEtAlMin() - { - return $this->etAlMin; - } - - /** - * @param int $etAlMin - */ - public function setEtAlMin($etAlMin) - { - $this->etAlMin = $etAlMin; - } - - /** - * @return int - */ - public function getEtAlUseFirst() - { - return $this->etAlUseFirst; - } - - /** - * @param int $etAlUseFirst - */ - public function setEtAlUseFirst($etAlUseFirst) - { - $this->etAlUseFirst = $etAlUseFirst; - } - - /** - * @return bool - */ - public function getEtAlUseLast() - { - return $this->etAlUseLast; - } - - /** - * @param bool $etAlUseLast - */ - public function setEtAlUseLast($etAlUseLast) - { - $this->etAlUseLast = $etAlUseLast; - } - - /** - * @return int - */ - public function getEtAlSubsequentMin() - { - return $this->etAlSubsequentMin; - } - - /** - * @param int $etAlSubsequentMin - */ - public function setEtAlSubsequentMin($etAlSubsequentMin) - { - $this->etAlSubsequentMin = $etAlSubsequentMin; - } - - /** - * @return int - */ - public function getEtAlSubsequentUseFirst() - { - return $this->etAlSubsequentUseFirst; - } - - /** - * @param int $etAlSubsequentUseFirst - */ - public function setEtAlSubsequentUseFirst($etAlSubsequentUseFirst) - { - $this->etAlSubsequentUseFirst = $etAlSubsequentUseFirst; - } - - /** - * @return bool - */ - public function getInitialize() - { - return $this->initialize; - } - - /** - * @param bool $initialize - */ - public function setInitialize($initialize) - { - $this->initialize = $initialize; - } - - /** - * @return string - */ - public function getInitializeWith() - { - return $this->initializeWith; - } - - /** - * @param string $initializeWith - */ - public function setInitializeWith($initializeWith) - { - $this->initializeWith = $initializeWith; - } - - /** - * @return string - */ - public function getNameAsSortOrder() - { - return $this->nameAsSortOrder; - } - - /** - * @param string $nameAsSortOrder - */ - public function setNameAsSortOrder($nameAsSortOrder) - { - $this->nameAsSortOrder = $nameAsSortOrder; - } - - /** - * @return string - */ - public function getSortSeparator() - { - return $this->sortSeparator; - } - - /** - * @param string $sortSeparator - */ - public function setSortSeparator($sortSeparator) - { - $this->sortSeparator = $sortSeparator; - } - - /** - * @return mixed - */ - public function getForm() - { - return $this->form; - } - - /** - * @param mixed $form - */ - public function setForm($form) - { - $this->form = $form; - } - - /** - * @return string - */ - public function getNameForm() - { - return $this->nameForm; - } - - /** - * @param string $nameForm - */ - public function setNameForm($nameForm) - { - $this->nameForm = $nameForm; - } - - /** - * @return string - */ - public function getNameDelimiter() - { - return $this->nameDelimiter; - } - - /** - * @param string $nameDelimiter - */ - public function setNameDelimiter($nameDelimiter) - { - $this->nameDelimiter = $nameDelimiter; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Macro.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Macro.php deleted file mode 100644 index 9b37fd0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Macro.php +++ /dev/null @@ -1,115 +0,0 @@ - - */ -class Macro implements Rendering, HasParent -{ - use ConsecutivePunctuationCharacterTrait; - - /** - * @var ArrayList - */ - private $children; - - /** - * @var string - */ - private $name; - - /** - * @var Root - */ - private $parent; - /** - * Macro constructor. - * @param \SimpleXMLElement $node - * @param Root $parent - * @throws CiteProcException - */ - public function __construct(\SimpleXMLElement $node, $parent) - { - $this->parent = $parent; - $attr = $node->attributes(); - if (!isset($attr['name'])) { - throw new CiteProcException("Attribute \"name\" needed."); - } - $this->name = (string) $attr['name']; - - $this->children = new ArrayList(); - foreach ($node->children() as $child) { - $this->children->append(Factory::create($child, $this)); - } - } - - /** - * @param array|DataList $data - * @param int|null $citationNumber - * @return string - */ - public function render($data, $citationNumber = null) - { - $ret = []; - /** @var Rendering $child */ - foreach ($this->children as $child) { - $res = $child->render($data, $citationNumber); - $this->getChildsAffixesAndDelimiter($child); - if (!empty($res)) { - $ret[] = $res; - } - } - $res = implode("", $ret); - if (!empty($res)) { - $res = $this->removeConsecutiveChars($res); - } - return $res; - } - - /** - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * @return Root - */ - public function getParent() - { - return $this->parent; - } - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/BibliographyOptions.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/BibliographyOptions.php deleted file mode 100644 index 243f64e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/BibliographyOptions.php +++ /dev/null @@ -1,193 +0,0 @@ - - */ -class BibliographyOptions -{ - - /** - * If set, the value of this attribute replaces names in a bibliographic entry that also occur in the preceding - * entry. The exact method of substitution depends on the value of the subsequent-author-substitute-rule attribute. - * Substitution is limited to the names of the first cs:names element rendered. (Bibliography-specific option) - * - * @var string - */ - private $subsequentAuthorSubstitute; - - /** - * Specifies when and how names are substituted as a result of subsequent-author-substitute. - * (Bibliography-specific option) - * - * @var SubsequentAuthorSubstituteRule - */ - private $subsequentAuthorSubstituteRule; - - /** - * If set to “true” (“false” is the default), bibliographic entries are rendered with hanging-indents. - * @var string - */ - private $hangingIndent = false; - - /** - * If set, subsequent lines of bibliographic entries are aligned along the second field. With “flush”, the first - * field is flush with the margin. With “margin”, the first field is put in the margin, and subsequent lines are - * aligned with the margin. - * @var string - */ - private $secondFieldAlign; - - /** - * Specifies vertical line distance. Defaults to “1” (single-spacing), and can be set to any positive integer to - * specify a multiple of the standard unit of line height (e.g. “2” for double-spacing). - * @var string - */ - private $lineSpacing; - - /** - * Specifies vertical distance between bibliographic entries. By default (with a value of “1”), entries are - * separated by a single additional line-height (as set by the line-spacing attribute). Can be set to any - * non-negative integer to specify a multiple of this amount. - * @var string - */ - private $entrySpacing; - - public function __construct(\SimpleXMLElement $node) - { - - /** @var \SimpleXMLElement $attribute */ - foreach ($node->attributes() as $attribute) { - switch ($attribute->getName()) { - case 'subsequent-author-substitute': - $this->subsequentAuthorSubstitute = (string) $attribute; - break; - case 'subsequent-author-substitute-rule': - $this->subsequentAuthorSubstituteRule = new SubsequentAuthorSubstituteRule((string) $attribute); - break; - case 'hanging-indent': - $this->hangingIndent = "true" === (string) $attribute ? true : false; - break; - case 'second-field-align': - $this->secondFieldAlign = (string) $attribute; - break; - case 'line-spacing': - $this->lineSpacing = (string) $attribute; - break; - case 'entry-spacing': - $this->entrySpacing = (string) $attribute; - } - } - if (empty($this->subsequentAuthorSubstituteRule)) { - $this->subsequentAuthorSubstituteRule = new SubsequentAuthorSubstituteRule("complete-all"); - } - } - - /** - * @return string - */ - public function getSubsequentAuthorSubstitute() - { - return $this->subsequentAuthorSubstitute; - } - - /** - * @param string $subsequentAuthorSubstitute - */ - public function setSubsequentAuthorSubstitute($subsequentAuthorSubstitute) - { - $this->subsequentAuthorSubstitute = $subsequentAuthorSubstitute; - } - - /** - * @return SubsequentAuthorSubstituteRule - */ - public function getSubsequentAuthorSubstituteRule() - { - return $this->subsequentAuthorSubstituteRule; - } - - /** - * @param SubsequentAuthorSubstituteRule $subsequentAuthorSubstituteRule - */ - public function setSubsequentAuthorSubstituteRule($subsequentAuthorSubstituteRule) - { - $this->subsequentAuthorSubstituteRule = $subsequentAuthorSubstituteRule; - } - - /** - * @return string - */ - public function getHangingIndent() - { - return $this->hangingIndent; - } - - /** - * @param string $hangingIndent - */ - public function setHangingIndent($hangingIndent) - { - $this->hangingIndent = $hangingIndent; - } - - /** - * @return string - */ - public function getSecondFieldAlign() - { - return $this->secondFieldAlign; - } - - /** - * @param string $secondFieldAlign - */ - public function setSecondFieldAlign($secondFieldAlign) - { - $this->secondFieldAlign = $secondFieldAlign; - } - - /** - * @return string - */ - public function getLineSpacing() - { - return $this->lineSpacing; - } - - /** - * @param string $lineSpacing - */ - public function setLineSpacing($lineSpacing) - { - $this->lineSpacing = $lineSpacing; - } - - /** - * @return string - */ - public function getEntrySpacing() - { - return $this->entrySpacing; - } - - /** - * @param string $entrySpacing - */ - public function setEntrySpacing($entrySpacing) - { - $this->entrySpacing = $entrySpacing; - } - - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/CitationOptions.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/CitationOptions.php deleted file mode 100644 index e1fc65b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/CitationOptions.php +++ /dev/null @@ -1,26 +0,0 @@ - - */ -class CitationOptions -{ - public function __construct(\SimpleXMLElement $node) - { - //TODO: implement - } - - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/DemoteNonDroppingParticle.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/DemoteNonDroppingParticle.php deleted file mode 100644 index 0267ec0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/DemoteNonDroppingParticle.php +++ /dev/null @@ -1,45 +0,0 @@ - - */ -class DemoteNonDroppingParticle extends Enum -{ - /** - * “never”: the non-dropping-particle is treated as part of the family name, whereas the dropping-particle is - * appended (e.g. “de Koning, W.”, “La Fontaine, Jean de”). The non-dropping-particle is part of the primary sort - * key (sort order A, e.g. “de Koning, W.” appears under “D”). - */ - const NEVER = "never"; - - /** - * “sort-only”: same display behavior as “never”, but the non-dropping-particle is demoted to a secondary sort key - * (sort order B, e.g. “de Koning, W.” appears under “K”). - */ - const SORT_ONLY = "sort-only"; - - /** - * “display-and-sort” (default): the dropping and non-dropping-particle are appended (e.g. “Koning, W. de” and - * “Fontaine, Jean de La”). For name sorting, all particles are part of the secondary sort key (sort order B, e.g. - * “Koning, W. de” appears under “K”). - */ - const DISPLAY_AND_SORT = "display-and-sort"; -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/GlobalOptions.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/GlobalOptions.php deleted file mode 100644 index 7e5e2bd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/GlobalOptions.php +++ /dev/null @@ -1,88 +0,0 @@ - - */ -class GlobalOptions -{ - - /** - * @var bool - */ - private $initializeWithHyphen = true; - - /** - * @var PageRangeFormats - */ - private $pageRangeFormat; - - /** - * @var DemoteNonDroppingParticle - */ - private $demoteNonDroppingParticles; - - /** - * GlobalOptions constructor. - * @param \SimpleXMLElement $node - */ - public function __construct(\SimpleXMLElement $node) - { - /** @var \SimpleXMLElement $attribute */ - foreach ($node->attributes() as $attribute) { - switch ($attribute->getName()) { - case 'initialize-with-hyphen': - $this->initializeWithHyphen = "false" === (string) $attribute ? false : true; - break; - case 'page-range-format': - $this->pageRangeFormat = new PageRangeFormats((string) $attribute); - break; - case 'demote-non-dropping-particle': - $this->demoteNonDroppingParticles = new DemoteNonDroppingParticle((string) $attribute); - } - } - } - - /** - * Specifies whether compound given names (e.g. “Jean-Luc”) should be initialized with a hyphen (“J.-L.”, value - * “true”, default) or without (“J.L.”, value “false”). - * @return bool - */ - public function isInitializeWithHyphen() - { - return $this->initializeWithHyphen; - } - - /** - * Activates expansion or collapsing of page ranges: “chicago” (“321–28”), “expanded” (e.g. “321–328”), - * “minimal” (“321–8”), or “minimal-two” (“321–28”). Delimits page ranges - * with the “page-range-delimiter” term (introduced with CSL 1.0.1, and defaults to an en-dash). If the attribute is - * not set, page ranges are rendered without reformatting. - * @return PageRangeFormats - */ - public function getPageRangeFormat() - { - return $this->pageRangeFormat; - } - - /** - * Sets the display and sorting behavior of the non-dropping-particle in inverted names (e.g. “Koning, W. de”). - * @return DemoteNonDroppingParticle - */ - public function getDemoteNonDroppingParticles() - { - return $this->demoteNonDroppingParticles; - } - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/PageRangeFormats.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/PageRangeFormats.php deleted file mode 100644 index fec4a55..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/PageRangeFormats.php +++ /dev/null @@ -1,62 +0,0 @@ - - */ -class PageRangeFormats extends Enum -{ - - /** - * Page ranges are abbreviated according to the Chicago Manual of Style-rules: - * - * First number Second number Examples - * ================================================================================================================= - * Less than 100 Use all digits 3–10; 71–72 - * ----------------------------------------------------------------------------------------------------------------- - * 100 or multiple of 100 Use all digits 100–104; 600–613; - * 1100–1123 - * ----------------------------------------------------------------------------------------------------------------- - * 101 through 109 (in multiples of 100) Use changed part only, omitting unneeded zeros 107–8; 505–17; 1002–6 - * ----------------------------------------------------------------------------------------------------------------- - * 110 through 199 (in multiples of 100) Use two digits, or more as needed 321–25; 415–532; - * 11564–68; 13792–803 - * ----------------------------------------------------------------------------------------------------------------- - * 4 digits If numbers are four digits long and three - * digits change, use all digits - */ - const CHICAGO = "chicago"; - - /** - * Abbreviated page ranges are expanded to their non-abbreviated form: 42–45, 321–328, 2787–2816 - */ - const EXPANDED = "expanded"; - - /** - * All digits repeated in the second number are left out: 42–5, 321–8, 2787–816 - */ - const MINIMAL = "minimal"; - - /** - * As “minimal”, but at least two digits are kept in the second number when it has two or more digits long. - */ - const MINIMAL_TWO = "minimal-two"; -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/SubsequentAuthorSubstituteRule.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/SubsequentAuthorSubstituteRule.php deleted file mode 100644 index c026fa3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Options/SubsequentAuthorSubstituteRule.php +++ /dev/null @@ -1,52 +0,0 @@ - - */ -class SubsequentAuthorSubstituteRule extends Enum -{ - const __default = self::COMPLETE_ALL; - - /** - * “complete-all” - (default), when all rendered names of the name variable match those in the preceding - * bibliographic entry, the value of subsequent-author-substitute replaces the entire name list (including - * punctuation and terms like “et al” and “and”), except for the affixes set on the cs:names element. - */ - const COMPLETE_ALL = "complete-all"; - - /** - * “complete-each” - requires a complete match like “complete-all”, but now the value of - * subsequent-author-substitute substitutes for each rendered name. - */ - const COMPLETE_EACH = "complete-each"; - - /** - * “partial-each” - when one or more rendered names in the name variable match those in the preceding bibliographic - * entry, the value of subsequent-author-substitute substitutes for each matching name. Matching starts with the - * first name, and continues up to the first mismatch. - */ - const PARTIAL_EACH = "partial-each"; - - /** - * “partial-first” - as “partial-each”, but substitution is limited to the first name of the name variable. - */ - const PARTIAL_FIRST = "partial-first"; - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/Key.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/Key.php deleted file mode 100644 index af5099c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/Key.php +++ /dev/null @@ -1,156 +0,0 @@ - - */ -class Key implements SortKey -{ - /** - * variable name or macro - * @var string - */ - private $variable; - - /** - * the sort direction can be set to either “ascending” (default) or “descending” with the sort attribute - * @var string - */ - private $sort = "ascending"; - - /** - * macro name - * @var string - */ - private $macro; - - /** - * only relevant for date ranges - * @var int - */ - private $rangePart = 1; - - /** - * Key constructor. - * The cs:sort element must contain one or more cs:key child elements. The sort key, set as an attribute on cs:key, - * must be a variable (see Appendix IV - Variables) or macro name. For each cs:key element, the sort direction can - * be set to either “ascending” (default) or “descending” with the sort attribute. - * - * TODO: The attributes names-min, names-use-first, and names-use-last may be used to override the values of the - * corresponding et-al-min/et-al-subsequent-min, et-al-use-first/et-al-subsequent-use-first and et-al-use-last - * attributes, and affect all names generated via macros called by cs:key. - * - * @param \SimpleXMLElement $node - */ - public function __construct(\SimpleXMLElement $node) - { - /** @var \SimpleXMLElement $attribute */ - foreach ($node->attributes() as $attribute) { - $name = $attribute->getName(); - if ($name === "variable") { - $this->variable = (string) $attribute; - } - if ($name === "sort") { - $this->sort = (string) $attribute; - } - if ($name === "macro") { - $this->variable = "macro"; - $this->macro = (string) $attribute; - } - } - } - - /** - * @return string - */ - public function getVariable() - { - return $this->variable; - } - - /** - * @return string (ascending|descending) - */ - public function getSort() - { - return $this->sort; - } - - /** - * @return string - */ - public function getMacro() - { - return $this->macro; - } - - /** - * @return bool - */ - public function isNameVariable() - { - return Variables::isNameVariable($this->variable); - } - - /** - * @return bool - */ - public function isNumberVariable() - { - return Variables::isNumberVariable($this->variable); - } - - /** - * @return bool - */ - public function isDateVariable() - { - return Variables::isDateVariable($this->variable); - } - - /** - * @return bool - */ - public function isMacro() - { - return $this->variable === "macro" && !empty(CiteProc::getContext()->getMacro($this->macro)); - } - - /** - * @param $rangePart - */ - public function setRangePart($rangePart) - { - $this->rangePart = $rangePart; - } - - /** - * @return int - */ - public function getRangePart() - { - return $this->rangePart; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/Sort.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/Sort.php deleted file mode 100644 index 389e273..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/Sort.php +++ /dev/null @@ -1,162 +0,0 @@ - - */ -class Sort -{ - /** - * ordered list contains sorting keys - * - * @var ArrayList - */ - private $sortingKeys; - - /** - * @var \SimpleXMLElement $node - */ - public function __construct(\SimpleXMLElement $node) - { - $this->sortingKeys = new ArrayList(); - /** @var \SimpleXMLElement $child */ - foreach ($node->children() as $child) { - if ("key" === $child->getName()) { - $this->sortingKeys->append(new Key($child)); - } - } - } - - /** - * Function in order to sort a set of csl items by one or multiple sort keys. - * Sort keys are evaluated in sequence. A primary sort is performed on all items using the first sort key. - * A secondary sort, using the second sort key, is applied to items sharing the first sort key value. A tertiary - * sort, using the third sort key, is applied to items sharing the first and second sort key values. Sorting - * continues until either the order of all items is fixed, or until the sort keys are exhausted. Items with an - * empty sort key value are placed at the end of the sort, both for ascending and descending sorts. - * - * @param DataList|array $data reference - */ - public function sort(&$data) - { - if (is_array($data)) { - $data = new DataList($data); - } - $dataToSort = $data->toArray(); - try { - $data->replace($this->performSort(0, $dataToSort)); - } catch (CiteProcException $e) { - //nothing to do, because $data is passed by referenced - } - } - - /** - * Recursive function in order to sort a set of csl items by one or multiple sort keys. - * All items will be distributed by the value (defined in respective sort key) in an associative array (grouped). - * Afterwards the array will be sorted by the array key. If a further sort key exist, each of these groups will be - * sorted by a recursive function call. Finally the array will be flatted. - * - * @param $keyNumber - * @param array $dataToSort - * @return array - * @throws \Seboettg\CiteProc\Exception\CiteProcException - */ - private function performSort($keyNumber, $dataToSort) - { - if (count($dataToSort) < 2) { - return $dataToSort; - } - - /** @var Key $key */ - $key = $this->sortingKeys->get($keyNumber); - $variable = $key->getVariable(); - $groupedItems = []; - - if ($key->isDateVariable()) { - if (DateHelper::hasDateRanges($dataToSort, $variable, "all")) { - $newKey = clone $key; - $newKey->setRangePart(2); - $key->setRangePart(1); - $this->sortingKeys->append($newKey); - } - } - - //grouping by value - foreach ($dataToSort as $citationNumber => $dataItem) { - if ($key->isNameVariable()) { - $sortKey = Variables::nameHash($dataItem, $variable); - } else if ($key->isNumberVariable()) { - $sortKey = $dataItem->{$variable}; - } else if ($key->isDateVariable()) { - $sortKey = DateHelper::getSortKeyDate($dataItem, $key); - } else if ($key->isMacro()) { - $sortKey = mb_strtolower(strip_tags(CiteProc::getContext()->getMacro($key->getMacro())->render($dataItem, $citationNumber))); - } else if ($variable === "citation-number") { - $sortKey = $citationNumber + 1; - } else { - $sortKey = mb_strtolower(strip_tags($dataItem->{$variable})); - } - $groupedItems[$sortKey][] = $dataItem; - } - - if ($this->sortingKeys->count() > ++$keyNumber) { - foreach ($groupedItems as $group => &$array) { - if (count($array) > 1) { - $array = $this->performSort($keyNumber, $array); - } - } - } - - //sorting by array keys - if ($key->getSort() === "ascending") { - ksort($groupedItems); //ascending - } else { - krsort($groupedItems); //reverse - } - - //the flattened array is the result - $sortedDataGroups = array_values($groupedItems); - return $this->flatten($sortedDataGroups); - } - - public function flatten($array) { - $returnArray = []; - array_walk_recursive($array, function($a) use (&$returnArray) { $returnArray[] = $a; }); - return $returnArray; - } - - /** - * @return ArrayList - */ - public function getSortingKeys() - { - return $this->sortingKeys; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/SortKey.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/SortKey.php deleted file mode 100644 index d51832f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Style/Sort/SortKey.php +++ /dev/null @@ -1,26 +0,0 @@ - - */ -abstract class StyleElement -{ - - use InheritableNameAttributesTrait; - /** - * @var Layout - */ - protected $layout; - - /** - * @var bool - */ - protected $doNotSort; - - protected $parent; - - /** - * Parses the configuration. - * - * @param \SimpleXMLElement $node - * @param Root $parent - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - */ - protected function __construct(\SimpleXMLElement $node, $parent) - { - $this->parent = $parent; - // init child elements - /** @var \SimpleXMLElement $child */ - foreach ($node->children() as $child) { - switch ($child->getName()) { - - /* The cs:layout rendering element is a required child element of cs:citation and cs:bibliography. It - * must contain one or more of the other rendering elements described below, and may carry affixes and - * formatting attributes. - */ - case 'layout': - $this->layout = new Layout($child, $this); - break; - - /* cs:citation and cs:bibliography may include a cs:sort child element before the cs:layout element to - * specify the sorting order of respectively cites within citations, and bibliographic entries within - * the bibliography. In the absence of cs:sort, cites and bibliographic entries appear in the order in - * which they are cited. - */ - case 'sort': - $sorting = new Sort($child); - CiteProc::getContext()->setSorting($sorting); - } - } - } - - /** - * @return Root - */ - public function getParent() - { - return $this->parent; - } - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/StyleSheet.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/StyleSheet.php deleted file mode 100644 index 64e4e0e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/StyleSheet.php +++ /dev/null @@ -1,89 +0,0 @@ - - */ -class StyleSheet -{ - - /** - * Loads xml formatted CSL stylesheet of a given stylesheet name, e.g. "american-physiological-society" for - * apa style. - * - * See in styles folder (which is included as git submodule) for all available style sheets - * - * @param string $styleName e.g. "american-physiological-society" for apa - * @return string - * @throws CiteProcException - */ - public static function loadStyleSheet($styleName) - { - $stylesPath = self::vendorPath() . "/citation-style-language/styles-distribution/"; - return file_get_contents($stylesPath . $styleName . '.csl'); - } - - /** - * Loads xml formatted locales of given language key - * - * @param string $langKey e.g. "en-US", or "de-CH" - * @return string - * @throws CiteProcException - */ - public static function loadLocales($langKey) - { - $data = null; - $localesPath = self::vendorPath() . "/citation-style-language/locales/"; - $localeFile = $localesPath . "locales-" . $langKey . '.xml'; - if (file_exists($localeFile)) { - $data = file_get_contents($localeFile); - } else { - $metadata = self::loadLocalesMetadata(); - if (!empty($metadata->{'primary-dialects'}->{$langKey})) { - $data = file_get_contents($localesPath . "locales-" . $metadata->{'primary-dialects'}->{$langKey} . '.xml'); - } - } - - return $data; - } - - /** - * @return mixed - * @throws CiteProcException - */ - public static function loadLocalesMetadata() - { - $localesMetadataPath = self::vendorPath() . "/citation-style-language/locales/locales.json"; - return json_decode(file_get_contents($localesMetadataPath)); - } - - /** - * @return bool|string - * @throws CiteProcException - */ - private static function vendorPath() - { - include_once __DIR__ . '/../../../vendorPath.php'; - if (!($vendorPath = vendorPath())) { - // @codeCoverageIgnoreStart - throw new CiteProcException('vendor path not found. Use composer to initialize your project'); - // @codeCoverageIgnoreEnd - } - return $vendorPath; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/AffixesTrait.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/AffixesTrait.php deleted file mode 100644 index 8f8f269..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/AffixesTrait.php +++ /dev/null @@ -1,110 +0,0 @@ - - */ -trait AffixesTrait -{ - - /** - * @var string - */ - private $prefix = ""; - - /** - * @var string - */ - private $suffix = ""; - - /** - * @var bool - */ - private $quote = false; - - /** - * @param \SimpleXMLElement $node - */ - protected function initAffixesAttributes(\SimpleXMLElement $node) - { - /** @var \SimpleXMLElement $attribute */ - foreach ($node->attributes() as $attribute) { - /** @var string $name */ - $name = (string) $attribute->getName(); - $value = (string) $attribute; - - switch ($name) { - case 'prefix': - $this->prefix = $value; - break; - case 'suffix': - $this->suffix = $value; - break; - case 'quote': - $this->quote = (bool) $attribute; - } - } - } - - /** - * @param $text - * @return string - */ - protected function addAffixes($text) - { - $prefix = $this->prefix; - $suffix = $this->suffix; - - if (!empty($suffix)) { // guard against repeated suffixes... - $no_tags = strip_tags($text); - if (strlen($no_tags) && ($no_tags{(strlen($no_tags) - 1)} == $suffix{0})) { - $suffix = substr($suffix, 1); - } - - // punctuation in quote? - $piq = CiteProc::getContext() - ->getLocale() - ->filter('options', 'punctuation-in-quote'); - $punctuationInQuote = is_array($piq) ? current($piq) : $piq; - - if ($punctuationInQuote && in_array($suffix, [',', ';', '.'])) { - $closeQuote = CiteProc::getContext()->getLocale()->filter("terms", "close-quote")->single; - $lastChar = mb_substr($text, -1, 1); - if ($closeQuote === $lastChar) { // last char is closing quote? - $text = mb_substr($text, 0, mb_strlen($text) - 1); //set suffix before - return $text . $suffix . $lastChar; - } - } - } - - return $prefix . $text . $suffix; - } - - /** - * @return string - */ - public function renderPrefix() - { - return $this->prefix; - } - - /** - * @return string - */ - public function renderSuffix() - { - return $this->suffix; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/ConsecutivePunctuationCharacterTrait.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/ConsecutivePunctuationCharacterTrait.php deleted file mode 100644 index 1dbddca..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/ConsecutivePunctuationCharacterTrait.php +++ /dev/null @@ -1,95 +0,0 @@ - - */ -trait ConsecutivePunctuationCharacterTrait -{ - - /** - * @var array - */ - private $childrenPrefixes = []; - - /** - * @var array - */ - private $childrenSuffixes = []; - - /** - * @var array - */ - private $childrenDelimiter = []; - - /** - * @param $punctuationSign - * @param $subject - * @return string - */ - public function removeConsecutivePunctuation($punctuationSign, $subject) - { - if (empty($punctuationSign) || preg_match("/^\s+$/", $punctuationSign)) { - return $subject; - } - $pattern = '/' . preg_quote(trim($punctuationSign)) . '{2,}/'; - if (preg_match($pattern, $subject)) { - $res = preg_replace($pattern, $punctuationSign, $subject); - return $res; - } - return $subject; - } - - /** - * @param $child - */ - protected function getChildsAffixesAndDelimiter($child) - { - if (method_exists($child, "renderPrefix")) { - if (!empty($child->renderPrefix()) && !in_array($child->renderPrefix(), $this->childrenPrefixes)) { - $this->childrenPrefixes[] = $child->renderPrefix(); - } - } - if (method_exists($child, "renderSuffix")) { - if (!empty($child->renderSuffix()) && !in_array($child->renderSuffix(), $this->childrenSuffixes)) { - $this->childrenSuffixes[] = $child->renderSuffix(); - } - } - if (method_exists($child, "getDelimiter")) { - if (!empty($child->getDelimiter()) && !in_array($child->getDelimiter(), $this->childrenDelimiter)) { - $this->childrenDelimiter[] = $child->getDelimiter(); - } - } - } - - /** - * @param string $string - * @return string - */ - protected function removeConsecutiveChars($string) - { - foreach ($this->childrenPrefixes as $prefix) { - $string = $this->removeConsecutivePunctuation($prefix, $string); - } - foreach ($this->childrenSuffixes as $suffix) { - $string = $this->removeConsecutivePunctuation($suffix, $string); - } - foreach ($this->childrenDelimiter as $delimiter) { - $string = $this->removeConsecutivePunctuation($delimiter, $string); - } - - $string = preg_replace("/\s{2,}/", " ", $string); - - return $string; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssRule.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssRule.php deleted file mode 100644 index 67f0aa1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssRule.php +++ /dev/null @@ -1,70 +0,0 @@ - - */ -class CssRule -{ - const SELECTOR_TYPE_ID = "#"; - - const SELECTOR_TYPE_CLASS = "."; - - /** - * @var string - */ - private $selectorType; - - /** - * @var string - */ - private $selector; - - /** - * @var ArrayList - */ - private $directives; - - /** - * CssRule constructor. - * @param string $selector - * @param string $selectorType - */ - public function __construct($selector, $selectorType = self::SELECTOR_TYPE_CLASS) - { - $this->selector = $selector; - $this->selectorType = $selectorType; - $this->directives = new ArrayList(); - } - - /** - * - * @param string $property - * @param string $value - */ - public function addDirective($property, $value) - { - $this->directives->append("$property: $value;"); - } - - /** - * @return string - */ - public function __toString() - { - $directives = "\t" . implode("\n\t", $this->directives->toArray()); - return $this->selectorType . $this->selector . " {\n" . $directives . "\n}\n"; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssRules.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssRules.php deleted file mode 100644 index aa4dc5a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssRules.php +++ /dev/null @@ -1,32 +0,0 @@ - - */ -class CssRules extends ArrayList -{ - /** - * @param $rule - * @return CssRule - */ - public function getRule($rule) - { - if (!$this->hasKey($rule)) { - $this->set($rule, new CssRule(substr($rule, 1), substr($rule, 0, 1))); - } - return $this->get($rule); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssStyle.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssStyle.php deleted file mode 100644 index 2178128..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/Css/CssStyle.php +++ /dev/null @@ -1,85 +0,0 @@ - - */ -class CssStyle -{ - /** - * @var BibliographyOptions - */ - private $bibliographyOptions; - - /** - * @var CssRules - */ - private $cssRules = null; - - /** - * CssStyle constructor. - * @param BibliographyOptions $bibliographyOptions - */ - public function __construct(BibliographyOptions $bibliographyOptions) - { - $this->bibliographyOptions = $bibliographyOptions; - $this->cssRules = new CssRules(); - $this->init(); - } - - /** - * renders CSS output - * @return string - */ - public function render() - { - return implode("\n", $this->cssRules->toArray()); - } - - /** - * initialize CSS rules - */ - private function init() - { - $lineSpacing = $this->bibliographyOptions->getLineSpacing(); - $entrySpacing = $this->bibliographyOptions->getEntrySpacing(); - $hangingIndent = $this->bibliographyOptions->getHangingIndent(); - - if ($lineSpacing || $entrySpacing || $hangingIndent) { - $rule = $this->cssRules->getRule(".csl-entry"); - if (!empty($lineSpacing)) { - $rule->addDirective("line-height", intval($lineSpacing) . "em"); - } - - if (!empty($entrySpacing)) { - $rule->addDirective("margin-bottom", intval($entrySpacing) . "em"); - } - - if (!empty($hangingIndent)) { - $rule->addDirective("padding-left", "2em"); - $rule->addDirective("text-indent", "-2em"); - } - } - - if ("flush" === $this->bibliographyOptions->getSecondFieldAlign()) { - $rule = $this->cssRules->getRule(".csl-left-margin"); - $rule->addDirective("display", "block"); - $rule->addDirective("float", "left"); - - $rule = $this->cssRules->getRule(".csl-right-inline"); - $rule->addDirective("margin-left", "35px"); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/DelimiterTrait.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/DelimiterTrait.php deleted file mode 100644 index eec21d3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/DelimiterTrait.php +++ /dev/null @@ -1,37 +0,0 @@ - - */ -trait DelimiterTrait -{ - - /** - * @param \SimpleXMLElement $node - */ - protected function initDelimiterAttributes(\SimpleXMLElement $node) - { - foreach ($node->attributes() as $attribute) { - /** @var string $name */ - $name = (string) $attribute->getName(); - $value = (string) $attribute; - - switch ($name) { - case 'delimiter': - $this->delimiter = $value; - return; - } - } - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/DisplayTrait.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/DisplayTrait.php deleted file mode 100644 index 8ce1f2e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/DisplayTrait.php +++ /dev/null @@ -1,61 +0,0 @@ - - */ -trait DisplayTrait -{ - - /** - * @var array - */ - private static $allowedValues = [ - "block", - "left-margin", - "right-inline", - "indent" - ]; - - /** - * @var string - */ - private $display; - - /** - * @param $node - */ - public function initDisplayAttributes(\SimpleXMLElement $node) - { - foreach ($node->attributes() as $attribute) { - switch ($attribute->getName()) { - case 'display': - $this->display = (string) $attribute; - return; - } - } - } - - /** - * @param $text - * @return string - */ - public function wrapDisplayBlock($text) - { - if (!in_array($this->display, self::$allowedValues)) { - return $text; - } - $divStyle = "class=\"csl-" . $this->display . "\""; - return "
$text
"; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/FormattingTrait.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/FormattingTrait.php deleted file mode 100644 index fb5efd9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/FormattingTrait.php +++ /dev/null @@ -1,98 +0,0 @@ - - */ -trait FormattingTrait -{ - - /** - * @var array - */ - static $formattingAttributes = ['font-style', 'font-family', 'font-weight', 'font-variant', 'text-decoration', 'vertical-align']; - - /** - * @var ArrayList - */ - private $formattingOptions; - - /** - * @var bool - */ - private $stripPeriods = false; - - /** - * @var string - */ - private $format; - - /** - * @param \SimpleXMLElement $node - */ - protected function initFormattingAttributes(\SimpleXMLElement $node) - { - $this->formattingOptions = new ArrayList(); - - /** @var \SimpleXMLElement $attribute */ - foreach ($node->attributes() as $attribute) { - - /** @var string $name */ - $name = (string) $attribute->getName(); - $value = (string) $attribute; - - if (in_array($name, self::$formattingAttributes)) { - $this->formattingOptions->add($name, $value); - continue; - } - } - } - - - protected function format($text) - { - if (empty($text)) { - return $text; - } - - if (!empty($this->formattingOptions)) { - $format = ""; - foreach ($this->formattingOptions as $option => $optionValue) { - if ($optionValue === "italic") { - $text = "$text"; - } else if ($optionValue === "bold") { - $text = "$text"; - } else if ($optionValue === "normal") { - //$text = $text; - } else if ($option === "vertical-align") { - if ($optionValue === "sub") { - $text = "$text"; - } else if ($optionValue === "sup") { - $text = "$text"; - } - } else if ($option === "text-decoration" && $optionValue === "none") { - - } else { - $format .= "$option: $optionValue;"; - } - } - if (!empty($format)) { - $text = '' . $text . ''; - } - } - return $text; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/QuotesTrait.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/QuotesTrait.php deleted file mode 100644 index 56703c3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/QuotesTrait.php +++ /dev/null @@ -1,70 +0,0 @@ - - */ -trait QuotesTrait -{ - - /** - * @var bool - */ - private $quotes = false; - - public function initQuotesAttributes(\SimpleXMLElement $node) - { - if (isset($node['quotes']) && "true" === (string) $node['quotes']) { - $this->quotes = true; - } - } - - /** - * @param string $text - * @return string - */ - public function addSurroundingQuotes($text) - { - if ($this->quotes) { - $openQuote = CiteProc::getContext()->getLocale()->filter("terms", "open-quote")->single; - $closeQuote = CiteProc::getContext()->getLocale()->filter("terms", "close-quote")->single; - $text = $this->replaceOuterQuotes($text, $openQuote, $closeQuote); - return $openQuote . $text . $closeQuote; - } - return $text; - } - - /** - * @param $text - * @param $outerOpenQuote - * @param $outerCloseQuote - * @return string - */ - private function replaceOuterQuotes($text, $outerOpenQuote, $outerCloseQuote) - { - - $innerOpenQuote = CiteProc::getContext()->getLocale()->filter("terms", "open-inner-quote")->single; - $innerCloseQuote = CiteProc::getContext()->getLocale()->filter("terms", "close-inner-quote")->single; - - $text = StringHelper::replaceOuterQuotes($text, "\"", "\"", $innerOpenQuote, $innerCloseQuote); - $text = StringHelper::replaceOuterQuotes($text, $outerOpenQuote, $outerCloseQuote, $innerOpenQuote, $innerCloseQuote); - return $text; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/RangeDelimiterTrait.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/RangeDelimiterTrait.php deleted file mode 100644 index 1aaa177..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/RangeDelimiterTrait.php +++ /dev/null @@ -1,21 +0,0 @@ - - */ -trait RangeDelimiterTrait -{ - - -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/TextCaseTrait.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/TextCaseTrait.php deleted file mode 100644 index 98c51b3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Styles/TextCaseTrait.php +++ /dev/null @@ -1,94 +0,0 @@ - - */ -trait TextCaseTrait -{ - - private $textCase; - - protected function initTextCaseAttributes(\SimpleXMLElement $node) - { - foreach ($node->attributes() as $attribute) { - /** @var string $name */ - $name = $attribute->getName(); - $value = (string) $attribute; - - switch ($name) { - case 'text-case': - $this->textCase = $value; - return; - } - } - } - - /** - * @param string $text - * @param string $lang - * @return string - */ - public function applyTextCase($text, $lang = "en") - { - - switch ($this->textCase) { - case 'uppercase': - $text = $this->keepNoCase(mb_strtoupper($text), $text); - break; - case 'lowercase': - $text = $this->keepNoCase(mb_strtolower($text), $text); - break; - case 'sentence': - if (StringHelper::checkUpperCaseString($text)) { - $text = mb_strtolower($text); - return StringHelper::mb_ucfirst($text); - } else { - return StringHelper::mb_ucfirst($text); - } - break; - case 'capitalize-all': - $text = $this->keepNoCase(StringHelper::capitalizeAll($text), $text); - break; - case 'title': - if ($lang === "en") { - $text = $this->keepNoCase(StringHelper::capitalizeForTitle($text), $text); - } - break; - case 'capitalize-first': - $text = $this->keepNoCase(StringHelper::mb_ucfirst($text), $text); - break; - default: - - } - - return $text; - } - - - /** - * @param string $render - * @param string $original - * @return string|string[]|null - */ - private function keepNoCase($render, $original) - { - if (preg_match('/(\p{L}+)<\/span>/i', $original, $match)) { - return preg_replace('/(\p{L}+<\/span>)/i', $match[1], $render); - } - return $render; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/CiteProcHelper.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/CiteProcHelper.php deleted file mode 100644 index fc2ac99..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/CiteProcHelper.php +++ /dev/null @@ -1,56 +0,0 @@ -getMarkupExtension(); - if (array_key_exists($valueToRender, $markupExtension)) { - $function = $markupExtension[$valueToRender]; - if (is_callable($function)) { - $renderedText = $function($dataItem, $renderedText); - } - } else if (array_key_exists($mode = CiteProc::getContext()->getMode(), $markupExtension)) { - if (array_key_exists($valueToRender, $markupExtension[$mode])) { - $function = CiteProc::getContext()->getMarkupExtension()[$mode][$valueToRender]; - if (is_callable($function)) { - $renderedText = $function($dataItem, $renderedText); - } - } - } - return $renderedText; - } - - /** - * @param array $array - * @return array - */ - public static function cloneArray(array $array) - { - $newArray = []; - foreach ($array as $key => $value) { - $newArray[$key] = clone $value; - } - return $newArray; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/DateHelper.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/DateHelper.php deleted file mode 100644 index 08cb154..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/DateHelper.php +++ /dev/null @@ -1,118 +0,0 @@ - - */ -class DateHelper -{ - - /** - * dates: Date variables called via the variable attribute are returned in the YYYYMMDD format, with zeros - * substituted for any missing date-parts (e.g. 20001200 for December 2000). As a result, less specific dates - * precede more specific dates in ascending sorts, e.g. “2000, May 2000, May 1st 2000”. Negative years are sorted - * inversely, e.g. “100BC, 50BC, 50AD, 100AD”. Seasons are ignored for sorting, as the chronological order of the - * seasons differs between the northern and southern hemispheres. - * - * @param array $dateParts - * @return string - */ - public static function serializeDate($dateParts) - { - $year = isset($dateParts[0]) ? $dateParts[0] : "0000"; - $month = isset($dateParts[1]) ? $dateParts[1] : "00"; - $day = isset($dateParts[2]) ? $dateParts[2] : "00"; - - return sprintf("%04d%02d%02d", $year, $month, $day); - } - - /** - * @param $date - * @return array - * @throws CiteProcException - */ - public static function parseDateParts($date) - { - if (!isset($date->{'raw'})) { - return []; - } - try { - $dateTime = new \DateTime($date->{'raw'}); - $arr = [[$dateTime->format("Y"), $dateTime->format("m"), $dateTime->format("d")]]; - } catch (\Exception $e) { - throw new CiteProcException("Could not parse date \"" . $date->{'raw'} . "\".", 0, $e); - } - - return $arr; - } - - /** - * creates sort key for variables containing date and date ranges - * @param array $dataItem - * @param Key $key - * @return string - * @throws CiteProcException - */ - public static function getSortKeyDate($dataItem, $key) - { - $variable = $variable = $key->getVariable(); - $part = $key->getRangePart(); - if (count($dataItem->{$variable}->{'date-parts'}) > 1) { - //Date range - $datePart = $dataItem->{$variable}->{'date-parts'}[$part]; - $sortKey = self::serializeDate($datePart); - if ($key->getSort() === "descending" && $part === 0 || - $key->getSort() === "ascending" && $part === 1) { - $sortKey .= "-"; - } - } else { - - if (!isset($dataItem->{$variable}->{'date-parts'})) { - $dateParts = self::parseDateParts($dataItem->{$variable}); - } else { - $dateParts = $dataItem->{$variable}->{'date-parts'}[0]; - } - $sortKey = self::serializeDate($dateParts); - } - return $sortKey; - } - - /** - * @param array $items - * @param string $variable name of the date variable - * @param string $match ("all"|"any") default "all" - * @return bool - */ - public static function hasDateRanges($items, $variable, $match = "all") - { - $ret = true; - foreach ($items as $item) { - $dateParts = $item->{$variable}->{"date-parts"}; - if ($match === "all" && count($dateParts) !== 2) { - return false; - } else if ($match === "any" && count($dateParts) === 2) { - return true; - } else { - $ret = ($match === "all") ? $ret & true : $ret | true; - } - } - return boolval($ret); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/Factory.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/Factory.php deleted file mode 100644 index 15f74b8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/Factory.php +++ /dev/null @@ -1,66 +0,0 @@ - - */ -class Factory -{ - const CITE_PROC_NODE_NAMESPACE = "Seboettg\\CiteProc\\Rendering"; - - /** - * @var array - */ - static $nodes = [ - - 'layout' => "\\Layout", - 'text' => "\\Text", - "macro" => "\\Macro", - "number" => "\\Number", - "label" => "\\Label", - "group" => "\\Group", - "choose" => "\\Choose\\Choose", - "if" => "\\Choose\\ChooseIf", - "else-if" => "\\Choose\\ChooseElseIf", - "else" => "\\Choose\\ChooseElse", - 'date' => "\\Date\\Date", - "date-part" => "\\Date\\DatePart", - "names" => "\\Name\\Names", - "name" => "\\Name\\Name", - "name-part" => "\\Name\\NamePart", - "substitute" => "\\Name\\Substitute", - "et-al" => "\\Name\\EtAl" - ]; - - /** - * @param \SimpleXMLElement $node - * @param mixed $param - * @return mixed - * @throws InvalidStylesheetException - */ - public static function create($node, $param = null) - { - $nodeClass = self::CITE_PROC_NODE_NAMESPACE . self::$nodes[$node->getName()]; - if (!class_exists($nodeClass)) { - throw new InvalidStylesheetException("For node {$node->getName()} does not exist any counterpart class \"" . $nodeClass . "\". The given stylesheet seems to be invalid."); - } - if ($param != null) { - return new $nodeClass($node, $param); - } - return new $nodeClass($node); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/NameHelper.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/NameHelper.php deleted file mode 100644 index 38a2ebc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/NameHelper.php +++ /dev/null @@ -1,143 +0,0 @@ - - */ -class NameHelper -{ - - /** - * @param \stdClass $precedingItem - * @param array $currentAuthor - * @return bool - * @throws CiteProcException - */ - public static function identicalAuthors($precedingItem, $currentAuthor) - { - if (!property_exists($precedingItem, "author")) { - throw new CiteProcException("No author to present"); - } - - if (count($precedingItem->author) !== count($currentAuthor)) { - return false; - } - foreach ($currentAuthor as $current) { - if (self::precedingHasAuthor($precedingItem, $current)) { - continue; - } - return false; - } - return true; - } - - /** - * @param \stdClass $preceding - * @param \stdClass $name - * @return bool - */ - public static function precedingHasAuthor($preceding, $name) - { - foreach ($preceding->author as $author) { - if ($author->family === $name->family && $author->given === $name->given) { - return true; - } - } - return false; - } - - - /** - * removes the field $particle from $data and appends its content to the $namePart field of $data - * @param \stdClass $data - * @param string $namePart - * @param string $particle - */ - public static function appendParticleTo(&$data, $namePart, $particle) - { - if (isset($data->{$particle}) && isset($data->{$namePart})) { - $data->{$namePart} = $data->{$namePart} . " " . $data->{$particle}; // append $particle to $namePart - unset($data->{$particle}); //remove particle from $data - } - } - - /** - * removes the field $particle from $data and prepends its content to the $namePart field of $data - * @param \stdClass $data - * @param string $namePart ("given"|"family") - * @param string $particle - */ - public static function prependParticleTo(&$data, $namePart, $particle) - { - if (isset($data->{$particle}) && isset($data->{$namePart})) { - $data->{$namePart} = $data->{$particle} . " " . $data->{$namePart}; //prepend $particle to $namePart - unset($data->{$particle}); //remove particle from $data - } - } - - /** - * @param array $persons1 - * @param array $persons2 - * @return bool - */ - public static function sameNames($persons1, $persons2) - { - $same = count($persons1) === count($persons2); - - if (!$same) { - return false; - } - - array_walk($persons1, function($name, $key) use ($persons2, &$same) { - $family1 = $name->family; - $family2 = $persons2[$key]->family; - $same = $same && ($family1 === $family2); - }); - - return (bool) $same; - } - - /** - * @param $data - * @return string - * @throws CiteProcException - */ - public static function normalizeName($data) - { - if (empty($data->family)) { - throw new CiteProcException("Illegal argument. Name has no family name."); - } - return $data->family . (isset($data->given) ? $data->given : ""); - } - - public static function addExtendedMarkup($nameVar, $nameItem, $formattedName) - { - $markupExtension = CiteProc::getContext()->getMarkupExtension(); - if (array_key_exists($nameVar, $markupExtension)) { - $function = $markupExtension[$nameVar]; - if (is_callable($function)) { - return $function($nameItem, $formattedName); - } - } else if (array_key_exists($mode = CiteProc::getContext()->getMode(), $markupExtension)) { - if (array_key_exists($nameVar, $markupExtension[$mode])) { - $function = $markupExtension[$mode][$nameVar]; - if (is_callable($function)) { - return $function($nameItem, $formattedName); - } - } - } - return $formattedName; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/NumberHelper.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/NumberHelper.php deleted file mode 100644 index 924c116..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/NumberHelper.php +++ /dev/null @@ -1,159 +0,0 @@ - - */ -class NumberHelper -{ - - const PATTERN_ORDINAL = "/\d+(st|nd|rd|th)?\.?$/"; - - const PATTERN_ROMAN = "/^[ivxlcdm]+\.?$/i"; - - const PATTERN_AFFIXES = "/^[a-z]?\d+[a-z]?$/i"; - - const PATTERN_COMMA_AMPERSAND_RANGE = "/\d*([\s?\-&+,;\s])+\d+/"; - - const ROMAN_NUMERALS = [ - ["", "i", "ii", "iii", "iv", "v", "vi", "vii", "viii", "ix"], - ["", "x", "xx", "xxx", "xl", "l", "lx", "lxx", "lxxx", "xc"], - ["", "c", "cc", "ccc", "cd", "d", "dc", "dcc", "dccc", "cm"], - ["", "m", "mm", "mmm", "mmmm", "mmmmm"] - ]; - - const ROMAN_DIGITS = [ - "M" => 1000, - "D" => 500, - "C" => 100, - "L" => 50, - "X" => 10, - "V" => 5, - "I" => 1 - ]; - - /** - * @return \Closure - */ - public static function getCompareNumber() - { - return function($numA, $numB, $order) { - if (is_numeric($numA) && is_numeric($numB)) { - $ret = $numA - $numB; - } else { - $ret = strcasecmp($numA, $numB); - } - if ("descending" === $order) { - return $ret > 0 ? -1 : 1; - } - return $ret > 0 ? 1 : -1; - }; - } - - /** - * @param $num - * @return string - */ - public static function dec2roman($num) - { - $ret = ""; - if ($num < 6000) { - - $numStr = strrev($num); - $len = strlen($numStr); - for ($pos = 0; $pos < $len; $pos++) { - $n = $numStr[$pos]; - $ret = self::ROMAN_NUMERALS[$pos][$n] . $ret; - } - } - return $ret; - } - - /** - * @param $romanNumber - * @return int|mixed - */ - public static function roman2Dec($romanNumber) - { - if (is_numeric($romanNumber)) { - return 0; - } - - $values = []; - // Convert the string to an array of roman values: - for ($i = 0; $i < strlen($romanNumber); ++$i) { - $char = strtoupper($romanNumber{$i}); - if (self::ROMAN_DIGITS[$char] !== null) { - $values[] = self::ROMAN_DIGITS[$char]; - } - } - - $sum = 0; - while ($current = current($values)) { - $next = next($values); - $next > $current ? $sum += $next - $current + 0 * next($values) : $sum += $current; - } - - // Return the value: - return $sum; - } - - public static function isRomanNumber($str) - { - for ($i = 0; $i < strlen($str); ++$i) { - $char = strtoupper($str{$i}); - if (!in_array($char, array_keys(self::ROMAN_DIGITS))) { - return false; - } - } - return true; - } - - /** - * @param $str - * @return string - */ - public static function evaluateStringPluralism($str) - { - $plural = 'single'; - if (!empty($str)) { - $ranges = preg_split("/[-–&,]/", $str); - if (count($ranges) > 1) { - - $isRange = 1; - foreach ($ranges as $range) { - if (NumberHelper::isRomanNumber(trim($range)) || is_numeric(trim($range))) { - $isRange &= 1; - } - } - if ($isRange == 1) { - return 'multiple'; - } - } else { - if (is_numeric($str) || NumberHelper::isRomanNumber($str)) { - return 'single'; - } - } - } - return $plural; - } - - public static function extractNumber($string) - { - if (preg_match("/(\d+)[^\d]*$/", $string, $match)) { - return $match[1]; - } - return $string; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/PageHelper.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/PageHelper.php deleted file mode 100644 index 84f00af..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/PageHelper.php +++ /dev/null @@ -1,86 +0,0 @@ - - */ -class PageHelper -{ - - public static function processPageRangeFormats($ranges, $pageRangeFormat) - { - list($from, $to) = $ranges; - - if (!empty($pageRangeFormat)) { - - switch ($pageRangeFormat) { - case PageRangeFormats::MINIMAL: - $resTo = self::renderMinimal($from, $to); - break; - case PageRangeFormats::MINIMAL_TWO: - if (strlen($to) > 2) { - $resTo = self::renderMinimal($from, $to, strlen($to) - 2); - } else { - $resTo = $to; - } - break; - case PageRangeFormats::CHICAGO: - $resTo = self::renderChicago($from, $to); - break; - case PageRangeFormats::EXPANDED: - default: - $resTo = $to; - } - return "$from-$resTo"; - } - return "$from-$to"; - } - - /** - * - * @param $from - * @param $to - * @param int $limit - * @return string - */ - private static function renderMinimal($from, $to, $limit = 1) - { - $resTo = ""; - if (strlen($from) == strlen($to)) { - for ($i = strlen($to) - 1; $i >= $limit; --$i) { - $digitTo = $to{$i}; - - $digitFrom = $from{$i}; - if ($digitTo !== $digitFrom) { - $resTo = $digitTo . $resTo; - } - } - return $resTo; - } - return $to; - - } - - private static function renderChicago($from, $to) - { - - if ($from > 100 && ($from % 100 > 0) && intval(($from / 100), 10) === intval(($to / 100), 10)) { - return "" . ($to % 100); - } else if ($from >= 10000) { - return "" . ($to % 1000); - } - return $to; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/StringHelper.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/StringHelper.php deleted file mode 100644 index 403c2c2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/StringHelper.php +++ /dev/null @@ -1,259 +0,0 @@ - - */ -class StringHelper -{ - - const PREPOSITIONS = [ - 'on', 'in', 'at', 'since', 'for', 'ago', 'before', 'to', 'past', 'till', 'until', 'by', 'under', 'below', 'over', - 'above', 'across', 'through', 'into', 'towards', 'onto', 'from', 'of', 'off', 'about', 'via' - ]; - - const ARTICLES = [ - 'a', 'an', 'the' - ]; - - const ADVERBS = [ - 'yet', 'so', 'just', 'only' - ]; - - const CONJUNCTIONS = [ - 'nor', 'so', 'and', 'or' - ]; - - const ADJECTIVES = [ - 'down', 'up' - ]; - - const ISO_ENCODINGS = [ - 'ISO-8859-1', - 'ISO-8859-2', - 'ISO-8859-3', - 'ISO-8859-4', - 'ISO-8859-5', - 'ISO-8859-6', - 'ISO-8859-7', - 'ISO-8859-8', - 'ISO-8859-9', - 'ISO-8859-10', - 'ISO-8859-11', - 'ISO-8859-13', - 'ISO-8859-14', - 'ISO-8859-15', - 'ISO-8859-16' - ]; - - /** - * opening quote sign - */ - const OPENING_QUOTE = "“"; - - /** - * closing quote sign - */ - const CLOSING_QUOTE = "”"; - - /** - * @param $text - * @return string - */ - public static function capitalizeAll($text) - { - $wordArray = explode(" ", $text); - - array_walk($wordArray, function(&$word) { - $word = ucfirst($word); - }); - - return implode(" ", $wordArray); - } - - /** - * @param $titleString - * @return string - */ - public static function capitalizeForTitle($titleString) - { - if (preg_match('/(.+[^\<\>][\.:\/;\?\!]\s?)([a-z])(.+)/', $titleString, $match)) { - $titleString = $match[1] . StringHelper::mb_ucfirst($match[2]) . $match[3]; - } - - $wordArray = explode(" ", $titleString); - - array_walk($wordArray, function(&$word) { - - $words = explode("-", $word); - if (count($words) > 1) { - array_walk($words, function(&$w) { - $w = StringHelper::keepLowerCase($w) ? $w : StringHelper::mb_ucfirst($w); - }); - $word = implode("-", $words); - } - $word = StringHelper::keepLowerCase($word) ? $word : StringHelper::mb_ucfirst($word); - }); - - return implode(" ", $wordArray); - } - - /** - * @param $word - * @return bool - */ - public static function keepLowerCase($word) - { - $lowerCase = in_array($word, self::PREPOSITIONS) || - in_array($word, self::ARTICLES) || - in_array($word, self::CONJUNCTIONS) || - in_array($word, self::ADJECTIVES) || - (bool) preg_match("/[^\p{L}].+/", $word); // keep lower case if the first char is not an utf-8 letter - return $lowerCase; - - } - - /** - * @param $string - * @param string $encoding - * @return string - */ - public static function mb_ucfirst($string, $encoding = 'UTF-8') - { - $strlen = mb_strlen($string, $encoding); - $firstChar = mb_substr($string, 0, 1, $encoding); - $then = mb_substr($string, 1, $strlen - 1, $encoding); - - /** @noinspection PhpInternalEntityUsedInspection */ - $encoding = Mbstring::mb_detect_encoding($firstChar, self::ISO_ENCODINGS, true); - return in_array($encoding, self::ISO_ENCODINGS) ? Mbstring::mb_strtoupper($firstChar, $encoding) . $then : $firstChar . $then; - } - - /** - * @param $string - * @param $initializeSign - * @return string - */ - public static function initializeBySpaceOrHyphen($string, $initializeSign) - { - $initializeWithHyphen = CiteProc::getContext()->getGlobalOptions()->isInitializeWithHyphen(); - $res = ""; - $exploded = explode("-", $string); - $i = 0; - foreach ($exploded as $explode) { - $spaceExploded = explode(" ", $explode); - foreach ($spaceExploded as $givenPart) { - $firstLetter = mb_substr($givenPart, 0, 1, "UTF-8"); - if (StringHelper::isLatinString($firstLetter)) { - $res .= ctype_upper($firstLetter) ? $firstLetter . $initializeSign : " " . $givenPart . " "; - } else { - $res .= $firstLetter . $initializeSign; - } - } - if ($i < count($exploded) - 1 && $initializeWithHyphen) { - $res = rtrim($res) . "-"; - } - ++$i; - } - return $res; - } - - /** - * @param $string - * @return mixed|string - */ - public static function camelCase2Hyphen($string) - { - $hyphenated = preg_replace("/([A-Z])/", "-$1", $string); - $hyphenated = substr($hyphenated, 0, 1) === "-" ? substr($hyphenated, 1) : $hyphenated; - return mb_strtolower($hyphenated); - } - - /** - * @param $string - * @return bool - */ - public static function checkLowerCaseString($string) - { - return ($string === mb_strtolower($string)); - } - - /** - * @param $string - * @return bool - */ - public static function checkUpperCaseString($string) - { - return ($string === mb_strtoupper($string)); - } - - /** - * @param $string - * @return mixed - */ - public static function clearApostrophes($string) - { - return preg_replace("/\'/", "’", $string); - } - - /** - * replaces outer quotes of $text by given inner quotes - * - * @param $text - * @param $outerOpenQuote - * @param $outerCloseQuote - * @param $innerOpenQuote - * @param $innerCloseQuote - * @return string - */ - public static function replaceOuterQuotes($text, $outerOpenQuote, $outerCloseQuote, $innerOpenQuote, $innerCloseQuote) - { - if (preg_match("/(.*)$outerOpenQuote(.+)$outerCloseQuote(.*)/u", $text, $match)) { - return $match[1] . $innerOpenQuote . $match[2] . $innerCloseQuote . $match[3]; - } - return $text; - } - - /** - * @param $string - * @return bool - */ - public static function isLatinString($string) - { - return boolval(preg_match_all("/^[\p{Latin}\s\p{P}]*$/u", $string)); - //return !$noLatin; - } - - /** - * @param $string - * @return bool - */ - public static function isCyrillicString($string) - { - return boolval(preg_match("/^[\p{Cyrillic}\s\p{P}]*$/u", $string)); - } - - /** - * removes all kind of brackets from a given string - * @param $datePart - * @return mixed - */ - public static function removeBrackets($datePart) { - return str_replace(["[","]", "(", ")", "{", "}"], "", $datePart); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/Variables.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/Variables.php deleted file mode 100644 index 6822e69..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/Variables.php +++ /dev/null @@ -1,168 +0,0 @@ - - */ -class Variables -{ - - const NAME_VARIABLES = [ - 'author', //author - 'collection-editor', //editor of the collection holding the item (e.g. the series editor for a book) - 'composer', //composer (e.g. of a musical score) - 'container-author', //author of the container holding the item (e.g. the book author for a book chapter) - 'director', //director (e.g. of a film) - 'editor', //editor - 'editorial-director', //managing editor (“Directeur de la Publication” in French) - 'illustrator', //illustrator (e.g. of a children’s book) - 'interviewer', //interviewer (e.g. of an interview) - 'original-author', // - 'recipient', //recipient (e.g. of a letter) - 'reviewed-author' //author of the item reviewed by the current item - ]; - - const NUMBER_VARIABLES = [ - 'chapter-number', //chapter number - 'collection-number', //number identifying the collection holding the item (e.g. the series number for a book) - 'edition', //(container) edition holding the item (e.g. “3” when citing a chapter in the third - //edition of a book) - 'issue', //(container) issue holding the item (e.g. “5” when citing a journal article from - //journal volume 2, issue 5) - 'number', //number identifying the item (e.g. a report number) - 'number-of-pages', //total number of pages of the cited item - 'number-of-volumes', //total number of volumes, usable for citing multi-volume books and such - 'volume' //(container) volume holding the item (e.g. “2” when citing a chapter from book volume 2) - ]; - - const DATE_VARIABLES = [ - 'accessed', //date the item has been accessed - 'container', - 'event-date', //date the related event took place - 'issued', //date the item was issued/published - 'original-date', //(issue) date of the original version - 'submitted' //date the item (e.g. a manuscript) has been submitted for publication - ]; - - const STANDARD_VARIABLE = [ - 'abstract', //abstract of the item (e.g. the abstract of a journal article) - 'annote', //reader’s notes about the item content - 'archive', //archive storing the item - 'archive-location', //storage location within an archive (e.g. a box and folder number) - 'archive-place', //geographic location of the archive - 'authority', //issuing or judicial authority (e.g. “USPTO” for a patent, “Fairfax Circuit Court” for - //a legal case) - 'call-number', //call number (to locate the item in a library) - 'citation-label', //label identifying the item in in-text citations of label styles (e.g. “Ferr78”). May - //be assigned by the CSL processor based on item metadata. - 'citation-number', //index (starting at 1) of the cited reference in the bibliography (generated by the CSL - //processor) - 'collection-title', //title of the collection holding the item (e.g. the series title for a book) - 'container-title', //title of the container holding the item (e.g. the book title for a book chapter, the - //journal title for a journal article) - 'container-title-short',//short/abbreviated form of “container-title” (also accessible through the “short” form - //of the “container-title” variable) - 'dimensions', //physical (e.g. size) or temporal (e.g. running time) dimensions of the item - 'DOI', //Digital Object Identifier (e.g. “10.1128/AEM.02591-07”) - 'event', //name of the related event (e.g. the conference name when citing a conference paper) - 'event-place', //geographic location of the related event (e.g. “Amsterdam, the Netherlands”) - 'first-reference-note-number', //number of a preceding note containing the first reference to the item. Assigned - // by the CSL processor. The variable holds no value for non-note-based styles, or when - // the item hasn’t been cited in any preceding notes. - 'genre', //class, type or genre of the item (e.g. “adventure” for an adventure movie, - //“PhD dissertation” for a PhD thesis), - 'ISBN', //International Standard Book Number - 'ISSN', //International Standard Serial Number - 'jurisdiction', //geographic scope of relevance (e.g. “US” for a US patent) - 'keyword', //keyword(s) or tag(s) attached to the item - 'locator', //a cite-specific pinpointer within the item (e.g. a page number within a book, or a - //volume in a multi-volume work). Must be accompanied in the input data by a label - //indicating the locator type (see the Locators term list), which determines which term - //is rendered by cs:label when the “locator” variable is selected. - 'medium', //medium description (e.g. “CD”, “DVD”, etc.) - 'note', //(short) inline note giving additional item details (e.g. a concise summary or commentary) - 'original-publisher', //original publisher, for items that have been republished by a different publisher - 'original-publisher-place', //geographic location of the original publisher (e.g. “London, UK”) - 'original-title', //title of the original version (e.g. “Война и мир”, the untranslated Russian title of - // “War and Peace”) - 'page', //range of pages the item (e.g. a journal article) covers in a container (e.g. a journal - // issue) - 'page-first', //first page of the range of pages the item (e.g. a journal article) covers in a - //container (e.g. a journal issue) - 'PMCID', //PubMed Central reference number - 'PMID', //PubMed reference number - 'publisher', //publisher - 'publisher-place', //geographic location of the publisher - 'references', //resources related to the procedural history of a legal case - 'reviewed-title', //title of the item reviewed by the current item - 'scale', //scale of e.g. a map - 'section', //container section holding the item (e.g. “politics” for a newspaper article) - 'source', //from whence the item originates (e.g. a library catalog or database) - 'status', //(publication) status of the item (e.g. “forthcoming”) - 'title', //primary title of the item - 'title-short', //short/abbreviated form of “title” (also accessible through the “short” form of the - //“title” variable) - 'URL', //Uniform Resource Locator (e.g. “http://aem.asm.org/cgi/content/full/74/9/2766”) - 'version', //version of the item (e.g. “2.0.9” for a software program) - 'year-suffix', //disambiguating year suffix in author-date styles (e.g. “a” in “Doe, 1999a”) - - - ]; - - /** - * @param $name - * @return bool - */ - public static function isDateVariable($name) - { - return in_array($name, self::DATE_VARIABLES); - } - - /** - * @param $name - * @return bool - */ - public static function isNumberVariable($name) - { - return in_array($name, self::NUMBER_VARIABLES); - } - - /** - * @param $name - * @return bool - */ - public static function isNameVariable($name) - { - return in_array($name, self::NAME_VARIABLES); - } - - /** - * @param \stdClass $data - * @param string $variable - * @return string - * @throws \Seboettg\CiteProc\Exception\InvalidStylesheetException - * @throws \Seboettg\CiteProc\Exception\CiteProcException - */ - public static function nameHash(\stdClass $data, $variable) - { - if (!self::isNameVariable($variable)) { - throw new \InvalidArgumentException("\"$variable\" is not a valid name variable."); - } - - $names = new Names(new \SimpleXMLElement(""), null); - return $names->render($data); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/bootstrap.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/bootstrap.php deleted file mode 100644 index 8ec2032..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/bootstrap.php +++ /dev/null @@ -1,48 +0,0 @@ -add('Seboettg', realpath(__DIR__ . '/src')); -$loader->register(); - -/** - * @param string $filter - * @param array|null $ignore - * @return array - */ -function loadFixtures($filter, $ignore = null) -{ - $files = []; - if ($handle = opendir(PHPUNIT_FIXTURES)) { - /** @var string $entry */ - while (false !== ($entry = readdir($handle))) { - if ($entry != "." && $entry != ".." && strpos($entry, $filter) !== false) { - $files[] = $entry; - } - } - closedir($handle); - } - - if (!empty($ignore)) { - return array_filter($files, function($value) use ($ignore) { - foreach ($ignore as $filter) { - if (strpos($value, $filter) !== false) { - return false; - } - } - return true; - }); - } - - return $files; -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/config/processor.cnf b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/config/processor.cnf deleted file mode 100644 index 881e3f5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/config/processor.cnf +++ /dev/null @@ -1,6 +0,0 @@ -[jing] -command: java -jar -path: ../jing/bin/jing.jar - -[csl] -v1.0: ../citeproc-js/csl/1.0/csl.rnc diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_Brackets.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_Brackets.txt deleted file mode 100644 index d96e052..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_Brackets.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -(Smith 2000) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Smith", - "given": "John" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000", - "2", - "15" - ] - ] - }, - "title": "Book C", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_InterveningEmpty.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_InterveningEmpty.txt deleted file mode 100644 index 79a1142..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_InterveningEmpty.txt +++ /dev/null @@ -1,73 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -John Doe. His Anonymous Life. 1965. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "1965", - "6", - "1" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_PrefixFullCitationTextOnly.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_PrefixFullCitationTextOnly.txt deleted file mode 100644 index 7eecab6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_PrefixFullCitationTextOnly.txt +++ /dev/null @@ -1,64 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -(As written in: Smith 2000) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Smith", - "given": "John" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000", - "2", - "15" - ] - ] - }, - "title": "Book C", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_PrefixWithDecorations.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_PrefixWithDecorations.txt deleted file mode 100644 index d96e052..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_PrefixWithDecorations.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -(Smith 2000) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Smith", - "given": "John" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000", - "2", - "15" - ] - ] - }, - "title": "Book C", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_TextNodeWithMacro.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_TextNodeWithMacro.txt deleted file mode 100644 index fe481d1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/affix_TextNodeWithMacro.txt +++ /dev/null @@ -1,45 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -One. Two. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/api_UpdateItemsDelete.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/api_UpdateItemsDelete.txt deleted file mode 100644 index 701dfe5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/api_UpdateItemsDelete.txt +++ /dev/null @@ -1,132 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -Doe 1960; Roe 1970; Smith 1980; Brown 1990; Ichi 2000. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1960 - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "author": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - 1970 - ] - ] - }, - "title": "Book B", - "type": "book" - }, - { - "author": [ - { - "family": "Smith", - "given": "John" - } - ], - "id": "ITEM-3", - "issued": { - "date-parts": [ - [ - 1980 - ] - ] - }, - "title": "Book C", - "type": "book" - }, - { - "author": [ - { - "family": "Brown", - "given": "Robert" - } - ], - "id": "ITEM-4", - "issued": { - "date-parts": [ - [ - 1990 - ] - ] - }, - "title": "Book D", - "type": "book" - }, - { - "author": [ - { - "family": "Ichi", - "given": "Taro" - } - ], - "id": "ITEM-5", - "issued": { - "date-parts": [ - [ - 2000 - ] - ] - }, - "title": "Book E", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/api_names_label.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/api_names_label.txt deleted file mode 100644 index 0ff07d5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/api_names_label.txt +++ /dev/null @@ -1,78 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Aalto+Blevins (editor); Colostomy (editor)+Dropsie (translator) -<<===== RESULT =====<< - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Aalto", - "given": "Alan" - } - ], - "editor": [ - { - "family": "Blevins", - "given": "Butthead" - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "editor": [ - { - "family": "Colostomy", - "given": "Colin" - } - ], - "id": "ITEM-2", - "translator": [ - { - "family": "Dropsie", - "given": "David" - } - ], - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-choose-github-44.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-choose-github-44.txt deleted file mode 100644 index 69e9756..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-choose-github-44.txt +++ /dev/null @@ -1,97 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
My Anonymous Heritage.
-
Two Authors Writing a Book.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - - -<<===== CSL =====<< - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "James", - "suffix": "III" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "My Anonymous Heritage", - "type": "book" - }, - { - "author": [ - { - "family": "Anderson", - "given": "John" - }, - { - "family": "Brown", - "given": "John" - } - ], - "id": "ITEM-2", - "title": "Two authors writing a book", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-dateparts.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-dateparts.txt deleted file mode 100644 index 43d34d9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-dateparts.txt +++ /dev/null @@ -1,732 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
Navarr, J. (2012, January 1). Detecting Deception null [article]. FBI Law Enforcement Bulletin.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - - -<<===== CSL =====<< - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Navarr", - "given": "Joe" - } - ], - "container-title": "FBI Law Enforcement Bulletin", - "issue": "8", - "issued": { - "date-parts": [ - [ - "2012", - "01", - "01" - ] - ] - }, - "page": "7-7", - "title": "Detecting Deception null [article]", - "type": "article", - "volume": "81" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-36.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-36.txt deleted file mode 100644 index fb54a53..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-36.txt +++ /dev/null @@ -1,72 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - -https://github.com/seboettg/citeproc-php/issues/37 - ->>===== RESULT =====>> -(Beethoven and Backhaus 1970) -<<===== RESULT =====<< - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Beethoven", - "given": "Ludwig van" - }, - { - "family": "Backhaus", - "given": "Wilhelm" - } - ], - "issued": { - "date-parts": [ - [ - "[ca. 1970]" - ] - ], - "literal": "[ca. 1970]" - }, - "number-of-pages": "1 Schallpl.", - "publisher": "Decca", - "publisher-place": "[Hamburg]", - "title": "Wilhelm Backhaus spielt Ludwig van Beethoven", - "type": "book" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-37.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-37.txt deleted file mode 100644 index b188e00..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-37.txt +++ /dev/null @@ -1,244 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - -https://github.com/seboettg/citeproc-php/issues/37 - ->>===== RESULT =====>> -
-
Nachname V (2005) Titel. , S. 62.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Nachname", - "given": "Vorname" - } - ], - "issued": { - "date-parts": [ - [ - "2005" - ] - ] - }, - "page": ", S. 62", - "title": "Titel", - "type": "article" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-44.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-44.txt deleted file mode 100644 index 52027e9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-44.txt +++ /dev/null @@ -1,1403 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
Anderson, John, and John Brown. Two Authors Writing a Book, n.d.
-
Doe, James, III. My Anonymous Heritage, 2001.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - - -<<===== CSL =====<< - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "James", - "suffix": "III" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "My Anonymous Heritage", - "type": "book" - }, - { - "author": [ - { - "family": "Anderson", - "given": "John" - }, - { - "family": "Brown", - "given": "John" - } - ], - "id": "ITEM-2", - "title": "Two authors writing a book", - "type": "book" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-46.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-46.txt deleted file mode 100644 index 39a0e9d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-46.txt +++ /dev/null @@ -1,385 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
[1]
С. В. Месяц, “Proclus’ metaphysics: between worldview and language game. Reflections on the book of Radek Chlup”, PhJ, vol. 8, no. 1, pp. 7-22, Mar. 2015.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - - - -<<===== CSL =====<< - ->>===== INPUT =====>> -[ - { - "URL": "https://pj.iph.ras.ru/index.php/ph_j/article/view/31", - "accessed": { - "date-parts": [], - "raw": "" - }, - "author": [ - { - "family": "Месяц", - "given": "Светлана Викторовна" - } - ], - "container-title": "Philosophy Journal", - "container-title-short": "PhJ", - "id": "31", - "issue": "1", - "issued": { - "date-parts": [], - "raw": "2015-03-05 00:00:00" - }, - "page": "7-22", - "section": "ACADEMIC DISCUSSIONS", - "title": "Proclus’ metaphysics: between worldview and language game. Reflections on the book of Radek Chlup", - "type": "article-journal", - "volume": "8" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-47.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-47.txt deleted file mode 100644 index 22e165b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-47.txt +++ /dev/null @@ -1,291 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
1.
Corino C. Elit nulla ultrices amet iaculis lorem non morbi sed sapien. publicknowledge. December 2017;1(1). doi:10.1234/publicknowledge.v1i1.62.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - -<<===== CSL =====<< - ->>===== INPUT =====>> -[ - { - "DOI": "10.1234/publicknowledge.v1i1.62", - "URL": "http://localhost/ojs/publicknowledge/article/view/62", - "accessed": { - "date-parts": [], - "raw": "2018-02-07" - }, - "author": [ - { - "family": "Corino", - "given": "Carlo" - } - ], - "container-title": "Journal of Public Knowledge", - "container-title-short": "publicknowledge", - "id": 62, - "issue": 1, - "issued": { - "date-parts": [], - "raw": "2017-12-05 16:04:07" - }, - "section": "Articles", - "title": "Elit nulla ultrices amet iaculis lorem non morbi sed sapien", - "type": "article-journal", - "volume": 1 - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-49-serbian-characters.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-49-serbian-characters.txt deleted file mode 100644 index 4e74268..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-49-serbian-characters.txt +++ /dev/null @@ -1,77 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
“Est Maximus Eu Donec Congue ‘Nešto Između’ Srđana Karanović“a.”
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - - -<<===== CSL =====<< - ->>===== INPUT =====>> -[ - { - "DOI": "10.1234/publicknowledge.v2i3.30", - "URL": "http://localhost/ojs/publicknowledge/article/view/30", - "accessed": { - "date-parts": [], - "raw": "2018-04-11" - }, - "author": [ - { - "family": "Corino", - "given": "Carlo" - }, - { - "family": "Contributor", - "given": "Test" - }, - { - "family": "Another", - "given": "Test" - } - ], - "container-title": "Journal of Public Knowledge", - "container-title-short": "publicknowledge", - "id": "30", - "issue": "3", - "issued": { - "date-parts": [], - "raw": "2017-10-17 00:00:00" - }, - "section": "Articles", - "title": "Est maximus eu donec congue “Nešto Između” Srđana Karanović“a", - "type": "article-journal", - "volume": "2" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-49.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-49.txt deleted file mode 100644 index 1325f1b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-49.txt +++ /dev/null @@ -1,862 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
Corino, Carlo, Test Contributor, and Test Another. “Est Maximus Eu Donec Congue ‘Nešto Između’ Srđana Karanović“a”. Journal of Public Knowledge 2, no. 3 (October 17, 2017). Accessed April 11, 2018. http://localhost/ojs/publicknowledge/article/view/30.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - - -<<===== CSL =====<< - ->>===== INPUT =====>> -[ - { - "DOI": "10.1234/publicknowledge.v2i3.30", - "URL": "http://localhost/ojs/publicknowledge/article/view/30", - "accessed": { - "date-parts": [], - "raw": "2018-04-11" - }, - "author": [ - { - "family": "Corino", - "given": "Carlo" - }, - { - "family": "Contributor", - "given": "Test" - }, - { - "family": "Another", - "given": "Test" - } - ], - "container-title": "Journal of Public Knowledge", - "container-title-short": "publicknowledge", - "id": "30", - "issue": "3", - "issued": { - "date-parts": [], - "raw": "2017-10-17 00:00:00" - }, - "section": "Articles", - "title": "Est maximus eu donec congue “Nešto Između” Srđana Karanović“a", - "type": "article-journal", - "volume": "2" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-50.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-50.txt deleted file mode 100644 index 16b88c5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-50.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John Smith. “Chapter Title.”
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "URL": "http://example.com", - "author": [ - { - "family": "Smith", - "given": "John" - } - ], - "id": 276, - "title": "Chapter Title", - "type": "chapter" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-58.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-58.txt deleted file mode 100644 index 993ec66..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-58.txt +++ /dev/null @@ -1,808 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
John Smith. “Chapter Title.”
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "URL": "www.starwars.com/", - "accessed": { - "date-parts": [ - [ - "2018", - "09", - "19" - ] - ] - }, - "id": "item-1", - "title": "StarWars.com | The Official Star Wars Website", - "type": "webpage" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-60.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-60.txt deleted file mode 100644 index 5404e60..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-60.txt +++ /dev/null @@ -1,379 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
1.
My Article. JABC. 1(1):3-10.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - -<<===== CSL =====<< - ->>===== INPUT =====>> -[ - { - "container-title": "Journal of ABCs", - "container-title-short": "JABC", - "id": 123, - "issue": 1, - "page": "3-10", - "section": "Section Title", - "title": "My Article", - "type": "article-journal", - "volume": 1 - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-dates-minimal.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-dates-minimal.txt deleted file mode 100644 index c7ca035..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-dates-minimal.txt +++ /dev/null @@ -1,52 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -2004 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 2004, - 10, - 21 - ], - [ - 2004, - 10, - 23 - ] - ] - }, - "title": "Some Book or Other", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-dates.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-dates.txt deleted file mode 100644 index cda769f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/bugfix-github-dates.txt +++ /dev/null @@ -1,515 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Gebremedhin, M. T. (2004). Carbon dioxide and energy balance of a double cropping agroecosystem in northern Alabama climate.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "abstract": "Minimum tillage along with crop residue management on a double cropping system is recognized as practical choice of soil carbon management option in several crop production regions across the US. Here, seasonal estimates of net ecosystem exchange (NEE) and its components for soybean and winter wheat crops (double cropping systems) were studied at Winfred Thomas Agricultural Research Station (WTARS) in Hazel green Alabama for growing seasons of 2007, 2008 and 2009 using the eddy covariance technique. The site was a net annual source of carbon during the year 2007 and 2008 (cumulative NEE ca. 100 and 30 g C m⁻² y⁻¹), while 2009 was a slight C sink (-20 g C m⁻² y⁻¹). Here, differential soil and canopy respiratory looses have played significant role in the annual crop C status. The soybean-winter wheat double cropping system of northern Alabama studied here exhibited a contrasting LE, H and G flux patterns. driven by biophysical attributes, crop phenology and by management. Seasonally integrated evapo transpiration values for soybean were 220, 258 and 276 mm in 2007, 2008 and 2009, respectively reflective of precipitation driven canopy-atmosphere water cycling with corresponding precipitations of 260, 304, 753 mm. With the exception of winter growing season of 2007, which was smaller, ET of winter cover crop (winter wheat) was higher by 15% and 26% than soybean. For soybean, the percentage of water returned to the atmosphere via ET relative to growing season precipitation was the highest in 2007 (85%) received during growing cycle\"--page vi.", - "author": [ - { - "family": "Gebremedhin", - "given": "Maheteme T." - } - ], - "call-number": "S603.7 .G43 2010", - "issued": { - "date-parts": [ - [ - "2004", - "10", - 21 - ], - [ - "2004", - "10", - 23 - ] - ] - }, - "note": "1. Maheteme T. Gebremedhin. 2. Ph. D. Alabama A & M University 2010. 3. Includes bibliographical references (leaves 191-200). ", - "publisher": "Alabama A&M University", - "publisher-place": "alu", - "title": "Carbon dioxide and energy balance of a double cropping agroecosystem in northern Alabama climate", - "type": "article-journal" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/condition_EmptyIsUncertainDateFalse.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/condition_EmptyIsUncertainDateFalse.txt deleted file mode 100644 index 9649ed0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/condition_EmptyIsUncertainDateFalse.txt +++ /dev/null @@ -1,46 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -empty issued is not uncertain -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/condition_LocatorIsFalse.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/condition_LocatorIsFalse.txt deleted file mode 100644 index 1bc6476..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/condition_LocatorIsFalse.txt +++ /dev/null @@ -1,74 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Book One: (1) Locator true (2) Locator true; Book Two: (1) Locator false (2) Locator false -<<===== RESULT =====<< - ->>===== CITATION-ITEMS =====>> -[ - [ - { - "id": "ITEM-1", - "locator": "1" - }, - { - "id": "ITEM-2" - } - ] -] -<<===== CITATION-ITEMS =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "title": "Book One", - "type": "book" - }, - { - "id": "ITEM-2", - "title": "Book Two", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_Accessed.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_Accessed.txt deleted file mode 100644 index 49e92e6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_Accessed.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -January 22, 1976 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "accessed": { - "date-parts": [], - "raw": "22 jan 1976" - }, - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_DateAD.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_DateAD.txt deleted file mode 100644 index 38d5f01..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_DateAD.txt +++ /dev/null @@ -1,51 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -(499AD) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 499 - ] - ] - }, - "title": "Ignore me", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_DateBC.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_DateBC.txt deleted file mode 100644 index bfcb2da..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_DateBC.txt +++ /dev/null @@ -1,51 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -(250BC) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - -250 - ] - ] - }, - "title": "Ignore me", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_InPress.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_InPress.txt deleted file mode 100644 index 0e000fc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_InPress.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -(John Doe (in press)) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [], - "literal": "(in press)" - }, - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_January.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_January.txt deleted file mode 100644 index 2a88b19..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_January.txt +++ /dev/null @@ -1,47 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -January 30, 1965 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "1965", - "1", - "30" - ] - ] - }, - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_KeyVariable.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_KeyVariable.txt deleted file mode 100644 index ac81a83..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_KeyVariable.txt +++ /dev/null @@ -1,100 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -
-
Book A
-
Book B
-
Book C
-
Book D
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000", - "2", - "15" - ] - ] - }, - "title": "Book C", - "type": "book" - }, - { - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "2000", - "12", - "15" - ] - ] - }, - "title": "Book B", - "type": "book" - }, - { - "id": "ITEM-3", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-4", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book D", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-af-ZA.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-af-ZA.txt deleted file mode 100644 index 303a53b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-af-ZA.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -1998/04/10 -1998/04 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ar-AR.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ar-AR.txt deleted file mode 100644 index 7560ec8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ar-AR.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April, 1998 -April, 1998 -1998 -10/4/1998 -4/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-bg-BG.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-bg-BG.txt deleted file mode 100644 index 2bafd15..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-bg-BG.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10.04.1998 -04.1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ca-AD.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ca-AD.txt deleted file mode 100644 index 3ab8ba8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ca-AD.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 de April de 1998 -April de 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-cs-CZ.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-cs-CZ.txt deleted file mode 100644 index c9a5964..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-cs-CZ.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10. April 1998 -April 1998 -1998 -1998-04-10 -1998-04 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-da-DK.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-da-DK.txt deleted file mode 100644 index e8ff9f8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-da-DK.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10. April 1998 -April 1998 -1998 -10-04-1998 -04-1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-AT.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-AT.txt deleted file mode 100644 index 4cbbdc0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-AT.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-CH.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-CH.txt deleted file mode 100644 index 72d772c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-CH.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10. April 1998 -April 1998 -1998 -10.04.1998 -04.1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-DE.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-DE.txt deleted file mode 100644 index 72d772c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-de-DE.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10. April 1998 -April 1998 -1998 -10.04.1998 -04.1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-el-GR.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-el-GR.txt deleted file mode 100644 index 4cbbdc0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-el-GR.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-en-US.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-en-US.txt deleted file mode 100644 index 2942390..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-en-US.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -April 10, 1998 -April 1998 -1998 -04/10/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-es-ES.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-es-ES.txt deleted file mode 100644 index 3ab8ba8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-es-ES.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 de April de 1998 -April de 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-et-EE.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-et-EE.txt deleted file mode 100644 index 72d772c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-et-EE.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10. April 1998 -April 1998 -1998 -10.04.1998 -04.1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-fr-FR.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-fr-FR.txt deleted file mode 100644 index 4cbbdc0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-fr-FR.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-he-IL.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-he-IL.txt deleted file mode 100644 index 4cbbdc0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-he-IL.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-hu-HU.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-hu-HU.txt deleted file mode 100644 index a0ecd78..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-hu-HU.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -1998. April 10. -1998. April -1998 -1998.04.10 -1998.04 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-is-IS.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-is-IS.txt deleted file mode 100644 index 72d772c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-is-IS.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10. April 1998 -April 1998 -1998 -10.04.1998 -04.1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-it-IT.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-it-IT.txt deleted file mode 100644 index 4cbbdc0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-it-IT.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ja-JP.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ja-JP.txt deleted file mode 100644 index 2cc9387..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ja-JP.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -1998年4月10日 -1998年4月 -1998年 -1998年4月10日 -1998年4月 -1998年 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ko-KR.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ko-KR.txt deleted file mode 100644 index 65fd434..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ko-KR.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -1998년 4월 10일 -1998년 4월 -1998년 -1998/04/10 -1998/04 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-mn-MN.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-mn-MN.txt deleted file mode 100644 index 36bb236..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-mn-MN.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -1998.04.10 -1998.04 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-nb-NO.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-nb-NO.txt deleted file mode 100644 index 0e30aab..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-nb-NO.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10. April 1998 -April 1998 -1998 -1998-04-10 -1998-04 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-nl-NL.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-nl-NL.txt deleted file mode 100644 index d648ee1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-nl-NL.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10-4-1998 -4-1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pl-PL.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pl-PL.txt deleted file mode 100644 index 8032bce..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pl-PL.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10.04.1998 -04.1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pt-BR.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pt-BR.txt deleted file mode 100644 index 2eb91fc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pt-BR.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 de April de 1998 -April de 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pt-PT.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pt-PT.txt deleted file mode 100644 index 2eb91fc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-pt-PT.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 de April de 1998 -April de 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ro-RO.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ro-RO.txt deleted file mode 100644 index 066e7f4..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ro-RO.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10.4.1998 -4.1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ru-RU.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ru-RU.txt deleted file mode 100644 index 44fe696..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-ru-RU.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 г. -April 1998 г. -1998 г. -10.04.1998 -04.1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sk-SK.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sk-SK.txt deleted file mode 100644 index 73f77cd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sk-SK.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10. April 1998 -April 1998 -1998 -10.4.1998 -4.1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sl-SL.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sl-SL.txt deleted file mode 100644 index 287a1e8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sl-SL.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10. April 1998. -April 1998. -1998. -1998-04-10 -1998-04 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sr-RS.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sr-RS.txt deleted file mode 100644 index 287a1e8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sr-RS.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10. April 1998. -April 1998. -1998. -1998-04-10 -1998-04 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sv-SE.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sv-SE.txt deleted file mode 100644 index f6f67e3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-sv-SE.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -1998-04-10 -1998-04 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-th-TH.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-th-TH.txt deleted file mode 100644 index 328f0f2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-th-TH.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-tr-TR.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-tr-TR.txt deleted file mode 100644 index 85d9a5e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-tr-TR.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-uk-UA.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-uk-UA.txt deleted file mode 100644 index 2e4e568..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-uk-UA.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10, April 1998 -April 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-vi-VN.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-vi-VN.txt deleted file mode 100644 index 328f0f2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-vi-VN.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -10 April 1998 -April 1998 -1998 -10/04/1998 -04/1998 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-zh-CN.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-zh-CN.txt deleted file mode 100644 index cc36413..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-zh-CN.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -1998年4月10日 -1998年4月 -1998年 -1998-4-10 -1998-4 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-zh-TW.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-zh-TW.txt deleted file mode 100644 index eeffca4..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedDateFormats-zh-TW.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -1998年4月10日 -1998年4月 -1998年 -1998/04/10 -1998/04 -1998 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1998, - 4, - 10 - ] - ] - }, - "title": "BookA" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefault.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefault.txt deleted file mode 100644 index 55ad379..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefault.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -12/15/2005 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 2005, - 12, - 15 - ] - ] - }, - "title": "Ignore me", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefaultMissingDay.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefaultMissingDay.txt deleted file mode 100644 index de243df..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefaultMissingDay.txt +++ /dev/null @@ -1,48 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -12/2005 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 2005, - 12 - ] - ] - }, - "title": "Ignore me", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefaultWithAffixes.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefaultWithAffixes.txt deleted file mode 100644 index 56e6bc8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericDefaultWithAffixes.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -(12/15/2005) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 2005, - 12, - 15 - ] - ] - }, - "title": "Ignore me", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericYear.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericYear.txt deleted file mode 100644 index f180515..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LocalizedNumericYear.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -2005 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 2005, - 12, - 15 - ] - ] - }, - "title": "Ignore me", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LongMonth.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LongMonth.txt deleted file mode 100644 index 6abe2e3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_LongMonth.txt +++ /dev/null @@ -1,53 +0,0 @@ -@>>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -(December 15, 2005) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 2005, - 12, - 15 - ] - ] - }, - "title": "Ignore me", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_NoDate.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_NoDate.txt deleted file mode 100644 index 7a439c0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_NoDate.txt +++ /dev/null @@ -1,52 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -Some Book or Other (no date) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "title": "Some Book or Other", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_RawParseSimpleDate.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_RawParseSimpleDate.txt deleted file mode 100644 index 58b14e8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_RawParseSimpleDate.txt +++ /dev/null @@ -1,48 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -(28 October 1958) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [], - "raw": "Oct 28, 1958" - }, - "title": "Ignore me", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_String.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_String.txt deleted file mode 100644 index 7c850e3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_String.txt +++ /dev/null @@ -1,55 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -date: Bogus Date; date: 2010 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [], - "raw": "Bogus Date" - }, - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-2", - "issued": { - "date-parts": [], - "raw": "2010-03-27" - }, - "title": "Book B", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_Uncertain.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_Uncertain.txt deleted file mode 100644 index 5ff1662..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_Uncertain.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -circa 15 December 2005; 20 December 2005 -<<===== RESULT =====<< - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "circa": 1, - "date-parts": [ - [ - 2005, - 12, - 15 - ] - ] - }, - "type": "book" - }, - { - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - 2005, - 12, - 20 - ] - ] - }, - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_ranges.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_ranges.txt deleted file mode 100644 index a8d5519..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/date_ranges.txt +++ /dev/null @@ -1,191 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -[10–23]{August}(2003) | [10–23](2003){August} | {August}[10–23](2003) | {August}(2003)[10–23] | (2003)[10–23]{August} | (2003){August}[10–23] -[3]{August–23]{October}(2003) | [3]{August–23]{October}(2003) | {August}[3–October}[23](2003) | {August}[3–October}[23](2003) | (2003)[3]{August–23]{October} | (2003){August}[3–October}[23] -[3]{August}(1987–23]{October}(2003) | [3](1987){August–23](2003){October} | {August}[3](1987–October}[23](2003) | {August}(1987)[3–October}(2003)[23] | (1987)[3]{August–2003)[23]{October} | (1987){August}[3–2003){October}[23] -{August–October}(2003) | (2003){August–October} | {August–October}(2003) | {August–October}(2003) | (2003){August–October} | (2003){August–October} -{August}(1987–October}(2003) | (1987){August–2003){October} | {August}(1987–October}(2003) | {August}(1987–October}(2003) | (1987){August–2003){October} | (1987){August–2003){October} -(1987–2003) | (1987–2003) | (1987–2003) | (1987–2003) | (1987–2003) | (1987–2003) -(1987– | (1987– | (1987– | (1987– | (1987– | (1987– -<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 2003, - 8, - 10 - ], - [ - 2003, - 8, - 23 - ] - ] - }, - "title": "Ignore me", - "type": "book" - }, - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 2003, - 8, - 3 - ], - [ - 2003, - 10, - 23 - ] - ] - }, - "title": "Ignore me", - "type": "book" - }, - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1987, - 8, - 3 - ], - [ - 2003, - 10, - 23 - ] - ] - }, - "title": "Ignore me", - "type": "book" - }, - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 2003, - 8 - ], - [ - 2003, - 10 - ] - ] - }, - "title": "Ignore me", - "type": "book" - }, - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1987, - 8 - ], - [ - 2003, - 10 - ] - ] - }, - "title": "Ignore me", - "type": "book" - }, - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1987 - ], - [ - 2003 - ] - ] - }, - "title": "Ignore me", - "type": "book" - }, - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1987 - ], - [ - 0 - ] - ] - }, - "title": "Ignore me", - "type": "book" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_AuthorAsHeading.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_AuthorAsHeading.txt deleted file mode 100644 index d3f4a48..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_AuthorAsHeading.txt +++ /dev/null @@ -1,158 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - -An illustration of how the class attribute could be used to support -the grouping of authors in the AAA style bibliography format. - - - ->>===== RESULT =====>> -
-
John Aloysius Doe
1999
Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa
-
2000
Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb
-
Jane Henrietta Roe
1999
Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc
-
2000
Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd
-
2001
Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John Aloysius" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1999 - ] - ] - }, - "title": "Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa Aaaaa", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John Aloysius" - } - ], - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - 2000 - ] - ] - }, - "title": "Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb Bbbbb", - "type": "book" - }, - { - "author": [ - { - "family": "Roe", - "given": "Jane Henrietta" - } - ], - "id": "ITEM-3", - "issued": { - "date-parts": [ - [ - 1999 - ] - ] - }, - "title": "Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc Ccccc", - "type": "book" - }, - { - "author": [ - { - "family": "Roe", - "given": "Jane Henrietta" - } - ], - "id": "ITEM-4", - "issued": { - "date-parts": [ - [ - 2000 - ] - ] - }, - "title": "Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd Ddddd", - "type": "book" - }, - { - "author": [ - { - "family": "Roe", - "given": "Jane Henrietta" - } - ], - "id": "ITEM-5", - "issued": { - "date-parts": [ - [ - 2001 - ] - ] - }, - "title": "Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee Eeeee", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_DisplayBlock.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_DisplayBlock.txt deleted file mode 100644 index 5860e35..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_DisplayBlock.txt +++ /dev/null @@ -1,91 +0,0 @@ ->>== MODE ==>> -bibliography -<<== MODE ==<< - - - ->>== RESULT ==>> -
-
John Smith, Book A (2000)
An interesting book by an interesting author.
-
Robert Jones, Book B (2001)
An old contribution to a new field.
-
-<<== RESULT ==<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "abstract": "An interesting book by an interesting author.", - "author": [ - { - "family": "Smith", - "given": "John" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "abstract": "An old contribution to a new field.", - "author": [ - { - "family": "Jones", - "given": "Robert" - } - ], - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "Book B", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_SecondFieldAlignClone.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_SecondFieldAlignClone.txt deleted file mode 100644 index 796758b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_SecondFieldAlignClone.txt +++ /dev/null @@ -1,96 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
[1]
John Aloysius Doe, “John’s Book” (1999)
-
[2]
Jane Henrietta Roe, “Jane’s Book” (2000)
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John Aloysius" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1999 - ] - ] - }, - "title": "John's Book", - "type": "book" - }, - { - "author": [ - { - "family": "Roe", - "given": "Jane Henrietta" - } - ], - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - 2000 - ] - ] - }, - "title": "Jane's Book", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_SecondFieldAlignMigratePunctuation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_SecondFieldAlignMigratePunctuation.txt deleted file mode 100644 index 55fcb7a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/display_SecondFieldAlignMigratePunctuation.txt +++ /dev/null @@ -1,198 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
[1] B. D’Arcus, Boundaries of Dissent: Protest and State Power in the Media Age, Routledge, 2005.
-
[2] F.G. Bennett Jr., “Getting Property Right: ‘Informal’ Mortgages in the Japanese Courts”, Pac. Rim L. & Pol’y J., vol. 18, Aug. 2009, pp. 463-509.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "D'Arcus", - "given": "Bruce" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 2005, - 11, - 22 - ] - ] - }, - "note": "The apostrophe in Bruce's name appears in proper typeset form.", - "publisher": "Routledge", - "title": "Boundaries of Dissent: Protest and State Power in the Media Age", - "type": "book" - }, - { - "author": [ - { - "family": "Bennett", - "given": "Frank G.", - "suffix": "Jr." - } - ], - "container-title": "Pac. Rim L. & Pol'y J.", - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - 2009, - 8 - ] - ] - }, - "page": "463-509", - "title": "Getting Property Right: \"Informal\" Mortgages in the Japanese Courts", - "type": "article-journal", - "volume": "18" - } -] -<<===== INPUT =====<< - - diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APA.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APA.txt deleted file mode 100644 index 82db6bb..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APA.txt +++ /dev/null @@ -1,392 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE=====<< - -This is correct APA ... - -See: - http://forums.zotero.org/discussion/17859/style-error-for-apa-non-primary-author-initials-incorrectly-included/ -and followup thread: - http://forums.zotero.org/discussion/19570/option-to-disable-disambiguation/ - ->>===== RESULT =====>> -(Oblinger & Oblinger, 2009) -<<===== RESULT =====<< - ->>===== CSL =====>> - - -<<===== CSL===== << - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Oblinger", - "given": "Dan Gerry", - "isInstitution": "" - }, - { - "family": "Oblinger", - "given": "Susan Mary", - "isInstitution": "" - } - ], - "id": 3, - "issued": { - "date-parts": [ - [ - 2009 - ] - ] - }, - "multi": { - "_keys": {} - }, - "title": "Bookie", - "type": "book" - } -] -<<===== INPUT=====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APABibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APABibliography.txt deleted file mode 100644 index 15fc921..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APABibliography.txt +++ /dev/null @@ -1,404 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE=====<< - - ->>===== RESULT =====>> -
-
Böttger, S. (2012, April). Konzept und Umsetzung eines Tag-Recommenders für Video-Ressourcen am Beispiel UniVideo (Master thesis). Universität Kassel, Kassel. Retrieved from http://www.uni-kassel.de/~seboettg/ba-thesis.pdf
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - -<<===== CSL===== << - ->>===== INPUT =====>> -[ - { - "DOI": "", - "ISBN": "", - "ISSN": "", - "URL": "http://www.uni-kassel.de/~seboettg/ba-thesis.pdf", - "abstract": "Ein Abstract.", - "annote": "", - "author": [ - { - "family": "Böttger", - "given": "Sebastian" - } - ], - "citation-label": "bottger2012konzept", - "collection-editor": [], - "collection-title": "", - "container-author": [], - "container-title": "", - "edition": "", - "editor": [], - "event-date": { - "date-parts": [ - [ - "2012", - "04" - ] - ], - "literal": "2012" - }, - "event-place": "Kassel", - "genre": "Master thesis", - "id": "3c2ffd52e7081b66bf420f993d9144bbseboettg", - "issue": "", - "issued": { - "date-parts": [ - [ - "2012", - "04" - ] - ] - }, - "keyword": "ba-thesis bathesis folksonomy myown recommender tagging tagrecommendation thesis univideo video", - "note": "", - "number": "", - "page": "", - "page-first": "", - "publisher": "Universität Kassel", - "publisher-place": "Kassel", - "status": "", - "title": "Konzept und Umsetzung eines Tag-Recommenders für Video-Ressourcen am Beispiel UniVideo", - "type": "thesis", - "volume": "" - } -] -<<===== INPUT=====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APA_MultipleAuthorsTypeArticleJournal.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APA_MultipleAuthorsTypeArticleJournal.txt deleted file mode 100644 index a9dba8b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_APA_MultipleAuthorsTypeArticleJournal.txt +++ /dev/null @@ -1,464 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE=====<< - - ->>===== RESULT =====>> -
-
Hotho, A., Benz, D., Eisterlehner, F., Jäschke, R., Krause, B., Schmitz, C., & Stumme, G. (2010). Publikationsmanagement mit BibSonomy - ein Social-Bookmarking-System für Wissenschaftler. (U. Hengartner & A. Meier, Eds.)HMD - Praxis der Wirtschaftsinformatik, 271, 47-58. dpunkt.verlag. Retrieved from http://hmd.dpunkt.de/271/05.php
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - -<<===== CSL===== << - ->>===== INPUT =====>> -[ - { - "DOI": "", - "ISBN": "", - "ISSN": "1436-3011", - "URL": "http://hmd.dpunkt.de/271/05.php", - "abstract": "Kooperative Verschlagwortungs- bzw. Social-Bookmarking-Systeme wie Delicious, Mister Wong oder auch unser eigenes System BibSonomy erfreuen sich immer größerer Beliebtheit und bilden einen zentralen Bestandteil des heutigen Web 2.0. In solchen Systemen erstellen Nutzer leichtgewichtige Begriffssysteme, sogenannte Folksonomies, die die Nutzerdaten strukturieren. Die einfache Bedienbarkeit, die Allgegenwärtigkeit, die ständige Verfügbarkeit, aber auch die Möglichkeit, Gleichgesinnte spontan in solchen Systemen zu entdecken oder sie schlicht als Informationsquelle zu nutzen, sind Gründe für ihren gegenwärtigen Erfolg. Der Artikel führt den Begriff Social Bookmarking ein und diskutiert zentrale Elemente wie Browsing und Suche am Beispiel von BibSonomy anhand typischer Arbeitsabläufe eines Wissenschaftlers. Wir beschreiben die Architektur von BibSonomy sowie Wege der Integration und Vernetzung von BibSonomy mit Content-Management-Systemen und Webauftritten. Der Artikel schließt mit Querbezügen zu aktuellen Forschungsfragen im Bereich Social Bookmarking.", - "annote": "", - "author": [ - { - "family": "Hotho", - "given": "Andreas" - }, - { - "family": "Benz", - "given": "Dominik" - }, - { - "family": "Eisterlehner", - "given": "Folke" - }, - { - "family": "Jäschke", - "given": "Robert" - }, - { - "family": "Krause", - "given": "Beate" - }, - { - "family": "Schmitz", - "given": "Christoph" - }, - { - "family": "Stumme", - "given": "Gerd" - } - ], - "citation-label": "hotho2010publikationsmanagement", - "collection-editor": [ - { - "family": "Hengartner", - "given": "Urs" - }, - { - "family": "Meier", - "given": "Andreas" - } - ], - "collection-title": "", - "container-author": [ - { - "family": "Hengartner", - "given": "Urs" - }, - { - "family": "Meier", - "given": "Andreas" - } - ], - "container-title": "HMD - Praxis der Wirtschaftsinformatik", - "documents": [], - "edition": "", - "editor": [ - { - "family": "Hengartner", - "given": "Urs" - }, - { - "family": "Meier", - "given": "Andreas" - } - ], - "event-date": { - "date-parts": [ - [ - "2010", - "feb" - ] - ], - "literal": "2010" - }, - "event-place": "", - "id": "422096948d4de38a725b428be3222d60jaeschke", - "interhash": "c19880489182c86e1573a2ac983c7cff", - "intrahash": "422096948d4de38a725b428be3222d60", - "issue": "", - "issued": { - "date-parts": [ - [ - "2010", - "feb" - ] - ], - "literal": "2010" - }, - "keyword": "2010 bibsonomy bookmarking myown social", - "misc": { - "issn": "1436-3011" - }, - "note": "", - "number": "", - "number-of-pages": "11", - "page": "47--58", - "page-first": "47", - "publisher": "dpunkt.verlag", - "publisher-place": "", - "status": "", - "title": "Publikationsmanagement mit BibSonomy - ein Social-Bookmarking-System für Wissenschaftler", - "type": "article-journal", - "username": "jaeschke", - "version": "", - "volume": "271" - } -] -<<===== INPUT=====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_DINBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_DINBibliography.txt deleted file mode 100644 index b3c074e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_DINBibliography.txt +++ /dev/null @@ -1,482 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE=====<< - -This is correct APA ... - -See: - http://forums.zotero.org/discussion/17859/style-error-for-apa-non-primary-author-initials-incorrectly-included/ -and followup thread: - http://forums.zotero.org/discussion/19570/option-to-disable-disambiguation/ - ->>===== RESULT =====>> -
-
Hotho, Andreas ; Benz, Dominik ; Eisterlehner, Folke ; Jäschke, Robert ; Krause, Beate ; Schmitz, Christoph ; Stumme, Gerd: Publikationsmanagement mit BibSonomy - ein Social-Bookmarking-System für Wissenschaftler. In: Hengartner, U. ; Meier, A. (eds.) HMD - Praxis der Wirtschaftsinformatik vol. 271, dpunkt.verlag (2010), p. 47-58
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - -<<===== CSL======<< - ->>===== INPUT =====>> -[ - { - "DOI": "", - "ISBN": "", - "ISSN": "1436-3011", - "URL": "http://hmd.dpunkt.de/271/05.php", - "abstract": "Kooperative Verschlagwortungs- bzw. Social-Bookmarking-Systeme wie Delicious, Mister Wong oder auch unser eigenes System BibSonomy erfreuen sich immer größerer Beliebtheit und bilden einen zentralen Bestandteil des heutigen Web 2.0. In solchen Systemen erstellen Nutzer leichtgewichtige Begriffssysteme, sogenannte Folksonomies, die die Nutzerdaten strukturieren. Die einfache Bedienbarkeit, die Allgegenwärtigkeit, die ständige Verfügbarkeit, aber auch die Möglichkeit, Gleichgesinnte spontan in solchen Systemen zu entdecken oder sie schlicht als Informationsquelle zu nutzen, sind Gründe für ihren gegenwärtigen Erfolg. Der Artikel führt den Begriff Social Bookmarking ein und diskutiert zentrale Elemente wie Browsing und Suche am Beispiel von BibSonomy anhand typischer Arbeitsabläufe eines Wissenschaftlers. Wir beschreiben die Architektur von BibSonomy sowie Wege der Integration und Vernetzung von BibSonomy mit Content-Management-Systemen und Webauftritten. Der Artikel schließt mit Querbezügen zu aktuellen Forschungsfragen im Bereich Social Bookmarking.", - "annote": "", - "author": [ - { - "family": "Hotho", - "given": "Andreas" - }, - { - "family": "Benz", - "given": "Dominik" - }, - { - "family": "Eisterlehner", - "given": "Folke" - }, - { - "family": "Jäschke", - "given": "Robert" - }, - { - "family": "Krause", - "given": "Beate" - }, - { - "family": "Schmitz", - "given": "Christoph" - }, - { - "family": "Stumme", - "given": "Gerd" - } - ], - "citation-label": "hotho2010publikationsmanagement", - "collection-editor": [ - { - "family": "Hengartner", - "given": "Urs" - }, - { - "family": "Meier", - "given": "Andreas" - } - ], - "collection-title": "", - "container-author": [ - { - "family": "Hengartner", - "given": "Urs" - }, - { - "family": "Meier", - "given": "Andreas" - } - ], - "container-title": "HMD - Praxis der Wirtschaftsinformatik", - "documents": [], - "edition": "", - "editor": [ - { - "family": "Hengartner", - "given": "Urs" - }, - { - "family": "Meier", - "given": "Andreas" - } - ], - "event-date": { - "date-parts": [ - [ - "2010", - "feb" - ] - ], - "literal": "2010" - }, - "event-place": "", - "id": "422096948d4de38a725b428be3222d60jaeschke", - "interhash": "c19880489182c86e1573a2ac983c7cff", - "intrahash": "422096948d4de38a725b428be3222d60", - "issue": "", - "issued": { - "date-parts": [ - [ - "2010", - "feb" - ] - ], - "literal": "2010" - }, - "keyword": "2010 bibsonomy bookmarking myown social", - "misc": { - "issn": "1436-3011" - }, - "note": "", - "number": "", - "number-of-pages": "11", - "page": "47--58", - "page-first": "47", - "publisher": "dpunkt.verlag", - "publisher-place": "", - "status": "", - "title": "Publikationsmanagement mit BibSonomy - ein Social-Bookmarking-System für Wissenschaftler", - "type": "article-journal", - "username": "jaeschke", - "version": "", - "volume": "271" - } -] -<<===== INPUT=====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_InternationalJournalOfHumanoidRobotics.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_InternationalJournalOfHumanoidRobotics.txt deleted file mode 100644 index 55a3724..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_InternationalJournalOfHumanoidRobotics.txt +++ /dev/null @@ -1,333 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE=====<< - ->>===== RESULT =====>> -
-
1.
H. Potter, People will never learn (2016).
-
2.
A. Hotho, D. Benz, F. Eisterlehner, R. Jäschke, B. Krause, C. Schmitz and G. Stumme, Publikationsmanagement mit BibSonomy - ein Social-Bookmarking-System für Wissenschaftler, HMD - Praxis Der Wirtschaftsinformatik 271 (2010) 47-58.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "DOI": "", - "ISBN": "", - "URL": "http://www.google.com", - "abstract": "", - "author": [ - { - "family": "Potter", - "given": "Heribert" - } - ], - "citation-label": "google", - "container-title": "", - "documents": [], - "edition": "", - "editor": [], - "event-place": "", - "id": "eb4818ba044f52ec9da9c3a4ff76e7b4awolff", - "issue": "HKUST-TCSC-2000-06", - "issued": { - "date-parts": [ - [ - "2016" - ] - ], - "literal": "2016" - }, - "note": "", - "number": "", - "page": "", - "publisher": "", - "publisher-place": "", - "title": "People will never learn", - "type": "book", - "volume": "" - }, - { - "DOI": "", - "ISBN": "", - "ISSN": "1436-3011", - "URL": "http://hmd.dpunkt.de/271/05.php", - "abstract": "Kooperative Verschlagwortungs- bzw. Social-Bookmarking-Systeme wie Delicious, Mister Wong oder auch unser eigenes System BibSonomy erfreuen sich immer größerer Beliebtheit und bilden einen zentralen Bestandteil des heutigen Web 2.0. In solchen Systemen erstellen Nutzer leichtgewichtige Begriffssysteme, sogenannte Folksonomies, die die Nutzerdaten strukturieren. Die einfache Bedienbarkeit, die Allgegenwärtigkeit, die ständige Verfügbarkeit, aber auch die Möglichkeit, Gleichgesinnte spontan in solchen Systemen zu entdecken oder sie schlicht als Informationsquelle zu nutzen, sind Gründe für ihren gegenwärtigen Erfolg. Der Artikel führt den Begriff Social Bookmarking ein und diskutiert zentrale Elemente wie Browsing und Suche am Beispiel von BibSonomy anhand typischer Arbeitsabläufe eines Wissenschaftlers. Wir beschreiben die Architektur von BibSonomy sowie Wege der Integration und Vernetzung von BibSonomy mit Content-Management-Systemen und Webauftritten. Der Artikel schließt mit Querbezügen zu aktuellen Forschungsfragen im Bereich Social Bookmarking.", - "annote": "", - "author": [ - { - "family": "Hotho", - "given": "Andreas" - }, - { - "family": "Benz", - "given": "Dominik" - }, - { - "family": "Eisterlehner", - "given": "Folke" - }, - { - "family": "Jäschke", - "given": "Robert" - }, - { - "family": "Krause", - "given": "Beate" - }, - { - "family": "Schmitz", - "given": "Christoph" - }, - { - "family": "Stumme", - "given": "Gerd" - } - ], - "citation-label": "hotho2010publikationsmanagement", - "collection-editor": [ - { - "family": "Hengartner", - "given": "Urs" - }, - { - "family": "Meier", - "given": "Andreas" - } - ], - "collection-title": "", - "container-author": [ - { - "family": "Hengartner", - "given": "Urs" - }, - { - "family": "Meier", - "given": "Andreas" - } - ], - "container-title": "HMD - Praxis der Wirtschaftsinformatik", - "documents": [], - "edition": "", - "editor": [ - { - "family": "Hengartner", - "given": "Urs" - }, - { - "family": "Meier", - "given": "Andreas" - } - ], - "event-date": { - "date-parts": [ - [ - "2010", - "feb" - ] - ], - "literal": "2010" - }, - "event-place": "", - "id": "422096948d4de38a725b428be3222d60jaeschke", - "interhash": "c19880489182c86e1573a2ac983c7cff", - "intrahash": "422096948d4de38a725b428be3222d60", - "issue": "", - "issued": { - "date-parts": [ - [ - "2010", - "feb" - ] - ], - "literal": "2010" - }, - "keyword": "2010 bibsonomy bookmarking myown social", - "misc": { - "issn": "1436-3011" - }, - "note": "", - "number": "", - "number-of-pages": "11", - "page": "47--58", - "page-first": "47", - "publisher": "dpunkt.verlag", - "publisher-place": "", - "status": "", - "title": "Publikationsmanagement mit BibSonomy - ein Social-Bookmarking-System für Wissenschaftler", - "type": "article-journal", - "username": "jaeschke", - "version": "", - "volume": "271" - } -] -<<===== INPUT=====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_NorthWestUniversityHarvard.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_NorthWestUniversityHarvard.txt deleted file mode 100644 index 7128acf..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/fullstyles_NorthWestUniversityHarvard.txt +++ /dev/null @@ -1,279 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE=====<< - ->>===== RESULT =====>> -
-
Anderson, J. & Brown, J. n.d. Two authors writing a book.
-
Doe, J., III. 2001. My Anonymous Heritage.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - -<<===== CSL===== << - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "James", - "suffix": "III" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "My Anonymous Heritage", - "type": "book" - }, - { - "author": [ - { - "family": "Anderson", - "given": "John" - }, - { - "family": "Brown", - "given": "John" - } - ], - "id": "ITEM-2", - "title": "Two authors writing a book", - "type": "book" - } -] -<<===== INPUT=====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_ComplexNesting.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_ComplexNesting.txt deleted file mode 100644 index 14f6580..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_ComplexNesting.txt +++ /dev/null @@ -1,418 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Doe Inc. Retrieved June 1, 1965, from http://example.com/
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "URL": "http://example.com/", - "accessed": { - "date-parts": [ - [ - "1965", - "6", - "1" - ] - ] - }, - "author": [ - { - "family": "Doe Inc.", - "isInstitution": true - } - ], - "id": "ITEM-1", - "type": "webpage" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_ShortOutputOnly.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_ShortOutputOnly.txt deleted file mode 100644 index 4256d6b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_ShortOutputOnly.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -something -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "container-title": "my container title", - "id": "ITEM-1", - "shortTitle": "something", - "type": "manuscript" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressTermWhenNoOutputFromPartialDate.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressTermWhenNoOutputFromPartialDate.txt deleted file mode 100644 index 9f9a78c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressTermWhenNoOutputFromPartialDate.txt +++ /dev/null @@ -1,51 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Only this -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "1965" - ] - ] - }, - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressValueWithEmptySubgroup.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressValueWithEmptySubgroup.txt deleted file mode 100644 index a12997c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressValueWithEmptySubgroup.txt +++ /dev/null @@ -1,51 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -His Anonymous Life -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressWithEmptyNestedDateNode.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressWithEmptyNestedDateNode.txt deleted file mode 100644 index 5d2abbf..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/group_SuppressWithEmptyNestedDateNode.txt +++ /dev/null @@ -1,235 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Author1, O., Author7, T. & Author3, T., 2008. Test Article. Test Journal, 12.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Author1", - "given": "One" - }, - { - "family": "Author7", - "given": "Two" - }, - { - "family": "Author3", - "given": "Three" - } - ], - "container-title": "Test Journal", - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2008", - "10", - "16" - ] - ] - }, - "title": "Test Article", - "type": "article-journal", - "volume": "12" - } -] -<<===== INPUT =====<< - - diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_EditorTranslator1.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_EditorTranslator1.txt deleted file mode 100644 index 6667bb6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_EditorTranslator1.txt +++ /dev/null @@ -1,633 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
1. Иванов И.И. Пример оформления книги с редактором и переводчиком в одном лице : вид издания : in 5 vols. Vol. 2 / И.И. Иванов, П.П. Петров, С.С. Сидоров; ed & trans. Р.Р. Романов Дополнительно. – Тюмень: Дом, 2013. – 10. – 100 p.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "archive-place": "Тюмень", - "author": [ - { - "family": "Иванов", - "given": "Иван Иванович", - "isInstitution": "", - "multi": { - "_key": {}, - "main": false - } - }, - { - "family": "Петров", - "given": "П.П.", - "isInstitution": "", - "multi": { - "_key": {}, - "main": false - } - }, - { - "family": "Сидоров", - "given": "С.С.", - "isInstitution": "", - "multi": { - "_key": {}, - "main": false - } - } - ], - "collection-number": "10", - "collection-title": "вид издания", - "edition": "2-е изд. перераб. и доп.", - "editor": [ - { - "family": "Романов", - "given": "Р.Р.", - "isInstitution": "", - "multi": { - "_key": {}, - "main": false - } - } - ], - "event-place": "Тюмень", - "id": "ITEM-1", - "issued": { - "date-parts": [], - "raw": "2013" - }, - "multi": { - "_keys": {}, - "main": {} - }, - "note": "Дополнительно", - "number-of-pages": "100", - "number-of-volumes": "5", - "publisher": "Дом", - "publisher-place": "Тюмень", - "system_id": "0_6CD2WX2A", - "title": "Пример оформления книги с редактором и переводчиком в одном лице", - "translator": [ - { - "family": "Романов", - "given": "Р.Р.", - "isInstitution": "", - "multi": { - "_key": {}, - "main": false - } - } - ], - "type": "book", - "volume": "2" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_EmptyLabelVanish.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_EmptyLabelVanish.txt deleted file mode 100644 index b4705a1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_EmptyLabelVanish.txt +++ /dev/null @@ -1,45 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -[start](pages : 22-45)[end] -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "page": "22-45", - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_ImplicitForm.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_ImplicitForm.txt deleted file mode 100644 index 2006266..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_ImplicitForm.txt +++ /dev/null @@ -1,47 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -John Doe (editor) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_NoFirstCharCapWithInTextClass.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_NoFirstCharCapWithInTextClass.txt deleted file mode 100644 index d75fa80..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_NoFirstCharCapWithInTextClass.txt +++ /dev/null @@ -1,43 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -n.d. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_NonexistentNameVariableLabel.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_NonexistentNameVariableLabel.txt deleted file mode 100644 index a8919d9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_NonexistentNameVariableLabel.txt +++ /dev/null @@ -1,47 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -John Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "composer": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_PluralNumberOfVolumes.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_PluralNumberOfVolumes.txt deleted file mode 100644 index 92b3cf8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_PluralNumberOfVolumes.txt +++ /dev/null @@ -1,55 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -volume 1; volumes 2 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "number-of-volumes": 1, - "type": "book" - }, - { - "id": "ITEM-2", - "number-of-volumes": 2, - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_PluralPagesWithAlphaPrefix.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_PluralPagesWithAlphaPrefix.txt deleted file mode 100644 index ad6416a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/label_PluralPagesWithAlphaPrefix.txt +++ /dev/null @@ -1,44 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -pages S213-S235 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "page": "S213-S235", - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/locale_OverrideOnlyCurrentLang.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/locale_OverrideOnlyCurrentLang.txt deleted file mode 100644 index 219bc4b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/locale_OverrideOnlyCurrentLang.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -English -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "title": "Sample Title", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularNameAsSortOrder.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularNameAsSortOrder.txt deleted file mode 100644 index ae13dbf..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularNameAsSortOrder.txt +++ /dev/null @@ -1,47 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Doe, James, III -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "James", - "suffix": "III" - } - ], - "id": "item-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularPlain.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularPlain.txt deleted file mode 100644 index a8baf93..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularPlain.txt +++ /dev/null @@ -1,55 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -James Doe III -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "James", - "suffix": "III" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "My Anonymous Heritage", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularShortForm.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularShortForm.txt deleted file mode 100644 index bc990ba..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_ArticularShortForm.txt +++ /dev/null @@ -1,47 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "James", - "suffix": "III" - } - ], - "id": "item-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AsianGlyphs.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AsianGlyphs.txt deleted file mode 100644 index 6a1b899..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AsianGlyphs.txt +++ /dev/null @@ -1,54 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -我妻栄 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "我妻", - "given": "栄" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1960" - ] - ] - }, - "title": "民法", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCount.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCount.txt deleted file mode 100644 index 1f49c34..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCount.txt +++ /dev/null @@ -1,114 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Count=(3) | Count=(3) | Count=(2) | Count=(1) | Count=() -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Brown", - "given": "Robert" - }, - { - "family": "Smith", - "given": "Tom" - } - ], - "id": "item-1", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Doe", - "given": "Jake" - }, - { - "family": "Brown", - "given": "Robert" - } - ], - "id": "item-2", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Doe", - "given": "Jake" - } - ], - "id": "item-3", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-4", - "type": "book" - }, - { - "editor": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-5", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithMultipleVariables.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithMultipleVariables.txt deleted file mode 100644 index de5eb05..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithMultipleVariables.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -5 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Brown", - "given": "Robert" - }, - { - "family": "Smith", - "given": "Tom" - } - ], - "editor": [ - { - "family": "Noakes", - "given": "John" - }, - { - "family": "Stoakes", - "given": "Richard" - } - ], - "id": "item-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithSameVarContentAndCombinedTermFail.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithSameVarContentAndCombinedTermFail.txt deleted file mode 100644 index 032e782..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithSameVarContentAndCombinedTermFail.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -4 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Noakes", - "given": "John" - }, - { - "family": "Stoakes", - "given": "Richard" - } - ], - "editor": [ - { - "family": "Noakes", - "given": "John" - }, - { - "family": "Stoakes", - "given": "Richard" - } - ], - "id": "item-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithSameVarContentAndCombinedTermSucceed.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithSameVarContentAndCombinedTermSucceed.txt deleted file mode 100644 index bd3ea4e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorCountWithSameVarContentAndCombinedTermSucceed.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -2 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Noakes", - "given": "John" - }, - { - "family": "Stoakes", - "given": "Richard" - } - ], - "id": "item-1", - "translator": [ - { - "family": "Noakes", - "given": "John" - }, - { - "family": "Stoakes", - "given": "Richard" - } - ], - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorEditorCount.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorEditorCount.txt deleted file mode 100644 index 480ccb5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_AuthorEditorCount.txt +++ /dev/null @@ -1,70 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -5 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Brown", - "given": "Robert" - }, - { - "family": "Smith", - "given": "Tom" - } - ], - "editor": [ - { - "family": "Bloggs", - "given": "Joe" - }, - { - "family": "Bloggs", - "given": "Barbie" - } - ], - "id": "item-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CelticClanName.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CelticClanName.txt deleted file mode 100644 index ce26407..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CelticClanName.txt +++ /dev/null @@ -1,47 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - -http://forums.zotero.org/discussion/17610/apsa-problems-with-capitalization-of-mc-mac-etc/ - ->>===== RESULT =====>> -Susan McMurphy Smith -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Smith", - "given": "Susan McMurphy" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsCrowdedInitials.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsCrowdedInitials.txt deleted file mode 100644 index 4245f72..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsCrowdedInitials.txt +++ /dev/null @@ -1,64 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - -This example comes to us via a query to comp.text.tex: - - http://groups.google.com/group/comp.text.tex/browse_thread/thread/4796d6a2f06952ad?hl=en - -(This is a modified version of the desired output inicated in the user's -post, with no spaces following the periods in initials) - ->>===== RESULT =====>> -O’Malley, C.D., & Saunders, J.B. de C.M. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1952" - ] - ] - }, - "title": "Leonardo on the Human Body", - "translator": [ - { - "family": "O’Malley", - "given": "Charles D." - }, - { - "family": "Saunders", - "given": "John Bertrand de Cusance Morant" - } - ], - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsNoHyphens.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsNoHyphens.txt deleted file mode 100644 index 8b9cb7b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsNoHyphens.txt +++ /dev/null @@ -1,55 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Chen, H.L. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1933" - ] - ] - }, - "title": "Book A", - "translator": [ - { - "family": "Chen", - "given": "Hsien-Li" - } - ], - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsSpacedInitials.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsSpacedInitials.txt deleted file mode 100644 index 1695e00..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsSpacedInitials.txt +++ /dev/null @@ -1,63 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - -This example comes to us via a query to comp.text.tex: - - http://groups.google.com/group/comp.text.tex/browse_thread/thread/4796d6a2f06952ad?hl=en - - - ->>===== RESULT =====>> -O’Malley, C. D., & Saunders, J. B. de C. M. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1952" - ] - ] - }, - "title": "Leonardo on the Human Body", - "translator": [ - { - "family": "O’Malley", - "given": "Charles D." - }, - { - "family": "Saunders", - "given": "John Bertrand de Cusance Morant" - } - ], - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsWithHyphens.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsWithHyphens.txt deleted file mode 100644 index f167872..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CeltsAndToffsWithHyphens.txt +++ /dev/null @@ -1,55 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Chen, H.-L. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1933" - ] - ] - }, - "title": "Book A", - "translator": [ - { - "family": "Chen", - "given": "Hsien-Li" - } - ], - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CitationMacroNoInheritanceFromRoot.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CitationMacroNoInheritanceFromRoot.txt deleted file mode 100644 index 99bc4d0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CitationMacroNoInheritanceFromRoot.txt +++ /dev/null @@ -1,165 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - ->>===== RESULT =====>> -(Benz et al., 2010) -<<===== RESULT =====<< - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "abstract": "The PUMA project fosters the Open Access movement und aims at a better support of the researcher’s publication work. PUMA stands for an integrated solution, where the upload of a publication results automatically in an update of both the personal and institutional homepage, the creation of an entry in a social bookmarking systems like BibSonomy, an entry in the academic reporting system of the university, and its publication in the institutional repository. In this poster, we present the main features of our solution.", - "annote": "", - "author": [ - { - "family": "Benz", - "given": "Dominik" - }, - { - "family": "Hotho", - "given": "Andreas" - }, - { - "family": "Jäschke", - "given": "Robert" - }, - { - "family": "Stumme", - "given": "Gerd" - }, - { - "family": "Halle", - "given": "Axel" - }, - { - "family": "Lima", - "given": "Angela Gerlach Sanches" - }, - { - "family": "Steenweg", - "given": "Helge" - }, - { - "family": "Stefani", - "given": "Sven" - }, - { - "family": "Dietrich", - "given": "Bernhard" - } - ], - "citation-label": "benz2010academic", - "collection-title": "Lecture Notes in Computer Science", - "container-title": "Proceedings of the European Conference on Research and Advanced Technology for Digital Libraries (ECDL) 2010", - "edition": "", - "editor": [ - { - "family": "Lalmas", - "given": "M." - }, - { - "family": "Jose", - "given": "J." - }, - { - "family": "Rauber", - "given": "A." - }, - { - "family": "Sebastiani", - "given": "F." - }, - { - "family": "Frommholz", - "given": "I." - } - ], - "event-date": { - "date-parts": [ - [ - "2010" - ] - ], - "literal": "2010" - }, - "event-place": "Berlin/Heidelberg", - "id": "11bdf4636bc92aed96461eace25484f7jaeschke", - "interhash": "db94bafecb815048ede11f6d28e5a9f1", - "intrahash": "11bdf4636bc92aed96461eace25484f7", - "issue": "", - "issued": { - "date-parts": [ - [ - "2010" - ] - ], - "literal": "2010" - }, - "keyword": "2010 ecdl myown puma", - "number-of-pages": "3", - "page": "417--420", - "page-first": "417", - "publisher": "Springer", - "publisher-place": "Berlin/Heidelberg", - "status": "", - "title": "Academic Publication Management with PUMA - collect, organize and share publications", - "type": "paper-conference", - "volume": "6273" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CollapseRoleLabels.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CollapseRoleLabels.txt deleted file mode 100644 index aaf594c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_CollapseRoleLabels.txt +++ /dev/null @@ -1,87 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Albert Asthma et al. (eds. & trans.) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Asthma", - "given": "Albert" - }, - { - "family": "Bronchitis", - "given": "Bosworth" - }, - { - "family": "Cold", - "given": "Crispin" - } - ], - "id": "editor-translator-1", - "issued": { - "date-parts": [ - [ - "1990" - ] - ] - }, - "title": "Book One", - "translator": [ - { - "family": "Asthma", - "given": "Albert" - }, - { - "family": "Bronchitis", - "given": "Bosworth" - }, - { - "family": "Cold", - "given": "Crispin" - } - ], - "type": "book" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_Delimiter.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_Delimiter.txt deleted file mode 100644 index 66eac30..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_Delimiter.txt +++ /dev/null @@ -1,73 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -John Doe; Jane Roe OR Doe Inc.; Doe Inc.; Noakes Inc. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "item-1", - "type": "book" - }, - { - "author": [ - { - "family": "Doe Inc.", - "given": "", - "isInstitution": true - }, - { - "family": "Doe Inc.", - "given": "", - "isInstitution": true - }, - { - "family": "Noakes Inc.", - "given": "", - "isInstitution": true - } - ], - "id": "item-2", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorBoth.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorBoth.txt deleted file mode 100644 index d69f7e9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorBoth.txt +++ /dev/null @@ -1,219 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Noakes, Richard. Hello. Ed. by John Doe. Trans. by Jane Roe.
-
-<<===== RESULT =====<< - - -mla-x.csl - - ->>===== CSL =====>> - -<<===== CSL =====<< - - - - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Noakes", - "given": "Richard" - } - ], - "editor": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "title": "Hello", - "translator": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorSameEmptyTerm.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorSameEmptyTerm.txt deleted file mode 100644 index 648ba3d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorSameEmptyTerm.txt +++ /dev/null @@ -1,58 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -John Doe (editor), John Doe (translator) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "translator": [ - { - "family": "Doe", - "given": "John" - } - ], - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorSameWithTerm.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorSameWithTerm.txt deleted file mode 100644 index 2a12fce..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EditorTranslatorSameWithTerm.txt +++ /dev/null @@ -1,59 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - -The result will differ with in-text style in citeproc-js (only one -name variable will be rendered). That would be the right result for -most in-text styles, but would be unwanted in an in-text note -style. A CSL extension (note-in-text?) would cover that case. - - ->>===== RESULT =====>> -John Doe (ed. & tran.) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "translator": [ - { - "family": "Doe", - "given": "John" - } - ], - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EtAlUseLast.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EtAlUseLast.txt deleted file mode 100644 index 3dc2665..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EtAlUseLast.txt +++ /dev/null @@ -1,86 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John Anderson, John Brown, John Catharsis, John Doldrums, John Evergreen, John Fugedaboutit, … John Houynym
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Anderson", - "given": "John" - }, - { - "family": "Brown", - "given": "John" - }, - { - "family": "Catharsis", - "given": "John" - }, - { - "family": "Doldrums", - "given": "John" - }, - { - "family": "Evergreen", - "given": "John" - }, - { - "family": "Fugedaboutit", - "given": "John" - }, - { - "family": "Gargoyle", - "given": "John" - }, - { - "family": "Houynym", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EtAlWithCombined.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EtAlWithCombined.txt deleted file mode 100644 index 90557dc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_EtAlWithCombined.txt +++ /dev/null @@ -1,355 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John Doe著,Ziggy Zither等點校。
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "collection-editor": [ - { - "family": "Zither", - "given": "Ziggy" - }, - { - "family": "Yoda", - "given": "Yossarian" - }, - { - "family": "Xylophone", - "given": "Xerxes" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_FormatSmallCaps.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_FormatSmallCaps.txt deleted file mode 100644 index 5e3d17d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_FormatSmallCaps.txt +++ /dev/null @@ -1,52 +0,0 @@ - ->>===== MODE =====>> -bibliography -<<===== MODE=====<< - ->>===== RESULT =====>> -
-
Hotho, Andreas ; Benz, Dominik ; Eisterlehner, Folke ; Jäschke, Robert
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - -<<===== CSL======<< - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Hotho", - "given": "Andreas" - }, - { - "family": "Benz", - "given": "Dominik" - }, - { - "family": "Eisterlehner", - "given": "Folke" - }, - { - "family": "Jäschke", - "given": "Robert" - } - ], - "id": "item1", - "title": "Publikationsmanagement mit BibSonomy - ein Social-Bookmarking-System für Wissenschaftler" - } -] -<<===== INPUT=====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteInheritLabel.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteInheritLabel.txt deleted file mode 100644 index 3fb6cc6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteInheritLabel.txt +++ /dev/null @@ -1,83 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -[[X]Jane Roe (ed.); [X]John Doe] -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Her Anonymous Anthology", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "simple-western-name-1", - "issued": { - "date-parts": [ - [ - "1965", - "6", - "1" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteMacroInheritDecorations.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteMacroInheritDecorations.txt deleted file mode 100644 index b7f36c0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteMacroInheritDecorations.txt +++ /dev/null @@ -1,63 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -[I AM A BLOB] -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "simple-western-name-1", - "issued": { - "date-parts": [ - [ - "1965", - "6", - "1" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteName.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteName.txt deleted file mode 100644 index a195d64..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteName.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -John Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnDateGroupSpanFail.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnDateGroupSpanFail.txt deleted file mode 100644 index 595e905..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnDateGroupSpanFail.txt +++ /dev/null @@ -1,65 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -2000 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "edition": "5", - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnGroupSpanGroupSpanFail.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnGroupSpanGroupSpanFail.txt deleted file mode 100644 index 1a08051..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnGroupSpanGroupSpanFail.txt +++ /dev/null @@ -1,66 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -His Anonymous Life (this should appear) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "edition": "5", - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnMacroGroupSpanFail.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnMacroGroupSpanFail.txt deleted file mode 100644 index c12dbde..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnMacroGroupSpanFail.txt +++ /dev/null @@ -1,67 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -boo -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "edition": "5", - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book", - "volume": "boo" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSingletonGroupSpanFail.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSingletonGroupSpanFail.txt deleted file mode 100644 index eb396bd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSingletonGroupSpanFail.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -John Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "edition": "5", - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSpanGroupSpanFail.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSpanGroupSpanFail.txt deleted file mode 100644 index c1e3dfe..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSpanGroupSpanFail.txt +++ /dev/null @@ -1,64 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -(John Doe) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "edition": "5", - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSpanNamesSpanFail.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSpanNamesSpanFail.txt deleted file mode 100644 index 3a5b540..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNamesSpanNamesSpanFail.txt +++ /dev/null @@ -1,69 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -(John Doe) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "edition": "5", - "editor": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNumberGroupSpanFail.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNumberGroupSpanFail.txt deleted file mode 100644 index 64fdf0e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_SubstituteOnNumberGroupSpanFail.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -5 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "edition": "5", - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_namepartAffixes.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_namepartAffixes.txt deleted file mode 100644 index 1021af0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_namepartAffixes.txt +++ /dev/null @@ -1,52 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -[Jean] (de La Fontaine III) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "dropping-particle": "de", - "family": "Fontaine", - "given": "Jean", - "non-dropping-particle": "La", - "suffix": "III" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_namepartAffixesNameAsSortOrder.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_namepartAffixesNameAsSortOrder.txt deleted file mode 100644 index 326c94c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_namepartAffixesNameAsSortOrder.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -(La Fontaine) [Jean de] III -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "dropping-particle": "de", - "family": "Fontaine", - "given": "Jean", - "non-dropping-particle": "La", - "suffix": "III" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_substitute_RepeatedNamesOk.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_substitute_RepeatedNamesOk.txt deleted file mode 100644 index c04fce6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_substitute_RepeatedNamesOk.txt +++ /dev/null @@ -1,69 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Ma Ry, Ma Ry, Kwite Kontrari -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Ry", - "given": "Ma" - } - ], - "editor": [ - { - "family": "Kontrari", - "given": "Kwite" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_substitute_SuppressOrdinaryVariable.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_substitute_SuppressOrdinaryVariable.txt deleted file mode 100644 index ac3eac2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/name_substitute_SuppressOrdinaryVariable.txt +++ /dev/null @@ -1,110 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
“The Title”. The Publisher.
-
John-boy Doe ed. The Title. The Publisher.
-
Jane-girl Doe editor. The Title. The Organization.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "publisher": "The Publisher", - "title": "The Title", - "type": "book" - }, - { - "editor": [ - { - "family": "Doe", - "given": "John-boy" - } - ], - "id": "ITEM-2", - "publisher": "The Publisher", - "title": "The Title", - "type": "book" - }, - { - "editor": [ - { - "family": "Doe", - "given": "Jane-girl" - } - ], - "id": "ITEM-3", - "publisher": "The Organization", - "title": "The Title", - "type": "report" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnBibliographyInBibliography.txt deleted file mode 100644 index b6d1381..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnBibliographyInBibliography.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe and Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnBibliographyInCitation.txt deleted file mode 100644 index 9f602c3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnBibliographyInCitation.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnCitationInBibliography.txt deleted file mode 100644 index 97121d9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnCitationInBibliography.txt +++ /dev/null @@ -1,59 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnCitationInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnCitationInCitation.txt deleted file mode 100644 index 1099ece..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnCitationInCitation.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe and Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnNamesInBibliography.txt deleted file mode 100644 index 2df9a4d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnNamesInBibliography.txt +++ /dev/null @@ -1,56 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe and Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnNamesInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnNamesInCitation.txt deleted file mode 100644 index 61e7427..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnNamesInCitation.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe and Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnStyleInBibliography.txt deleted file mode 100644 index b6d1381..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnStyleInBibliography.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe and Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnStyleInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnStyleInCitation.txt deleted file mode 100644 index b6d1381..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_AndOnStyleInCitation.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe and Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnBibliographyInBibliography.txt deleted file mode 100644 index eac3337..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnBibliographyInBibliography.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, et al.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnBibliographyInCitation.txt deleted file mode 100644 index 12699c7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnBibliographyInCitation.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe et al. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnCitationInBibliography.txt deleted file mode 100644 index 7ffd0d1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnCitationInBibliography.txt +++ /dev/null @@ -1,59 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe et al.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnCitationInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnCitationInCitation.txt deleted file mode 100644 index ac9a470..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnCitationInCitation.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, et al. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnNamesInBibliography.txt deleted file mode 100644 index 55d1626..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnNamesInBibliography.txt +++ /dev/null @@ -1,56 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, et al.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnNamesInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnNamesInCitation.txt deleted file mode 100644 index a05e352..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnNamesInCitation.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, et al. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnStyleInBibliography.txt deleted file mode 100644 index 1b3c697..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnStyleInBibliography.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, et al.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnStyleInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnStyleInCitation.txt deleted file mode 100644 index 0d54efc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesEtAlOnStyleInCitation.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, et al. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnBibliographyInBibliography.txt deleted file mode 100644 index 531fdc9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnBibliographyInBibliography.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, and Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnBibliographyInCitation.txt deleted file mode 100644 index d2b8e66..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnBibliographyInCitation.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe and Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnCitationInBibliography.txt deleted file mode 100644 index 193226e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnCitationInBibliography.txt +++ /dev/null @@ -1,59 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe and Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnCitationInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnCitationInCitation.txt deleted file mode 100644 index 16addd0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnCitationInCitation.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, and Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnNamesInBibliography.txt deleted file mode 100644 index 8288aa2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnNamesInBibliography.txt +++ /dev/null @@ -1,56 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, and Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnNamesInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnNamesInCitation.txt deleted file mode 100644 index 59a1e12..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnNamesInCitation.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, and Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnStyleInBibliography.txt deleted file mode 100644 index 4016542..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnStyleInBibliography.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, and Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnStyleInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnStyleInCitation.txt deleted file mode 100644 index f4fe472..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_DelimiterPrecedesLastOnStyleInCitation.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, and Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnBibliographyInBibliography.txt deleted file mode 100644 index e394f14..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnBibliographyInBibliography.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe et al.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnBibliographyInCitation.txt deleted file mode 100644 index c5092d7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnBibliographyInCitation.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnCitationInBibliography.txt deleted file mode 100644 index b2d6bb0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnCitationInBibliography.txt +++ /dev/null @@ -1,59 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnCitationInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnCitationInCitation.txt deleted file mode 100644 index 5f6abac..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnCitationInCitation.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe et al. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnNamesInBibliography.txt deleted file mode 100644 index c0ec665..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnNamesInBibliography.txt +++ /dev/null @@ -1,56 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe et al.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnNamesInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnNamesInCitation.txt deleted file mode 100644 index 6da8460..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnNamesInCitation.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe et al. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnStyleInBibliography.txt deleted file mode 100644 index c0ec665..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnStyleInBibliography.txt +++ /dev/null @@ -1,56 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe et al.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnStyleInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnStyleInCitation.txt deleted file mode 100644 index 6da8460..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlMinOnStyleInCitation.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe et al. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnBibliographyInBibliography.txt deleted file mode 100644 index 04da7bf..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnBibliographyInBibliography.txt +++ /dev/null @@ -1,60 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - -NOTE: the subsequent variants of et-al-use-first and et-al-min -have no effect in the bibliography. - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnBibliographyInCitation.txt deleted file mode 100644 index b1f1581..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnBibliographyInCitation.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnCitationInBibliography.txt deleted file mode 100644 index 866671e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnCitationInBibliography.txt +++ /dev/null @@ -1,59 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnNamesInBibliography.txt deleted file mode 100644 index 5888ca7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnNamesInBibliography.txt +++ /dev/null @@ -1,60 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - -NOTE: The subsequent forms of et-al-min and et-al-use-first -are completely ignored in the bibliography. - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnStyleInBibliography.txt deleted file mode 100644 index 0924fe3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentMinOnStyleInBibliography.txt +++ /dev/null @@ -1,59 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - -NOTE: the subsequent versions of et-al-min and et-al-use-first -are completely ignored in the bibliography. - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnBibliographyInBibliography.txt deleted file mode 100644 index 0435cdb..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnBibliographyInBibliography.txt +++ /dev/null @@ -1,64 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - -NOTE: the subsequent variants of et-al-min and et-al-use-first -have no effect in the bibliography. - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe, Richard Snoakes
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnBibliographyInCitation.txt deleted file mode 100644 index d4acdfb..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnBibliographyInCitation.txt +++ /dev/null @@ -1,63 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - -NOTE: no effect, of course. - - ->>===== RESULT =====>> -John Doe, Jane Roe, Richard Snoakes -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnCitationInBibliography.txt deleted file mode 100644 index 627ba06..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnCitationInBibliography.txt +++ /dev/null @@ -1,66 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - -NOTE: no effect, of course. - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe, Richard Snoakes
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnStyleInBibliography.txt deleted file mode 100644 index 17c22b2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlSubsequentUseFirstOnStyleInBibliography.txt +++ /dev/null @@ -1,65 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - -NOTE: The subsequent forms of et-al-min and et-al-use-first are -completely ignored in the bibliography. - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe, Richard Snoakes
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnBibliographyInBibliography.txt deleted file mode 100644 index 63deefc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnBibliographyInBibliography.txt +++ /dev/null @@ -1,61 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe, et al.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnBibliographyInCitation.txt deleted file mode 100644 index 4b44c31..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnBibliographyInCitation.txt +++ /dev/null @@ -1,63 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - -NOTE: no effect, of course. - - ->>===== RESULT =====>> -John Doe, Jane Roe, Richard Snoakes -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnCitationInBibliography.txt deleted file mode 100644 index d71e421..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnCitationInBibliography.txt +++ /dev/null @@ -1,63 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe, Richard Snoakes
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnCitationInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnCitationInCitation.txt deleted file mode 100644 index d78517a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnCitationInCitation.txt +++ /dev/null @@ -1,61 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, Jane Roe, et al. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnNamesInBibliography.txt deleted file mode 100644 index 592c41c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnNamesInBibliography.txt +++ /dev/null @@ -1,60 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe, et al.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnNamesInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnNamesInCitation.txt deleted file mode 100644 index 14824a7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnNamesInCitation.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, Jane Roe, et al. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnStyleInBibliography.txt deleted file mode 100644 index d7b45e9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnStyleInBibliography.txt +++ /dev/null @@ -1,61 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe, et al.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnStyleInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnStyleInCitation.txt deleted file mode 100644 index 14824a7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_EtAlUseFirstOnStyleInCitation.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, Jane Roe, et al. -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Snoakes", - "given": "Richard" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnBibliographyInBibliography.txt deleted file mode 100644 index 46a84bb..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnBibliographyInBibliography.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
J.-L. Doe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John-Lee" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnBibliographyInCitation.txt deleted file mode 100644 index fc4749b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnBibliographyInCitation.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John-Lee Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John-Lee" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnCitationInBibliography.txt deleted file mode 100644 index 8b5f220..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnCitationInBibliography.txt +++ /dev/null @@ -1,55 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John-Lee Doe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John-Lee" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnCitationInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnCitationInCitation.txt deleted file mode 100644 index 1fbc75a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnCitationInCitation.txt +++ /dev/null @@ -1,46 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -J.-L. Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John-Lee" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnNamesInBibliography.txt deleted file mode 100644 index aa364e2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnNamesInBibliography.txt +++ /dev/null @@ -1,52 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
J.-L. Doe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John-Lee" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnNamesInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnNamesInCitation.txt deleted file mode 100644 index 91ac42b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnNamesInCitation.txt +++ /dev/null @@ -1,45 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -J.-L. Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John-Lee" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnStyleInBibliography.txt deleted file mode 100644 index 57ba381..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnStyleInBibliography.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
J.-L. Doe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John-Lee" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnStyleInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnStyleInCitation.txt deleted file mode 100644 index 7b8b506..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_InitializeWithOnStyleInCitation.txt +++ /dev/null @@ -1,46 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -J.-L. Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John-Lee" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnBibliographyInBibliography.txt deleted file mode 100644 index af63aab..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnBibliographyInBibliography.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Doe, John; Roe, Jane
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnBibliographyInCitation.txt deleted file mode 100644 index 94cc482..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnBibliographyInCitation.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe; Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnCitationInBibliography.txt deleted file mode 100644 index c47bb27..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnCitationInBibliography.txt +++ /dev/null @@ -1,59 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe; Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnCitationInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnCitationInCitation.txt deleted file mode 100644 index e2bb3a8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnCitationInCitation.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -Doe, John; Roe, Jane -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnNamesInBibliography.txt deleted file mode 100644 index eb0d84f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnNamesInBibliography.txt +++ /dev/null @@ -1,56 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Doe, John; Roe, Jane
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnNamesInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnNamesInCitation.txt deleted file mode 100644 index 4ae8c24..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnNamesInCitation.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -Doe, John; Roe, Jane -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnStyleInBibliography.txt deleted file mode 100644 index 80e58b5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnStyleInBibliography.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Doe, John; Roe, Jane
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnStyleInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnStyleInCitation.txt deleted file mode 100644 index 4ae8c24..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameAsSortOrderOnStyleInCitation.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -Doe, John; Roe, Jane -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnBibliographyInBibliography.txt deleted file mode 100644 index af5ea1d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnBibliographyInBibliography.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe; Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnBibliographyInCitation.txt deleted file mode 100644 index 5d7f7a1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnBibliographyInCitation.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe, Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnCitationInBibliography.txt deleted file mode 100644 index 28bce04..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnCitationInBibliography.txt +++ /dev/null @@ -1,59 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe, Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnCitationInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnCitationInCitation.txt deleted file mode 100644 index de2a97a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnCitationInCitation.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe; Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnNamesInBibliography.txt deleted file mode 100644 index f12bf5f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnNamesInBibliography.txt +++ /dev/null @@ -1,56 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe; Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnNamesInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnNamesInCitation.txt deleted file mode 100644 index c4b2e70..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnNamesInCitation.txt +++ /dev/null @@ -1,56 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe; Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnStyleInBibliography.txt deleted file mode 100644 index 827be69..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnStyleInBibliography.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe; Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnStyleInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnStyleInCitation.txt deleted file mode 100644 index a82810c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameDelimiterOnStyleInCitation.txt +++ /dev/null @@ -1,57 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe; Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnBibliographyInBibliography.txt deleted file mode 100644 index 7b9cd94..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnBibliographyInBibliography.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Doe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnBibliographyInCitation.txt deleted file mode 100644 index 25c7acd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnBibliographyInCitation.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -John Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnCitationInBibliography.txt deleted file mode 100644 index cef0ec6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnCitationInBibliography.txt +++ /dev/null @@ -1,55 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
John Doe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnCitationInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnCitationInCitation.txt deleted file mode 100644 index 41a5804..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnCitationInCitation.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnNamesInBibliography.txt deleted file mode 100644 index a473b88..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnNamesInBibliography.txt +++ /dev/null @@ -1,52 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Doe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnNamesInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnNamesInCitation.txt deleted file mode 100644 index c081a3b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnNamesInCitation.txt +++ /dev/null @@ -1,45 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnStyleInBibliography.txt deleted file mode 100644 index f4bc3d8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnStyleInBibliography.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Doe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnStyleInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnStyleInCitation.txt deleted file mode 100644 index ebf81c1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NameFormOnStyleInCitation.txt +++ /dev/null @@ -1,46 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -Doe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnBibliographyInBibliography.txt deleted file mode 100644 index d64b004..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnBibliographyInBibliography.txt +++ /dev/null @@ -1,60 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John Doe AND ALSO THE EDITOR Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "editor": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnBibliographyInCitation.txt deleted file mode 100644 index 6f4bb48..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnBibliographyInCitation.txt +++ /dev/null @@ -1,60 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -John DoeJane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "editor": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnCitationInBibliography.txt deleted file mode 100644 index 80cc574..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnCitationInBibliography.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John DoeJane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "editor": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnCitationInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnCitationInCitation.txt deleted file mode 100644 index 157aa9e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnCitationInCitation.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -John Doe AND ALSO THE EDITOR Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "editor": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnNamesInBibliography.txt deleted file mode 100644 index 61fbfc3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnNamesInBibliography.txt +++ /dev/null @@ -1,59 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John Doe AND ALSO THE EDITOR Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "editor": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnNamesInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnNamesInCitation.txt deleted file mode 100644 index b679734..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnNamesInCitation.txt +++ /dev/null @@ -1,52 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -John Doe AND ALSO THE EDITOR Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "editor": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnStyleInBibliography.txt deleted file mode 100644 index 5205fff..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnStyleInBibliography.txt +++ /dev/null @@ -1,59 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John Doe AND ALSO THE EDITOR Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "editor": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnStyleInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnStyleInCitation.txt deleted file mode 100644 index 723c0c8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_NamesDelimiterOnStyleInCitation.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -John Doe AND ALSO THE EDITOR Jane Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "editor": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnBibliographyInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnBibliographyInBibliography.txt deleted file mode 100644 index ebc80d3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnBibliographyInBibliography.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Doe, John
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnBibliographyInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnBibliographyInCitation.txt deleted file mode 100644 index fe03194..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnBibliographyInCitation.txt +++ /dev/null @@ -1,54 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -Doe~John -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnCitationInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnCitationInBibliography.txt deleted file mode 100644 index 3aca700..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnCitationInBibliography.txt +++ /dev/null @@ -1,55 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Doe, John
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnCitationInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnCitationInCitation.txt deleted file mode 100644 index b233c20..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnCitationInCitation.txt +++ /dev/null @@ -1,46 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -Doe, John -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnNamesInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnNamesInBibliography.txt deleted file mode 100644 index c980841..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnNamesInBibliography.txt +++ /dev/null @@ -1,52 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Doe, John
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnNamesInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnNamesInCitation.txt deleted file mode 100644 index 9fdaf03..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnNamesInCitation.txt +++ /dev/null @@ -1,45 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -Doe, John -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnStyleInBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnStyleInBibliography.txt deleted file mode 100644 index 824edb7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnStyleInBibliography.txt +++ /dev/null @@ -1,53 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Doe, John
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnStyleInCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnStyleInCitation.txt deleted file mode 100644 index edfca14..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_SortSeparatorOnStyleInCitation.txt +++ /dev/null @@ -1,46 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -Doe, John -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_initializeCyrillicName.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_initializeCyrillicName.txt deleted file mode 100644 index d5dad2f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_initializeCyrillicName.txt +++ /dev/null @@ -1,63 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
С. В. Месяц.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - - - -<<===== CSL =====<< - ->>===== INPUT =====>> -[ - { - "URL": "https://pj.iph.ras.ru/index.php/ph_j/article/view/31", - "accessed": { - "date-parts": [], - "raw": "" - }, - "author": [ - { - "family": "Месяц", - "given": "Светлана Викторовна" - } - ], - "container-title": "Philosophy Journal", - "container-title-short": "PhJ", - "id": "31", - "issue": "1", - "issued": { - "date-parts": [], - "raw": "2015-03-05 00:00:00" - }, - "page": "7-22", - "section": "ACADEMIC DISCUSSIONS", - "title": "Proclus’ metaphysics: between worldview and language game. Reflections on the book of Radek Chlup", - "type": "article-journal", - "volume": "8" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_complete-all.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_complete-all.txt deleted file mode 100644 index 7d0abad..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_complete-all.txt +++ /dev/null @@ -1,253 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -
-
Doe. 1999.
-
---. 2000.
-
Doe, Johnson & Williams. 2001.
-
Doe & Smith. 2002.
-
Doe, Stevens & Miller. 2003.
-
---. 2004.
-
Doe, Williams et al. 2005.
-
---. 2006.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1999" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-2", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book B", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Johnson", - "given": "Marc" - }, - { - "family": "Williams", - "given": "John" - } - ], - "id": "item-3", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "Book C", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Smith", - "given": "Harry" - } - ], - "id": "item-4", - "issued": { - "date-parts": [ - [ - "2002" - ] - ] - }, - "title": "Book D", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Stevens", - "given": "Cat" - }, - { - "family": "Miller", - "given": "Steve" - } - ], - "id": "item-5", - "issued": { - "date-parts": [ - [ - "2003" - ] - ] - }, - "title": "Book E", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Stevens", - "given": "Cat" - }, - { - "family": "Miller", - "given": "Steve" - } - ], - "id": "item-6", - "issued": { - "date-parts": [ - [ - "2004" - ] - ] - }, - "title": "Book F", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Williams", - "given": "John" - }, - { - "family": "Lennon", - "given": "John" - }, - { - "family": "McCartney", - "given": "Paul" - } - ], - "id": "item-7", - "issued": { - "date-parts": [ - [ - "2005" - ] - ] - }, - "title": "Book F", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Williams", - "given": "John" - }, - { - "family": "Lennon", - "given": "John" - }, - { - "family": "McCartney", - "given": "Paul" - } - ], - "id": "item-8", - "issued": { - "date-parts": [ - [ - "2006" - ] - ] - }, - "title": "Book G", - "type": "book" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_complete-each.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_complete-each.txt deleted file mode 100644 index 7b87d1c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_complete-each.txt +++ /dev/null @@ -1,253 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -
-
Doe. 1999.
-
---. 2000.
-
Doe, Johnson & Williams. 2001.
-
Doe & Smith. 2002.
-
Doe, Stevens & Miller. 2003.
-
---, --- & ---. 2004.
-
Doe, Williams et al. 2005.
-
---, --- et al. 2006.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1999" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-2", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book B", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Johnson", - "given": "Marc" - }, - { - "family": "Williams", - "given": "John" - } - ], - "id": "item-3", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "Book C", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Smith", - "given": "Harry" - } - ], - "id": "item-4", - "issued": { - "date-parts": [ - [ - "2002" - ] - ] - }, - "title": "Book D", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Stevens", - "given": "Cat" - }, - { - "family": "Miller", - "given": "Steve" - } - ], - "id": "item-5", - "issued": { - "date-parts": [ - [ - "2003" - ] - ] - }, - "title": "Book E", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Stevens", - "given": "Cat" - }, - { - "family": "Miller", - "given": "Steve" - } - ], - "id": "item-6", - "issued": { - "date-parts": [ - [ - "2004" - ] - ] - }, - "title": "Book F", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Williams", - "given": "John" - }, - { - "family": "Lennon", - "given": "John" - }, - { - "family": "McCartney", - "given": "Paul" - } - ], - "id": "item-7", - "issued": { - "date-parts": [ - [ - "2005" - ] - ] - }, - "title": "Book F", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Williams", - "given": "John" - }, - { - "family": "Lennon", - "given": "John" - }, - { - "family": "McCartney", - "given": "Paul" - } - ], - "id": "item-8", - "issued": { - "date-parts": [ - [ - "2006" - ] - ] - }, - "title": "Book G", - "type": "book" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_none.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_none.txt deleted file mode 100644 index 120e3aa..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_none.txt +++ /dev/null @@ -1,253 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -
-
Doe. 1999.
-
Doe. 2000.
-
Doe, Johnson & Williams. 2001.
-
Doe & Smith. 2002.
-
Doe, Stevens & Miller. 2003.
-
Doe, Stevens & Miller. 2004.
-
Doe, Williams et al. 2005.
-
Doe, Williams et al. 2006.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1999" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-2", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book B", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Johnson", - "given": "Marc" - }, - { - "family": "Williams", - "given": "John" - } - ], - "id": "item-3", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "Book C", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Smith", - "given": "Harry" - } - ], - "id": "item-4", - "issued": { - "date-parts": [ - [ - "2002" - ] - ] - }, - "title": "Book D", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Stevens", - "given": "Cat" - }, - { - "family": "Miller", - "given": "Steve" - } - ], - "id": "item-5", - "issued": { - "date-parts": [ - [ - "2003" - ] - ] - }, - "title": "Book E", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Stevens", - "given": "Cat" - }, - { - "family": "Miller", - "given": "Steve" - } - ], - "id": "item-6", - "issued": { - "date-parts": [ - [ - "2004" - ] - ] - }, - "title": "Book F", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Williams", - "given": "John" - }, - { - "family": "Lennon", - "given": "John" - }, - { - "family": "McCartney", - "given": "Paul" - } - ], - "id": "item-7", - "issued": { - "date-parts": [ - [ - "2005" - ] - ] - }, - "title": "Book F", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Williams", - "given": "John" - }, - { - "family": "Lennon", - "given": "John" - }, - { - "family": "McCartney", - "given": "Paul" - } - ], - "id": "item-8", - "issued": { - "date-parts": [ - [ - "2006" - ] - ] - }, - "title": "Book G", - "type": "book" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_partial-each.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_partial-each.txt deleted file mode 100644 index 74934e3..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_partial-each.txt +++ /dev/null @@ -1,253 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -
-
Doe. 1999.
-
---. 2000.
-
---, Johnson & Williams. 2001.
-
--- & Smith. 2002.
-
---, Stevens & Miller. 2003.
-
---, --- & ---. 2004.
-
---, Williams et al. 2005.
-
---, --- et al. 2006.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1999" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-2", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book B", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Johnson", - "given": "Marc" - }, - { - "family": "Williams", - "given": "John" - } - ], - "id": "item-3", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "Book C", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Smith", - "given": "Harry" - } - ], - "id": "item-4", - "issued": { - "date-parts": [ - [ - "2002" - ] - ] - }, - "title": "Book D", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Stevens", - "given": "Cat" - }, - { - "family": "Miller", - "given": "Steve" - } - ], - "id": "item-5", - "issued": { - "date-parts": [ - [ - "2003" - ] - ] - }, - "title": "Book E", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Stevens", - "given": "Cat" - }, - { - "family": "Miller", - "given": "Steve" - } - ], - "id": "item-6", - "issued": { - "date-parts": [ - [ - "2004" - ] - ] - }, - "title": "Book F", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Williams", - "given": "John" - }, - { - "family": "Lennon", - "given": "John" - }, - { - "family": "McCartney", - "given": "Paul" - } - ], - "id": "item-7", - "issued": { - "date-parts": [ - [ - "2005" - ] - ] - }, - "title": "Book F", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Williams", - "given": "John" - }, - { - "family": "Lennon", - "given": "John" - }, - { - "family": "McCartney", - "given": "Paul" - } - ], - "id": "item-8", - "issued": { - "date-parts": [ - [ - "2006" - ] - ] - }, - "title": "Book G", - "type": "book" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_partial-first.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_partial-first.txt deleted file mode 100644 index 73deba1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameattr_subsequent-author-substitute_partial-first.txt +++ /dev/null @@ -1,253 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -
-
Doe. 1999.
-
---. 2000.
-
---, Johnson & Williams. 2001.
-
--- & Smith. 2002.
-
---, Stevens & Miller. 2003.
-
---, Stevens & Miller. 2004.
-
---, Williams et al. 2005.
-
---, Williams et al. 2006.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1999" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-2", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book B", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Johnson", - "given": "Marc" - }, - { - "family": "Williams", - "given": "John" - } - ], - "id": "item-3", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "Book C", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Smith", - "given": "Harry" - } - ], - "id": "item-4", - "issued": { - "date-parts": [ - [ - "2002" - ] - ] - }, - "title": "Book D", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Stevens", - "given": "Cat" - }, - { - "family": "Miller", - "given": "Steve" - } - ], - "id": "item-5", - "issued": { - "date-parts": [ - [ - "2003" - ] - ] - }, - "title": "Book E", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Stevens", - "given": "Cat" - }, - { - "family": "Miller", - "given": "Steve" - } - ], - "id": "item-6", - "issued": { - "date-parts": [ - [ - "2004" - ] - ] - }, - "title": "Book F", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Williams", - "given": "John" - }, - { - "family": "Lennon", - "given": "John" - }, - { - "family": "McCartney", - "given": "Paul" - } - ], - "id": "item-7", - "issued": { - "date-parts": [ - [ - "2005" - ] - ] - }, - "title": "Book F", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Williams", - "given": "John" - }, - { - "family": "Lennon", - "given": "John" - }, - { - "family": "McCartney", - "given": "Paul" - } - ], - "id": "item-8", - "issued": { - "date-parts": [ - [ - "2006" - ] - ] - }, - "title": "Book G", - "type": "book" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_Long.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_Long.txt deleted file mode 100644 index 0f41f9e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_Long.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Gérard de la Martinière III -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "dropping-particle": "de", - "family": "Martinière", - "given": "Gérard", - "non-dropping-particle": "la", - "suffix": "III" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_LongNameAsSortDemoteDisplayAndSort.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_LongNameAsSortDemoteDisplayAndSort.txt deleted file mode 100644 index 6047b7e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_LongNameAsSortDemoteDisplayAndSort.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Martinière, Gérard de la, III -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "dropping-particle": "de", - "family": "Martinière", - "given": "Gérard", - "non-dropping-particle": "la", - "suffix": "III" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_LongNameAsSortDemoteNever.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_LongNameAsSortDemoteNever.txt deleted file mode 100644 index 8a1e5c2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_LongNameAsSortDemoteNever.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -la Martinière, Gérard de, III -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "dropping-particle": "de", - "family": "Martinière", - "given": "Gérard", - "non-dropping-particle": "la", - "suffix": "III" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_Short.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_Short.txt deleted file mode 100644 index d28e029..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_Short.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -la Martinière -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "dropping-particle": "de", - "family": "Martinière", - "given": "Gérard", - "non-dropping-particle": "la", - "suffix": "III" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_ShortDemoteDisplayAndSort.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_ShortDemoteDisplayAndSort.txt deleted file mode 100644 index eaa0e91..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_ShortDemoteDisplayAndSort.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -la Martinière -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "dropping-particle": "de", - "family": "Martinière", - "given": "Gérard", - "non-dropping-particle": "la", - "suffix": "III" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_ShortNameAsSortDemoteNever.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_ShortNameAsSortDemoteNever.txt deleted file mode 100644 index 947768a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/nameorder_ShortNameAsSortDemoteNever.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -la Martinière -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "dropping-particle": "de", - "family": "Martinière", - "given": "Gérard", - "non-dropping-particle": "la", - "suffix": "III" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/names_substitute.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/names_substitute.txt deleted file mode 100644 index a35ab04..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/names_substitute.txt +++ /dev/null @@ -1,80 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - - ->>===== RESULT =====>> -Greg Mitchell -David Johnson -Ignore me -xx -<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Mitchell", - "given": "Greg" - } - ], - "editor": [ - { - "family": "Johnson", - "given": "David" - } - ], - "id": "ITEM-1", - "title": "Ignore me", - "type": "book" - }, - { - "editor": [ - { - "family": "Johnson", - "given": "David" - } - ], - "id": "ITEM-1", - "title": "Ignore me", - "type": "book" - }, - { - "id": "ITEM-1", - "title": "Ignore me", - "type": "book" - }, - { - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/names_substituteSuppressSubstitution.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/names_substituteSuppressSubstitution.txt deleted file mode 100644 index 07af413..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/names_substituteSuppressSubstitution.txt +++ /dev/null @@ -1,111 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Make racists afraid again
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "Make racists afraid again", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_PlainHyphenOrEnDashAlwaysPlural.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_PlainHyphenOrEnDashAlwaysPlural.txt deleted file mode 100644 index 217fd69..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_PlainHyphenOrEnDashAlwaysPlural.txt +++ /dev/null @@ -1,77 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - -Test to cover request here: - - http://xbiblio-devel.2463403.n2.nabble.com/contextual-labels-for-non-numeric-page-ranges-td7578166.html - - ->>===== RESULT =====>> -His Anonymous Life (1) pages 1-2 (cs:text) vs His Anonymous Life (1) pages 1-2 (cs:number); His Anonymous Life (2) pages i-ix (cs:text) vs His Anonymous Life (2) pages i-ix (cs:number); His Anonymous Life (3) page 3-B (cs:text) vs His Anonymous Life (3) page 3-B (cs:number); His Anonymous Life (4) page Michaelson-Morely (cs:text) vs His Anonymous Life (4) page Michaelson-Morely (cs:number) -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "page": "1-2", - "title": "His Anonymous Life (1)", - "type": "book" - }, - { - "id": "ITEM-2", - "page": "i-ix", - "title": "His Anonymous Life (2)", - "type": "book" - }, - { - "id": "ITEM-3", - "page": "3-B", - "title": "His Anonymous Life (3)", - "type": "book" - }, - { - "id": "ITEM-4", - "page": "4–6", - "title": "His Anonymous Life (4)", - "type": "book" - }, - { - "id": "ITEM-4", - "page": "Michaelson-Morely", - "title": "His Anonymous Life (4)", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_SimpleNumberRoman.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_SimpleNumberRoman.txt deleted file mode 100644 index 7049565..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_SimpleNumberRoman.txt +++ /dev/null @@ -1,40 +0,0 @@ ->>== MODE ==>> -citation -<<== MODE ==<< - - - ->>== RESULT ==>> -xlii -<<== RESULT ==<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "item-1", - "title": "Ignore me", - "type": "book", - "volume": "42" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_StrangeError.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_StrangeError.txt deleted file mode 100644 index 163a4bc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_StrangeError.txt +++ /dev/null @@ -1,41 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - -Delimiter is a non-breaking Unicode hyphen U+2011, supplied by the CSL 1.0.1 fr-FR and fr-CA locales. - ->>===== RESULT =====>> -463‑509 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "page": "463-509", - "type": "article-journal" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_affixes.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_affixes.txt deleted file mode 100644 index 4bd9364..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_affixes.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -(4-7 -4-7) -(4-7) -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "number": "4 - 7", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-style.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-style.txt deleted file mode 100644 index e20d921..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-style.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -4-7 -4-7 -4-7 -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "number": "4 - 7", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-variant.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-variant.txt deleted file mode 100644 index 0059b6b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-variant.txt +++ /dev/null @@ -1,40 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -4-7 -4-7 -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "number": "4 - 7", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-weight.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-weight.txt deleted file mode 100644 index 78816e1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_font-weight.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -4-7 -4-7 -4-7 -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "number": "4 - 7", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_format.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_format.txt deleted file mode 100644 index 2364cd6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_format.txt +++ /dev/null @@ -1,44 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -4-7 -4th-7th -fourth-seventh -iv-vii -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "number": "4 - 7", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_gender.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_gender.txt deleted file mode 100644 index 3491d8f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_gender.txt +++ /dev/null @@ -1,46 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -1re édition -<<===== RESULT =====<< - - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "edition": "1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_spacing.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_spacing.txt deleted file mode 100644 index f93f804..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_spacing.txt +++ /dev/null @@ -1,44 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -4-7 -4 & 7 -4, 7 -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "issue": " 4 - 7 ", - "number": " 4 & 7 ", - "type": "book", - "volume": " 4 , 7 " - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_text-case.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_text-case.txt deleted file mode 100644 index c487565..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_text-case.txt +++ /dev/null @@ -1,47 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -fourth-seventh -FOURTH-SEVENTH -Fourth-seventh -Fourth-Seventh -Fourth-seventh -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "number": "4 - 7", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_text-decoration.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_text-decoration.txt deleted file mode 100644 index 9f71a6f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_text-decoration.txt +++ /dev/null @@ -1,40 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -4-7 -4-7 -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "number": "4 - 7", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_vertical-align.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_vertical-align.txt deleted file mode 100644 index 60670c9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/number_vertical-align.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -4-7 -4-7 -4-7 -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "number": "4 - 7", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/page_ChicagoAuthorDateLooping.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/page_ChicagoAuthorDateLooping.txt deleted file mode 100644 index 8a01690..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/page_ChicagoAuthorDateLooping.txt +++ /dev/null @@ -1,93 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - ->>===== RESULT =====>> -(Manstein, 1982, pp. 1002-6; Friedrich, 1984, pp. 711-19) -<<===== RESULT =====<< - - ->>===== CSL =====>> - - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Manstein", - "given": "Erich Von" - } - ], - "id": "ITEM-0", - "issued": { - "date-parts": [], - "raw": " 1982 Sep " - }, - "page": "1002-1006", - "publisher": "Presidio Pr", - "title": "Lost Victories", - "type": "book" - }, - { - "author": [ - { - "family": "Friedrich", - "given": "Walter" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1984 - ] - ] - }, - "page": "711-719", - "publisher": "Presidio Pr", - "title": "Another title", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/page_WithLocaleAndWeirdDelimiter.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/page_WithLocaleAndWeirdDelimiter.txt deleted file mode 100644 index 385e123..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/page_WithLocaleAndWeirdDelimiter.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -253‑57 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "page": "253-257", - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_chicago.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_chicago.txt deleted file mode 100644 index 18ff33e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_chicago.txt +++ /dev/null @@ -1,101 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -3–10 -71–72 -100–104 -600–613 -1100–1123 -107–8 -505–17 -1002–6 -321–25 -415–532 -11564–68 -13792–803 -1496–1504 -2787–2816 -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "page": "3-10", - "type": "book" - }, - { - "page": "71-72", - "type": "book" - }, - { - "page": "100-104", - "type": "book" - }, - { - "page": "600–613", - "type": "book" - }, - { - "page": "1100–1123", - "type": "book" - }, - { - "page": "107–108", - "type": "book" - }, - { - "page": "505–517", - "type": "book" - }, - { - "page": "1002–1006", - "type": "book" - }, - { - "page": "321-325", - "type": "book" - }, - { - "page": "415-532", - "type": "book" - }, - { - "page": "11564-11568", - "type": "book" - }, - { - "page": "13792-13803", - "type": "book" - }, - { - "page": "1496-1504", - "type": "book" - }, - { - "page": "2787-2816", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_expanded.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_expanded.txt deleted file mode 100644 index 9f103ba..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_expanded.txt +++ /dev/null @@ -1,56 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -5–8 -5–13 -42–45 -321–328 -2787–2816 -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "page": "5-8", - "type": "book" - }, - { - "page": "5-13", - "type": "book" - }, - { - "page": "42-45", - "type": "book" - }, - { - "page": "321-328", - "type": "book" - }, - { - "page": "2787–2816", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_minimal-two.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_minimal-two.txt deleted file mode 100644 index 9e296bc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_minimal-two.txt +++ /dev/null @@ -1,56 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -5–8 -5–13 -42–45 -321–28 -2787–816 -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "page": "5-8", - "type": "book" - }, - { - "page": "5-13", - "type": "book" - }, - { - "page": "42-45", - "type": "book" - }, - { - "page": "321-328", - "type": "book" - }, - { - "page": "2787–2816", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_minimal.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_minimal.txt deleted file mode 100644 index ee04cf2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/pagerange_minimal.txt +++ /dev/null @@ -1,56 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -5–8 -5–13 -42–5 -321–8 -2787–816 -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "page": "5-8", - "type": "book" - }, - { - "page": "5-13", - "type": "book" - }, - { - "page": "42-45", - "type": "book" - }, - { - "page": "321-328", - "type": "book" - }, - { - "page": "2787–2816", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelAlways.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelAlways.txt deleted file mode 100644 index b02bc82..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelAlways.txt +++ /dev/null @@ -1,47 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Doe eds -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelContextualPlural.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelContextualPlural.txt deleted file mode 100644 index 9889dc9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelContextualPlural.txt +++ /dev/null @@ -1,51 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Doe and Roe eds -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelContextualSingular.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelContextualSingular.txt deleted file mode 100644 index 12a4a80..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelContextualSingular.txt +++ /dev/null @@ -1,47 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Doe ed -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelDefaultPlural.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelDefaultPlural.txt deleted file mode 100644 index c0cd4ea..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelDefaultPlural.txt +++ /dev/null @@ -1,51 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Doe and Roe eds -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelDefaultSingular.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelDefaultSingular.txt deleted file mode 100644 index ce173dc..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelDefaultSingular.txt +++ /dev/null @@ -1,47 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Doe ed -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelNever.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelNever.txt deleted file mode 100644 index 68c7ca1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/plural_NameLabelNever.txt +++ /dev/null @@ -1,51 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Doe and Roe ed -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_DateStripPeriods.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_DateStripPeriods.txt deleted file mode 100644 index 2296808..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_DateStripPeriods.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Jun 1965 -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "1965", - "6", - "1" - ] - ] - }, - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyField.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyField.txt deleted file mode 100644 index 051cfb5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyField.txt +++ /dev/null @@ -1,235 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -ENDING IN COLON -colon: colon -period.: colon -semicolon; colon -exclamation! colon -question? colon -comma,: colon - -ENDING IN PERIOD -colon: period -period. period -semicolon; period -exclamation! period -question? period -comma,. period - -ENDING IN SEMICOLON -colon:; semicolon -period.; semicolon -semicolon; semicolon -exclamation!; semicolon -question?; semicolon -comma,; semicolon - -ENDING IN EXCLAMATION -colon! exclamation -period.! exclamation -semicolon! exclamation -exclamation! exclamation -question?! exclamation -comma,! exclamation - -ENDING IN QUESTION -colon? question -period.? question -semicolon? question -exclamation!? question -question? question -comma,? question - -ENDING IN COMMA -colon:, comma -period., comma -semicolon;, comma -exclamation!, comma -question?, comma -comma, comma -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyPlain.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyPlain.txt deleted file mode 100644 index d4447ed..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyPlain.txt +++ /dev/null @@ -1,235 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -ENDING IN COLON -colon: colon -period.: colon -semicolon; colon -exclamation! colon -question? colon -comma,: colon - -ENDING IN PERIOD -colon: period -period. period -semicolon; period -exclamation! period -question? period -comma,. period - -ENDING IN SEMICOLON -colon:; semicolon -period.; semicolon -semicolon; semicolon -exclamation!; semicolon -question?; semicolon -comma,; semicolon - -ENDING IN EXCLAMATION -colon! exclamation -period.! exclamation -semicolon! exclamation -exclamation! exclamation -question?! exclamation -comma,! exclamation - -ENDING IN QUESTION -colon? question -period.? question -semicolon? question -exclamation!? question -question? question -comma,? question - -ENDING IN COMMA -colon:, comma -period., comma -semicolon;, comma -exclamation!, comma -question?, comma -comma, comma -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyQuotesIn.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyQuotesIn.txt deleted file mode 100644 index ef33fd1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyQuotesIn.txt +++ /dev/null @@ -1,238 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -ENDING IN COLON -“colon”: colon -“period.”: colon -“semicolon”; colon -“exclamation!” colon -“question?” colon -“comma,”: colon - -ENDING IN PERIOD -“colon”: period -“period.” period -“semicolon”; period -“exclamation!” period -“question?” period -“comma,.” period - -ENDING IN SEMICOLON -“colon”:; semicolon -“period.”; semicolon -“semicolon”; semicolon -“exclamation!”; semicolon -“question?”; semicolon -“comma,”; semicolon - -ENDING IN EXCLAMATION -“colon!” exclamation -“period.!” exclamation -“semicolon!” exclamation -“exclamation!” exclamation -“question?!” exclamation -“comma,!” exclamation - -ENDING IN QUESTION -“colon?” question -“period.?” question -“semicolon?” question -“exclamation!?” question -“question?” question -“comma,?” question - -ENDING IN COMMA -“colon”:, comma -“period.,” comma -“semicolon”;, comma -“exclamation!,” comma -“question?,” comma -“comma,” comma -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyQuotesOut.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyQuotesOut.txt deleted file mode 100644 index e48f134..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_FullMontyQuotesOut.txt +++ /dev/null @@ -1,238 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -ENDING IN COLON -“colon”: colon -“period”.: colon -“semicolon”; colon -“exclamation”! colon -“question”? colon -“comma”,: colon - -ENDING IN PERIOD -“colon”: period -“period”. period -“semicolon”; period -“exclamation”! period -“question”? period -“comma”,. period - -ENDING IN SEMICOLON -“colon”:; semicolon -“period”.; semicolon -“semicolon”; semicolon -“exclamation”!; semicolon -“question”?; semicolon -“comma”,; semicolon - -ENDING IN EXCLAMATION -“colon”! exclamation -“period”.! exclamation -“semicolon”! exclamation -“exclamation”! exclamation -“question”?! exclamation -“comma”,! exclamation - -ENDING IN QUESTION -“colon”? question -“period”.? question -“semicolon”? question -“exclamation”!? question -“question”? question -“comma”,? question - -ENDING IN COMMA -“colon”:, comma -“period”., comma -“semicolon”;, comma -“exclamation”!, comma -“question”?, comma -“comma”, comma -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_OnMacro.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_OnMacro.txt deleted file mode 100644 index e27dc6c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_OnMacro.txt +++ /dev/null @@ -1,50 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -“My Title.” My Publisher -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "publisher": "My Publisher", - "publisher-place": "New York", - "title": "My Title", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_SemicolonDelimiter.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_SemicolonDelimiter.txt deleted file mode 100644 index d144d7e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/punctuation_SemicolonDelimiter.txt +++ /dev/null @@ -1,126 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE===== << - ->>===== RESULT =====>> -
-
Bauthor, O. T.; Cauthor, T.; Dauthor, T.; Eauthor, E.; Fauthor, F.; Gauthor, G.
-
-<<===== RESULT ===== << - - - ->>===== CSL =====>> - -<<===== CSL===== << - ->>===== INPUT =====>> -[ - { - "URL": "www.reporturl.com", - "accessed": { - "date-parts": [ - [ - 2007, - 12, - 12 - ] - ] - }, - "archive_location": "loc archieve", - "author": [ - { - "family": "Bauthor", - "given": "One Two", - "isInstitution": "" - }, - { - "family": "Cauthor", - "given": "Two", - "isInstitution": "" - }, - { - "family": "Dauthor", - "given": "Three", - "isInstitution": "" - }, - { - "family": "Eauthor", - "given": "Edward", - "isInstitution": "" - }, - { - "family": "Fauthor", - "given": "Fritz", - "isInstitution": "" - }, - { - "family": "Gauthor", - "given": "Gerd", - "isInstitution": "" - } - ], - "event-place": "Reportplace", - "genre": "Report Type", - "id": 1, - "issued": { - "date-parts": [ - [ - 2009, - 12, - 12 - ] - ] - }, - "multi": { - "_keys": {} - }, - "number": "17", - "publisher": "Institution", - "publisher-place": "Reportplace", - "title": "Report on something many authors", - "type": "report" - } -] -<<===== INPUT===== << diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_Punctuation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_Punctuation.txt deleted file mode 100644 index fff7dc8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_Punctuation.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
“The Book Title,”
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "The Book Title", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_PunctuationNasty.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_PunctuationNasty.txt deleted file mode 100644 index 7ce5686..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_PunctuationNasty.txt +++ /dev/null @@ -1,998 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Savage, Thomas. “Report of Labors in Archives and Procuring Material for History of California: And Related Material,” 1879. MSS C-E 191. Bancroft Library, University of California at Berkeley.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "archive": "Bancroft Library, University of California at Berkeley", - "archive_location": "MSS C-E 191", - "author": [ - { - "family": "Savage", - "given": "Thomas" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "1879" - ] - ] - }, - "title": "Report of Labors in Archives and Procuring Material for History of California: And Related Material", - "type": "manuscript" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_PunctuationWithInnerQuote.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_PunctuationWithInnerQuote.txt deleted file mode 100644 index 6dac3cd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/quotes_PunctuationWithInnerQuote.txt +++ /dev/null @@ -1,49 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
“This is ‘The One.’”
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "item-1", - "title": "This is 'The One'", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/simplespace_case1.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/simplespace_case1.txt deleted file mode 100644 index a995435..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/simplespace_case1.txt +++ /dev/null @@ -1,220 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
Doe, J., 1992. In Some title. Vintage, pp. 250–300.
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - - - -<<===== CSL =====<< - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "Jhon" - } - ], - "container-title": "Some title", - "edition": "Vintage First edition", - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 1992 - ] - ] - }, - "page": "250-300", - "publisher": "Vintage", - "type": "chapter" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_AguStyle.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_AguStyle.txt deleted file mode 100644 index 196b8e0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_AguStyle.txt +++ /dev/null @@ -1,267 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Smith, A. (1989a)
-
Smith, A. (1989b)
-
Smith, A. (1991)
-
Smith, A. and C. Allen (1992)
-
Smith, A. and B. Frank (1995)
-
Smith, A. and B. Frank (1997)
-
Smith, A., L. Roberts, and T. Jones (1993)
-
Smith, A., T. Jones, and L. Roberts (1997)
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Smith", - "given": "Al" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1989" - ] - ] - }, - "title": "Book One", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - } - ], - "id": "item-3", - "issued": { - "date-parts": [ - [ - "1991" - ] - ] - }, - "title": "Book Three", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - }, - { - "family": "Allen", - "given": "Carl" - } - ], - "id": "item-4", - "issued": { - "date-parts": [ - [ - "1992" - ] - ] - }, - "title": "Book Four", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - }, - { - "family": "Frank", - "given": "Beauregarde" - } - ], - "id": "item-6", - "issued": { - "date-parts": [ - [ - "1997" - ] - ] - }, - "title": "Book Six", - "type": "book" - }, - { - "author": [ - { - "family": "Smith", - "given": "Al" - } - ], - "id": "item-2", - "issued": { - "date-parts": [ - [ - "1989" - ] - ] - }, - "title": "Book Two", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - }, - { - "family": "Frank", - "given": "Beauregarde" - } - ], - "id": "item-5", - "issued": { - "date-parts": [ - [ - "1995" - ] - ] - }, - "title": "Book Five", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - }, - { - "family": "Roberts", - "given": "Lionel" - }, - { - "family": "Jones", - "given": "Theresa" - } - ], - "id": "item-7", - "issued": { - "date-parts": [ - [ - "1993" - ] - ] - }, - "title": "Book Seven", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - }, - { - "family": "Jones", - "given": "Theresa" - }, - { - "family": "Roberts", - "given": "Lionel" - } - ], - "id": "item-8", - "issued": { - "date-parts": [ - [ - "1997" - ] - ] - }, - "title": "Book Eight", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_AguStyleReverseGroups.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_AguStyleReverseGroups.txt deleted file mode 100644 index fe35f88..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_AguStyleReverseGroups.txt +++ /dev/null @@ -1,267 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Smith, A., L. Roberts, and T. Jones (1993)
-
Smith, A., T. Jones, and L. Roberts (1997)
-
Smith, A. and C. Allen (2000)
-
Smith, A. and B. Frank (1995)
-
Smith, A. and B. Frank (1997)
-
Smith, A. (1989a)
-
Smith, A. (1989b)
-
Smith, A. (1991)
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Smith", - "given": "Al" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "1989" - ] - ] - }, - "title": "Book One", - "type": "book" - }, - { - "author": [ - { - "family": "Smith", - "given": "Al" - } - ], - "id": "item-2", - "issued": { - "date-parts": [ - [ - "1989" - ] - ] - }, - "title": "Book Two", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - } - ], - "id": "item-3", - "issued": { - "date-parts": [ - [ - "1991" - ] - ] - }, - "title": "Book Three", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - }, - { - "family": "Allen", - "given": "Carl" - } - ], - "id": "item-4", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book Four", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - }, - { - "family": "Frank", - "given": "Beauregarde" - } - ], - "id": "item-5", - "issued": { - "date-parts": [ - [ - "1995" - ] - ] - }, - "title": "Book Five", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - }, - { - "family": "Frank", - "given": "Beauregarde" - } - ], - "id": "item-6", - "issued": { - "date-parts": [ - [ - "1997" - ] - ] - }, - "title": "Book Six", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - }, - { - "family": "Roberts", - "given": "Lionel" - }, - { - "family": "Jones", - "given": "Theresa" - } - ], - "id": "item-7", - "issued": { - "date-parts": [ - [ - "1993" - ] - ] - }, - "title": "Book Seven", - "type": "book" - }, - { - "editor": [ - { - "family": "Smith", - "given": "Al" - }, - { - "family": "Jones", - "given": "Theresa" - }, - { - "family": "Roberts", - "given": "Lionel" - } - ], - "id": "item-8", - "issued": { - "date-parts": [ - [ - "1997" - ] - ] - }, - "title": "Book Eight", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyCitationNumberDescending.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyCitationNumberDescending.txt deleted file mode 100644 index a4dfe7c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyCitationNumberDescending.txt +++ /dev/null @@ -1,92 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
[1] Book Eight
-
[2] Book Seven
-
[3] Book Five
-
[4] Book Two
-
[5] Book Six
-
[6] Book Four
-
[7] Book Three
-
[8] Book One
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "item-1", - "title": "Book One", - "type": "book" - }, - { - "id": "item-3", - "title": "Book Three", - "type": "book" - }, - { - "id": "item-4", - "title": "Book Four", - "type": "book" - }, - { - "id": "item-6", - "title": "Book Six", - "type": "book" - }, - { - "id": "item-2", - "title": "Book Two", - "type": "book" - }, - { - "id": "item-5", - "title": "Book Five", - "type": "book" - }, - { - "id": "item-7", - "title": "Book Seven", - "type": "book" - }, - { - "id": "item-8", - "title": "Book Eight", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyCitationNumberDescendingViaMacro.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyCitationNumberDescendingViaMacro.txt deleted file mode 100644 index f407872..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyCitationNumberDescendingViaMacro.txt +++ /dev/null @@ -1,95 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
[1] Book Eight
-
[2] Book Seven
-
[3] Book Five
-
[4] Book Two
-
[5] Book Six
-
[6] Book Four
-
[7] Book Three
-
[8] Book One
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "item-1", - "title": "Book One", - "type": "book" - }, - { - "id": "item-3", - "title": "Book Three", - "type": "book" - }, - { - "id": "item-4", - "title": "Book Four", - "type": "book" - }, - { - "id": "item-6", - "title": "Book Six", - "type": "book" - }, - { - "id": "item-2", - "title": "Book Two", - "type": "book" - }, - { - "id": "item-5", - "title": "Book Five", - "type": "book" - }, - { - "id": "item-7", - "title": "Book Seven", - "type": "book" - }, - { - "id": "item-8", - "title": "Book Eight", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyNosortOption.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyNosortOption.txt deleted file mode 100644 index 51e0f5f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_BibliographyNosortOption.txt +++ /dev/null @@ -1,73 +0,0 @@ ->>===== MODE =====>> -bibliography-nosort -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Roe
-
Doe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-2", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CaseInsensitiveBibliography.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CaseInsensitiveBibliography.txt deleted file mode 100644 index 13a6f7f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CaseInsensitiveBibliography.txt +++ /dev/null @@ -1,74 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Aaa
-
ABC
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "ABC" - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "Aaa" - } - ], - "id": "ITEM-2", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CaseInsensitiveCitation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CaseInsensitiveCitation.txt deleted file mode 100644 index 9d16a46..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CaseInsensitiveCitation.txt +++ /dev/null @@ -1,52 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Aaa - ABC - Xyz -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "title": "Xyz", - "type": "book" - }, - { - "id": "ITEM-2", - "title": "ABC", - "type": "book" - }, - { - "id": "ITEM-3", - "title": "Aaa", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChangeInNameSort.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChangeInNameSort.txt deleted file mode 100644 index 7425a63..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChangeInNameSort.txt +++ /dev/null @@ -1,211 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Carter
-
De Quincey
-
Noakes
-
-<<===== RESULT =====<< - - ->>===== CITATIONS =====>> -[ - [ - { - "citationID": "CITATION-1", - "citationItems": [ - { - "id": "ITEM-1" - } - ], - "properties": { - "noteIndex": 1 - } - }, - [], - [] - ], - [ - { - "citationID": "CITATION-2", - "citationItems": [ - { - "id": "ITEM-2" - } - ], - "properties": { - "noteIndex": 2 - } - }, - [ - [ - "CITATION-1", - 1 - ] - ], - [] - ], - [ - { - "citationID": "CITATION-3", - "citationItems": [ - { - "id": "ITEM-3" - } - ], - "properties": { - "noteIndex": 3 - } - }, - [ - [ - "CITATION-1", - 1 - ], - [ - "CITATION-3", - 3 - ] - ], - [] - ], - [ - { - "citationID": "CITATION-2", - "citationItems": [ - { - "id": "ITEM-2" - } - ], - "properties": { - "noteIndex": 2 - } - }, - [ - [ - "CITATION-1", - 1 - ] - ], - [ - [ - "CITATION-3", - 3 - ] - ] - ] -] -<<===== CITATIONS =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "\"De Quincey\"", - "given": "Alan" - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "Noakes", - "given": "Ajax" - } - ], - "id": "ITEM-2", - "type": "book" - }, - { - "author": [ - { - "family": "Carter", - "given": "Cedric" - } - ], - "id": "ITEM-3", - "type": "book" - } -] -<<===== INPUT =====<< - - ->>===== INPUT2 =====>> -[ - { - "author": [ - { - "family": "De Quincey", - "given": "Alan" - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "Noakes", - "given": "Ajax" - } - ], - "id": "ITEM-2", - "type": "book" - }, - { - "author": [ - { - "family": "Carter", - "given": "Cedric" - } - ], - "id": "ITEM-3", - "type": "book" - } -] -<<===== INPUT2 =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChicagoYearSuffix1.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChicagoYearSuffix1.txt deleted file mode 100644 index 02b5ca7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChicagoYearSuffix1.txt +++ /dev/null @@ -1,431 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - ->>===== RESULT =====>> -
-
Beijing Zoo. 1974a. Observations on the breeding of the giant panda and the raising of its young [in Chinese]. Acta Zoologica Sinica 20: 154–61.
-
---. 1974b. On the diseases of the giant panda and their preventive and curative measures [in Chinese]. Acta Zoologica Sinica 20: 139–47.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Beijing Zoo" - } - ], - "container-title": "Acta Zoologica Sinica", - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "1974" - ] - ] - }, - "page": "154-161", - "title": "Observations on the breeding of the giant panda and the raising of its young [in Chinese]", - "type": "article-journal", - "volume": "20" - }, - { - "author": [ - { - "literal": "Beijing Zoo" - } - ], - "container-title": "Acta Zoologica Sinica", - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "1974" - ] - ] - }, - "page": "139-147", - "title": "On the diseases of the giant panda and their preventive and curative measures [in Chinese]", - "type": "article-journal", - "volume": "20" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChicagoYearSuffix2.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChicagoYearSuffix2.txt deleted file mode 100644 index b3dcdaf..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ChicagoYearSuffix2.txt +++ /dev/null @@ -1,432 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Beijing Zoo. 1974a. Observations on the breeding of the giant panda and the raising of its young [in Chinese]. Acta Zoologica Sinica 20: 154–61.
-
---. 1974b. On the diseases of the giant panda and their preventive and curative measures [in Chinese]. Acta Zoologica Sinica 20: 139–47.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "literal": "Beijing Zoo" - } - ], - "container-title": "Acta Zoologica Sinica", - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "1974" - ] - ] - }, - "page": "139-147", - "title": "On the diseases of the giant panda and their preventive and curative measures [in Chinese]", - "type": "article-journal", - "volume": "20" - }, - { - "author": [ - { - "family": "Beijing Zoo" - } - ], - "container-title": "Acta Zoologica Sinica", - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "1974" - ] - ] - }, - "page": "154-161", - "title": "Observations on the breeding of the giant panda and the raising of its young [in Chinese]", - "type": "article-journal", - "volume": "20" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_Citation.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_Citation.txt deleted file mode 100644 index 5f39b02..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_Citation.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Doe; Roe -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-2", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CiteGroupDelimiter.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CiteGroupDelimiter.txt deleted file mode 100644 index bbbf619..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_CiteGroupDelimiter.txt +++ /dev/null @@ -1,95 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Banda 1999; Aalto 2000, Aalto 2001 -<<===== RESULT =====<< - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Aalto", - "given": "Alan" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - 2001 - ] - ] - }, - "type": "book" - }, - { - "author": [ - { - "family": "Aalto", - "given": "Alan" - } - ], - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - 2000 - ] - ] - }, - "type": "book" - }, - { - "author": [ - { - "family": "Banda", - "given": "Gino" - } - ], - "id": "ITEM-3", - "issued": { - "date-parts": [ - [ - 1999 - ] - ] - }, - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ConditionalMacroDates.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ConditionalMacroDates.txt deleted file mode 100644 index b462171..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_ConditionalMacroDates.txt +++ /dev/null @@ -1,107 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Title 3
-
Title 1
-
Title 2
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "item-1", - "issued": { - "date-parts": [ - [ - 2002, - 12, - 25 - ] - ] - }, - "title": "Title 2", - "type": "article-journal" - }, - { - "id": "item-2", - "issued": { - "date-parts": [ - [ - 2002, - 11, - 30 - ] - ] - }, - "title": "Title 3", - "type": "book" - }, - { - "id": "item-3", - "issued": { - "date-parts": [ - [ - 2002, - 10, - 25 - ] - ] - }, - "title": "Title 1", - "type": "article-journal" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateMacroSortWithSecondFieldAlign.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateMacroSortWithSecondFieldAlign.txt deleted file mode 100644 index 0b60fe8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateMacroSortWithSecondFieldAlign.txt +++ /dev/null @@ -1,75 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John Doe
His Anonymous Life (1965).
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "1965", - "6", - "1" - ] - ] - }, - "title": "His Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariable.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariable.txt deleted file mode 100644 index 187bead..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariable.txt +++ /dev/null @@ -1,61 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Book B; Book A -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book B", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsAscendingA.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsAscendingA.txt deleted file mode 100644 index 3c27c1d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsAscendingA.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Book B; Book A -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000", - "5" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book B", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsAscendingB.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsAscendingB.txt deleted file mode 100644 index e9da2f6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsAscendingB.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Book A; Book B -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "2000", - "5" - ] - ] - }, - "title": "Book B", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsDescendingA.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsDescendingA.txt deleted file mode 100644 index d4a5772..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsDescendingA.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Book A; Book B -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000", - "5" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book B", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsDescendingB.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsDescendingB.txt deleted file mode 100644 index 17c14dd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableMixedElementsDescendingB.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Book B; Book A -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "2000", - "5" - ] - ] - }, - "title": "Book B", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableRange.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableRange.txt deleted file mode 100644 index 518334f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableRange.txt +++ /dev/null @@ -1,71 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Book B; Book A -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000", - "5" - ], - [ - "2001", - "5" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "2000", - "5" - ], - [ - "1999", - "5" - ] - ] - }, - "title": "Book B", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableRangeMixed.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableRangeMixed.txt deleted file mode 100644 index 5520b31..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DateVariableRangeMixed.txt +++ /dev/null @@ -1,67 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Book B; Book A -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000", - "5" - ], - [ - "2001", - "5" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "2000", - "5" - ] - ] - }, - "title": "Book B", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DropNameLabelInSort.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DropNameLabelInSort.txt deleted file mode 100644 index 2293f5e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_DropNameLabelInSort.txt +++ /dev/null @@ -1,170 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Doe, John ed. Hello.
-
---. Hello.
-
Doe, John Eamon. Hello.
-
Doe, John Egbert. Hello.
-
-<<===== RESULT =====<< - - -mla-x.csl - - ->>===== CSL =====>> - -<<===== CSL =====<< - - - - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "title": "Hello", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-4", - "title": "Hello", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John Eamon" - } - ], - "id": "ITEM-2", - "title": "Hello", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John Egbert" - } - ], - "id": "ITEM-3", - "title": "Hello", - "type": "book" - } -] -<<===== INPUT =====<< - - - diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_EtAlUseLast.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_EtAlUseLast.txt deleted file mode 100644 index 4d7a288..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_EtAlUseLast.txt +++ /dev/null @@ -1,136 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Roe, Doe, … Aogh, Book A
-
Roe, Doe, … Bogh, Book A
-
Roe, Doe, … Gogh, Book A
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Doe", - "given": "John" - }, - { - "family": "Blow", - "given": "Joe" - }, - { - "family": "Snow", - "given": "John" - }, - { - "family": "Gogh", - "given": "Vincent" - } - ], - "id": "ITEM-1", - "title": "Book A", - "type": "book" - }, - { - "author": [ - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Doe", - "given": "John" - }, - { - "family": "Blow", - "given": "Joe" - }, - { - "family": "Snow", - "given": "John" - }, - { - "family": "Bogh", - "given": "Vincent" - } - ], - "id": "ITEM-2", - "title": "Book A", - "type": "book" - }, - { - "author": [ - { - "family": "Roe", - "given": "Jane" - }, - { - "family": "Doe", - "given": "John" - }, - { - "family": "Blow", - "given": "Joe" - }, - { - "family": "Snow", - "given": "John" - }, - { - "family": "Aogh", - "given": "Vincent" - } - ], - "id": "ITEM-3", - "title": "Book A", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_FamilyOnly.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_FamilyOnly.txt deleted file mode 100644 index f69eb99..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_FamilyOnly.txt +++ /dev/null @@ -1,77 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
Aardvaark
-
ANZ Group
-
Edelweis
-
-<<===== RESULT =====<< - -Test for issue described here: - - https://forums.zotero.org/discussion/29420/bug-sorting-bibliography-with-single-field-authors/ - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "ANZ Group" - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "Aardvaark" - } - ], - "id": "ITEM-2", - "type": "book" - }, - { - "author": [ - { - "family": "Edelweis" - } - ], - "id": "ITEM-3", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_GroupedByAuthorstring.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_GroupedByAuthorstring.txt deleted file mode 100644 index 3fe189d..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_GroupedByAuthorstring.txt +++ /dev/null @@ -1,122 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> ->>[0] Smith 2003, 2010; Jones 2005 -<<===== RESULT =====<< - - ->>===== CITATIONS =====>> -[ - [ - { - "citationID": "CITATION-1", - "citationItems": [ - { - "id": "ITEM-1" - }, - { - "id": "ITEM-2" - }, - { - "id": "ITEM-3" - } - ], - "properties": { - "noteIndex": 1 - } - }, - [], - [] - ] -] -<<===== CITATIONS =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Smith", - "given": "John" - } - ], - "issued":{ - "date-parts":[ - [2010] - ] - }, - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "Jones", - "given": "2005" - } - ], - "issued":{ - "date-parts":[ - [2005] - ] - }, - "id": "ITEM-2", - "type": "book" - }, - { - "author": [ - { - "family": "Smith", - "given": "John" - } - ], - "issued":{ - "date-parts":[ - [2003] - ] - }, - "id": "ITEM-3", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LatinUnicode.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LatinUnicode.txt deleted file mode 100644 index 3a8fe5c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LatinUnicode.txt +++ /dev/null @@ -1,86 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> ->>[0] Aalto; Álvarez -<<===== RESULT =====<< - - ->>===== CITATIONS =====>> -[ - [ - { - "citationID": "CITATION-1", - "citationItems": [ - { - "id": "ITEM-1" - }, - { - "id": "ITEM-2" - } - ], - "properties": { - "noteIndex": 1 - } - }, - [], - [] - ] -] -<<===== CITATIONS =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Aalto", - "given": "Alan" - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "Álvarez", - "given": "Ajax" - } - ], - "id": "ITEM-2", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LeadingA.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LeadingA.txt deleted file mode 100644 index 7da4ead..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LeadingA.txt +++ /dev/null @@ -1,1494 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - ->>===== RESULT =====>> -
-
“A er det første bogstav i alfabetet”. Television broadcast. DR, 2011.
-
A Hansen, Martin. Alfabetiseringsproblemer. København: Gyldendal, 2012.
-
A kasernes fællesvirke. Problemer med alfabetet. Kbh: Dafolo, 2015.
-
Ab Delrahman, Hussein. Det danske alfabet er sært. Kbh: Politiken, 2012.
-
B Gjengen. Alfabeta. Kbh, 2009.
-
Juul Jensen, Uffe, Carsten Hædersdal, og Mogens Kim Skadborg. “Etablering af klinisk etiske komitéer i Danmark: en praksis-filosofisk tilgang til klinisk etik fra bibliotek.dk”. Bibliotek for læger 206, nr. 1 (2014): 44–61.
-
-<<===== RESULT =====<< - - ->>===== CITATIONS =====>> -[ - [ - { - "citationID": "CITATION-1", - "citationItems": [ - { - "id": "ITEM-1" - }, - { - "id": "ITEM-2" - }, - { - "id": "ITEM-3" - }, - { - "id": "ITEM-4" - }, - { - "id": "ITEM-5" - }, - { - "id": "ITEM-6" - } - ], - "properties": { - "noteIndex": 1 - } - }, - [], - [] - ] -] -<<===== CITATIONS =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - - - - - - ->>===== INPUT =====>> -[ - { - "type": "book", - "multi": { - "main": {}, - "_keys": {} - }, - "id": "ITEM-1", - "title": "Det danske alfabet er sært", - "publisher": "Politiken", - "publisher-place": "Kbh", - "event-place": "Kbh", - "archive-place": "Kbh", - "author": [ - { - "family": "Ab Delrahman", - "given": "Hussein", - "multi": { - "_key": {} - } - } - ], - "issued": { - "raw": "2012" - } - }, - { - "type": "book", - "multi": { - "main": {}, - "_keys": {} - }, - "id": "ITEM-2", - "title": "Alfabetiseringsproblemer", - "publisher": "Gyldendal", - "publisher-place": "København", - "event-place": "København", - "archive-place": "København", - "author": [ - { - "family": "A Hansen", - "given": "Martin", - "multi": { - "_key": {} - } - } - ], - "issued": { - "raw": "2012" - } - }, - { - "type": "book", - "multi": { - "main": {}, - "_keys": {} - }, - "id": "ITEM-3", - "title": "Problemer med alfabetet", - "publisher": "Dafolo", - "publisher-place": "Kbh", - "event-place": "Kbh", - "archive-place": "Kbh", - "author": [ - { - "family": "A kasernes fællesvirke", - "given": "", - "isInstitution": 1, - "multi": { - "_key": {} - } - } - ], - "issued": { - "raw": "2015" - } - }, - { - "type": "book", - "multi": { - "main": {}, - "_keys": {} - }, - "id": "ITEM-4", - "title": "Alfabeta", - "publisher-place": "Kbh", - "event-place": "Kbh", - "archive-place": "Kbh", - "author": [ - { - "family": "B Gjengen", - "given": "", - "isInstitution": 1, - "multi": { - "_key": {} - } - } - ], - "issued": { - "raw": "2009" - } - }, - { - "type": "article-journal", - "multi": { - "main": {}, - "_keys": {} - }, - "id": "ITEM-5", - "title": "Etablering af klinisk etiske komitéer i Danmark: en praksis-filosofisk tilgang til klinisk etik fra bibliotek.dk", - "container-title": "Bibliotek for læger", - "page": "44-61", - "volume": "206", - "issue": "1", - "ISSN": "0906-5407", - "call-number": "61.01", - "author": [ - { - "family": "Juul Jensen", - "given": "Uffe", - "multi": { - "_key": {} - } - }, - { - "family": "Hædersdal", - "given": "Carsten", - "multi": { - "_key": {} - } - }, - { - "family": "Skadborg", - "given": "Mogens Kim", - "multi": { - "_key": {} - } - } - ], - "issued": { - "raw": "2014" - } - }, - { - "type": "broadcast", - "multi": { - "main": {}, - "_keys": {} - }, - "id": "ITEM-6", - "title": "A er det første bogstav i alfabetet", - "publisher": "DR", - "issued": { - "raw": "2011" - }, - "genre": "television broadcast" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LeadingApostropheOnNameParticle.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LeadingApostropheOnNameParticle.txt deleted file mode 100644 index 3f74664..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LeadingApostropheOnNameParticle.txt +++ /dev/null @@ -1,183 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
d’Wander, W
-
de’ Frinkle, B
-
in ’t Horvath, P A B
-
in ’t Horvath, P A D
-
Klabdaggit, M
-
’t Horvath, P A A
-
’t Horvath, P A C
-
Vooz, B
-
-<<===== RESULT =====<< - - ->>===== CITATIONS =====>> -[ - [ - { - "citationID": "CITATION-1", - "citationItems": [ - { - "id": "ITEM-1" - }, - { - "id": "ITEM-2" - }, - { - "id": "ITEM-3" - }, - { - "id": "ITEM-4" - }, - { - "id": "ITEM-5" - }, - { - "id": "ITEM-6" - }, - { - "id": "ITEM-7" - }, - { - "id": "ITEM-8" - } - ], - "properties": { - "noteIndex": 1 - } - }, - [], - [] - ] -] -<<===== CITATIONS =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - -2015-09-20: added test for space after trailing apostrophe - -XXX: Is the leading apostrophe meant to be an open single quote - in Dutch orthography? - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "'t Horvath", - "given": "Peter A.A." - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "in 't Horvath", - "given": "Peter A.B." - } - ], - "id": "ITEM-2", - "type": "book" - }, - { - "author": [ - { - "family": "'t Horvath", - "given": "Peter A.C." - } - ], - "id": "ITEM-3", - "type": "book" - }, - { - "author": [ - { - "family": "in 't Horvath", - "given": "Peter A.D." - } - ], - "id": "ITEM-4", - "type": "book" - }, - { - "author": [ - { - "family": "de' Frinkle", - "given": "Bevis" - } - ], - "id": "ITEM-5", - "type": "book" - }, - { - "author": [ - { - "family": "Klabdaggit", - "given": "Mizo" - } - ], - "id": "ITEM-6", - "type": "book" - }, - { - "author": [ - { - "family": "Vooz", - "given": "Bablican" - } - ], - "id": "ITEM-7", - "type": "book" - }, - { - "author": [ - { - "family": "d'Wander", - "given": "William" - } - ], - "id": "ITEM-8", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LocalizedDateLimitedParts.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LocalizedDateLimitedParts.txt deleted file mode 100644 index 3af9f63..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_LocalizedDateLimitedParts.txt +++ /dev/null @@ -1,93 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Book D; Book A; Book B; Book C -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "2000", - "11", - "2" - ] - ] - }, - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "Book C", - "type": "book" - }, - { - "id": "ITEM-3", - "issued": { - "date-parts": [ - [ - "1999" - ] - ] - }, - "title": "Book D", - "type": "book" - }, - { - "id": "ITEM-4", - "issued": { - "date-parts": [ - [ - "2000", - "11", - "1" - ] - ] - }, - "title": "Book B", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameImplicitSortOrderAndForm.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameImplicitSortOrderAndForm.txt deleted file mode 100644 index de61d44..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameImplicitSortOrderAndForm.txt +++ /dev/null @@ -1,106 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Doe, Book C
-
Doe, Book B
-
Roe, Book A
-
-<<===== RESULT =====<< - - -This test originally anticipated that names should be -forced to long form when generating sort keys. This -behavior was in conflict with the explicit terms of the -specification: - - http://citationstyles.org/downloads/specification.html#sorting-macros - -It also caught users early in the deployment of citproc-js -in Zotero: - - http://forums.zotero.org/discussion/18246/sort-bibliography-by-author-priority-of-surnames-given-names-and-initials/ - -The test has been amended to reflect correct behavior, by switching -the input order of the "Book B" and "Book C" entries. Three other -tests based on user data now cover this behavior: - - sort_VariousNameMacros1.txt - sort_VariousNameMacros2.txt - sort_VariousNameMacros3.txt - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "title": "Book A", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-2", - "title": "Book C", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "James" - } - ], - "id": "ITEM-3", - "title": "Book B", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameParticleInNameSortFalse.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameParticleInNameSortFalse.txt deleted file mode 100644 index c5a7455..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameParticleInNameSortFalse.txt +++ /dev/null @@ -1,82 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John von Doe
-
John di Noakes
-
Jane van Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Roe", - "given": "Jane", - "non-dropping-particle": "van" - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "Noakes", - "given": "John", - "non-dropping-particle": "di" - } - ], - "id": "ITEM-2", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John", - "non-dropping-particle": "von" - } - ], - "id": "ITEM-3", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameParticleInNameSortTrue.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameParticleInNameSortTrue.txt deleted file mode 100644 index e95a822..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameParticleInNameSortTrue.txt +++ /dev/null @@ -1,82 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John di Noakes
-
Jane van Roe
-
John von Doe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Roe", - "given": "Jane", - "non-dropping-particle": "van" - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "Noakes", - "given": "John", - "non-dropping-particle": "di" - } - ], - "id": "ITEM-2", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John", - "non-dropping-particle": "von" - } - ], - "id": "ITEM-3", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameVariable.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameVariable.txt deleted file mode 100644 index a3e90a9..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NameVariable.txt +++ /dev/null @@ -1,78 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John Doe
-
Jacob [F]linders
-
Jane Roe
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-1", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-2", - "type": "book" - }, - { - "author": [ - { - "family": "[F]linders", - "given": "Jacob" - } - ], - "id": "ITEM-3", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NamesUseLast.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NamesUseLast.txt deleted file mode 100644 index 23d8f33..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NamesUseLast.txt +++ /dev/null @@ -1,117 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
John Doe, Xavier Xerxes, et al. Book One 2000
-
John Doe, Alvin Anderson, et al. Book Two 1999
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Anderson", - "given": "Alvin" - }, - { - "family": "Zotero", - "given": "Zoe" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts": [ - [ - "1999" - ] - ] - }, - "title": "Book Two", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Xerxes", - "given": "Xavier" - }, - { - "family": "Boop", - "given": "Betty" - } - ], - "id": "ITEM-2", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book One", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NumberOfAuthorsAsKey.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NumberOfAuthorsAsKey.txt deleted file mode 100644 index 402fd0e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_NumberOfAuthorsAsKey.txt +++ /dev/null @@ -1,135 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Book One
-
Book Two
-
Book Three
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book One", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Doe", - "given": "Jake" - }, - { - "family": "Jones", - "given": "Robert" - } - ], - "id": "item-2", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book Three", - "type": "book" - }, - { - "editor": [ - { - "family": "Doe", - "given": "John" - }, - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "item-3", - "issued": { - "date-parts": [ - [ - "2000" - ] - ] - }, - "title": "Book Two", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_Quotes.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_Quotes.txt deleted file mode 100644 index 17e810e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_Quotes.txt +++ /dev/null @@ -1,98 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Simple title, here A
-
“Simple title here B”
-
Simple “title” here C
-
-<<===== RESULT =====<< - - ->>===== CITATIONS =====>> -[ - [ - { - "citationID": "CITATION-1", - "citationItems": [ - { - "id": "ITEM-1" - }, - { - "id": "ITEM-2" - }, - { - "id": "ITEM-3" - } - ], - "properties": { - "noteIndex": 1 - } - }, - [], - [] - ] -] -<<===== CITATIONS =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "type": "book", - "title": "Simple 'title' here C" - }, - { - "id": "ITEM-2", - "type": "book", - "title": "Simple title, here A" - }, - { - "id": "ITEM-3", - "type": "article-journal", - "title": "Simple title here B" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_RangeUnaffected.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_RangeUnaffected.txt deleted file mode 100644 index c787580..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_RangeUnaffected.txt +++ /dev/null @@ -1,335 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> ->>[0] 1 ->>[1] 1–3 -<<===== RESULT =====<< - - ->>===== CITATIONS =====>> -[ - [ - { - "citationID": "CITATION-1", - "citationItems": [ - { - "id": "ITEM-2" - }, - { - "id": "ITEM-3" - }, - { - "id": "ITEM-1" - } - ], - "properties": { - "noteIndex": 1 - } - }, - [], - [] - ], - [ - { - "citationID": "CITATION-2", - "citationItems": [ - { - "id": "ITEM-1" - } - ], - "properties": { - "noteIndex": 1 - } - }, - [], - [ - [ - "CITATION-1", - 2 - ] - ] - ] -] -<<===== CITATIONS =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "type": "book", - "title": "Title A" - }, - { - "id": "ITEM-2", - "type": "book", - "title": "Title B" - }, - { - "id": "ITEM-3", - "type": "book", - "title": "Title C" - }, - { - "id": "ITEM-4", - "type": "book", - "title": "Title D" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_SeparateAuthorsAndOthers.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_SeparateAuthorsAndOthers.txt deleted file mode 100644 index 8be8c0e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_SeparateAuthorsAndOthers.txt +++ /dev/null @@ -1,181 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Doe, John. Hello 4.
-
--- ed. Hello 1.
-
Doe, John Barbitol. Hello 2.
-
Doe, John Egbert. Hello 3.
-
-<<===== RESULT =====<< - - -mla-x.csl - - ->>===== CSL =====>> - -<<===== CSL =====<< - - - - - ->>===== INPUT =====>> -[ - { - "editor": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "title": "Hello 1", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-4", - "title": "Hello 4", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John Barbitol" - } - ], - "id": "ITEM-2", - "title": "Hello 2", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John Egbert" - } - ], - "id": "ITEM-3", - "title": "Hello 3", - "type": "book" - } -] -<<===== INPUT =====<< - - - diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StatusFieldAscending.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StatusFieldAscending.txt deleted file mode 100644 index c23a3cb..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StatusFieldAscending.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Book B
-
Book A
-
Book C
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-2", - "status": "forthcoming", - "title": "Book B", - "type": "book" - }, - { - "id": "ITEM-3", - "title": "Book C", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StatusFieldDescending.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StatusFieldDescending.txt deleted file mode 100644 index c0b1f6c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StatusFieldDescending.txt +++ /dev/null @@ -1,62 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Book B
-
Book A
-
Book C
-
-<<===== RESULT =====<< - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "title": "Book A", - "type": "book" - }, - { - "id": "ITEM-2", - "status": "forthcoming", - "title": "Book B", - "type": "book" - }, - { - "id": "ITEM-3", - "title": "Book C", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StripMarkup.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StripMarkup.txt deleted file mode 100644 index 60d3ab8..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_StripMarkup.txt +++ /dev/null @@ -1,61 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Doe, Roe -<<===== RESULT =====<< - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "title": "A Full Anonymous Life", - "type": "book" - }, - { - "author": [ - { - "family": "Roe", - "given": "Jane" - } - ], - "id": "ITEM-2", - "title": "A Full Anonymous Life", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_SubstituteTitle.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_SubstituteTitle.txt deleted file mode 100644 index d43a70e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_SubstituteTitle.txt +++ /dev/null @@ -1,469 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE===== << - ->>===== RESULT =====>> -
-
Brooker, C. (2011, July 24). The news coverage of the Norway mass-killings was fact-free conjecture. The Guardian. London. Retrieved from http://www.guardian.co.uk/commentisfree/2011/jul/24/charlie-brooker-norway-mass-killings
-
Brooker, C. (2011, July 31). Let’s think outside the box here: maybe blue-sky thinking is nonsense. The Guardian. London. Retrieved from http://www.guardian.co.uk/commentisfree/2011/jul/31/blue-sky-thinking
-
-<<===== RESULT===== << - ->>===== CSL =====>> - - -<<===== CSL===== << - ->>===== INPUT =====>> -[ - { - "URL": "http://www.guardian.co.uk/commentisfree/2011/jul/31/blue-sky-thinking", - "accessed": { - "date-parts": [ - [ - 2011, - 7, - 31 - ] - ] - }, - "author": [ - { - "family": "Brooker", - "given": "Charlie", - "isInstitution": "" - } - ], - "container-title": "The Guardian", - "event-place": "London", - "id": 67, - "issued": { - "date-parts": [ - [ - 2011, - 7, - 31 - ] - ] - }, - "multi": { - "_keys": {} - }, - "publisher-place": "London", - "title": "Let's think outside the box here: maybe blue-sky thinking is nonsense", - "type": "article-newspaper" - }, - { - "URL": "http://www.guardian.co.uk/commentisfree/2011/jul/24/charlie-brooker-norway-mass-killings", - "accessed": { - "date-parts": [ - [ - 2011, - 7, - 31 - ] - ] - }, - "author": [ - { - "family": "Brooker", - "given": "Charlie", - "isInstitution": "" - } - ], - "container-title": "The Guardian", - "event-place": "London", - "id": 66, - "issued": { - "date-parts": [ - [ - "2011", - 7, - 24 - ] - ] - }, - "multi": { - "_keys": {} - }, - "publisher-place": "London", - "title": "The news coverage of the Norway mass-killings was fact-free conjecture", - "type": "article-newspaper" - } -] -<<===== INPUT===== << diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros1.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros1.txt deleted file mode 100644 index b5eb4bb..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros1.txt +++ /dev/null @@ -1,378 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Doe Jane B. & Doe John A. (2009). Title 1. Test 1, 1-2.
-
Doe John A. & Bloggs Joe A. (2011). Title 3. Test 3, 3-4.
-
Doe John A. & Smith John A. (2010). Title 2. Test 2, 1-2.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "Jane B.", - "isInstitution": "" - }, - { - "family": "Doe", - "given": "John A.", - "isInstitution": "" - } - ], - "container-title": "Test", - "id": 19, - "issued": { - "date-parts": [ - [ - 2009 - ] - ] - }, - "multi": { - "_keys": {} - }, - "page": "1-2", - "title": "Title 1", - "type": "article-journal", - "volume": "1" - }, - { - "author": [ - { - "family": "Doe", - "given": "John A.", - "isInstitution": "" - }, - { - "family": "Smith", - "given": "John A.", - "isInstitution": "" - } - ], - "container-title": "Test", - "id": 25, - "issued": { - "date-parts": [ - [ - 2010 - ] - ] - }, - "multi": { - "_keys": {} - }, - "page": "1-2", - "title": "Title 2", - "type": "article-journal", - "volume": "2" - }, - { - "author": [ - { - "family": "Doe", - "given": "John A.", - "isInstitution": "" - }, - { - "family": "Bloggs", - "given": "Joe A.", - "isInstitution": "" - } - ], - "container-title": "Test", - "id": 27, - "issued": { - "date-parts": [ - [ - 2011 - ] - ] - }, - "multi": { - "_keys": {} - }, - "page": "3-4", - "title": "Title 3", - "type": "article-journal", - "volume": "3" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros2.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros2.txt deleted file mode 100644 index 29f0c59..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros2.txt +++ /dev/null @@ -1,378 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Doe John A. & Bloggs Joe A. (2011). Title 3. Test 3, 3-4.
-
Doe John A. & Smith John A. (2010). Title 2. Test 2, 1-2.
-
Doe Jane B. & Doe John A. (2009). Title 1. Test 1, 1-2.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "Jane B.", - "isInstitution": "" - }, - { - "family": "Doe", - "given": "John A.", - "isInstitution": "" - } - ], - "container-title": "Test", - "id": 19, - "issued": { - "date-parts": [ - [ - 2009 - ] - ] - }, - "multi": { - "_keys": {} - }, - "page": "1-2", - "title": "Title 1", - "type": "article-journal", - "volume": "1" - }, - { - "author": [ - { - "family": "Doe", - "given": "John A.", - "isInstitution": "" - }, - { - "family": "Smith", - "given": "John A.", - "isInstitution": "" - } - ], - "container-title": "Test", - "id": 25, - "issued": { - "date-parts": [ - [ - 2010 - ] - ] - }, - "multi": { - "_keys": {} - }, - "page": "1-2", - "title": "Title 2", - "type": "article-journal", - "volume": "2" - }, - { - "author": [ - { - "family": "Doe", - "given": "John A.", - "isInstitution": "" - }, - { - "family": "Bloggs", - "given": "Joe A.", - "isInstitution": "" - } - ], - "container-title": "Test", - "id": 27, - "issued": { - "date-parts": [ - [ - 2011 - ] - ] - }, - "multi": { - "_keys": {} - }, - "page": "3-4", - "title": "Title 3", - "type": "article-journal", - "volume": "3" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros3.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros3.txt deleted file mode 100644 index a56559c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_VariousNameMacros3.txt +++ /dev/null @@ -1,379 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -
-
Doe John A. & Bloggs Joe A. (2011). Title 3. Test 3, 3-4.
-
Doe Jane B. & Doe John A. (2009). Title 1. Test 1, 1-2.
-
Doe John A. & Smith John A. (2010). Title 2. Test 2, 1-2.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - - - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Doe", - "given": "Jane B.", - "isInstitution": "" - }, - { - "family": "Doe", - "given": "John A.", - "isInstitution": "" - } - ], - "container-title": "Test", - "id": 19, - "issued": { - "date-parts": [ - [ - 2009 - ] - ] - }, - "multi": { - "_keys": {} - }, - "page": "1-2", - "title": "Title 1", - "type": "article-journal", - "volume": "1" - }, - { - "author": [ - { - "family": "Doe", - "given": "John A.", - "isInstitution": "" - }, - { - "family": "Smith", - "given": "John A.", - "isInstitution": "" - } - ], - "container-title": "Test", - "id": 25, - "issued": { - "date-parts": [ - [ - 2010 - ] - ] - }, - "multi": { - "_keys": {} - }, - "page": "1-2", - "title": "Title 2", - "type": "article-journal", - "volume": "2" - }, - { - "author": [ - { - "family": "Doe", - "given": "John A.", - "isInstitution": "" - }, - { - "family": "Bloggs", - "given": "Joe A.", - "isInstitution": "" - } - ], - "container-title": "Test", - "id": 27, - "issued": { - "date-parts": [ - [ - 2011 - ] - ] - }, - "multi": { - "_keys": {} - }, - "page": "3-4", - "title": "Title 3", - "type": "article-journal", - "volume": "3" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_WithAndInOneEntry.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_WithAndInOneEntry.txt deleted file mode 100644 index 19a99a5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/sort_WithAndInOneEntry.txt +++ /dev/null @@ -1,637 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE===== << - ->>===== RESULT =====>> ->>[0] (Beck 1991; Beck and Katz 2001, 2011; Beck, Katz, and Tucker 1998; Beck, King, and Zeng 2000; Colaresi 2006; Colaresi, Rasler, and Thompson 2007; Colaresi and Thompson 2002; Gochman 1993; Gochman and Leng 1983; Gochman and Maoz 1984) -<<===== RESULT===== << - ->>===== CITATIONS =====>> -[ - [ - { - "citationID": "29lcbr8ict", - "citationItems": [ - { - "id": "315", - "label": "page" - }, - { - "id": "313", - "label": "page" - }, - { - "id": "328", - "label": "page" - }, - { - "id": "317", - "label": "page" - }, - { - "id": "327", - "label": "page" - }, - { - "id": "311", - "label": "page" - }, - { - "id": "320", - "label": "page" - }, - { - "id": "318", - "label": "page" - }, - { - "id": "323", - "label": "page" - }, - { - "id": "324", - "label": "page" - }, - { - "id": "325", - "label": "page" - } - ], - "properties": { - "index": 0, - "noteIndex": 0 - }, - "schema": "https://github.com/citation-style-language/schema/raw/master/csl-citation.json" - }, - [], - [] - ] -] -<<===== CITATIONS===== << - ->>===== CSL =====>> - - -<<===== CSL===== << - ->>===== INPUT =====>> -[ - { - "id": 315, - "type": "article-journal", - "multi": { - "_keys": {} - }, - "title": "Comparing Dynamic Specifications: The Case of Presidential Approval", - "container-title": "Political Analysis", - "page": "51-87", - "volume": "3", - "issue": "1", - "abstract": "This article compares a variety of models of presidential approval in terms of their dynamic properties and their theoretical underpinnings. Exponential distributed lags, partial adjustment, error correction, and transfer function models are considered. The major difference between the models lies in interpretation rather than statistical properties. The error correction model seems most satisfactory. Approval models based on individual level theories are examined, and found to give no additional purchase.", - "shortTitle": "Comparing Dynamic Specifications", - "author": [ - { - "family": "Beck", - "given": "Nathaniel", - "isInstitution": "" - } - ], - "issued": { - "year": 1991, - "month": 1, - "day": 1 - }, - "accessed": { - "year": 2011, - "month": 9, - "day": 20 - } - }, - { - "id": 313, - "type": "article-journal", - "multi": { - "_keys": {} - }, - "title": "Throwing Out the Baby with the Bath Water: A Comment on Green, Kim, and Yoon", - "container-title": "International Organization", - "page": "487-495", - "volume": "55", - "issue": "2", - "shortTitle": "Throwing Out the Baby with the Bath Water", - "author": [ - { - "family": "Beck", - "given": "Nathaniel", - "isInstitution": "" - }, - { - "family": "Katz", - "given": "Jonathan", - "isInstitution": "" - } - ], - "issued": { - "year": 2001 - } - }, - { - "id": 328, - "type": "article-journal", - "multi": { - "_keys": {} - }, - "title": "Dynamics in Time Series Cross Section Data", - "container-title": "Annual Review of Political Science", - "page": "331-352", - "volume": "14", - "issue": "1", - "journalAbbreviation": "Annu. Rev. Polit. Sci.", - "author": [ - { - "family": "Beck", - "given": "Nathaniel", - "isInstitution": "" - }, - { - "family": "Katz", - "given": "Jonathan", - "isInstitution": "" - } - ], - "issued": { - "year": 2011 - }, - "accessed": { - "year": 2011, - "month": 4, - "day": 4 - } - }, - { - "id": 317, - "type": "article-journal", - "multi": { - "_keys": {} - }, - "title": "Taking Time Seriously: Time-Series-Cross-Section Analysis with a Binary Dependent Variable", - "container-title": "American Journal of Political Science", - "page": "1260-1288", - "volume": "42", - "issue": "4", - "author": [ - { - "family": "Beck", - "given": "Nathaniel", - "isInstitution": "" - }, - { - "family": "Katz", - "given": "Jonathan", - "isInstitution": "" - }, - { - "family": "Tucker", - "given": "Richard", - "isInstitution": "" - } - ], - "issued": { - "year": 1998 - } - }, - { - "id": 327, - "type": "article-journal", - "multi": { - "_keys": {} - }, - "title": "Improving Quantitative Studies of International Conflict: A Conjecture", - "container-title": "American Political Science Review", - "page": "21-35", - "volume": "94", - "issue": "1", - "abstract": "

We address a well-known but infrequently discussed problem in the quantitative study of international conflict: Despite immense data collections, prestigious journals, and sophisticated analyses, empirical findings in the literature on international conflict are often unsatisfying. Many statistical results change from article to article and specification to specification. Accurate forecasts are nonexistent. In this article we offer a conjecture about one source of this problem: The causes of conflict, theorized to be important but often found to be small or ephemeral, are indeed tiny for the vast majority of dyads, but they are large, stable, and replicable wherever the ex ante probability of conflict is large. This simple idea has an unexpectedly rich array of observable implications, all consistent with the literature. We directly test our conjecture by formulating a statistical model that includes its critical features. Our approach, a version of a \"neural network\" model, uncovers some interesting structural features of international conflict and, as one evaluative measure, forecasts substantially better than any previous effort. Moreover, this improvement comes at little cost, and it is easy to evaluate whether the model is a statistical improvement over the simpler models commonly used.

", - "note": "ArticleType: research-article / Full publication date: Mar., 2000 / Copyright © 2000 American Political Science Association", - "shortTitle": "Improving Quantitative Studies of International Conflict", - "author": [ - { - "family": "Beck", - "given": "Nathaniel", - "isInstitution": "" - }, - { - "family": "King", - "given": "Gary", - "isInstitution": "" - }, - { - "family": "Zeng", - "given": "Langche", - "isInstitution": "" - } - ], - "issued": { - "year": 2000, - "month": 3, - "day": 1 - }, - "accessed": { - "year": 2011, - "month": 4, - "day": 6 - } - }, - { - "id": 311, - "type": "book", - "multi": { - "_keys": {} - }, - "title": "Scare Tactics: The Politics of International Rivalry", - "publisher": "Syracuse University Press", - "publisher-place": "Syracuse, NY", - "number-of-pages": "262", - "event-place": "Syracuse, NY", - "shortTitle": "Scare Tactics", - "author": [ - { - "family": "Colaresi", - "given": "Michael P.", - "isInstitution": "" - } - ], - "issued": { - "year": 2006, - "month": 1, - "day": 31 - } - }, - { - "id": 320, - "type": "article-journal", - "multi": { - "_keys": {} - }, - "title": "Hot Spots or Hot Hands? Serial Crisis Behavior, Escalating Risks, and Rivalry", - "container-title": "Journal of Politics", - "page": "1175-1198", - "volume": "64", - "issue": "4", - "abstract": "Recently, a debate has begun concerning the relationship between conflict events over time between the same disputants. While research on rivalries and recurrent conflict suggest that crises are related over time, others (Gartzke and Simon 1999) doubt the empirical and theoretical foundations of this research. We agree with the critics that the proposition that conflicts between adversaries are related over time remains only weakly substantiated. To fill this lacuna, we test four hypotheses relating past crisis behavior and sequences to subsequent conflict, using International Crisis Behavior (ICB) project data. Our results support the serial crisis hypothesis and suggest that the probability of subsequent crises and wars increase with each past crisis. Our findings also reinforce the inclination to give more emphasis to the analysis of rivalries.", - "shortTitle": "Hot Spots or Hot Hands?", - "author": [ - { - "family": "Colaresi", - "given": "Michael P.", - "isInstitution": "" - }, - { - "family": "Thompson", - "given": "William R.", - "isInstitution": "" - } - ], - "issued": { - "year": 2002 - }, - "accessed": { - "year": 2011, - "month": 7, - "day": 8 - } - }, - { - "id": 318, - "type": "book", - "multi": { - "_keys": {} - }, - "title": "Strategic Rivalries in World Politics: Position, Space and Conflict Escalation", - "publisher": "Cambridge University Press", - "edition": "1", - "shortTitle": "Strategic Rivalries in World Politics", - "author": [ - { - "family": "Colaresi", - "given": "Michael P.", - "isInstitution": "" - }, - { - "family": "Rasler", - "given": "Karen", - "isInstitution": "" - }, - { - "family": "Thompson", - "given": "William R.", - "isInstitution": "" - } - ], - "issued": { - "year": 2007 - } - }, - { - "id": 323, - "type": "article-journal", - "multi": { - "_keys": {} - }, - "title": "The Evolution of Militarized Disputes", - "container-title": "International Interactions", - "page": "49-76", - "volume": "19", - "issue": "1-2", - "author": [ - { - "family": "Gochman", - "given": "Charles S.", - "isInstitution": "" - } - ], - "issued": { - "year": 1993 - } - }, - { - "id": 324, - "type": "article-journal", - "multi": { - "_keys": {} - }, - "title": "Realpolitik and the Road to War: An Analysis of Attributes and Behavior", - "container-title": "International Studies Quarterly", - "page": "97-120", - "volume": "27", - "issue": "1", - "abstract": "

The authors address the question of why some militarized interstate disputes evolve into wars, while others do not. They note from previous investigations that the probability of such disputes ending in war is associated with the types of bargaining behavior adopted by disputants. Particularly important are the degrees of escalation and reciprocity that characterize that behavior. This leads them to ask two questions: first, why do statesmen involved in militarized interstate disputes adopt the bargaining behavior they do?; second, what accounts for variations in outcomes for those disputes in which similar patterns of bargaining behavior are observed? Based upon an analysis of 30 militarized interstate disputes, the authors conclude that (1) escalation in interstate bargaining is strongly associated with the nature of the issues in contention and the types of threat of force initially employed in dispute bargaining, that (2) there exists an association between the relative capabilities of disputants and the degree of reciprocity in bargaining exchanges, and that (3) variations in the outcomes of disputes largely can be accounted for in terms of the interests at stake and the diplomacy of the great powers. These findings prove to be consistent with the basic tenets of political realism, and suggest that the behavior of decision makers engaged in militarized interstate disputes is generally rational in that they respond to cost-benefit considerations.", - "note": "ArticleType: research-article / Full publication date: Mar., 1983 / Copyright © 1983 The International Studies Association", - "shortTitle": "Realpolitik and the Road to War", - "author": [ - { - "family": "Gochman", - "given": "Charles S.", - "isInstitution": "" - }, - { - "family": "Leng", - "given": "Russell J.", - "isInstitution": "" - } - ], - "issued": { - "year": 1983, - "month": 3, - "day": 1 - }, - "accessed": { - "year": 2011, - "month": 5, - "day": 31 - } - }, - { - "id": 325, - "type": "article-journal", - "multi": { - "_keys": {} - }, - "title": "Militarized Interstate Disputes, 1816-1976", - "container-title": "Journal of Conflict Resolution", - "page": "585-616", - "volume": "28", - "issue": "4", - "abstract": "This article offers an empirical description and discussion of interstate conflict behavior. The basis is a recently completed data set consisting of all recorded instances of threats, displays, and uses of military force among states since 1816. We detail historical trends in the data and describe major dimensions of dispute behavior, including patterns of participation, duration, severity and escalation, regional distribution, and national dispute proneness. The following conclusions are suggested: First, patterns of dispute behavior have been more persistent over time than we often assume. Second, when these patterns have changed, the changes have been evolutionary in nature and have paralleled changes in the size and composition of the interstate system. Third, despite the diversity of the political units that constitute the interstate system, patterns of dispute behavior are generalizable across geographic boundaries.", - "author": [ - { - "family": "Gochman", - "given": "Charles S.", - "isInstitution": "" - }, - { - "family": "Maoz", - "given": "Zeev", - "isInstitution": "" - } - ], - "issued": { - "year": 1984, - "month": 12, - "day": 1 - }, - "accessed": { - "year": 2011, - "month": 5, - "day": 30 - } - } -] -<<===== INPUT===== << diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/substitute_RepeatedNamesOk.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/substitute_RepeatedNamesOk.txt deleted file mode 100644 index c04fce6..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/substitute_RepeatedNamesOk.txt +++ /dev/null @@ -1,69 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -Ma Ry, Ma Ry, Kwite Kontrari -<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "author": [ - { - "family": "Ry", - "given": "Ma" - } - ], - "editor": [ - { - "family": "Kontrari", - "given": "Kwite" - } - ], - "id": "ITEM-1", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/substitute_SuppressOrdinaryVariable.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/substitute_SuppressOrdinaryVariable.txt deleted file mode 100644 index e97806e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/substitute_SuppressOrdinaryVariable.txt +++ /dev/null @@ -1,110 +0,0 @@ ->>===== MODE =====>> -bibliography -<<===== MODE =====<< - - - ->>===== RESULT =====>> -

-
“The Title.” The Publisher.
-
John-boy Doe editor. The Title. The Publisher.
-
Jane-girl Doe editor. The Title. The Organization.
-
-<<===== RESULT =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "publisher": "The Publisher", - "title": "The Title", - "type": "book" - }, - { - "editor": [ - { - "family": "Doe", - "given": "John-boy" - } - ], - "id": "ITEM-2", - "publisher": "The Publisher", - "title": "The Title", - "type": "book" - }, - { - "editor": [ - { - "family": "Doe", - "given": "Jane-girl" - } - ], - "id": "ITEM-3", - "publisher": "The Organization", - "title": "The Title", - "type": "report" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable.txt deleted file mode 100644 index 771d239..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable.txt +++ /dev/null @@ -1,38 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -(“this is a random title.”) -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "this is a Random TITLE.", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_affixes.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_affixes.txt deleted file mode 100644 index 219d577..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_affixes.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -(this is a Random TITLE. -this is a Random TITLE.) -(this is a Random TITLE.) -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "this is a Random TITLE.", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-style.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-style.txt deleted file mode 100644 index cb16324..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-style.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -this is a Random TITLE. -this is a Random TITLE. -this is a Random TITLE. -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "this is a Random TITLE.", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-variant.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-variant.txt deleted file mode 100644 index 3500fee..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-variant.txt +++ /dev/null @@ -1,40 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -this is a Random TITLE. -this is a Random TITLE. -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "this is a Random TITLE.", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-weight.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-weight.txt deleted file mode 100644 index 797314c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_font-weight.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -this is a Random TITLE. -this is a Random TITLE. -this is a Random TITLE. -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "this is a Random TITLE.", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_quotes.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_quotes.txt deleted file mode 100644 index 493bbbe..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_quotes.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -this is a Random TITLE. -this is a Random TITLE. -“this is a Random TITLE.” -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "this is a Random TITLE.", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_strip-periods.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_strip-periods.txt deleted file mode 100644 index ad6f7bd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_strip-periods.txt +++ /dev/null @@ -1,40 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -this is a Random TITLE. -this is a Random TITLE -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "this is a Random TITLE.", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_text-case.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_text-case.txt deleted file mode 100644 index a339200..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_text-case.txt +++ /dev/null @@ -1,47 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -this is a random title. -THIS IS A RANDOM TITLE. -This is a Random TITLE. -This Is A Random TITLE. -This is a Random TITLE. -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "this is a Random TITLE.", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_text-decoration.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_text-decoration.txt deleted file mode 100644 index bcf3be0..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_text-decoration.txt +++ /dev/null @@ -1,40 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -this is a Random TITLE. -this is a Random TITLE. -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "this is a Random TITLE.", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_vertical-align.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_vertical-align.txt deleted file mode 100644 index 3339bf1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text-variable_vertical-align.txt +++ /dev/null @@ -1,42 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - - - ->>===== RESULT =====>> -this is a Random TITLE. -this is a Random TITLE. -this is a Random TITLE. -<<===== RESULT =====<< - - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "title": "this is a Random TITLE.", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text_renderCitationNumber.txt b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text_renderCitationNumber.txt deleted file mode 100644 index 3b558f1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/humans/text_renderCitationNumber.txt +++ /dev/null @@ -1,207 +0,0 @@ ->>===== MODE =====>> -citation -<<===== MODE =====<< - ->>===== RESULT =====>> -[1,3] -<<===== RESULT =====<< - ->>===== CITATION-ITEMS =====>> -[ - [ - { - "id": "ITEM-1" - }, - { - "id": "ITEM-3" - } - ] -] -<<===== CITATION-ITEMS =====<< - - ->>===== CSL =====>> - -<<===== CSL =====<< - - ->>===== INPUT =====>> -[ - { - "id": "ITEM-1", - "title": "Book 1", - "type": "book" - }, - { - "id": "ITEM-2", - "title": "Book 2", - "type": "book" - }, - { - "id": "ITEM-3", - "title": "Book 3", - "type": "book" - } -] -<<===== INPUT =====<< diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/machines/.gitignore b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/machines/.gitignore deleted file mode 100644 index c96a04f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor-tests/machines/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor.py b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor.py deleted file mode 100755 index 8869a97..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/fixtures/basic-tests/processor.py +++ /dev/null @@ -1,443 +0,0 @@ -#!/usr/bin/python -u -from __future__ import print_function - -import sys,os,re -from datetime import datetime -from stat import * -import tempfile -try: - from cStringIO import StringIO -except ImportError: - from io import StringIO -try: - from cPickle import Pickler, Unpickler -except ImportError: - from pickle import Pickler, Unpickler - -import subprocess as sub -import string - -try: - from ConfigParser import ConfigParser -except ImportError: - from configparser import ConfigParser - -try: - reload(sys) - sys.setdefaultencoding("utf-8") # Needs Python Unicode build ! -except: - pass - -try: - import json -except: - import simplejson as json - -class ElementMissing(Exception): - pass - -class TooFewArgs(Exception): - pass - -class NoFilesError(Exception): - pass - -class FileNotFound(Exception): - pass - -class MissingHumansFile(Exception): - pass - -class NoLicense(Exception): - pass - -def fixEndings(s): - s = s.replace('\r\n', '\n') - s = s.replace('\r', '\n') - return s - - -class ApplyLicense: - - def __init__(self): - self.rex = "(?sm)^^(/\*.*?^\s*\*/\n*)(.*)" - m = re.match(self.rex, fixEndings(open( os.path.join("src","load.js")).read()) ) - if m: - self.license = "%s\n" % m.group(1).strip() - else: - raise NoLicense - print(self.license) - - def apply(self): - for path in [".", "src", os.path.join("tests", "std"), os.path.join("tests","std","humans"),os.path.join("tests","std","bundled"), os.path.join("tests","std","machines"),os.path.join("tests","citeproc-js")]: - for file in os.listdir( path ): - if file == "CHANGES.txt" or file == "DESIDERATA.txt": - continue - self.process_file(path,file) - - def process_file(self,path,file): - filepath = os.path.join( path, file) - if not filepath.endswith(".js") and not filepath.endswith(".txt") and not filepath.endswith(".json") and not filepath.endswith("README.txt"): return - text = fixEndings(open(filepath).read()) - oldtext = text - m = re.match(self.rex,text) - if m: - text = "%s\n%s" % (self.license, m.group(2)) - else: - text = "%s%s" % (self.license, text) - if text.strip() != oldtext.strip(): - open(filepath,"w+").write(text) - -class Params: - def __init__(self,opt,args,force=None): - self.opt = opt - self.args = args - self.script = os.path.split(sys.argv[0])[1] - self.pickle = ".".join((os.path.splitext( self.script )[0], "pkl")) - self.force = force - self.files = {} - self.tests = os.path.join(os.getcwd(), "processor-tests") - self.files['humans'] = {} - self.files['machines'] = [] - mypath = os.path.split(sys.argv[0])[0] - self.base = os.path.join( mypath ) - if len(self.base): - os.chdir(self.base) - self.initConfig() - - def path(self): - if self.force: - return ( os.path.join( self.tests, self.force), ) - else: - return (os.path.join(self.tests),) - - def getSourcePaths(self): - if len(self.args) == 2: - filename = "%s_%s.txt" % tuple(self.args) - filepath = None - for path in self.path(): - if os.path.exists( os.path.join(path, "humans", filename)): - filepath = (path,os.path.join("humans", filename)) - break - if not filepath: - raise MissingHumansFile(filename,[os.path.join(p,"humans") for p in self.path()]) - self.files['humans'][filename] = (filepath) - else: - for path in self.path(): - for filename in os.listdir(os.path.join(path,"humans")): - if not filename.endswith(".txt"): continue - if args: - if not filename.startswith("%s_" % self.args[0]): continue - if not self.files['humans'].get(filename): - self.files['humans'][filename] = (path,os.path.join("humans",filename)) - - def clearSource(self): - for path in self.path(): - mstd = os.path.join(path, "machines") - for file in os.listdir(mstd): - if not file.endswith(".json"): continue - os.unlink(os.path.join(mstd, file)) - - def refreshSource(self,force=False): - groups = {} - for filename in self.files['humans'].keys(): - hpath = self.files['humans'][filename] - mpath = os.path.join( self.files['humans'][filename][0], "machines", "%s.json" % filename[:-4] ) - hp = os.path.sep.join( hpath ) - mp = os.path.join( mpath ) - #if force: - # self.grindFile(hpath,filename,mp) - if not os.path.exists( mp ): - self.grindFile(hpath,filename,mp) - if self.opt.verbose: - print("Created: %s" % mp) - hmod = os.stat(hp)[ST_MTIME] - mmod = os.stat(mp)[ST_MTIME] - if hmod > mmod: - if self.opt.verbose: - print("Old: %s" % mp) - self.grindFile(hpath,filename,mp) - m = re.match("([a-z]*)_.*",filename) - if m: - groupkey = m.group(1) - if not groups.get(groupkey): - groups[groupkey] = {"mtime":0,"tests":[]} - groups[groupkey]["tests"].append(filename) - if hmod > groups[groupkey]["mtime"]: - groups[groupkey]["mtime"] = mmod - - def grindFile(self,hpath,filename,mp): - if self.opt.verbose: - sys.stdout.write(".") - test = CslTest(opt,self.cp,hpath,filename) - test.parse() - test.repair() - test.dump(mp) - - def validateSource(self): - skip_to_pos = 0 - if os.path.exists( self.pickle ): - upfh = open(self.pickle, 'rb') - unpickler = Unpickler(upfh) - old_opt,old_pos = unpickler.load() - if self.opt == old_opt: - skip_to_pos = old_pos - pos = -1 - for filename in sorted(self.files['humans']): - pos += 1 - if pos < skip_to_pos: continue - p = self.files['humans'][filename] - test = CslTest(opt,self.cp,p,filename,pos=pos) - test.parse() - test.validate() - if os.path.exists( self.pickle ): - os.unlink(self.pickle) - - def initConfig(self): - - for path in self.path(): - if not os.path.exists(os.path.join(path, "machines")): - os.makedirs(os.path.join(path, "machines")) - - if not os.path.exists( os.path.join("config") ): - os.makedirs( os.path.join("config") ) - - if not os.path.exists( os.path.join("config", "processor.cnf") ): - test_template = '''[jing] -command: java -jar -path: ../jing/bin/jing.jar - -[csl] -v1.0: ../citeproc-js/csl/1.0/csl.rnc -''' - ofh = open( os.path.join("config", "processor.cnf"), "w+" ) - ofh.write(test_template) - ofh.close() - self.cp = ConfigParser() - self.cp.read(os.path.join("config", "processor.cnf")) - -class CslTest: - def __init__(self,opt,cp,hpath,testname,pos=0): - self.opt = opt - self.cp = cp - self.pos = pos - self.testname = testname - self.hpath = hpath - self.hp = os.path.sep.join( hpath ) - self.CREATORS = ["author","editor","translator","recipient","interviewer"] - self.CREATORS += ["composer","original-author","container-author","collection-editor"] - self.RE_ELEMENT = '(?sm)^(.*>>=.*%s[^\n]+)(.*)(\n<<=.*%s.*)' - self.RE_FILENAME = '^[a-z]+_[a-zA-Z0-9]+\.txt$' - self.script = os.path.split(sys.argv[0])[1] - self.pickle = ".".join((os.path.splitext( self.script )[0], "pkl")) - self.data = {} - self.raw = fixEndings(open( os.path.sep.join(hpath)).read()) - - def parse(self): - for element in ["MODE","CSL"]: - self.extract(element,required=True,is_json=False) - if element == "CSL" and self.data['csl'].endswith('.csl'): - self.data['csl'] = fixEndings(open( os.path.join("styles", self.data['csl'])).read()) - self.extract("RESULT",required=True,is_json=False) - self.extract("INPUT",required=True,is_json=True) - self.extract("CITATION-ITEMS",required=False,is_json=True) - self.extract("CITATIONS",required=False,is_json=True) - self.extract("BIBENTRIES",required=False,is_json=True) - self.extract("BIBSECTION",required=False,is_json=True) - self.extract("ABBREVIATIONS",required=False,is_json=True) - - def extract(self,tag,required=False,is_json=False,rstrip=False): - m = re.match(self.RE_ELEMENT %(tag,tag),self.raw) - data = False - if m: - if rstrip: - data = m.group(2).rstrip() - else: - data = m.group(2).strip() - elif required: - raise ElementMissing(self.script,tag,self.testname) - if data != False: - if is_json: - data = json.loads(data) - self.data[tag.lower().replace('-','_')] = data - else: - self.data[tag.lower().replace('-','_')] = False - - def repair(self): - self.fix_dates() - input_str = json.dumps(self.data["input"],indent=4,sort_keys=True,ensure_ascii=False) - m = re.match(self.RE_ELEMENT % ("INPUT", "INPUT"),self.raw) - newraw = m.group(1) + "\n" + input_str + m.group(3) - if self.data["citation_items"]: - citations_str = json.dumps(self.data["citation_items"],indent=4,sort_keys=True,ensure_ascii=False) - m = re.match(self.RE_ELEMENT % ("CITATION-ITEMS", "CITATION-ITEMS"),self.raw) - newraw = m.group(1) + "\n" + citations_str + m.group(3) - if self.data["citations"]: - citations_str = json.dumps(self.data["citations"],indent=4,sort_keys=True,ensure_ascii=False) - m = re.match(self.RE_ELEMENT % ("CITATIONS", "CITATIONS"),self.raw) - newraw = m.group(1) + "\n" + citations_str + m.group(3) - if self.data["abbreviations"]: - abbreviations_str = json.dumps(self.data["abbreviations"],indent=4,sort_keys=True,ensure_ascii=False) - m = re.match(self.RE_ELEMENT % ("ABBREVIATIONS", "ABBREVIATIONS"),self.raw) - newraw = m.group(1) + "\n" + abbreviations_str + m.group(3) - if self.raw != newraw: - open(self.hp,"w+").write(newraw) - - def fix_dates(self): - for pos in range(0, len(self.data["input"]),1): - for k in ["issued", "event-date", "accessed", "container", "original-date"]: - if self.data["input"][pos].get(k): - newdate = [] - if not self.data["input"][pos][k].get("date-parts"): - start = [] - for e in ["year","month","day"]: - if self.data["input"][pos][k].get(e): - start.append( self.data["input"][pos][k][e] ) - self.data["input"][pos][k].pop(e) - else: - break - if start: - newdate.append(start) - end = [] - for e in ["year_end","month_end","day_end"]: - if self.data["input"][pos][k].get(e): - end.append( self.data["input"][pos][k][e] ) - self.data["input"][pos][k].pop(e) - else: - break - if end: - newdate.append(end) - self.data["input"][pos][k]["date-parts"] = newdate - - def dump(self, mpath): - json.dump(self.data, open(mpath,"w+"), indent=4, sort_keys=True, ensure_ascii=False ) - - def validate(self): - if self.opt.verbose: - print(self.testname) - if not os.path.exists(self.cp.get("jing", "path")): - print("Error: jing not found.") - print(" Looked in: %s" % self.cp.get("jing", "path")) - sys.exit() - m = re.match("(?sm).*version=\"([.0-9a-z]+)\".*",self.data["csl"]) - if m: - rnc_path = os.path.join(self.cp.get("csl", "v%s" % m.group(1))) - else: - print("Error: Unable to find CSL version in %s" % self.hp) - sys.exit() - tfd,tfilename = tempfile.mkstemp(dir=".") - os.write(tfd,self.data["csl"].encode('utf8')) - os.close(tfd) - - jfh = os.popen("%s %s -c %s %s" % (self.cp.get("jing", "command"), self.cp.get("jing", "path"),rnc_path,tfilename)) - success = True - plural = "" - while 1: - line = jfh.readline() - if not line: break - line = line.strip() - e = re.match("^fatal:",line) - if e: - print(line) - sys.exit() - m = re.match(".*:([0-9]+):([0-9]+): *error:(.*)",line) - if m: - if success: - print("\n##") - print("#### Error%s in CSL for test: %s" % (plural,self.hp)) - print("##\n") - success = False - print(" %s @ line %s" %(m.group(3).upper(),m.group(1))) - plural = "s" - jfh.close() - os.unlink(tfilename) - if not success: - print("") - io = StringIO() - io.write(self.data["csl"]) - io.seek(0) - linepos = 1 - while 1: - cslline = io.readline() - if not cslline: break - cslline = cslline.rstrip() - print("%3d %s" % (linepos,cslline)) - linepos += 1 - pfh = open( self.pickle,"wb+") - pickler = Pickler( pfh ) - - pickler.dump( (opt, self.pos) ) - sys.exit() - - -if __name__ == "__main__": - - from optparse import OptionParser - - os.environ['LANG'] = "en_US.UTF-8" - - usage = '\n %prog [options]' - - description="This script." - - parser = OptionParser(usage=usage,description=description,epilog="Happy testing!") - parser.add_option("-c", "--cranky", dest="cranky", - default=False, - action="store_true", - help='Attempt to validate style code for testing against the CSL schema.') - parser.add_option("-g", "--grind", dest="grind", - default=False, - action="store_true", - help='Force grinding of human-readable test code into machine-readable form.') - parser.add_option("-v", "--verbose", dest="verbose", - default=False, - action="store_true", - help='Display test names during processing.') - (opt, args) = parser.parse_args() - - if not opt.grind and not opt.cranky: - parser.print_help() - sys.exit() - - # Testing sequence: - # + Get single tests working - # Get automatic grinding for single tests working - # Get forced grinding for single tests working - # Get forced grinding and testing for single tests working - # Get CSL integrity check working for single tests - # Check running of all tests - # Check grinding of all tests followed by testing - # Check CSL integrity check of all tests - - # - # Set up paths engine - # - params = Params(opt,args) - - try: - params.getSourcePaths() - if opt.grind: - params.clearSource() - params.refreshSource(force=True) - print("") - else: - params.refreshSource() - if opt.cranky: - params.validateSource() - except (KeyboardInterrupt, SystemExit): - for file in os.listdir("."): - if not file.startswith("tmp") or not len(file) == 9: continue - os.unlink(file) - sys.exit() - except MissingHumansFile as error: - parser.print_help() - print('''\nError: File \"%s\" not found. - Looked in:''' % error[0]) - for path in error[1]: - print(' %s' % path) - except NoFilesError: - print('\nError: No files to process!\n') - except NoLicense: - print('\nError: No license found in load.js') - - print("Processor tests successfully compiled") diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/BugfixTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/BugfixTest.php deleted file mode 100644 index 3edde6f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/BugfixTest.php +++ /dev/null @@ -1,63 +0,0 @@ - - */ -class BugfixTest extends TestCase -{ - - use TestSuiteTestCaseTrait; - - public function testBugfixGithub() - { - $this->_testRenderTestSuite("bugfix-github", ["bugfix-github-58", "bugfix-github-date"]); - } - - /** - * @throws Exception\CiteProcException - */ - public function testBugfixGithub58() - { - $testFiles = loadFixtures("bugfix-github-58"); - $testData = json_decode(file_get_contents(PHPUNIT_FIXTURES."/$testFiles[0]")); - $mode = $testData->mode; - $citeProc = new CiteProc($testData->csl); - $input = $testData->input; - $result = $citeProc->render($input, $mode); - $this->assertNotEmpty($result); - $this->assertTrue(isset($input[0]->title), "Failed asserting that title property exists in input data"); - } - - /** - * @throws Exception\CiteProcException - */ - public function testBugfixGitub59() - { - $style = "modern-language-association"; - $input = '[{"type": "book","accessed": {"date-parts": [["2016","01","01"]]},"publisher": "lol2","title": "lol"},{"type": "book","author": [{"given": "Daniel","suffix": "H.","family": "Nexon"},{"given": "Iver","suffix": "B.","family": "Neumann"}],"accessed": {"date-parts": [["2006","01","01"]]},"publisher": "Rowman & Littlefield","title": "Harry Potter and International Relations"}]'; - $citeProc = new CiteProc(StyleSheet::loadStyleSheet($style)); - $data = json_decode($input); - $datum = $data[0]; - $this->assertNotTrue(isset($datum->author)); //first entry has no author - $result = $citeProc->render($data); - $this->assertNotEmpty($result); - } - - public function testBugfixGithubDate() - { - $this->_testRenderTestSuite("bugfix-github-date"); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/CiteProcTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/CiteProcTest.php deleted file mode 100644 index 22d7534..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/CiteProcTest.php +++ /dev/null @@ -1,219 +0,0 @@ -_testRenderTestSuite("fullstyles_APABibliography"); - } - - public function testFullStyleMultipleAuthors() - { - $this->_testRenderTestSuite("fullstyles_APA_MultipleAuthors"); - } - - public function testFullStyleDINBibliography() - { - $this->_testRenderTestSuite("fullstyles_DINBibliography"); - } - - public function testFullStyleInternationalJournalOfHumanoidRobotics() - { - $this->_testRenderTestSuite("fullstyles_InternationalJournalOfHumanoid"); - } - - public function testFullStyleNorthWestUniversityHarvard() - { - $this->_testRenderTestSuite("fullstyles_NorthWestUniversityHarvard"); - } - - public function testRenderCitationNumber() - { - $this->_testRenderTestSuite("text_renderCitationNumber"); - } - - public function testRenderCssStyle() - { - $style = StyleSheet::loadStyleSheet("international-journal-of-humanoid-robotics"); - $citeProc = new CiteProc($style); - $cssStyles = $citeProc->renderCssStyles(); - - $this->assertTrue(strpos($cssStyles, "csl-left-margin") !== false); - $this->assertTrue(strpos($cssStyles, "csl-right-inline") !== false); - } - - public function testRenderCssStyleHangingIndent() - { - $style = StyleSheet::loadStyleSheet("din-1505-2"); - $citeProc = new CiteProc($style); - $cssStyles = $citeProc->renderCssStyles(); - $this->assertTrue(strpos($cssStyles, "csl-entry") !== false); - $this->assertTrue(strpos($cssStyles, "text-indent: -2em") !== false); - } - - public function testRenderCssStyleLineAndEntrySpacing() - { - $style = StyleSheet::loadStyleSheet("harvard-north-west-university"); - $citeProc = new CiteProc($style); - $cssStyles = $citeProc->renderCssStyles(); - $this->assertTrue(strpos($cssStyles, "csl-entry") !== false); - $this->assertTrue(strpos($cssStyles, "line-height: 1em") !== false); - $this->assertTrue(strpos($cssStyles, "margin-bottom: 2em") !== false); - } - - public function testGetInfo() - { - $style = StyleSheet::loadStyleSheet("harvard-north-west-university"); - $citeProc = new CiteProc($style); - $citeProc->init(); - $info = CiteProc::getContext()->getInfo(); - $this->assertEquals("Hermien Wolff", $info->getAuthors()[0]->name); - $this->assertEquals("North-West University - Harvard", $info->getTitle()); - } - - public function testFilterCitations() - { - $style = StyleSheet::loadStyleSheet("harvard-north-west-university"); - $citeProc = new CiteProc($style); - - $dataString = '[ - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "id": "ITEM-1", - "issued": { - "date-parts":[[2012]] - }, - "title": "Book 1", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "Jane" - } - ], - "issued": { - "date-parts":[[2012]] - }, - "id": "ITEM-2", - "title": "Book 2", - "type": "book" - }, - { - "author": [ - { - "family": "Doe", - "given": "John" - } - ], - "issued": { - "date-parts":[[2011]] - }, - "id": "ITEM-3", - "title": "Book 3", - "type": "book" - } - ]'; - - $actual = $citeProc->render(json_decode($dataString), "citation"); - $expected = '(Doe, 2011; Doe, 2012; Doe, 2012)'; - $this->assertEquals($expected, $actual); - - $filter = '[{"id": "ITEM-1"}]'; - $actualFiltered = $citeProc->render(json_decode($dataString), "citation", json_decode($filter)); - $expectedFiltered = '(Doe, 2012)'; - $this->assertEquals($actualFiltered, $expectedFiltered); - - $citeProc = new CiteProc(StyleSheet::loadStyleSheet("elsevier-vancouver")); - - $actualFilteredElsevier = $citeProc->render(json_decode($dataString), "citation", json_decode('[{"id": "ITEM-2"}]')); - $expectedFilteredElsevier = '[2]'; - $this->assertEquals($actualFilteredElsevier, $expectedFilteredElsevier); - } - - - public function testRenderCitationNumberResultAsArray() - { - $style = StyleSheet::loadStyleSheet("elsevier-vancouver"); - $citeProc = new CiteProc($style); - $result = $citeProc->render(json_decode(" - [ - { - \"id\": \"ITEM-1\", - \"title\": \"Book 1\", - \"type\": \"book\" - }, - { - \"id\": \"ITEM-2\", - \"title\": \"Book 2\", - \"type\": \"book\" - }, - { - \"id\": \"ITEM-3\", - \"title\": \"Book 3\", - \"type\": \"book\" - } - ]"), "citation", json_decode(" - [ - [ - { - \"id\": \"ITEM-1\" - }, - { - \"id\": \"ITEM-3\" - } - ], - [ - { - \"id\": \"ITEM-2\" - } - ] - ]"), true); - - $this->assertTrue(is_array($result)); - $this->assertEquals(2, count($result)); - $this->assertEquals("[1,3]", $result[0]); - $this->assertEquals("[2]", $result[1]); - } - - public function testOverrideOnlyCurrentLang() - { - $this->_testRenderTestSuite("locale_OverrideOnlyCurrentLang"); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/ContextTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/ContextTest.php deleted file mode 100644 index 29e0d98..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/ContextTest.php +++ /dev/null @@ -1,82 +0,0 @@ -citeProc = new CiteProc($style, "de-DE"); - $this->citeProc->init(); - $this->context = $this->citeProc->getContext(); - $this->context->setMode("bibliography"); - $dataList = new DataList(json_decode($this->data)); - $this->context->setCitationItems($dataList); - } - - - /** - * @coversNothing - */ - public function testGetMacros() - { - $macros = $this->citeProc->getContext()->getMacros(); - $this->assertTrue(count($macros) > 0); - foreach ($macros as $macro) { - $this->assertInstanceOf("Seboettg\\CiteProc\\Style\\Macro", $macro); - } - - } - - /** - * @coversNothing - */ - public function testGetMode() - { - $this->assertEquals("bibliography", $this->context->getMode()); - } - - /** - * @coversNothing - */ - public function testHasCitationItems() - { - $this->assertTrue($this->citeProc->getContext()->hasCitationItems()); - } - - /** - * @coversNothing - */ - public function testGetCitationItems() - { - foreach ($this->citeProc->getContext()->getCitationItems() as $item) { - $this->assertNotNull($item->{'author'}); - $this->assertTrue(is_array($item->{'author'})); - $this->assertNotEmpty($item->{'author'}); - } - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Locale/LocaleTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Locale/LocaleTest.php deleted file mode 100644 index cdaac22..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Locale/LocaleTest.php +++ /dev/null @@ -1,37 +0,0 @@ -object->filter("terms", "no date"); - $a2 = $this->object->filter("terms", "no date", "short"); - $this->assertEquals("ohne Datum", $a1->{'single'}); - $this->assertEquals("o. J.", $a2->{'single'}); - } - - protected function setUp() - { - $this->object = new Locale("de-DE"); - } - - -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Choose/ChooseTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Choose/ChooseTest.php deleted file mode 100644 index 15e4486..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Choose/ChooseTest.php +++ /dev/null @@ -1,45 +0,0 @@ -', - '' - ]; - - - - public function testIsNumeric() - { - $xml = new \SimpleXMLElement($this->chooseXml[1]); - $choose = new Choose($xml, null); - $ret1 = $choose->render(json_decode('{"title":"Ein herzzerreißendes Werk von umwerfender Genialität","volume":2}')); - $ret2 = $choose->render(json_decode('{"title":"Ein herzzerreißendes Werk von umwerfender Genialität","volume":"non-numeric value"}')); - $ret3 = $choose->render(json_decode('{"title":"Ein herzzerreißendes Werk von umwerfender Genialität"}')); - - $this->assertEquals("Ein herzzerreißendes Werk von umwerfender Genialität; 2", $ret1); - $this->assertEquals("Ein herzzerreißendes Werk von umwerfender Genialität", $ret2); - $this->assertEquals("Ein herzzerreißendes Werk von umwerfender Genialität", $ret3); - } - - public function testBugfix_github_44() - { - $this->_testRenderTestSuite("bugfix-github-44"); - $this->_testRenderTestSuite("bugfix-choose-github-44"); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Date/DateTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Date/DateTest.php deleted file mode 100644 index ba833d1..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Date/DateTest.php +++ /dev/null @@ -1,95 +0,0 @@ -_testRenderTestSuite("date_String"); - } - - public function testNoDate() - { - $this->_testRenderTestSuite("date_NoDate"); - } - - public function testLocalizedNumericYear() - { - $this->_testRenderTestSuite("date_LocalizedNumericYear"); - } - - public function testLocalizedNumericDefaultWithAffixes() - { - $this->_testRenderTestSuite("date_LocalizedNumericDefaultWithAffixes"); - } - -// public function testLocalizedNumericDefaultWithMissingDay() -// { -// $this->_testRenderTestSuite("date_LocalizedNumericDefaultWithMissingDay"); -// } - - public function testLocalizedNumericDefault() - { - $this->_testRenderTestSuite("date_LocalizedNumericDefault"); - } - - public function testLocalizedDateFormats() - { - $this->_testRenderTestSuite("date_LocalizedDateFormats-"); - } - - public function testLongMonth() - { - $this->_testRenderTestSuite("date_LongMonth"); - } - - public function testDateRanges() - { - $this->_testRenderTestSuite("date_ranges"); - } - - public function testRawParseSimpleDate() - { - $this->_testRenderTestSuite("date_RawParseSimpleDate"); - } - - public function testDateUncertain() - { - $this->_testRenderTestSuite("date_Uncertain"); - } - - public function testCondition_EmptyIsUncertainDate() - { - $this->_testRenderTestSuite("condition_EmptyIsUncertain"); - } - - public function testBugfixDateparts() - { - $this->_testRenderTestSuite("bugfix-dateparts"); - } - /* - public function testDateAD() - { - $this->_testRenderTestSuite("date_DateAD"); - } - - public function testDateBC() - { - $this->_testRenderTestSuite("date_DateBC"); - } - */ -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/GroupTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/GroupTest.php deleted file mode 100644 index 23a2485..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/GroupTest.php +++ /dev/null @@ -1,83 +0,0 @@ -setLocale(new Locale("de-DE")); - CiteProc::setContext($context); - } - - public function testRenderDelimiter() - { - $str = ''; - $group = new Group(new \SimpleXMLElement($str), null); - $this->assertEquals("abgerufen von http://foo.bar", $group->render(json_decode($this->data))); - } - - public function testRenderAffixes() - { - $str = ''; - $group = new Group(new \SimpleXMLElement($str), null); - $this->assertEquals("[abgerufen von http://foo.bar]", $group->render(json_decode($this->data))); - } - - public function testRenderDisplay() - { - $str = ''; - $group = new Group(new \SimpleXMLElement($str), null); - $this->assertEquals("
[abgerufen von http://foo.bar]
", $group->render(json_decode($this->data))); - } - - - public function testGroupComplexNesting() - { - $this->_testRenderTestSuite("group_ComplexNesting"); - } - - public function testGroupShortOutputOnly() - { - $this->_testRenderTestSuite("group_ShortOutputOnly"); - } - - /* - public function testSuppressTermWhenNoOutputFromPartialDate() - { - //TODO: implement - //$this->_testRenderTestSuite("group_SuppressTermWhenNoOutputFromPartialDate"); - } - - public function testGroupSuppressValueWithEmptySubgroup() - { - //TODO: implement - //$this->_testRenderTestSuite("group_SuppressValueWithEmptySubgroup"); - } - - public function testGroupSuppressWithEmptyNestedDateNode() - { - //TODO: implement - //$this->_testRenderTestSuite("group_SuppressWithEmptyNestedDateNode"); - }*/ - -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/LabelTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/LabelTest.php deleted file mode 100644 index 671d828..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/LabelTest.php +++ /dev/null @@ -1,54 +0,0 @@ -_testRenderTestSuite("label_EditorTranslator1"); - } - */ - - public function testNameCollapseRoleLables() - { - $this->_testRenderTestSuite("name_CollapseRoleLabels"); - } - - public function testLabelEmptyLabelVanish() - { - $this->_testRenderTestSuite("label_EmptyLabelVanish"); - } - - public function testLabelImplicitForm() - { - $this->_testRenderTestSuite("label_Implicit"); - } - - public function testLabelNoFirstCharCap() - { - $this->_testRenderTestSuite("label_NoFirstCharCap"); - } - - public function testLabelNonexistentNameVariableLabel() - { - $this->_testRenderTestSuite("label_NonexistentNameVariableLabel"); - } - - public function testLabelPluralPagesWithAlphaPrefix() - { - $this->_testRenderTestSuite("label_PluralPagesWithAlphaPrefix"); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NameTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NameTest.php deleted file mode 100644 index f3b3700..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NameTest.php +++ /dev/null @@ -1,304 +0,0 @@ -_testRenderTestSuite("name_ArticularNameAsSortOrder"); - } - - public function testNameArticularPlain() - { - $this->_testRenderTestSuite("name_ArticularPlain"); - } - - public function testNameArticularShortForm() - { - $this->_testRenderTestSuite("name_ArticularShortForm.json"); - } - - public function testNameAsianGlyphs() - { - $this->_testRenderTestSuite("name_AsianGlyphs"); - } - - public function testNameAuthorCount() - { - $this->_testRenderTestSuite("name_AuthorCount.json"); - } - - public function testNameAuthorCountWithMultipleVariables() - { - $this->_testRenderTestSuite("name_AuthorCountWithMultipleVariables"); - } - - public function testNameAuthorCountWithSameVarContentAndCombinedTermFail() - { - $this->_testRenderTestSuite("name_AuthorCountWithSameVarContentAndCombinedTermFail"); - } - - public function testNameAuthorCountWithSameVarContentAndCombinedTermSucceed() - { - $this->_testRenderTestSuite("name_AuthorCountWithSameVarContentAndCombinedTermSucceed"); - } - - public function testNameAuthorEditorCount() - { - $this->_testRenderTestSuite("name_AuthorEditorCount"); - } - - public function testNameCelticClanName() - { - $this->_testRenderTestSuite("name_CelticClanName"); - } - - public function testNameCeltsAndToffsCrowdedInitials() - { - $this->_testRenderTestSuite("name_CeltsAndToffsCrowdedInitials"); - } - - public function testNameCeltsAndToffsNoHyphens() - { - $this->_testRenderTestSuite("name_CeltsAndToffsNoHyphens"); - } - - public function testNameCeltsAndToffsSpacedInitials() - { - $this->_testRenderTestSuite("name_CeltsAndToffsSpacedInitials"); - } - - public function testNameCeltsAndToffsWithHyphens() - { - $this->_testRenderTestSuite("name_CeltsAndToffsWithHyphens"); - } - - public function testNameAttrAnd() - { - $this->_testRenderTestSuite("nameattr_And"); - } - - public function testNameAttrDelimiterPrecedesEtAl() - { - $this->_testRenderTestSuite("nameattr_DelimiterPrecedesEtAl"); - } - - public function testNameAttrDelimiterPrecedesLast() - { - $this->_testRenderTestSuite("nameattr_DelimiterPrecedesLast"); - } - - public function testNameAttrEtAlMin() - { - $this->_testRenderTestSuite("nameattr_EtAlMin"); - } - - public function testNameAttrEtAlUseFirst() - { - $this->_testRenderTestSuite("nameattr_EtAlUseFirst"); - } - - public function testNameEtAlUseLast() - { - $this->_testRenderTestSuite("name_EtAlUseLast"); - } - - - public function testNameAttrNameDelimiter() - { - $this->_testRenderTestSuite("nameattr_NameDelimiter"); - } - - public function testNameAttrNameForm() - { - $this->_testRenderTestSuite("nameattr_NameForm"); - } - - public function testNameAttrNameAsSortOrder() - { - $this->_testRenderTestSuite("nameattr_NameAsSortOrder"); - } - - public function testNameAttrSortSeparator() - { - $this->_testRenderTestSuite("nameattr_SortSeparator"); - } - - public function testNameAttrInitializeWith() - { - $this->_testRenderTestSuite("nameattr_InitializeWith"); - } - - public function testNameAttrEtAlSubsequentMin() - { - $this->_testRenderTestSuite("nameattr_EtAlSubsequentMin"); - } - - public function testNameAttrEtAlSubsequentUseFirst() - { - $this->_testRenderTestSuite("nameattr_EtAlSubsequentUseFirst"); - } - - public function testNameAttrEtAlSubsequentCompleteAll() - { - $this->_testRenderTestSuite("nameattr_subsequent-author-substitute_complete-all"); - } - - public function testNameAttrEtAlSubsequentCompleteEach() - { - $this->_testRenderTestSuite("nameattr_subsequent-author-substitute_complete-each"); - } - - public function testNameAttrEtAlSubsequentNone() - { - $this->_testRenderTestSuite("nameattr_subsequent-author-substitute_none"); - } - - public function testNameAttrEtAlSubsequentPartialEach() - { - $this->_testRenderTestSuite("nameattr_subsequent-author-substitute_partial-each"); - } - - public function testNameAttrEtAlSubsequentPartialFirst() - { - $this->_testRenderTestSuite("nameattr_subsequent-author-substitute_partial-first"); - } - - public function testFormatSmallCaps() - { - $this->_testRenderTestSuite("name_FormatSmallCaps"); - } - - public function testNameNamepartAffixes() - { - $this->_testRenderTestSuite("name_namepartAffixes.json"); - } - - public function testNameNamepartAffixesNameAsSortOrder() - { - $this->_testRenderTestSuite("name_namepartAffixesNameAsSortOrder"); - } - - public function testNameCitationMacroNoInheritanceFromRoot() { - $this->_testRenderTestSuite("name_CitationMacroNoInheritanceFromRoot"); - } - - public function testInitializeCyrillicName() - { - $this->_testRenderTestSuite("nameattr_initializeCyrillicName"); - } - - public function testEnrichMarkupNames() - { - $cslJson = '[{ - "author": [ - { - "family": "Doe", - "given": "John", - "id": "doe" - }, - { - "family": "Müller", - "given": "Alexander" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "My Anonymous Heritage", - "type": "book" - }]'; - - $enrichAuthorWithLinkFunction = function($authorItem, $authorName) { - return isset($authorItem->id) ? '' - . $authorName . '' : $authorName; - }; - - $apa = StyleSheet::loadStyleSheet("apa"); - $citeproc = new CiteProc($apa, "de-DE", [ - 'author' => $enrichAuthorWithLinkFunction - ]); - $actual = $citeproc->render(json_decode($cslJson), "bibliography"); - - $expected = '
-
Doe, J., & Müller, A. (2001). My Anonymous Heritage.
-
'; - $this->assertEquals($expected, $actual); - } - - public function testEnrichMarkupNamesCitationsAndBibliography() - { - $cslJson = '[{ - "author": [ - { - "family": "Doe", - "given": "John", - "id": "doe" - }, - { - "family": "Müller", - "given": "Alexander" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "My Anonymous Heritage", - "type": "book" - }]'; - - $enrichAuthorWithLinkFunctionBibliography = function($authorItem, $authorName) { - return isset($authorItem->id) ? '' - . $authorName . '' : $authorName; - }; - - $apa = StyleSheet::loadStyleSheet("apa"); - $citeproc = new CiteProc($apa, "de-DE", [ - "bibliography" => [ - "author" => $enrichAuthorWithLinkFunctionBibliography, - "csl-entry" => function($item, $renderedItem) { - return '' . $renderedItem; - } - ], - "citation" => [ - "csl-entry" => function($item, $renderedItem) { - return '' . $renderedItem . ''; - } - ] - ]); - $actualBibliography = $citeproc->render(json_decode($cslJson), "bibliography"); - $actualCitation = $citeproc->render(json_decode($cslJson), "citation"); - $expectedBibliography = '
-
Doe, J., & Müller, A. (2001). My Anonymous Heritage.
-
'; - $expectedCitation = '(Doe & Müller, 2001)'; - $this->assertEquals($expectedCitation, $actualCitation); - $this->assertEquals($expectedBibliography, $actualBibliography); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NameorderTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NameorderTest.php deleted file mode 100644 index aed240b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NameorderTest.php +++ /dev/null @@ -1,54 +0,0 @@ - - */ -class NameorderTest extends TestCase -{ - use TestSuiteTestCaseTrait; - - - public function testNameorderLong() - { - $this->_testRenderTestSuite("nameorder_Long.json"); - } - - public function testNameorderLongNameAsSortDemoteDisplayAndSort() - { - $this->_testRenderTestSuite("nameorder_LongNameAsSortDemoteDisplayAndSort"); - } - - public function testNameorderLongNameAsSortDemoteNever() - { - $this->_testRenderTestSuite("nameorder_LongNameAsSortDemoteNever"); - } - - public function testNameorderShort() - { - $this->_testRenderTestSuite("nameorder_Short.json"); - } - - public function testNameorder_ShortDemoteDisplayAndSort() - { - $this->_testRenderTestSuite("nameorder_ShortDemoteDisplayAndSort"); - } - - public function testNameorderShortNameAsSortDemoteNever() - { - $this->_testRenderTestSuite("nameorder_ShortNameAsSortDemoteNever"); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NamesTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NamesTest.php deleted file mode 100644 index 78c6c32..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/NamesTest.php +++ /dev/null @@ -1,46 +0,0 @@ -_testRenderTestSuite("names_substitute"); - } - - public function testEditorTranslator() - { - $this->_testRenderTestSuite("name_EditorTranslatorBoth"); - } - - public function testEtAlUseLast() - { - $this->_testRenderTestSuite("name_EtAlUseLast"); - } - /* - public function testEtAlWithCombined() - { - //TODO: implement - //$this->_testRenderTestSuite("name_EtAlWithCombined"); - } - */ -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/SubstituteTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/SubstituteTest.php deleted file mode 100644 index bba5a6b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/Name/SubstituteTest.php +++ /dev/null @@ -1,55 +0,0 @@ -_testRenderTestSuite("name_SubstituteInheritLabel"); - } - - public function testNameSubstituteMacro() - { - $this->_testRenderTestSuite("name_SubstituteMacro"); - } - - public function testNameSubstituteName() - { - $this->_testRenderTestSuite("name_SubstituteName"); - } - - public function testRenderSubstituteSuppressMultipleValues() - { - $this->_testRenderTestSuite("names_substituteSuppressSubstitution"); - } - - public function testNameSubstituteSuppressOrdinaryVariable() - { - $this->_testRenderTestSuite("name_substitute_SuppressOrdinaryVariable"); - } - - public function testNameSubstituteOnElementFail() - { - $this->_testRenderTestSuite("name_SubstituteOnDateGroupSpanFail"); - $this->_testRenderTestSuite("name_SubstituteOnGroupSpanGroupSpanFail"); - $this->_testRenderTestSuite("name_SubstituteOnMacroGroupSpanFail"); - $this->_testRenderTestSuite("name_SubstituteOnNamesSingletonGroupSpanFail.json"); - $this->_testRenderTestSuite("name_SubstituteOnNamesSpanNamesSpanFail.json"); - $this->_testRenderTestSuite("name_SubstituteOnNumberGroupSpanFail"); - } - -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/NumberTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/NumberTest.php deleted file mode 100644 index 3fb76b4..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/NumberTest.php +++ /dev/null @@ -1,121 +0,0 @@ -setLocale(new Locale("en-GB")); - CiteProc::setContext($context); - } - - public function testRenderOrdinal() - { - - $number = new Number(new \SimpleXMLElement('')); - $data = json_decode("{\"title\": \"Ein Buch\", \"edition\": 3}"); - - $this->assertEquals("3rd", $number->render($data)); - } - - public function testRenderLongOrdinal() - { - $number = new Number(new \SimpleXMLElement('')); - $data = json_decode("{\"title\": \"Ein Buch\", \"edition\": 3}"); - - $this->assertEquals("third", $number->render($data)); - } - - public function testRenderRoman() - { - $number = new Number(new \SimpleXMLElement('')); - $data = json_decode("{\"title\": \"Ein Buch\", \"edition\": 4}"); - - $this->assertEquals("iv", $number->render($data)); - - $data = json_decode("{\"title\": \"Ein Buch\", \"edition\": 1678}"); - $this->assertEquals("mdclxxviii", $number->render($data)); - } - - public function testRenderAffixesTextCase() - { - $number = new Number(new \SimpleXMLElement('')); - $data = json_decode("{\"title\": \"Ein Buch\", \"edition\": 16}"); - $this->assertEquals("[XVI]", $number->render($data)); - } - - public function testNumberAffixes() - { - $this->_testRenderTestSuite("number_affixes"); - } - - public function testNumberFontStyle() - { - $this->_testRenderTestSuite("number_font-style"); - } - - public function testNumberFontWeight() - { - $this->_testRenderTestSuite("number_font-weight"); - } - - public function testNumberFontVariant() - { - $this->_testRenderTestSuite("number_font-variant"); - } - - public function testNumberFormat() - { - $this->_testRenderTestSuite("number_format"); - } - - public function testNumberSpacing() - { - $this->_testRenderTestSuite("number_spacing"); - } - - public function testNumberTextCase() - { - $this->_testRenderTestSuite("number_text-case"); - } - - public function testNumberTextDecoration() - { - $this->_testRenderTestSuite("number_text-decoration"); - } - - public function testNumberVerticalAlign() - { - $this->_testRenderTestSuite("number_vertical-align"); - } - - /* - public function testNumberPlainHyphenOrEnDashAlwaysPlural() - { - $this->_testRenderTestSuite("number_PlainHyphenOrEnDashAlwaysPlural"); - } - */ - - public function testNumberSimpleRoman() - { - $this->_testRenderTestSuite("number_SimpleNumberRoman"); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/TextTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/TextTest.php deleted file mode 100644 index 126ad5b..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Rendering/TextTest.php +++ /dev/null @@ -1,263 +0,0 @@ - -; -EOT; - - - private $dataTitle = '{"title":"Ein herzzerreißendes Werk von umwerfender Genialität","type":"book"}'; - private $dataPublisherPlace = '{"publisher-place":"Frankfurt am Main"}'; - - /** - * @var CiteProc - */ - private $citeproc; - - public function setUp() - { - - } - - - - public function testMacro() - { - - $macroXml = << - -EOT; - $citeProc = new CiteProc($macroXml); - - - - $this->assertEquals( - "Ein Buch", - $citeProc->render(json_decode("[{\"title\":\"Ein Buch\", \"type\": \"book\"}]"), "citation") - ); - - $this->assertEquals( - "Ein Buch", - $citeProc->render(json_decode("[{\"title\":\"Ein Buch\", \"type\": \"thesis\"}]"), "citation") - ); - } - - public function testEnrichMarkupTitles() - { - $cslJson = '[{ - "author": [ - { - "family": "Doe", - "given": "John", - "id": "doe" - }, - { - "family": "Müller", - "given": "Alexander" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "My Anonymous Heritage", - "type": "book" - }]'; - - $enrichTitleWithLinkFunction = function($citeItem, $renderedVariable) { - return isset($citeItem->id) ? '' - . $renderedVariable . '' : $renderedVariable; - }; - - $apa = StyleSheet::loadStyleSheet("apa"); - $citeproc = new CiteProc($apa, "de-DE", - [ - 'title' => $enrichTitleWithLinkFunction - ] - ); - $actual = $citeproc->render(json_decode($cslJson), "bibliography"); - - $expected = '
-
Doe, J., & Müller, A. (2001). My Anonymous Heritage.
-
'; - $this->assertEquals($expected, $actual); - } - - /** - * @throws \Seboettg\CiteProc\Exception\CiteProcException - */ - public function testEnrichMarkupURL() - { - $cslJson = '[{ - "author": [ - { - "family": "Doe", - "given": "John", - "id": "doe" - }, - { - "family": "Müller", - "given": "Alexander" - } - ], - "container-title": "Heritages and taxes. How to avoid responsibility.", - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "page": "123-127", - "publisher": "Initiative Neue Soziale Marktwirtschaft (INSM)", - "publisher-place": "Berlin, Germany", - "title": "My Anonymous Heritage", - "type": "book", - "URL": "https://example.org/publication/item-1" - }]'; - - $enrichUrlWithLinkFunction = function($citeItem, $renderedVariable) { - return preg_match("/http[s]?:\/\/.+/", $citeItem->URL) ? '' - . $citeItem->URL . '' : $citeItem->URL; - }; - - $apa = StyleSheet::loadStyleSheet("apa"); - $citeproc = new CiteProc($apa, "en-US", [ - 'URL' => $enrichUrlWithLinkFunction - ]); - $actual = $citeproc->render(json_decode($cslJson), "bibliography"); - - $expected = '
-
Doe, J., & Müller, A. (2001). My Anonymous Heritage. Heritages and taxes. How to avoid responsibility. (pp. 123-127). Berlin, Germany: Initiative Neue Soziale Marktwirtschaft (INSM). Retrieved from https://example.org/publication/item-1
-
'; - $this->assertEquals($expected, $actual); - } - - public function testEnrichMarkupCitationNumber() - { - $cslJson = '[ - { - "author": [ - { - "family": "Doe", - "given": "James", - "suffix": "III" - } - ], - "id": "item-1", - "issued": { - "date-parts": [ - [ - "2001" - ] - ] - }, - "title": "My Anonymous Heritage", - "type": "book" - }, - { - "author": [ - { - "family": "Anderson", - "given": "John", - "id": "anderson.j" - }, - { - "family": "Brown", - "given": "John", - "id": "brown.j" - } - ], - "issued": { - "date-parts": [ - [ - "1998" - ] - ] - }, - "id": "ITEM-2", - "type": "book", - "title": "Two authors writing a book" - }]'; - - $apa = StyleSheet::loadStyleSheet("elsevier-with-titles"); - - $citeproc = new CiteProc($apa, "en-US", - [ - "bibliography" => [ - "citation-number" => function($citeItem, $renderedVariable) { - return isset($citeItem->id) ? '' - . $renderedVariable . '' : $renderedVariable; - } - ], - "citation" => [ - "citation-number" => function($citeItem, $renderedVariable) { - return isset($citeItem->id) ? '' - . $renderedVariable . '' : $renderedVariable; - } - ] - ] - ); - - $actual = $citeproc->render(json_decode($cslJson), "bibliography"); - - $expected = '
-
[1]
J. Doe III, My Anonymous Heritage, 2001.
-
[2]
J. Anderson, J. Brown, Two authors writing a book, 1998.
-
'; - $this->assertEquals($expected, $actual); - - $actual = $citeproc->render(json_decode($cslJson), "citation"); - - $expected = '[1,2]'; - - $this->assertEquals($expected, $actual); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Style/MacroTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Style/MacroTest.php deleted file mode 100644 index 6ccfb63..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Style/MacroTest.php +++ /dev/null @@ -1,41 +0,0 @@ -'; - $data = json_decode('[{"title":"Ein herzzerreißendes Werk von umwerfender Genialität","type":"book"},{"title":"Ein nicht so wirklich herzzerreißendes Werk von umwerfender Genialität","type":"thesis"}]'); - - $styleNode = new \SimpleXMLElement($xml); - - $citeProc = new CiteProc($xml); - - $actual = $citeProc->render($data, 'citation'); - - $expected = 'Ein herzzerreißendes Werk von umwerfender Genialität; '. - 'Ein nicht so wirklich herzzerreißendes Werk von umwerfender Genialität'; - - $this->assertEquals($expected, $actual); - } - - -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Style/Sort/SortTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Style/Sort/SortTest.php deleted file mode 100644 index ace5934..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Style/Sort/SortTest.php +++ /dev/null @@ -1,233 +0,0 @@ -"; - - $json = "[ - { - \"title\": \"Book 1\", - \"author\": [ - { - \"family\": \"Roe\", - \"given\": \"Jane\" - } - ], - \"id\": \"ITEM-1\", - \"type\": \"book\" - }, - { - \"title\": \"Book 2\", - \"author\": [ - { - \"family\": \"Doe\", - \"given\": \"John\" - } - ], - \"id\": \"ITEM-2\", - \"type\": \"book\" - }, - { - \"title\": \"Book 3\", - \"author\": [ - { - \"family\": \"Flinders\", - \"given\": \"Jacob\" - } - ], - \"id\": \"ITEM-3\", - \"type\": \"book\" - } - ]"; - $jsonObject = json_decode($json); - $citeProc = new CiteProc($xml, "en-US"); - $result = $citeProc->render($jsonObject); - - $expected = "
-
John Doe, Book 2
-
Jacob Flinders, Book 3
-
Jane Roe, Book 1
-
"; - - $this->assertEquals($expected, $result); - } - - - public function testSortVariableWithTwoKeys() - { - $xml = ""; - - $json = "[ - { - \"title\": \"Book 3\", - \"author\": [ - { - \"family\": \"Zeppelin\", - \"given\": \"Graf\" - } - ], - \"issued\": {\"date-parts\":[[\"2000\"]]}, - \"id\": \"ITEM-3\", - \"type\": \"book\" - }, - { - \"title\": \"Book 4\", - \"author\": [ - { - \"family\": \"Anderson\", - \"given\": \"Jakob\" - } - ], - \"issued\": {\"date-parts\":[[\"2003\"]]}, - \"id\": \"ITEM-4\", - \"type\": \"book\" - }, - { - \"title\": \"Book 1\", - \"author\": [ - { - \"family\": \"Roe\", - \"given\": \"Jane\" - } - ], - \"issued\": {\"date-parts\":[[\"2003\"]]}, - \"id\": \"ITEM-1\", - \"type\": \"book\" - - }, - { - \"title\": \"Book 2\", - \"author\": [ - { - \"family\": \"Doe\", - \"given\": \"John\" - } - ], - \"issued\": {\"date-parts\":[[\"2003\"]]}, - \"id\": \"ITEM-2\", - \"type\": \"book\" - } - ]"; - - $jsonObject = json_decode($json); - $citeProc = new CiteProc($xml, "en-US"); - $result = $citeProc->render($jsonObject); - - $expected = "
-
Jakob Anderson, Book 4 (2003).
-
John Doe, Book 2 (2003).
-
Jane Roe, Book 1 (2003).
-
Graf Zeppelin, Book 3 (2000).
-
"; - - $this->assertEquals($expected, $result); - } - - - public function testSortCaseInsensitiveBibliography() - { - $this->_testRenderTestSuite("sort_CaseInsensitiveBibliography"); - } - - public function testSortBibliographyCitationNumberDescending() - { - $this->_testRenderTestSuite("sort_BibliographyCitationNumberDescending.json"); - } - - public function testSortBibliographyCitationNumberDescendingViaMacro() - { - $this->_testRenderTestSuite("sort_BibliographyCitationNumberDescendingViaMacro"); - } - - public function testSortCaseInsensitiveCitation() - { - $this->_testRenderTestSuite("sort_CaseInsensitiveCitation"); - } - - public function testSortCitation() - { - $this->_testRenderTestSuite("sort_Citation.json"); - } - - /* - public function testSortConditionalMacroDates() - { - $this->_testRenderTestSuite("sort_ConditionalMacroDates"); - } - */ - - public function testSortDateVariable() - { - $this->_testRenderTestSuite("sort_DateVariable.json"); - } - - public function testSortDateVariableMixedElements() - { - $this->_testRenderTestSuite("sort_DateVariableMixedElements"); - } - - public function testSortDateVariableRange() - { - $this->_testRenderTestSuite("sort_DateVariableRange.json"); - } - - - public function testSortDateVariableRangeMixed() - { - $this->_testRenderTestSuite("sort_DateVariableRangeMixed"); - } - - - public function testSortEtAlUseLast() - { - $this->_testRenderTestSuite("sort_EtAlUseLast"); - } - - - public function testSortStripMarkup() - { - $this->_testRenderTestSuite("sort_StripMarkup"); - } - - public function testSortSubstituteTitle() - { - $this->_testRenderTestSuite("sort_SubstituteTitle"); - } - - public function testSortVariousNameMacros1() - { - $this->_testRenderTestSuite("sort_VariousNameMacros1"); - } - - public function testSortVariousNameMacros2() - { - $this->_testRenderTestSuite("sort_VariousNameMacros2"); - } - - public function testSortVariousNameMacros3() - { - $this->_testRenderTestSuite("sort_VariousNameMacros3"); - } - - public function testSortDateMacroSortWithSecondFieldAlign() - { - $this->_testRenderTestSuite("sort_DateMacroSortWithSecondFieldAlign"); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/StyleSheetTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/StyleSheetTest.php deleted file mode 100644 index 31dd833..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/StyleSheetTest.php +++ /dev/null @@ -1,96 +0,0 @@ -getName() === "info") { - foreach ($child as $subChild) { - if ($subChild->getName() === "id") { - $this->assertEquals("http://www.zotero.org/styles/din-1505-2", (string) $subChild); - break; - } - } - break; - } - } - - } - - /** - * @coversNothing - */ - public function testLoadLocales() - { - - $locales = StyleSheet::loadLocales("de-DE"); - $xmlLocales = new \SimpleXMLElement($locales); - foreach ($xmlLocales as $child) { - if ($child->getName() === "terms") { - foreach ($child as $term) { - echo $term["name"]; - if ("and" === (string) $term["name"]) { - $this->assertEquals("und", (string) $term); - break; - } - } - break; - } - } - - } - - /** - * @coversNothing - */ - public function testLoadLocalesMetadata() - { - - $metadata = StyleSheet::loadLocalesMetadata(); - $this->assertObjectHasAttribute('primary-dialects', $metadata); - $this->assertObjectHasAttribute('en', $metadata->{'primary-dialects'}); - } - - /** - * @coversNothing - */ - public function testLoadPrimaryDialectLocale() - { - - $locales = StyleSheet::loadLocales("de"); - $xmlLocales = new \SimpleXMLElement($locales); - foreach ($xmlLocales as $child) { - if ($child->getName() === "terms") { - foreach ($child as $term) { - echo $term["name"]; - if ("and" === (string) $term["name"]) { - $this->assertEquals("und", (string) $term); - break; - } - } - break; - } - } - - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Styles/AffixesTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Styles/AffixesTest.php deleted file mode 100644 index 74d598f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Styles/AffixesTest.php +++ /dev/null @@ -1,48 +0,0 @@ -_testRenderTestSuite("number_affixes"); - } - - public function testAffixBrackets() - { - $this->_testRenderTestSuite('affix_Brackets'); - } - - public function testAffixInterveningEmpty() - { - $this->_testRenderTestSuite('affix_InterveningEmpty'); - } - - public function testAffixPrefixFullCitationTextOnly() - { - $this->_testRenderTestSuite('affix_PrefixFullCitationTextOnly'); - } - - public function testAffixPrefixWithDecorations() - { - $this->_testRenderTestSuite('affix_PrefixWithDecorations'); - } - - public function testAffixTextNodeWithMacro() - { - $this->_testRenderTestSuite('affix_TextNodeWithMacro'); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Styles/DisplayTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Styles/DisplayTest.php deleted file mode 100644 index 1b49974..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Styles/DisplayTest.php +++ /dev/null @@ -1,39 +0,0 @@ -_testRenderTestSuite("display_AuthorAsHeading"); - } - - public function testDisplayBlock() - { - $this->_testRenderTestSuite("display_DisplayBlock"); - } - - public function testDisplaySecondFieldAlignClone() - { - $this->_testRenderTestSuite("display_SecondFieldAlignClone"); - } - - public function testDisplayFieldAlignMigratePunctuation() - { - $this->_testRenderTestSuite("display_SecondFieldAlignMigratePunctuation"); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/TestSuiteTestCaseTrait.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/TestSuiteTestCaseTrait.php deleted file mode 100644 index 553c374..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/TestSuiteTestCaseTrait.php +++ /dev/null @@ -1,89 +0,0 @@ -mode; - if ($mode !== "bibliography" && $mode !== "citation") { - continue; - } - - $expected = $testData->result; - $citeProc = new CiteProc($testData->csl); - ++$i; - $echo = sprintf("%03d (%s / %s): ", $i, $testFile, $mode); - try { - $citationItems = []; - if (!empty($testData->citation_items)) { - $citationItems = $testData->citation_items; - } - $actual = $citeProc->render($testData->input, $mode, $citationItems); - $this->assertEquals($expected, $actual, "Test case \"$testFile\" ($i) has failed."); - //echo "succeeded.\n\n\n"; - $success[] = $echo . "\n$actual"; - } catch (ExpectationFailedException $e) { - echo "failed\n"; - $str = $e->getMessage() . "\n" . $e->getComparisonFailure()->getDiff() . "\n\n\n"; - $failures[] = "$echo\n$str"; - echo $actual; - echo $str; - } catch (CiteProcException $e) { - //$failures[] = - $exceptions[] = "$echo\nCiteProc Exception in $testFile\n".$e->getFile()."\n".$e->getMessage()."\n"; - } catch (\RuntimeException $e) { - //$failures[] = $e->getMessage(); - $exceptions[] = "$echo\nRuntime Exception in $testFile\n".$e->getFile()." on line ".$e->getLine()."\n".$e->getMessage()."\n"; - } catch (\Exception $e) { - //$failures[] = $e->getMessage(); - $exceptions[] = "$echo\nException in $testFile\n".$e->getFile()." on line ".$e->getLine()."\n".$e->getMessage()."\n"; - } - } - if (!empty($success)) { - print count($success)." assertions have succeeded:\n\t".implode("\n\t", $success); - } - - if (!empty($failures)) { - print "\n\n".count($failures)." assertions failed:\n\t".implode("\n\t", $failures); - throw new ExpectationFailedException(count($failures)." assertions failed:\n\t".implode("\n\t", $failures)); - } - - if (!empty($exceptions)) { - print "\n\n".count($exceptions)." assertions have caused an exception :\n\t".implode("\n\t", $exceptions); - } - - print "\n\nSummary: ".count($success)."/".count($failures)."/".count($exceptions); - print "\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\n"; - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/NumberHelperTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/NumberHelperTest.php deleted file mode 100644 index f581b48..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/NumberHelperTest.php +++ /dev/null @@ -1,58 +0,0 @@ - 1, - "iv" => 4, - "viii" => 8, - "XVII" => 17, - "XC" => 90, - "CI" => 101, - "D" => 500, - "dviii" => 508, - "CM" => 900, - "XM" => 990, - "M" => 1000, - "MMXVI" => 2016 - ]; - - foreach ($test as $roman => $dec) { - $this->assertEquals($dec, NumberHelper::roman2Dec($roman)); - } - } - - public function testIsRomanNumber() - { - $this->assertTrue(NumberHelper::isRomanNumber("xiv")); - $this->assertTrue(NumberHelper::isRomanNumber("XIV")); - $this->assertFalse(NumberHelper::isRomanNumber("ash")); - $this->assertFalse(NumberHelper::isRomanNumber("ASH")); - $this->assertFalse(NumberHelper::isRomanNumber("asd")); - $this->assertFalse(NumberHelper::isRomanNumber("MAD")); - } - - public function testEvaluateStringPluralism() - { - $this->assertEquals("single", NumberHelper::evaluateStringPluralism("999")); - $this->assertEquals("single", NumberHelper::evaluateStringPluralism("MMXVI")); - $this->assertEquals("multiple", NumberHelper::evaluateStringPluralism("3-9")); - $this->assertEquals("multiple", NumberHelper::evaluateStringPluralism("iii-ix")); - $this->assertEquals("multiple", NumberHelper::evaluateStringPluralism("iii & ix")); - //$this->assertEquals("multiple", Number::evaluateStringPluralism("S123–S125")); - } - -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/PageHelperTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/PageHelperTest.php deleted file mode 100644 index a2eb466..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/PageHelperTest.php +++ /dev/null @@ -1,205 +0,0 @@ -chicago = new PageRangeFormats(PageRangeFormats::CHICAGO); - $this->minimal = new PageRangeFormats(PageRangeFormats::MINIMAL); - $this->minimalTwo = new PageRangeFormats(PageRangeFormats::MINIMAL_TWO); - $this->expanded = new PageRangeFormats(PageRangeFormats::EXPANDED); - } - - public function testProcessPageRangeFormatsChicago() - { - $this->assertEquals( - "3-10", - PageHelper::processPageRangeFormats( - explode("-","3-10"), - $this->chicago - ) - ); - - $this->assertEquals("71-72", - PageHelper::processPageRangeFormats( - explode("-", "71-72"), - $this->chicago - ) - ); - - $this->assertEquals("100-104", - PageHelper::processPageRangeFormats( - explode("-", "100-104"), - $this->chicago - ) - ); - - $this->assertEquals("1100-1123", - PageHelper::processPageRangeFormats( - explode("-", "1100-1123"), - $this->chicago - ) - ); - - $this->assertEquals("107-8", - PageHelper::processPageRangeFormats( - explode("-", "107-108"), - $this->chicago - ) - ); - - $this->assertEquals("505-17", - PageHelper::processPageRangeFormats( - explode("-", "505-517"), - $this->chicago - ) - ); - - $this->assertEquals("1002-6", - PageHelper::processPageRangeFormats( - explode("-", "1002-1006"), - $this->chicago - ) - ); - - $this->assertEquals("321-25", - PageHelper::processPageRangeFormats( - explode("-", "321-325"), - $this->chicago - ) - ); - - $this->assertEquals("415-532", - PageHelper::processPageRangeFormats( - explode("-", "415-532"), - $this->chicago - ) - ); - - $this->assertEquals("11564-68", - PageHelper::processPageRangeFormats( - explode("-", "11564-11568"), - $this->chicago - ) - ); - - $this->assertEquals("13792-803", - PageHelper::processPageRangeFormats( - explode("-", "13792-13803"), - $this->chicago - ) - ); - - $this->assertEquals("1496-1504", - PageHelper::processPageRangeFormats( - explode("-", "1496-1504"), - $this->chicago - ) - ); - - $this->assertEquals("2787-2816", - PageHelper::processPageRangeFormats( - explode("-", "2787-2816"), - $this->chicago - ) - ); - } - - public function testProcessPageRangeFormatsExpanded() - { - $this->assertEquals( - "42-45", - PageHelper::processPageRangeFormats( - explode("-","42-45"), - $this->expanded - ) - ); - - $this->assertEquals("321-328", - PageHelper::processPageRangeFormats( - explode("-", "321-328"), - $this->expanded - ) - ); - - $this->assertEquals( - "2787-2816", - PageHelper::processPageRangeFormats( - explode("-","2787-2816"), - $this->expanded - ) - ); - } - - public function testProcessPageRangeFormatsMinimal() - { - $this->assertEquals( - "42-5", - PageHelper::processPageRangeFormats( - explode("-","42-45"), - $this->minimal - ) - ); - - $this->assertEquals( - "321-8", - PageHelper::processPageRangeFormats( - explode("-","321-328"), - $this->minimal - ) - ); - - $this->assertEquals( - "2787-816", - PageHelper::processPageRangeFormats( - explode("-","2787-2816"), - $this->minimal - ) - ); - } - - public function testProcessPageRangeFormatsMinimalTwo() - { - $this->assertEquals( - "42-45", - PageHelper::processPageRangeFormats( - explode("-","42-45"), - $this->minimalTwo - ) - ); - - $this->assertEquals( - "342-51", - PageHelper::processPageRangeFormats( - explode("-","342-351"), - $this->minimalTwo - ) - ); - } - - public function testPageRangeFormatCitationChicago() - { - $this->_testRenderTestSuite("page_ChicagoAuthorDateLooping"); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/StringHelperTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/StringHelperTest.php deleted file mode 100644 index 733d07f..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/tests/src/Seboettg/CiteProc/Util/StringHelperTest.php +++ /dev/null @@ -1,75 +0,0 @@ - - */ -class StringHelperTest extends TestCase -{ - - public function testCamelCase2Hyphen() - { - $this->assertEquals("lower-camel-case", StringHelper::camelCase2Hyphen("lowerCamelCase")); - $this->assertEquals("upper-camel-case", StringHelper::camelCase2Hyphen("UpperCamelCase")); - $this->assertEquals("up-per-cam-el-ca-se", StringHelper::camelCase2Hyphen("Up-perCam-elCa-se")); - } - - public function testCheckUpperCase() - { - $this->assertTrue(StringHelper::checkUpperCaseString("HALLO WELT")); - $this->assertFalse(StringHelper::checkUpperCaseString("hallo welt")); - $this->assertTrue(StringHelper::checkUpperCaseString("ÄTHIOPIEN")); - $this->assertFalse(StringHelper::checkUpperCaseString("äTHIOPIEN")); - } - - public function testCheckLowerCase() - { - $this->assertFalse(StringHelper::checkLowerCaseString("HALLO WELT")); - $this->assertTrue(StringHelper::checkLowerCaseString("hallo welt")); - $this->assertFalse(StringHelper::checkLowerCaseString("Äthiopien")); - $this->assertTrue(StringHelper::checkLowerCaseString("äthiopien")); - } - - public function testReplaceOuterQuotes() - { - $string = "Getting Property Right: “Informal” Mortgages in the Japanese Courts"; - $actual = StringHelper::replaceOuterQuotes($string, "“", "”", "‘", "’"); - $this->assertEquals("Getting Property Right: ‘Informal’ Mortgages in the Japanese Courts", $actual); - - $string = "Getting Property Right: \"Informal\" Mortgages in the Japanese Courts"; - $actual = StringHelper::replaceOuterQuotes($string, "\"", "\"", "‘", "’"); - $this->assertEquals("Getting Property Right: ‘Informal’ Mortgages in the Japanese Courts", $actual); - } - - public function testIsLatinString() - { - $this->assertFalse(StringHelper::isLatinString("栄我妻")); - $this->assertFalse(StringHelper::isLatinString("栄我 妻")); - $this->assertFalse(StringHelper::isLatinString("栄我妻 Hello World.!¡")); - $this->assertTrue(StringHelper::isLatinString("Hello World")); - $this->assertFalse(StringHelper::isLatinString("АаБбВвГг")); - $this->assertFalse(StringHelper::isLatinString("HАllo")); - } - - public function testIsCyrillicString() - { - $this->assertFalse(StringHelper::isCyrillicString("栄我妻")); - $this->assertFalse(StringHelper::isCyrillicString("栄我 妻")); - $this->assertFalse(StringHelper::isCyrillicString("Hallo Welt оформления")); - $this->assertTrue(StringHelper::isCyrillicString("Пример чиком. : чиком!")); - $this->assertFalse(StringHelper::isCyrillicString("Nicht")); - $this->assertFalse(StringHelper::isCyrillicString("пеpеводчиком")); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/vendorPath.php b/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/vendorPath.php deleted file mode 100644 index 821345c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/citeproc-php/vendorPath.php +++ /dev/null @@ -1,26 +0,0 @@ - "cc", - "b" => "bb", - "a" => "aa" -]); -``` - -Get elements - -```php - -for ($i = 0; $i < $list->count(); ++$i) { - echo $list->get($i)." "; -} -``` -This will output: -```bash -a c h k j -``` - -ArrayList implements the ArrayAccess interface, so you can also access elements in an instance of ArrayList in exactly the same way as you access an element in arrays: - -```php - -for ($i = 0; $i < $list->count(); ++$i) { - echo $list[$i]." "; -} -``` - -Iterate ArrayList using foreach - -```php -foreach ($map as $key => $value) { - echo "[".$key."] => ".$value."\n"; -} -``` -Output: -```bash -c => cc -b => bb -a => aa -``` - -Set, add or append Elements - -```php -//set element -$map->set("d", "dd"); -//or -$map["d"] = "dd"; - -//add element -$map->add("d", "ddd") -print_r($map[$d]); -/* -output: -Array( - 0 => "dd", - 1 => "ddd" -) -*/ - -$list->append("z"); //append to the end of $list - -``` - -remove, replace, clear - -```php -$map->remove("d"); //removes d from $map - -$list->replace(["z", "y", "x"]); //replaces all elements by the specified - -$list->clear(); //removes all elements of the list -``` - - -### Advanced Usage ### -#### Sorting an ArrayList #### -Implement the Comparable interface -```php -attribute1 = $attribute1; - $this->attribute2 = $attribute2; - } - - // getter - public function getAttribute1() { return $this->attribute1; } - public function getAttribute2() { return $this->attribute2; } - - //compareTo function - public function compareTo(Comparable $b) - { - return strcmp($this->attribute1, $b->getAttribute1()); - } -} -``` - -Create a comparator class - -```php -sortingOrder === Comparator::ORDER_ASC) { - return $a->compareTo($b); - } - return $b->compareTo($a); - } -} -``` - -Sort your list - -```php -getAttribute1(), $this->customOrder) >= array_search($b->getAttribute1(), $this->customOrder)) ? 1 : -1; - } -} - -$list = new ArrayList([ - new Element("a", "aa"), - new Element("b", "bb"), - new Element("c", "cc"), - new Element("k", "kk"), - new Element("d", "dd"), -]); - -Collections::sort( - $list, new MyCustomOrderComparator(Comparator::ORDER_CUSTOM, ["d", "k", "a", "b", "c"]) -); - -``` - -#### filter your list #### - -```php -$list = new ArrayList([ - new Element("a", "aa"), - new Element("b", "bb"), - new Element("c", "cc"), - new Element("k", "kk"), - new Element("d", "dd"), -]); - -$newList = $list->filterByKeys([0, 2]); //returns new list containing 1st and 3rd element of $list -``` - -#### custom filter #### -```php -$list = new ArrayList([ - new Element("a", "aa"), - new Element("b", "bb"), - new Element("c", "cc"), - new Element("k", "kk"), - new Element("d", "dd"), -]); - -$arrayList = $list->filter(function (Element $elem) { - return $elem->getAttribute2() === 'bb' || $elem->getAttribute2() === 'kk'; -}); - -// $arrayList contains just the 2nd and the 4th element of $list - -``` -## Contribution ## -Fork this Repo and feel free to contribute your ideas using pull requests. diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/bootstrap.php b/modules/dkan_sci_citation/includes/vendor/seboettg/collection/bootstrap.php deleted file mode 100644 index fd349ea..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/bootstrap.php +++ /dev/null @@ -1,3 +0,0 @@ - - - - - - - - - - tests/Seboettg/Collection/Test - - - - - - ./src - - ./vendor - ./tests - - - - - diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/ArrayList.php b/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/ArrayList.php deleted file mode 100644 index 1cb3628..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/ArrayList.php +++ /dev/null @@ -1,306 +0,0 @@ - - * You may use, distribute and modify this code under the - * terms of the MIT license. - * - * You should have received a copy of the MIT license with - * this file. If not, please visit: https://opensource.org/licenses/mit-license.php - */ - -namespace Seboettg\Collection; - -/** - * ArrayList is a useful wrapper class for an array, similar to Java's ArrayList - * @package Seboettg\Collection - * - * @author Sebastian Böttger - */ -class ArrayList implements Collection -{ - - /** - * internal array - * - * @var array - */ - protected $array; - - /** - * ArrayList constructor. - * @param array $data - */ - public function __construct(array $data = []) - { - $this->array = $data; - } - - /** - * flush array list - * - * @return $this - */ - public function clear() - { - $this->array = []; - return $this; - } - - /** - * returns element with key $key - * @param $key - * @return mixed|null - */ - public function get($key) - { - return isset($this->array[$key]) ? $this->array[$key] : null; - } - - /** - * Returns the value of the array element that's currently being pointed to by the - * internal pointer. It does not move the pointer in any way. If the - * internal pointer points beyond the end of the elements list or the array is - * empty, current returns false. - * - * @return mixed|false - */ - public function current() - { - return current($this->array); - } - - /** - * Advance the internal array pointer of an array. - * Returns the array value in the next place that's pointed to by the - * internal array pointer, or false if there are no more elements. - * - * @return mixed|false - */ - public function next() - { - return next($this->array); - } - - /** - * Rewind the internal array pointer. - * Returns the array value in the previous place that's pointed to by - * the internal array pointer, or false if there are no more - * - * @return mixed|false - */ - public function prev() - { - return prev($this->array); - } - - /** - * Inserts or replaces the element at the specified position in this list with the specified element. - * - * @param $key - * @param $element - * @return $this - */ - public function set($key, $element) - { - $this->array[$key] = $element; - return $this; - } - - /** - * overrides contents of ArrayList with the contents of $array - * @param array $array - * @return $this - */ - public function setArray(array $array) - { - return $this->replace($array); - } - - /** - * Appends the specified element to the end of this list. - * - * @param $element - * @return $this - */ - public function append($element) - { - $this->array[] = $element; - return $this; - } - - /** - * Inserts the specified element at the specified position in this list. If an other element already exist at the - * specified position the affected positions will transformed into a numerated array. As well the existing element - * as the specified element will be appended to this array. - * - * @param $key - * @param $element - * @return $this - */ - public function add($key, $element) - { - - if (!array_key_exists($key, $this->array)) { - $this->array[$key] = $element; - } elseif (is_array($this->array[$key])) { - $this->array[$key][] = $element; - } else { - $this->array[$key] = [$this->array[$key], $element]; - } - - return $this; - } - - /** - * Removes the element at the specified position in this list. - * - * @param $key - * @return $this - */ - public function remove($key) - { - unset($this->array[$key]); - return $this; - } - - /** - * Returns true if an element exists on the specified position. - * - * @param mixed $key - * @return bool - */ - public function hasKey($key) - { - return array_key_exists($key, $this->array); - } - - /** - * Returns true if the specified value exists in this list. Uses PHP's array_search function - * @link http://php.net/manual/en/function.array-search.php - * - * @param string $value - * - * @return mixed - */ - public function hasValue($value) - { - $result = array_search($value, $this->array, true); - return ($result !== false); - } - - /** - * replaces this list by the specified array - * @param array $data - * - * @return ArrayList - */ - public function replace(array $data) - { - $this->array = $data; - return $this; - } - - /** - * {@inheritDoc} - */ - public function getIterator() - { - return new \ArrayIterator($this->array); - } - - /** - * Offset to retrieve - * @link http://php.net/manual/en/arrayaccess.offsetget.php - * @param mixed $offset The offset to retrieve. - * - * @return mixed Can return all value types. - */ - public function offsetGet($offset) - { - return isset($this->array[$offset]) ? $this->array[$offset] : null; - } - - /** - * Offset to set - * @link http://php.net/manual/en/arrayaccess.offsetset.php - * @param mixed $offset The offset to assign the value to. - * @param mixed $value The value to set. - */ - public function offsetSet($offset, $value) - { - $this->array[$offset] = $value; - } - - /** - * Whether a offset exists - * @link http://php.net/manual/en/arrayaccess.offsetexists.php - * - * @param mixed $offset - * @return bool - */ - public function offsetExists($offset) - { - return isset($this->array[$offset]); - } - - /** - * Offset to unset - * @link http://php.net/manual/en/arrayaccess.offsetunset.php - * @param mixed $offset The offset to unset. - */ - public function offsetUnset($offset) - { - unset($this->array[$offset]); - } - - /** - * {@inheritDoc} - */ - public function toArray() - { - return $this->array; - } - - /** - * {@inheritDoc} - */ - public function count() - { - return count($this->array); - } - - /** - * Shuffles this list (randomizes the order of the elements in). It uses the PHP function shuffle - * @see http://php.net/manual/en/function.shuffle.php - * @return $this - */ - public function shuffle() { - shuffle($this->array); - return $this; - } - - /** - * returns a clone of this ArrayList, filtered by the given closure function - * @param \Closure $closure - * @return ArrayList - */ - public function filter(\Closure $closure) - { - return new self(array_filter($this->array, $closure)); - } - - /** - * returns a clone of this ArrayList, filtered by the given array keys - * @param array $keys - * @return ArrayList - */ - public function filterByKeys(array $keys) - { - return new ArrayList( - array_filter($this->array, function($key) use ($keys) { - return array_search($key, $keys) !== false; - }, ARRAY_FILTER_USE_KEY) - ); - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Collection.php b/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Collection.php deleted file mode 100644 index a364e00..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Collection.php +++ /dev/null @@ -1,23 +0,0 @@ - - * You may use, distribute and modify this code under the - * terms of the MIT license. - * - * You should have received a copy of the MIT license with - * this file. If not, please visit: https://opensource.org/licenses/mit-license.php - */ - -namespace Seboettg\Collection; - -/** - * Wrapper Interface for \ArrayAccess, \IteratorAggregate, \Countable, ToArrayInterface - * @package Seboettg\Collection - * - * @author Sebastian Böttger - */ -interface Collection extends \ArrayAccess, \IteratorAggregate, \Countable, ToArrayInterface -{ - -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Collections.php b/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Collections.php deleted file mode 100644 index 4830aa7..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Collections.php +++ /dev/null @@ -1,29 +0,0 @@ - - */ -class Collections -{ - /** - * Sorts the specified list according to the order induced by the specified comparator. All elements in the list - * must be mutually comparable. - * - * @param ArrayList $list - * @param Comparator $comparator - * @return ArrayList - */ - public static function sort(ArrayList &$list, Comparator $comparator) - { - $array = $list->toArray(); - usort($array, [$comparator, "compare"]); - $list->replace($array); - return $list; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Comparable.php b/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Comparable.php deleted file mode 100644 index 6fa8a22..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Comparable.php +++ /dev/null @@ -1,37 +0,0 @@ - - * You may use, distribute and modify this code under the - * terms of the MIT license. - * - * You should have received a copy of the MIT license with - * this file. If not, please visit: https://opensource.org/licenses/mit-license.php - */ - -namespace Seboettg\Collection; - -/** - * Comparable Interface for elements as part of an ArrayList. - * - * This interface imposes a total ordering on the objects of each class that implements it. This ordering is referred - * to as the class's natural ordering, and the class's compareTo method is referred to as its natural comparison method. - * - * @package Seboettg\Collection - * - * @author Sebastian Böttger - */ -interface Comparable { - - /** - * Compares this object with the specified object for order. Returns a negative integer, zero, or a positive - * integer as this object is less than, equal to, or greater than the specified object. - * - * The implementor must ensure sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) for all x and y. - * - * @param Comparable $b - * @return int - */ - public function compareTo(Comparable $b); - -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Comparator.php b/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Comparator.php deleted file mode 100644 index 01871b2..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/Comparator.php +++ /dev/null @@ -1,74 +0,0 @@ - - * You may use, distribute and modify this code under the - * terms of the MIT license. - * - * You should have received a copy of the MIT license with - * this file. If not, please visit: https://opensource.org/licenses/mit-license.php - */ - -namespace Seboettg\Collection; - -/** - * Abstract class Comparator. If extending this class the compare function must be implemented. compare() is a - * comparison function, which imposes a total ordering on some collection of objects. Comparators can be passed to a - * sort method to allow precise control over the sort order. - * - * @package Seboettg\Collection - * - * @author Sebastian Böttger - */ -abstract class Comparator -{ - - /** - * static constant for sorting order ascending - */ - const ORDER_ASC = "ASC"; - - /** - * static constant for sorting order descending - */ - const ORDER_DESC = "DESC"; - - /** - * static constant for a custom sorting order - */ - const ORDER_CUSTOM = "CUSTOM"; - - /** - * defines the order (ascending|descending) for a comparison - * - * @var string - */ - protected $sortingOrder; - - /** - * object/array which can be used to define a custom order - * @var mixed - */ - protected $customOrder; - - /** - * Comparator constructor. - * @param string $sortingOrder defines the order (ascending|descending) for a comparison - * @param mixed $customOrder - */ - public function __construct($sortingOrder = self::ORDER_ASC, $customOrder = null) - { - $this->sortingOrder = $sortingOrder; - $this->customOrder = $customOrder; - } - - /** - * Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first - * argument is less than, equal to, or greater than the second. - * - * @param Comparable $a - * @param Comparable $b - * @return int - */ - public abstract function compare(Comparable $a, Comparable $b); -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/ToArrayInterface.php b/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/ToArrayInterface.php deleted file mode 100644 index 2b8fc2e..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/src/Seboettg/Collection/ToArrayInterface.php +++ /dev/null @@ -1,30 +0,0 @@ - - * You may use, distribute and modify this code under the - * terms of the MIT license. - * - * You should have received a copy of the MIT license with - * this file. If not, please visit: https://opensource.org/licenses/mit-license.php - */ - -namespace Seboettg\Collection; - -/** - * - * ToArrayInterface - * - * @package Seboettg\Collection - * - * @author Sebastian Böttger - */ -interface ToArrayInterface -{ - /** - * Get the array representation of an object - * - * @return array - */ - public function toArray(); -} diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/tests/Seboettg/Collection/Test/ArrayListTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/collection/tests/Seboettg/Collection/Test/ArrayListTest.php deleted file mode 100644 index 2e9bef5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/tests/Seboettg/Collection/Test/ArrayListTest.php +++ /dev/null @@ -1,318 +0,0 @@ - - * You may use, distribute and modify this code under the - * terms of the MIT license. - * - * You should have received a copy of the MIT license with - * this file. If not, please visit: https://opensource.org/licenses/mit-license.php - */ - -namespace Seboettg\Collection\Test; - -use PHPUnit\Framework\TestCase; -use Seboettg\Collection\ArrayList; -use Seboettg\Collection\Comparable; - -class ArrayListTest extends TestCase -{ - - /** - * @var ArrayList - */ - private $numeratedArrayList; - - /** - * @var ArrayList - */ - private $hashMap; - - - public function setUp() - { - $this->numeratedArrayList = new ArrayList([ - new Element("a", "aa"), - new Element("b", "bb"), - new Element("c", "cc"), - new Element("k", "kk"), - new Element("d", "dd"), - ]); - - $this->hashMap = new ArrayList([ - "c" => new Element("c"), - "a" => new Element("a"), - "h" => new Element("h"), - ]); - } - - public function testCurrent() - { - $this->assertTrue($this->numeratedArrayList->current()->getAttr2() === "aa"); - $arrayList = new ArrayList(); - $this->assertFalse($arrayList->current()); - } - - public function testNext() - { - $this->assertTrue($this->numeratedArrayList->next()->getAttr2() === "bb"); - } - - public function testPrev() - { - $this->numeratedArrayList->next(); - $this->assertEquals($this->numeratedArrayList->prev()->getAttr2(), "aa"); - $this->assertFalse($this->numeratedArrayList->prev()); - } - - public function testAppend() - { - $i = $this->numeratedArrayList->count(); - $this->numeratedArrayList->append(new Element("3", "33")); - $j = $this->numeratedArrayList->count(); - $this->assertEquals($i + 1, $j); - $this->assertEquals("3", $this->numeratedArrayList->toArray()[$i]->getAttr1()); - } - - public function testSet() - { - $this->hashMap->set("c", new Element("ce")); - $this->assertEquals("ce", $this->hashMap->toArray()['c']->getAttr1()); - } - - public function testCompareTo() - { - $arr = $this->hashMap->toArray(); - usort($arr, function (Comparable $a, Comparable $b) { - return $a->compareTo($b); - }); - - $this->assertEquals("a", $arr[0]->getAttr1()); - $this->assertEquals("c", $arr[1]->getAttr1()); - $this->assertEquals("h", $arr[2]->getAttr1()); - } - - public function testReplace() - { - $this->hashMap->replace($this->numeratedArrayList->toArray()); - $keys = array_keys($this->hashMap->toArray()); - foreach ($keys as $key) { - $this->assertInternalType("int", $key); - $this->assertNotEmpty($this->hashMap->get($key)); - } - } - - public function testClear() - { - $this->assertTrue($this->hashMap->count() > 0); - $this->assertEquals(0, $this->hashMap->clear()->count()); - } - - public function testSetArray() - { - $this->hashMap->setArray($this->numeratedArrayList->toArray()); - $keys = array_keys($this->hashMap->toArray()); - foreach ($keys as $key) { - $this->assertInternalType("int", $key); - $this->assertNotEmpty($this->hashMap->get($key)); - } - } - - public function testShuffle() - { - $arr = $this->numeratedArrayList->toArray(); - usort($arr, function (Comparable $a, Comparable $b) { - return $a->compareTo($b); - }); - $this->numeratedArrayList->replace($arr); - for ($i = 0; $i < $this->numeratedArrayList->count() - 1; ++$i) { - $lte = ($this->numeratedArrayList->get($i)->getAttr1() <= $this->numeratedArrayList->get($i + 1)->getAttr1()); - if (!$lte) { - break; - } - } - //each element on position $i is smaller than or equal to the element on position $i+1 - $this->assertTrue($lte); - $arr1 = $this->numeratedArrayList->toArray(); - - $this->numeratedArrayList->shuffle(); - - $arr2 = $this->numeratedArrayList->toArray(); - - // at least one element has another position as before - for ($i = 0; $i < count($arr); ++$i) { - $equal = ($arr1[$i]->getAttr1() == $arr2[$i]->getAttr1()); - if (!$equal) { - break; - } - } - $this->assertFalse($equal); - } - - - public function testHasKey() - { - $this->assertTrue($this->numeratedArrayList->hasKey(0)); - $this->assertTrue($this->hashMap->hasKey("c")); - } - - public function testHasValue() - { - $list = new ArrayList([ - "a", - "b", - "c" - ]); - - $this->assertTrue($list->hasValue("a")); - } - - public function testGetIterator() - { - $it = $this->numeratedArrayList->getIterator(); - - foreach ($it as $key => $e) { - $this->assertTrue(is_int($key)); - $this->assertInstanceOf("Seboettg\\Collection\\Test\\Element", $e); - } - } - - public function testRemove() - { - $list = new ArrayList([ - "a", - "b", - "c" - ]); - - $list->append("d"); - $this->assertTrue($list->hasValue("d")); - $list->remove(0); - $this->assertFalse($list->hasValue("a")); - } - - public function testOffsetGet() - { - $this->assertNotEmpty($this->numeratedArrayList[0]); - $this->assertEmpty($this->numeratedArrayList[333]); - } - - public function testOffsetSet() - { - $pos = $this->numeratedArrayList->count(); - $this->numeratedArrayList[$pos] = new Element($pos, $pos . $pos); - $arr = $this->numeratedArrayList->toArray(); - $this->assertNotEmpty($arr[$pos]); - $this->assertEquals($pos, $arr[$pos]->getAttr1()); - } - - public function testOffestExist() - { - $this->assertTrue(isset($this->hashMap['a'])); - $this->assertFalse(isset($this->numeratedArrayList[111])); - } - - public function testOffsetUnset() - { - $list = new ArrayList(['a' => 'aa', 'b' => 'bb']); - unset($list['a']); - $this->assertFalse($list->hasKey('a')); - $this->assertTrue($list->hasKey('b')); - } - - public function testAdd() - { - $list = new ArrayList(['a' => 'aa', 'b' => 'bb', 'c' => 'cc']); - $list->add('d', 'dd'); - $this->assertEquals('dd', $list->get('d')); - $list->add('d', 'ddd'); - - $dl = $list->get('d'); - $this->assertTrue(is_array($dl)); - $this->assertEquals('dd', $dl[0]); - $this->assertEquals('ddd', $dl[1]); - } - - public function testFilter() - { - // filter elements that containing values with attr1 'c' or 'h' - $arrayList = $this->hashMap->filter(function (Element $elem) { - return $elem->getAttr1() === 'c' || $elem->getAttr1() === 'h'; - }); - - $this->assertTrue($arrayList->hasKey('c')); - $this->assertTrue($arrayList->hasKey('h')); - $this->assertFalse($arrayList->hasKey('a')); - $this->assertEquals($arrayList->get('c')->getAttr1(), 'c'); - $this->assertEquals($arrayList->get('h')->getAttr1(), 'h'); - } - - public function testFilterByKeys() - { - $arrayList = $this->numeratedArrayList->filterByKeys([0, 3]); - $this->assertFalse($arrayList->hasKey(1)); - $this->assertEquals($arrayList->count(), 2); - $this->assertEquals($arrayList->current()->getAttr1(), "a"); - $this->assertEquals($arrayList->next()->getAttr1(), "k"); - } -} - -class Element implements Comparable -{ - - private $attr1; - - private $attr2; - - public function __construct($attr1, $attr2 = "") - { - $this->attr1 = $attr1; - $this->attr2 = $attr2; - } - - /** - * @return mixed - */ - public function getAttr1() - { - return $this->attr1; - } - - /** - * @param mixed $attr1 - */ - public function setAttr1($attr1) - { - $this->attr1 = $attr1; - } - - /** - * @return mixed - */ - public function getAttr2() - { - return $this->attr2; - } - - /** - * @param mixed $attr2 - */ - public function setAttr2($attr2) - { - $this->attr2 = $attr2; - } - - /** - * Compares this object with the specified object for order. Returns a negative integer, zero, or a positive - * integer as this object is less than, equal to, or greater than the specified object. - * - * The implementor must ensure sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) for all x and y. - * - * @param Comparable $b - * @return int - */ - public function compareTo(Comparable $b) - { - return strcmp($this->attr1, $b->getAttr1()); - } -} \ No newline at end of file diff --git a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/tests/Seboettg/Collection/Test/CollectionsTest.php b/modules/dkan_sci_citation/includes/vendor/seboettg/collection/tests/Seboettg/Collection/Test/CollectionsTest.php deleted file mode 100644 index c5e71f5..0000000 --- a/modules/dkan_sci_citation/includes/vendor/seboettg/collection/tests/Seboettg/Collection/Test/CollectionsTest.php +++ /dev/null @@ -1,110 +0,0 @@ - - * You may use, distribute and modify this code under the - * terms of the MIT license. - * - * You should have received a copy of the MIT license with - * this file. If not, please visit: https://opensource.org/licenses/mit-license.php - */ - -namespace Seboettg\Collection\Test; - -use PHPUnit\Framework\TestCase; -use Seboettg\Collection\ArrayList; -use Seboettg\Collection\Collections; -use Seboettg\Collection\Comparable; -use Seboettg\Collection\Comparator; - -class CollectionsTest extends TestCase -{ - - /** - * @var ArrayList - */ - private $numeratedArrayList; - - public function setUp() - { - $this->numeratedArrayList = new ArrayList([ - new Element("a", "aa"), - new Element("b", "bb"), - new Element("c", "cc"), - new Element("k", "kk"), - new Element("d", "dd"), - ]); - } - - public function testSort() - { - Collections::sort($this->numeratedArrayList, new MyAscendingComparator()); - $arr = $this->numeratedArrayList; - for ($i = 0; $i < $arr->count() - 1; ++$i) { - $lte = (ord($arr[$i]->getAttr1()) <= ord($arr[$i++]->getAttr1())); - if (!$lte) { - break; - } - } - $this->assertTrue($lte); - } - - public function testSortCustomOrder() - { - $order = ["d", "k", "a", "b", "c"]; - Collections::sort($this->numeratedArrayList, new MyCustomOrderComparator(Comparator::ORDER_CUSTOM, $order)); - for ($i = 0; $i < count($order); ++$i) { - $this->assertTrue($order[$i] === $this->numeratedArrayList->get($i)->getAttr1()); - } - } - -} - -class MyAscendingComparator extends Comparator -{ - /** - * Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first - * argument is less than, equal to, or greater than the second. - * - * @param Comparable $a - * @param Comparable $b - * @return int - */ - public function compare(Comparable $a, Comparable $b) - { - return $a->compareTo($b); - } -} - -class MyDescendingComparator extends Comparator -{ - /** - * Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first - * argument is less than, equal to, or greater than the second. - * - * @param Comparable $a - * @param Comparable $b - * @return int - */ - public function compare(Comparable $a, Comparable $b) - { - return $b->compareTo($a); - } -} - -class MyCustomOrderComparator extends Comparator -{ - - /** - * Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first - * argument is less than, equal to, or greater than the second. - * - * @param Comparable $a - * @param Comparable $b - * @return int - */ - public function compare(Comparable $a, Comparable $b) - { - return (array_search($a->getAttr1(), $this->customOrder) >= array_search($b->getAttr1(), $this->customOrder)) ? 1 : -1; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/LICENSE b/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/LICENSE deleted file mode 100644 index 24fa32c..0000000 --- a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2015-2018 Fabien Potencier - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Mbstring.php b/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Mbstring.php deleted file mode 100644 index 67cf9ab..0000000 --- a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Mbstring.php +++ /dev/null @@ -1,791 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Polyfill\Mbstring; - -/** - * Partial mbstring implementation in PHP, iconv based, UTF-8 centric. - * - * Implemented: - * - mb_chr - Returns a specific character from its Unicode code point - * - mb_convert_encoding - Convert character encoding - * - mb_convert_variables - Convert character code in variable(s) - * - mb_decode_mimeheader - Decode string in MIME header field - * - mb_encode_mimeheader - Encode string for MIME header XXX NATIVE IMPLEMENTATION IS REALLY BUGGED - * - mb_decode_numericentity - Decode HTML numeric string reference to character - * - mb_encode_numericentity - Encode character to HTML numeric string reference - * - mb_convert_case - Perform case folding on a string - * - mb_detect_encoding - Detect character encoding - * - mb_get_info - Get internal settings of mbstring - * - mb_http_input - Detect HTTP input character encoding - * - mb_http_output - Set/Get HTTP output character encoding - * - mb_internal_encoding - Set/Get internal character encoding - * - mb_list_encodings - Returns an array of all supported encodings - * - mb_ord - Returns the Unicode code point of a character - * - mb_output_handler - Callback function converts character encoding in output buffer - * - mb_scrub - Replaces ill-formed byte sequences with substitute characters - * - mb_strlen - Get string length - * - mb_strpos - Find position of first occurrence of string in a string - * - mb_strrpos - Find position of last occurrence of a string in a string - * - mb_strtolower - Make a string lowercase - * - mb_strtoupper - Make a string uppercase - * - mb_substitute_character - Set/Get substitution character - * - mb_substr - Get part of string - * - mb_stripos - Finds position of first occurrence of a string within another, case insensitive - * - mb_stristr - Finds first occurrence of a string within another, case insensitive - * - mb_strrchr - Finds the last occurrence of a character in a string within another - * - mb_strrichr - Finds the last occurrence of a character in a string within another, case insensitive - * - mb_strripos - Finds position of last occurrence of a string within another, case insensitive - * - mb_strstr - Finds first occurrence of a string within anothers - * - mb_strwidth - Return width of string - * - mb_substr_count - Count the number of substring occurrences - * - * Not implemented: - * - mb_convert_kana - Convert "kana" one from another ("zen-kaku", "han-kaku" and more) - * - mb_ereg_* - Regular expression with multibyte support - * - mb_parse_str - Parse GET/POST/COOKIE data and set global variable - * - mb_preferred_mime_name - Get MIME charset string - * - mb_regex_encoding - Returns current encoding for multibyte regex as string - * - mb_regex_set_options - Set/Get the default options for mbregex functions - * - mb_send_mail - Send encoded mail - * - mb_split - Split multibyte string using regular expression - * - mb_strcut - Get part of string - * - mb_strimwidth - Get truncated string with specified width - * - * @author Nicolas Grekas - * - * @internal - */ -final class Mbstring -{ - const MB_CASE_FOLD = PHP_INT_MAX; - - private static $encodingList = array('ASCII', 'UTF-8'); - private static $language = 'neutral'; - private static $internalEncoding = 'UTF-8'; - private static $caseFold = array( - array('µ','ſ',"\xCD\x85",'ς',"\xCF\x90","\xCF\x91","\xCF\x95","\xCF\x96","\xCF\xB0","\xCF\xB1","\xCF\xB5","\xE1\xBA\x9B","\xE1\xBE\xBE"), - array('μ','s','ι', 'σ','β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1",'ι'), - ); - - public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null) - { - if (is_array($fromEncoding) || false !== strpos($fromEncoding, ',')) { - $fromEncoding = self::mb_detect_encoding($s, $fromEncoding); - } else { - $fromEncoding = self::getEncoding($fromEncoding); - } - - $toEncoding = self::getEncoding($toEncoding); - - if ('BASE64' === $fromEncoding) { - $s = base64_decode($s); - $fromEncoding = $toEncoding; - } - - if ('BASE64' === $toEncoding) { - return base64_encode($s); - } - - if ('HTML-ENTITIES' === $toEncoding || 'HTML' === $toEncoding) { - if ('HTML-ENTITIES' === $fromEncoding || 'HTML' === $fromEncoding) { - $fromEncoding = 'Windows-1252'; - } - if ('UTF-8' !== $fromEncoding) { - $s = iconv($fromEncoding, 'UTF-8//IGNORE', $s); - } - - return preg_replace_callback('/[\x80-\xFF]+/', array(__CLASS__, 'html_encoding_callback'), $s); - } - - if ('HTML-ENTITIES' === $fromEncoding) { - $s = html_entity_decode($s, ENT_COMPAT, 'UTF-8'); - $fromEncoding = 'UTF-8'; - } - - return iconv($fromEncoding, $toEncoding.'//IGNORE', $s); - } - - public static function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) - { - $vars = array(&$a, &$b, &$c, &$d, &$e, &$f); - - $ok = true; - array_walk_recursive($vars, function (&$v) use (&$ok, $toEncoding, $fromEncoding) { - if (false === $v = Mbstring::mb_convert_encoding($v, $toEncoding, $fromEncoding)) { - $ok = false; - } - }); - - return $ok ? $fromEncoding : false; - } - - public static function mb_decode_mimeheader($s) - { - return iconv_mime_decode($s, 2, self::$internalEncoding); - } - - public static function mb_encode_mimeheader($s, $charset = null, $transferEncoding = null, $linefeed = null, $indent = null) - { - trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', E_USER_WARNING); - } - - public static function mb_decode_numericentity($s, $convmap, $encoding = null) - { - if (null !== $s && !is_scalar($s) && !(is_object($s) && method_exists($s, '__toString'))) { - trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.gettype($s).' given', E_USER_WARNING); - return null; - } - - if (!is_array($convmap) || !$convmap) { - return false; - } - - if (null !== $encoding && !is_scalar($encoding)) { - trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.gettype($s).' given', E_USER_WARNING); - return ''; // Instead of null (cf. mb_encode_numericentity). - } - - $s = (string) $s; - if ('' === $s) { - return ''; - } - - $encoding = self::getEncoding($encoding); - - if ('UTF-8' === $encoding) { - $encoding = null; - if (!preg_match('//u', $s)) { - $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s); - } - } else { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); - } - - $cnt = floor(count($convmap) / 4) * 4; - - for ($i = 0; $i < $cnt; $i += 4) { - // collector_decode_htmlnumericentity ignores $convmap[$i + 3] - $convmap[$i] += $convmap[$i + 2]; - $convmap[$i + 1] += $convmap[$i + 2]; - } - - $s = preg_replace_callback('/&#(?:0*([0-9]+)|x0*([0-9a-fA-F]+))(?!&);?/', function (array $m) use ($cnt, $convmap) { - $c = isset($m[2]) ? (int) hexdec($m[2]) : $m[1]; - for ($i = 0; $i < $cnt; $i += 4) { - if ($c >= $convmap[$i] && $c <= $convmap[$i + 1]) { - return Mbstring::mb_chr($c - $convmap[$i + 2]); - } - } - return $m[0]; - }, $s); - - if (null === $encoding) { - return $s; - } - - return iconv('UTF-8', $encoding.'//IGNORE', $s); - } - - public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false) - { - if (null !== $s && !is_scalar($s) && !(is_object($s) && method_exists($s, '__toString'))) { - trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.gettype($s).' given', E_USER_WARNING); - return null; - } - - if (!is_array($convmap) || !$convmap) { - return false; - } - - if (null !== $encoding && !is_scalar($encoding)) { - trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.gettype($s).' given', E_USER_WARNING); - return null; // Instead of '' (cf. mb_decode_numericentity). - } - - if (null !== $is_hex && !is_scalar($is_hex)) { - trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.gettype($s).' given', E_USER_WARNING); - return null; - } - - $s = (string) $s; - if ('' === $s) { - return ''; - } - - $encoding = self::getEncoding($encoding); - - if ('UTF-8' === $encoding) { - $encoding = null; - if (!preg_match('//u', $s)) { - $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s); - } - } else { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); - } - - static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4); - - $cnt = floor(count($convmap) / 4) * 4; - $i = 0; - $len = strlen($s); - $result = ''; - - while ($i < $len) { - $ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"]; - $uchr = substr($s, $i, $ulen); - $i += $ulen; - $c = self::mb_ord($uchr); - - for ($j = 0; $j < $cnt; $j += 4) { - if ($c >= $convmap[$j] && $c <= $convmap[$j + 1]) { - $cOffset = ($c + $convmap[$j + 2]) & $convmap[$j + 3]; - $result .= $is_hex ? sprintf('&#x%X;', $cOffset) : '&#'.$cOffset.';'; - continue 2; - } - } - $result .= $uchr; - } - - if (null === $encoding) { - return $result; - } - - return iconv('UTF-8', $encoding.'//IGNORE', $result); - } - - public static function mb_convert_case($s, $mode, $encoding = null) - { - $s = (string) $s; - if ('' === $s) { - return ''; - } - - $encoding = self::getEncoding($encoding); - - if ('UTF-8' === $encoding) { - $encoding = null; - if (!preg_match('//u', $s)) { - $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s); - } - } else { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); - } - - if (MB_CASE_TITLE == $mode) { - $s = preg_replace_callback('/\b\p{Ll}/u', array(__CLASS__, 'title_case_upper'), $s); - $s = preg_replace_callback('/\B[\p{Lu}\p{Lt}]+/u', array(__CLASS__, 'title_case_lower'), $s); - } else { - if (MB_CASE_UPPER == $mode) { - static $upper = null; - if (null === $upper) { - $upper = self::getData('upperCase'); - } - $map = $upper; - } else { - if (self::MB_CASE_FOLD === $mode) { - $s = str_replace(self::$caseFold[0], self::$caseFold[1], $s); - } - - static $lower = null; - if (null === $lower) { - $lower = self::getData('lowerCase'); - } - $map = $lower; - } - - static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4); - - $i = 0; - $len = strlen($s); - - while ($i < $len) { - $ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"]; - $uchr = substr($s, $i, $ulen); - $i += $ulen; - - if (isset($map[$uchr])) { - $uchr = $map[$uchr]; - $nlen = strlen($uchr); - - if ($nlen == $ulen) { - $nlen = $i; - do { - $s[--$nlen] = $uchr[--$ulen]; - } while ($ulen); - } else { - $s = substr_replace($s, $uchr, $i - $ulen, $ulen); - $len += $nlen - $ulen; - $i += $nlen - $ulen; - } - } - } - } - - if (null === $encoding) { - return $s; - } - - return iconv('UTF-8', $encoding.'//IGNORE', $s); - } - - public static function mb_internal_encoding($encoding = null) - { - if (null === $encoding) { - return self::$internalEncoding; - } - - $encoding = self::getEncoding($encoding); - - if ('UTF-8' === $encoding || false !== @iconv($encoding, $encoding, ' ')) { - self::$internalEncoding = $encoding; - - return true; - } - - return false; - } - - public static function mb_language($lang = null) - { - if (null === $lang) { - return self::$language; - } - - switch ($lang = strtolower($lang)) { - case 'uni': - case 'neutral': - self::$language = $lang; - - return true; - } - - return false; - } - - public static function mb_list_encodings() - { - return array('UTF-8'); - } - - public static function mb_encoding_aliases($encoding) - { - switch (strtoupper($encoding)) { - case 'UTF8': - case 'UTF-8': - return array('utf8'); - } - - return false; - } - - public static function mb_check_encoding($var = null, $encoding = null) - { - if (null === $encoding) { - if (null === $var) { - return false; - } - $encoding = self::$internalEncoding; - } - - return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var); - } - - public static function mb_detect_encoding($str, $encodingList = null, $strict = false) - { - if (null === $encodingList) { - $encodingList = self::$encodingList; - } else { - if (!is_array($encodingList)) { - $encodingList = array_map('trim', explode(',', $encodingList)); - } - $encodingList = array_map('strtoupper', $encodingList); - } - - foreach ($encodingList as $enc) { - switch ($enc) { - case 'ASCII': - if (!preg_match('/[\x80-\xFF]/', $str)) { - return $enc; - } - break; - - case 'UTF8': - case 'UTF-8': - if (preg_match('//u', $str)) { - return 'UTF-8'; - } - break; - - default: - if (0 === strncmp($enc, 'ISO-8859-', 9)) { - return $enc; - } - } - } - - return false; - } - - public static function mb_detect_order($encodingList = null) - { - if (null === $encodingList) { - return self::$encodingList; - } - - if (!is_array($encodingList)) { - $encodingList = array_map('trim', explode(',', $encodingList)); - } - $encodingList = array_map('strtoupper', $encodingList); - - foreach ($encodingList as $enc) { - switch ($enc) { - default: - if (strncmp($enc, 'ISO-8859-', 9)) { - return false; - } - case 'ASCII': - case 'UTF8': - case 'UTF-8': - } - } - - self::$encodingList = $encodingList; - - return true; - } - - public static function mb_strlen($s, $encoding = null) - { - $encoding = self::getEncoding($encoding); - if ('CP850' === $encoding || 'ASCII' === $encoding) { - return strlen($s); - } - - return @iconv_strlen($s, $encoding); - } - - public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) - { - $encoding = self::getEncoding($encoding); - if ('CP850' === $encoding || 'ASCII' === $encoding) { - return strpos($haystack, $needle, $offset); - } - - $needle = (string) $needle; - if ('' === $needle) { - trigger_error(__METHOD__.': Empty delimiter', E_USER_WARNING); - - return false; - } - - return iconv_strpos($haystack, $needle, $offset, $encoding); - } - - public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) - { - $encoding = self::getEncoding($encoding); - if ('CP850' === $encoding || 'ASCII' === $encoding) { - return strrpos($haystack, $needle, $offset); - } - - if ($offset != (int) $offset) { - $offset = 0; - } elseif ($offset = (int) $offset) { - if ($offset < 0) { - $haystack = self::mb_substr($haystack, 0, $offset, $encoding); - $offset = 0; - } else { - $haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding); - } - } - - $pos = iconv_strrpos($haystack, $needle, $encoding); - - return false !== $pos ? $offset + $pos : false; - } - - public static function mb_strtolower($s, $encoding = null) - { - return self::mb_convert_case($s, MB_CASE_LOWER, $encoding); - } - - public static function mb_strtoupper($s, $encoding = null) - { - return self::mb_convert_case($s, MB_CASE_UPPER, $encoding); - } - - public static function mb_substitute_character($c = null) - { - if (0 === strcasecmp($c, 'none')) { - return true; - } - - return null !== $c ? false : 'none'; - } - - public static function mb_substr($s, $start, $length = null, $encoding = null) - { - $encoding = self::getEncoding($encoding); - if ('CP850' === $encoding || 'ASCII' === $encoding) { - return substr($s, $start, null === $length ? 2147483647 : $length); - } - - if ($start < 0) { - $start = iconv_strlen($s, $encoding) + $start; - if ($start < 0) { - $start = 0; - } - } - - if (null === $length) { - $length = 2147483647; - } elseif ($length < 0) { - $length = iconv_strlen($s, $encoding) + $length - $start; - if ($length < 0) { - return ''; - } - } - - return (string) iconv_substr($s, $start, $length, $encoding); - } - - public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) - { - $haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding); - $needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding); - - return self::mb_strpos($haystack, $needle, $offset, $encoding); - } - - public static function mb_stristr($haystack, $needle, $part = false, $encoding = null) - { - $pos = self::mb_stripos($haystack, $needle, 0, $encoding); - - return self::getSubpart($pos, $part, $haystack, $encoding); - } - - public static function mb_strrchr($haystack, $needle, $part = false, $encoding = null) - { - $encoding = self::getEncoding($encoding); - if ('CP850' === $encoding || 'ASCII' === $encoding) { - return strrchr($haystack, $needle, $part); - } - $needle = self::mb_substr($needle, 0, 1, $encoding); - $pos = iconv_strrpos($haystack, $needle, $encoding); - - return self::getSubpart($pos, $part, $haystack, $encoding); - } - - public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null) - { - $needle = self::mb_substr($needle, 0, 1, $encoding); - $pos = self::mb_strripos($haystack, $needle, $encoding); - - return self::getSubpart($pos, $part, $haystack, $encoding); - } - - public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) - { - $haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding); - $needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding); - - return self::mb_strrpos($haystack, $needle, $offset, $encoding); - } - - public static function mb_strstr($haystack, $needle, $part = false, $encoding = null) - { - $pos = strpos($haystack, $needle); - if (false === $pos) { - return false; - } - if ($part) { - return substr($haystack, 0, $pos); - } - - return substr($haystack, $pos); - } - - public static function mb_get_info($type = 'all') - { - $info = array( - 'internal_encoding' => self::$internalEncoding, - 'http_output' => 'pass', - 'http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)', - 'func_overload' => 0, - 'func_overload_list' => 'no overload', - 'mail_charset' => 'UTF-8', - 'mail_header_encoding' => 'BASE64', - 'mail_body_encoding' => 'BASE64', - 'illegal_chars' => 0, - 'encoding_translation' => 'Off', - 'language' => self::$language, - 'detect_order' => self::$encodingList, - 'substitute_character' => 'none', - 'strict_detection' => 'Off', - ); - - if ('all' === $type) { - return $info; - } - if (isset($info[$type])) { - return $info[$type]; - } - - return false; - } - - public static function mb_http_input($type = '') - { - return false; - } - - public static function mb_http_output($encoding = null) - { - return null !== $encoding ? 'pass' === $encoding : 'pass'; - } - - public static function mb_strwidth($s, $encoding = null) - { - $encoding = self::getEncoding($encoding); - - if ('UTF-8' !== $encoding) { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); - } - - $s = preg_replace('/[\x{1100}-\x{115F}\x{2329}\x{232A}\x{2E80}-\x{303E}\x{3040}-\x{A4CF}\x{AC00}-\x{D7A3}\x{F900}-\x{FAFF}\x{FE10}-\x{FE19}\x{FE30}-\x{FE6F}\x{FF00}-\x{FF60}\x{FFE0}-\x{FFE6}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}]/u', '', $s, -1, $wide); - - return ($wide << 1) + iconv_strlen($s, 'UTF-8'); - } - - public static function mb_substr_count($haystack, $needle, $encoding = null) - { - return substr_count($haystack, $needle); - } - - public static function mb_output_handler($contents, $status) - { - return $contents; - } - - public static function mb_chr($code, $encoding = null) - { - if (0x80 > $code %= 0x200000) { - $s = chr($code); - } elseif (0x800 > $code) { - $s = chr(0xC0 | $code >> 6).chr(0x80 | $code & 0x3F); - } elseif (0x10000 > $code) { - $s = chr(0xE0 | $code >> 12).chr(0x80 | $code >> 6 & 0x3F).chr(0x80 | $code & 0x3F); - } else { - $s = chr(0xF0 | $code >> 18).chr(0x80 | $code >> 12 & 0x3F).chr(0x80 | $code >> 6 & 0x3F).chr(0x80 | $code & 0x3F); - } - - if ('UTF-8' !== $encoding = self::getEncoding($encoding)) { - $s = mb_convert_encoding($s, $encoding, 'UTF-8'); - } - - return $s; - } - - public static function mb_ord($s, $encoding = null) - { - if ('UTF-8' !== $encoding = self::getEncoding($encoding)) { - $s = mb_convert_encoding($s, 'UTF-8', $encoding); - } - - $code = ($s = unpack('C*', substr($s, 0, 4))) ? $s[1] : 0; - if (0xF0 <= $code) { - return (($code - 0xF0) << 18) + (($s[2] - 0x80) << 12) + (($s[3] - 0x80) << 6) + $s[4] - 0x80; - } - if (0xE0 <= $code) { - return (($code - 0xE0) << 12) + (($s[2] - 0x80) << 6) + $s[3] - 0x80; - } - if (0xC0 <= $code) { - return (($code - 0xC0) << 6) + $s[2] - 0x80; - } - - return $code; - } - - private static function getSubpart($pos, $part, $haystack, $encoding) - { - if (false === $pos) { - return false; - } - if ($part) { - return self::mb_substr($haystack, 0, $pos, $encoding); - } - - return self::mb_substr($haystack, $pos, null, $encoding); - } - - private static function html_encoding_callback(array $m) - { - $i = 1; - $entities = ''; - $m = unpack('C*', htmlentities($m[0], ENT_COMPAT, 'UTF-8')); - - while (isset($m[$i])) { - if (0x80 > $m[$i]) { - $entities .= chr($m[$i++]); - continue; - } - if (0xF0 <= $m[$i]) { - $c = (($m[$i++] - 0xF0) << 18) + (($m[$i++] - 0x80) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80; - } elseif (0xE0 <= $m[$i]) { - $c = (($m[$i++] - 0xE0) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80; - } else { - $c = (($m[$i++] - 0xC0) << 6) + $m[$i++] - 0x80; - } - - $entities .= '&#'.$c.';'; - } - - return $entities; - } - - private static function title_case_lower(array $s) - { - return self::mb_convert_case($s[0], MB_CASE_LOWER, 'UTF-8'); - } - - private static function title_case_upper(array $s) - { - return self::mb_convert_case($s[0], MB_CASE_UPPER, 'UTF-8'); - } - - private static function getData($file) - { - if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) { - return require $file; - } - - return false; - } - - private static function getEncoding($encoding) - { - if (null === $encoding) { - return self::$internalEncoding; - } - - $encoding = strtoupper($encoding); - - if ('8BIT' === $encoding || 'BINARY' === $encoding) { - return 'CP850'; - } - if ('UTF8' === $encoding) { - return 'UTF-8'; - } - - return $encoding; - } -} diff --git a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/README.md b/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/README.md deleted file mode 100644 index 342e828..0000000 --- a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/README.md +++ /dev/null @@ -1,13 +0,0 @@ -Symfony Polyfill / Mbstring -=========================== - -This component provides a partial, native PHP implementation for the -[Mbstring](http://php.net/mbstring) extension. - -More information can be found in the -[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md). - -License -======= - -This library is released under the [MIT license](LICENSE). diff --git a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php b/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php deleted file mode 100644 index 3ca1641..0000000 --- a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +++ /dev/null @@ -1,1101 +0,0 @@ - 'a', - 'B' => 'b', - 'C' => 'c', - 'D' => 'd', - 'E' => 'e', - 'F' => 'f', - 'G' => 'g', - 'H' => 'h', - 'I' => 'i', - 'J' => 'j', - 'K' => 'k', - 'L' => 'l', - 'M' => 'm', - 'N' => 'n', - 'O' => 'o', - 'P' => 'p', - 'Q' => 'q', - 'R' => 'r', - 'S' => 's', - 'T' => 't', - 'U' => 'u', - 'V' => 'v', - 'W' => 'w', - 'X' => 'x', - 'Y' => 'y', - 'Z' => 'z', - 'À' => 'à', - 'Á' => 'á', - 'Â' => 'â', - 'Ã' => 'ã', - 'Ä' => 'ä', - 'Å' => 'å', - 'Æ' => 'æ', - 'Ç' => 'ç', - 'È' => 'è', - 'É' => 'é', - 'Ê' => 'ê', - 'Ë' => 'ë', - 'Ì' => 'ì', - 'Í' => 'í', - 'Î' => 'î', - 'Ï' => 'ï', - 'Ð' => 'ð', - 'Ñ' => 'ñ', - 'Ò' => 'ò', - 'Ó' => 'ó', - 'Ô' => 'ô', - 'Õ' => 'õ', - 'Ö' => 'ö', - 'Ø' => 'ø', - 'Ù' => 'ù', - 'Ú' => 'ú', - 'Û' => 'û', - 'Ü' => 'ü', - 'Ý' => 'ý', - 'Þ' => 'þ', - 'Ā' => 'ā', - 'Ă' => 'ă', - 'Ą' => 'ą', - 'Ć' => 'ć', - 'Ĉ' => 'ĉ', - 'Ċ' => 'ċ', - 'Č' => 'č', - 'Ď' => 'ď', - 'Đ' => 'đ', - 'Ē' => 'ē', - 'Ĕ' => 'ĕ', - 'Ė' => 'ė', - 'Ę' => 'ę', - 'Ě' => 'ě', - 'Ĝ' => 'ĝ', - 'Ğ' => 'ğ', - 'Ġ' => 'ġ', - 'Ģ' => 'ģ', - 'Ĥ' => 'ĥ', - 'Ħ' => 'ħ', - 'Ĩ' => 'ĩ', - 'Ī' => 'ī', - 'Ĭ' => 'ĭ', - 'Į' => 'į', - 'İ' => 'i', - 'IJ' => 'ij', - 'Ĵ' => 'ĵ', - 'Ķ' => 'ķ', - 'Ĺ' => 'ĺ', - 'Ļ' => 'ļ', - 'Ľ' => 'ľ', - 'Ŀ' => 'ŀ', - 'Ł' => 'ł', - 'Ń' => 'ń', - 'Ņ' => 'ņ', - 'Ň' => 'ň', - 'Ŋ' => 'ŋ', - 'Ō' => 'ō', - 'Ŏ' => 'ŏ', - 'Ő' => 'ő', - 'Œ' => 'œ', - 'Ŕ' => 'ŕ', - 'Ŗ' => 'ŗ', - 'Ř' => 'ř', - 'Ś' => 'ś', - 'Ŝ' => 'ŝ', - 'Ş' => 'ş', - 'Š' => 'š', - 'Ţ' => 'ţ', - 'Ť' => 'ť', - 'Ŧ' => 'ŧ', - 'Ũ' => 'ũ', - 'Ū' => 'ū', - 'Ŭ' => 'ŭ', - 'Ů' => 'ů', - 'Ű' => 'ű', - 'Ų' => 'ų', - 'Ŵ' => 'ŵ', - 'Ŷ' => 'ŷ', - 'Ÿ' => 'ÿ', - 'Ź' => 'ź', - 'Ż' => 'ż', - 'Ž' => 'ž', - 'Ɓ' => 'ɓ', - 'Ƃ' => 'ƃ', - 'Ƅ' => 'ƅ', - 'Ɔ' => 'ɔ', - 'Ƈ' => 'ƈ', - 'Ɖ' => 'ɖ', - 'Ɗ' => 'ɗ', - 'Ƌ' => 'ƌ', - 'Ǝ' => 'ǝ', - 'Ə' => 'ə', - 'Ɛ' => 'ɛ', - 'Ƒ' => 'ƒ', - 'Ɠ' => 'ɠ', - 'Ɣ' => 'ɣ', - 'Ɩ' => 'ɩ', - 'Ɨ' => 'ɨ', - 'Ƙ' => 'ƙ', - 'Ɯ' => 'ɯ', - 'Ɲ' => 'ɲ', - 'Ɵ' => 'ɵ', - 'Ơ' => 'ơ', - 'Ƣ' => 'ƣ', - 'Ƥ' => 'ƥ', - 'Ʀ' => 'ʀ', - 'Ƨ' => 'ƨ', - 'Ʃ' => 'ʃ', - 'Ƭ' => 'ƭ', - 'Ʈ' => 'ʈ', - 'Ư' => 'ư', - 'Ʊ' => 'ʊ', - 'Ʋ' => 'ʋ', - 'Ƴ' => 'ƴ', - 'Ƶ' => 'ƶ', - 'Ʒ' => 'ʒ', - 'Ƹ' => 'ƹ', - 'Ƽ' => 'ƽ', - 'DŽ' => 'dž', - 'Dž' => 'dž', - 'LJ' => 'lj', - 'Lj' => 'lj', - 'NJ' => 'nj', - 'Nj' => 'nj', - 'Ǎ' => 'ǎ', - 'Ǐ' => 'ǐ', - 'Ǒ' => 'ǒ', - 'Ǔ' => 'ǔ', - 'Ǖ' => 'ǖ', - 'Ǘ' => 'ǘ', - 'Ǚ' => 'ǚ', - 'Ǜ' => 'ǜ', - 'Ǟ' => 'ǟ', - 'Ǡ' => 'ǡ', - 'Ǣ' => 'ǣ', - 'Ǥ' => 'ǥ', - 'Ǧ' => 'ǧ', - 'Ǩ' => 'ǩ', - 'Ǫ' => 'ǫ', - 'Ǭ' => 'ǭ', - 'Ǯ' => 'ǯ', - 'DZ' => 'dz', - 'Dz' => 'dz', - 'Ǵ' => 'ǵ', - 'Ƕ' => 'ƕ', - 'Ƿ' => 'ƿ', - 'Ǹ' => 'ǹ', - 'Ǻ' => 'ǻ', - 'Ǽ' => 'ǽ', - 'Ǿ' => 'ǿ', - 'Ȁ' => 'ȁ', - 'Ȃ' => 'ȃ', - 'Ȅ' => 'ȅ', - 'Ȇ' => 'ȇ', - 'Ȉ' => 'ȉ', - 'Ȋ' => 'ȋ', - 'Ȍ' => 'ȍ', - 'Ȏ' => 'ȏ', - 'Ȑ' => 'ȑ', - 'Ȓ' => 'ȓ', - 'Ȕ' => 'ȕ', - 'Ȗ' => 'ȗ', - 'Ș' => 'ș', - 'Ț' => 'ț', - 'Ȝ' => 'ȝ', - 'Ȟ' => 'ȟ', - 'Ƞ' => 'ƞ', - 'Ȣ' => 'ȣ', - 'Ȥ' => 'ȥ', - 'Ȧ' => 'ȧ', - 'Ȩ' => 'ȩ', - 'Ȫ' => 'ȫ', - 'Ȭ' => 'ȭ', - 'Ȯ' => 'ȯ', - 'Ȱ' => 'ȱ', - 'Ȳ' => 'ȳ', - 'Ⱥ' => 'ⱥ', - 'Ȼ' => 'ȼ', - 'Ƚ' => 'ƚ', - 'Ⱦ' => 'ⱦ', - 'Ɂ' => 'ɂ', - 'Ƀ' => 'ƀ', - 'Ʉ' => 'ʉ', - 'Ʌ' => 'ʌ', - 'Ɇ' => 'ɇ', - 'Ɉ' => 'ɉ', - 'Ɋ' => 'ɋ', - 'Ɍ' => 'ɍ', - 'Ɏ' => 'ɏ', - 'Ͱ' => 'ͱ', - 'Ͳ' => 'ͳ', - 'Ͷ' => 'ͷ', - 'Ϳ' => 'ϳ', - 'Ά' => 'ά', - 'Έ' => 'έ', - 'Ή' => 'ή', - 'Ί' => 'ί', - 'Ό' => 'ό', - 'Ύ' => 'ύ', - 'Ώ' => 'ώ', - 'Α' => 'α', - 'Β' => 'β', - 'Γ' => 'γ', - 'Δ' => 'δ', - 'Ε' => 'ε', - 'Ζ' => 'ζ', - 'Η' => 'η', - 'Θ' => 'θ', - 'Ι' => 'ι', - 'Κ' => 'κ', - 'Λ' => 'λ', - 'Μ' => 'μ', - 'Ν' => 'ν', - 'Ξ' => 'ξ', - 'Ο' => 'ο', - 'Π' => 'π', - 'Ρ' => 'ρ', - 'Σ' => 'σ', - 'Τ' => 'τ', - 'Υ' => 'υ', - 'Φ' => 'φ', - 'Χ' => 'χ', - 'Ψ' => 'ψ', - 'Ω' => 'ω', - 'Ϊ' => 'ϊ', - 'Ϋ' => 'ϋ', - 'Ϗ' => 'ϗ', - 'Ϙ' => 'ϙ', - 'Ϛ' => 'ϛ', - 'Ϝ' => 'ϝ', - 'Ϟ' => 'ϟ', - 'Ϡ' => 'ϡ', - 'Ϣ' => 'ϣ', - 'Ϥ' => 'ϥ', - 'Ϧ' => 'ϧ', - 'Ϩ' => 'ϩ', - 'Ϫ' => 'ϫ', - 'Ϭ' => 'ϭ', - 'Ϯ' => 'ϯ', - 'ϴ' => 'θ', - 'Ϸ' => 'ϸ', - 'Ϲ' => 'ϲ', - 'Ϻ' => 'ϻ', - 'Ͻ' => 'ͻ', - 'Ͼ' => 'ͼ', - 'Ͽ' => 'ͽ', - 'Ѐ' => 'ѐ', - 'Ё' => 'ё', - 'Ђ' => 'ђ', - 'Ѓ' => 'ѓ', - 'Є' => 'є', - 'Ѕ' => 'ѕ', - 'І' => 'і', - 'Ї' => 'ї', - 'Ј' => 'ј', - 'Љ' => 'љ', - 'Њ' => 'њ', - 'Ћ' => 'ћ', - 'Ќ' => 'ќ', - 'Ѝ' => 'ѝ', - 'Ў' => 'ў', - 'Џ' => 'џ', - 'А' => 'а', - 'Б' => 'б', - 'В' => 'в', - 'Г' => 'г', - 'Д' => 'д', - 'Е' => 'е', - 'Ж' => 'ж', - 'З' => 'з', - 'И' => 'и', - 'Й' => 'й', - 'К' => 'к', - 'Л' => 'л', - 'М' => 'м', - 'Н' => 'н', - 'О' => 'о', - 'П' => 'п', - 'Р' => 'р', - 'С' => 'с', - 'Т' => 'т', - 'У' => 'у', - 'Ф' => 'ф', - 'Х' => 'х', - 'Ц' => 'ц', - 'Ч' => 'ч', - 'Ш' => 'ш', - 'Щ' => 'щ', - 'Ъ' => 'ъ', - 'Ы' => 'ы', - 'Ь' => 'ь', - 'Э' => 'э', - 'Ю' => 'ю', - 'Я' => 'я', - 'Ѡ' => 'ѡ', - 'Ѣ' => 'ѣ', - 'Ѥ' => 'ѥ', - 'Ѧ' => 'ѧ', - 'Ѩ' => 'ѩ', - 'Ѫ' => 'ѫ', - 'Ѭ' => 'ѭ', - 'Ѯ' => 'ѯ', - 'Ѱ' => 'ѱ', - 'Ѳ' => 'ѳ', - 'Ѵ' => 'ѵ', - 'Ѷ' => 'ѷ', - 'Ѹ' => 'ѹ', - 'Ѻ' => 'ѻ', - 'Ѽ' => 'ѽ', - 'Ѿ' => 'ѿ', - 'Ҁ' => 'ҁ', - 'Ҋ' => 'ҋ', - 'Ҍ' => 'ҍ', - 'Ҏ' => 'ҏ', - 'Ґ' => 'ґ', - 'Ғ' => 'ғ', - 'Ҕ' => 'ҕ', - 'Җ' => 'җ', - 'Ҙ' => 'ҙ', - 'Қ' => 'қ', - 'Ҝ' => 'ҝ', - 'Ҟ' => 'ҟ', - 'Ҡ' => 'ҡ', - 'Ң' => 'ң', - 'Ҥ' => 'ҥ', - 'Ҧ' => 'ҧ', - 'Ҩ' => 'ҩ', - 'Ҫ' => 'ҫ', - 'Ҭ' => 'ҭ', - 'Ү' => 'ү', - 'Ұ' => 'ұ', - 'Ҳ' => 'ҳ', - 'Ҵ' => 'ҵ', - 'Ҷ' => 'ҷ', - 'Ҹ' => 'ҹ', - 'Һ' => 'һ', - 'Ҽ' => 'ҽ', - 'Ҿ' => 'ҿ', - 'Ӏ' => 'ӏ', - 'Ӂ' => 'ӂ', - 'Ӄ' => 'ӄ', - 'Ӆ' => 'ӆ', - 'Ӈ' => 'ӈ', - 'Ӊ' => 'ӊ', - 'Ӌ' => 'ӌ', - 'Ӎ' => 'ӎ', - 'Ӑ' => 'ӑ', - 'Ӓ' => 'ӓ', - 'Ӕ' => 'ӕ', - 'Ӗ' => 'ӗ', - 'Ә' => 'ә', - 'Ӛ' => 'ӛ', - 'Ӝ' => 'ӝ', - 'Ӟ' => 'ӟ', - 'Ӡ' => 'ӡ', - 'Ӣ' => 'ӣ', - 'Ӥ' => 'ӥ', - 'Ӧ' => 'ӧ', - 'Ө' => 'ө', - 'Ӫ' => 'ӫ', - 'Ӭ' => 'ӭ', - 'Ӯ' => 'ӯ', - 'Ӱ' => 'ӱ', - 'Ӳ' => 'ӳ', - 'Ӵ' => 'ӵ', - 'Ӷ' => 'ӷ', - 'Ӹ' => 'ӹ', - 'Ӻ' => 'ӻ', - 'Ӽ' => 'ӽ', - 'Ӿ' => 'ӿ', - 'Ԁ' => 'ԁ', - 'Ԃ' => 'ԃ', - 'Ԅ' => 'ԅ', - 'Ԇ' => 'ԇ', - 'Ԉ' => 'ԉ', - 'Ԋ' => 'ԋ', - 'Ԍ' => 'ԍ', - 'Ԏ' => 'ԏ', - 'Ԑ' => 'ԑ', - 'Ԓ' => 'ԓ', - 'Ԕ' => 'ԕ', - 'Ԗ' => 'ԗ', - 'Ԙ' => 'ԙ', - 'Ԛ' => 'ԛ', - 'Ԝ' => 'ԝ', - 'Ԟ' => 'ԟ', - 'Ԡ' => 'ԡ', - 'Ԣ' => 'ԣ', - 'Ԥ' => 'ԥ', - 'Ԧ' => 'ԧ', - 'Ԩ' => 'ԩ', - 'Ԫ' => 'ԫ', - 'Ԭ' => 'ԭ', - 'Ԯ' => 'ԯ', - 'Ա' => 'ա', - 'Բ' => 'բ', - 'Գ' => 'գ', - 'Դ' => 'դ', - 'Ե' => 'ե', - 'Զ' => 'զ', - 'Է' => 'է', - 'Ը' => 'ը', - 'Թ' => 'թ', - 'Ժ' => 'ժ', - 'Ի' => 'ի', - 'Լ' => 'լ', - 'Խ' => 'խ', - 'Ծ' => 'ծ', - 'Կ' => 'կ', - 'Հ' => 'հ', - 'Ձ' => 'ձ', - 'Ղ' => 'ղ', - 'Ճ' => 'ճ', - 'Մ' => 'մ', - 'Յ' => 'յ', - 'Ն' => 'ն', - 'Շ' => 'շ', - 'Ո' => 'ո', - 'Չ' => 'չ', - 'Պ' => 'պ', - 'Ջ' => 'ջ', - 'Ռ' => 'ռ', - 'Ս' => 'ս', - 'Վ' => 'վ', - 'Տ' => 'տ', - 'Ր' => 'ր', - 'Ց' => 'ց', - 'Ւ' => 'ւ', - 'Փ' => 'փ', - 'Ք' => 'ք', - 'Օ' => 'օ', - 'Ֆ' => 'ֆ', - 'Ⴀ' => 'ⴀ', - 'Ⴁ' => 'ⴁ', - 'Ⴂ' => 'ⴂ', - 'Ⴃ' => 'ⴃ', - 'Ⴄ' => 'ⴄ', - 'Ⴅ' => 'ⴅ', - 'Ⴆ' => 'ⴆ', - 'Ⴇ' => 'ⴇ', - 'Ⴈ' => 'ⴈ', - 'Ⴉ' => 'ⴉ', - 'Ⴊ' => 'ⴊ', - 'Ⴋ' => 'ⴋ', - 'Ⴌ' => 'ⴌ', - 'Ⴍ' => 'ⴍ', - 'Ⴎ' => 'ⴎ', - 'Ⴏ' => 'ⴏ', - 'Ⴐ' => 'ⴐ', - 'Ⴑ' => 'ⴑ', - 'Ⴒ' => 'ⴒ', - 'Ⴓ' => 'ⴓ', - 'Ⴔ' => 'ⴔ', - 'Ⴕ' => 'ⴕ', - 'Ⴖ' => 'ⴖ', - 'Ⴗ' => 'ⴗ', - 'Ⴘ' => 'ⴘ', - 'Ⴙ' => 'ⴙ', - 'Ⴚ' => 'ⴚ', - 'Ⴛ' => 'ⴛ', - 'Ⴜ' => 'ⴜ', - 'Ⴝ' => 'ⴝ', - 'Ⴞ' => 'ⴞ', - 'Ⴟ' => 'ⴟ', - 'Ⴠ' => 'ⴠ', - 'Ⴡ' => 'ⴡ', - 'Ⴢ' => 'ⴢ', - 'Ⴣ' => 'ⴣ', - 'Ⴤ' => 'ⴤ', - 'Ⴥ' => 'ⴥ', - 'Ⴧ' => 'ⴧ', - 'Ⴭ' => 'ⴭ', - 'Ḁ' => 'ḁ', - 'Ḃ' => 'ḃ', - 'Ḅ' => 'ḅ', - 'Ḇ' => 'ḇ', - 'Ḉ' => 'ḉ', - 'Ḋ' => 'ḋ', - 'Ḍ' => 'ḍ', - 'Ḏ' => 'ḏ', - 'Ḑ' => 'ḑ', - 'Ḓ' => 'ḓ', - 'Ḕ' => 'ḕ', - 'Ḗ' => 'ḗ', - 'Ḙ' => 'ḙ', - 'Ḛ' => 'ḛ', - 'Ḝ' => 'ḝ', - 'Ḟ' => 'ḟ', - 'Ḡ' => 'ḡ', - 'Ḣ' => 'ḣ', - 'Ḥ' => 'ḥ', - 'Ḧ' => 'ḧ', - 'Ḩ' => 'ḩ', - 'Ḫ' => 'ḫ', - 'Ḭ' => 'ḭ', - 'Ḯ' => 'ḯ', - 'Ḱ' => 'ḱ', - 'Ḳ' => 'ḳ', - 'Ḵ' => 'ḵ', - 'Ḷ' => 'ḷ', - 'Ḹ' => 'ḹ', - 'Ḻ' => 'ḻ', - 'Ḽ' => 'ḽ', - 'Ḿ' => 'ḿ', - 'Ṁ' => 'ṁ', - 'Ṃ' => 'ṃ', - 'Ṅ' => 'ṅ', - 'Ṇ' => 'ṇ', - 'Ṉ' => 'ṉ', - 'Ṋ' => 'ṋ', - 'Ṍ' => 'ṍ', - 'Ṏ' => 'ṏ', - 'Ṑ' => 'ṑ', - 'Ṓ' => 'ṓ', - 'Ṕ' => 'ṕ', - 'Ṗ' => 'ṗ', - 'Ṙ' => 'ṙ', - 'Ṛ' => 'ṛ', - 'Ṝ' => 'ṝ', - 'Ṟ' => 'ṟ', - 'Ṡ' => 'ṡ', - 'Ṣ' => 'ṣ', - 'Ṥ' => 'ṥ', - 'Ṧ' => 'ṧ', - 'Ṩ' => 'ṩ', - 'Ṫ' => 'ṫ', - 'Ṭ' => 'ṭ', - 'Ṯ' => 'ṯ', - 'Ṱ' => 'ṱ', - 'Ṳ' => 'ṳ', - 'Ṵ' => 'ṵ', - 'Ṷ' => 'ṷ', - 'Ṹ' => 'ṹ', - 'Ṻ' => 'ṻ', - 'Ṽ' => 'ṽ', - 'Ṿ' => 'ṿ', - 'Ẁ' => 'ẁ', - 'Ẃ' => 'ẃ', - 'Ẅ' => 'ẅ', - 'Ẇ' => 'ẇ', - 'Ẉ' => 'ẉ', - 'Ẋ' => 'ẋ', - 'Ẍ' => 'ẍ', - 'Ẏ' => 'ẏ', - 'Ẑ' => 'ẑ', - 'Ẓ' => 'ẓ', - 'Ẕ' => 'ẕ', - 'ẞ' => 'ß', - 'Ạ' => 'ạ', - 'Ả' => 'ả', - 'Ấ' => 'ấ', - 'Ầ' => 'ầ', - 'Ẩ' => 'ẩ', - 'Ẫ' => 'ẫ', - 'Ậ' => 'ậ', - 'Ắ' => 'ắ', - 'Ằ' => 'ằ', - 'Ẳ' => 'ẳ', - 'Ẵ' => 'ẵ', - 'Ặ' => 'ặ', - 'Ẹ' => 'ẹ', - 'Ẻ' => 'ẻ', - 'Ẽ' => 'ẽ', - 'Ế' => 'ế', - 'Ề' => 'ề', - 'Ể' => 'ể', - 'Ễ' => 'ễ', - 'Ệ' => 'ệ', - 'Ỉ' => 'ỉ', - 'Ị' => 'ị', - 'Ọ' => 'ọ', - 'Ỏ' => 'ỏ', - 'Ố' => 'ố', - 'Ồ' => 'ồ', - 'Ổ' => 'ổ', - 'Ỗ' => 'ỗ', - 'Ộ' => 'ộ', - 'Ớ' => 'ớ', - 'Ờ' => 'ờ', - 'Ở' => 'ở', - 'Ỡ' => 'ỡ', - 'Ợ' => 'ợ', - 'Ụ' => 'ụ', - 'Ủ' => 'ủ', - 'Ứ' => 'ứ', - 'Ừ' => 'ừ', - 'Ử' => 'ử', - 'Ữ' => 'ữ', - 'Ự' => 'ự', - 'Ỳ' => 'ỳ', - 'Ỵ' => 'ỵ', - 'Ỷ' => 'ỷ', - 'Ỹ' => 'ỹ', - 'Ỻ' => 'ỻ', - 'Ỽ' => 'ỽ', - 'Ỿ' => 'ỿ', - 'Ἀ' => 'ἀ', - 'Ἁ' => 'ἁ', - 'Ἂ' => 'ἂ', - 'Ἃ' => 'ἃ', - 'Ἄ' => 'ἄ', - 'Ἅ' => 'ἅ', - 'Ἆ' => 'ἆ', - 'Ἇ' => 'ἇ', - 'Ἐ' => 'ἐ', - 'Ἑ' => 'ἑ', - 'Ἒ' => 'ἒ', - 'Ἓ' => 'ἓ', - 'Ἔ' => 'ἔ', - 'Ἕ' => 'ἕ', - 'Ἠ' => 'ἠ', - 'Ἡ' => 'ἡ', - 'Ἢ' => 'ἢ', - 'Ἣ' => 'ἣ', - 'Ἤ' => 'ἤ', - 'Ἥ' => 'ἥ', - 'Ἦ' => 'ἦ', - 'Ἧ' => 'ἧ', - 'Ἰ' => 'ἰ', - 'Ἱ' => 'ἱ', - 'Ἲ' => 'ἲ', - 'Ἳ' => 'ἳ', - 'Ἴ' => 'ἴ', - 'Ἵ' => 'ἵ', - 'Ἶ' => 'ἶ', - 'Ἷ' => 'ἷ', - 'Ὀ' => 'ὀ', - 'Ὁ' => 'ὁ', - 'Ὂ' => 'ὂ', - 'Ὃ' => 'ὃ', - 'Ὄ' => 'ὄ', - 'Ὅ' => 'ὅ', - 'Ὑ' => 'ὑ', - 'Ὓ' => 'ὓ', - 'Ὕ' => 'ὕ', - 'Ὗ' => 'ὗ', - 'Ὠ' => 'ὠ', - 'Ὡ' => 'ὡ', - 'Ὢ' => 'ὢ', - 'Ὣ' => 'ὣ', - 'Ὤ' => 'ὤ', - 'Ὥ' => 'ὥ', - 'Ὦ' => 'ὦ', - 'Ὧ' => 'ὧ', - 'ᾈ' => 'ᾀ', - 'ᾉ' => 'ᾁ', - 'ᾊ' => 'ᾂ', - 'ᾋ' => 'ᾃ', - 'ᾌ' => 'ᾄ', - 'ᾍ' => 'ᾅ', - 'ᾎ' => 'ᾆ', - 'ᾏ' => 'ᾇ', - 'ᾘ' => 'ᾐ', - 'ᾙ' => 'ᾑ', - 'ᾚ' => 'ᾒ', - 'ᾛ' => 'ᾓ', - 'ᾜ' => 'ᾔ', - 'ᾝ' => 'ᾕ', - 'ᾞ' => 'ᾖ', - 'ᾟ' => 'ᾗ', - 'ᾨ' => 'ᾠ', - 'ᾩ' => 'ᾡ', - 'ᾪ' => 'ᾢ', - 'ᾫ' => 'ᾣ', - 'ᾬ' => 'ᾤ', - 'ᾭ' => 'ᾥ', - 'ᾮ' => 'ᾦ', - 'ᾯ' => 'ᾧ', - 'Ᾰ' => 'ᾰ', - 'Ᾱ' => 'ᾱ', - 'Ὰ' => 'ὰ', - 'Ά' => 'ά', - 'ᾼ' => 'ᾳ', - 'Ὲ' => 'ὲ', - 'Έ' => 'έ', - 'Ὴ' => 'ὴ', - 'Ή' => 'ή', - 'ῌ' => 'ῃ', - 'Ῐ' => 'ῐ', - 'Ῑ' => 'ῑ', - 'Ὶ' => 'ὶ', - 'Ί' => 'ί', - 'Ῠ' => 'ῠ', - 'Ῡ' => 'ῡ', - 'Ὺ' => 'ὺ', - 'Ύ' => 'ύ', - 'Ῥ' => 'ῥ', - 'Ὸ' => 'ὸ', - 'Ό' => 'ό', - 'Ὼ' => 'ὼ', - 'Ώ' => 'ώ', - 'ῼ' => 'ῳ', - 'Ω' => 'ω', - 'K' => 'k', - 'Å' => 'å', - 'Ⅎ' => 'ⅎ', - 'Ⅰ' => 'ⅰ', - 'Ⅱ' => 'ⅱ', - 'Ⅲ' => 'ⅲ', - 'Ⅳ' => 'ⅳ', - 'Ⅴ' => 'ⅴ', - 'Ⅵ' => 'ⅵ', - 'Ⅶ' => 'ⅶ', - 'Ⅷ' => 'ⅷ', - 'Ⅸ' => 'ⅸ', - 'Ⅹ' => 'ⅹ', - 'Ⅺ' => 'ⅺ', - 'Ⅻ' => 'ⅻ', - 'Ⅼ' => 'ⅼ', - 'Ⅽ' => 'ⅽ', - 'Ⅾ' => 'ⅾ', - 'Ⅿ' => 'ⅿ', - 'Ↄ' => 'ↄ', - 'Ⓐ' => 'ⓐ', - 'Ⓑ' => 'ⓑ', - 'Ⓒ' => 'ⓒ', - 'Ⓓ' => 'ⓓ', - 'Ⓔ' => 'ⓔ', - 'Ⓕ' => 'ⓕ', - 'Ⓖ' => 'ⓖ', - 'Ⓗ' => 'ⓗ', - 'Ⓘ' => 'ⓘ', - 'Ⓙ' => 'ⓙ', - 'Ⓚ' => 'ⓚ', - 'Ⓛ' => 'ⓛ', - 'Ⓜ' => 'ⓜ', - 'Ⓝ' => 'ⓝ', - 'Ⓞ' => 'ⓞ', - 'Ⓟ' => 'ⓟ', - 'Ⓠ' => 'ⓠ', - 'Ⓡ' => 'ⓡ', - 'Ⓢ' => 'ⓢ', - 'Ⓣ' => 'ⓣ', - 'Ⓤ' => 'ⓤ', - 'Ⓥ' => 'ⓥ', - 'Ⓦ' => 'ⓦ', - 'Ⓧ' => 'ⓧ', - 'Ⓨ' => 'ⓨ', - 'Ⓩ' => 'ⓩ', - 'Ⰰ' => 'ⰰ', - 'Ⰱ' => 'ⰱ', - 'Ⰲ' => 'ⰲ', - 'Ⰳ' => 'ⰳ', - 'Ⰴ' => 'ⰴ', - 'Ⰵ' => 'ⰵ', - 'Ⰶ' => 'ⰶ', - 'Ⰷ' => 'ⰷ', - 'Ⰸ' => 'ⰸ', - 'Ⰹ' => 'ⰹ', - 'Ⰺ' => 'ⰺ', - 'Ⰻ' => 'ⰻ', - 'Ⰼ' => 'ⰼ', - 'Ⰽ' => 'ⰽ', - 'Ⰾ' => 'ⰾ', - 'Ⰿ' => 'ⰿ', - 'Ⱀ' => 'ⱀ', - 'Ⱁ' => 'ⱁ', - 'Ⱂ' => 'ⱂ', - 'Ⱃ' => 'ⱃ', - 'Ⱄ' => 'ⱄ', - 'Ⱅ' => 'ⱅ', - 'Ⱆ' => 'ⱆ', - 'Ⱇ' => 'ⱇ', - 'Ⱈ' => 'ⱈ', - 'Ⱉ' => 'ⱉ', - 'Ⱊ' => 'ⱊ', - 'Ⱋ' => 'ⱋ', - 'Ⱌ' => 'ⱌ', - 'Ⱍ' => 'ⱍ', - 'Ⱎ' => 'ⱎ', - 'Ⱏ' => 'ⱏ', - 'Ⱐ' => 'ⱐ', - 'Ⱑ' => 'ⱑ', - 'Ⱒ' => 'ⱒ', - 'Ⱓ' => 'ⱓ', - 'Ⱔ' => 'ⱔ', - 'Ⱕ' => 'ⱕ', - 'Ⱖ' => 'ⱖ', - 'Ⱗ' => 'ⱗ', - 'Ⱘ' => 'ⱘ', - 'Ⱙ' => 'ⱙ', - 'Ⱚ' => 'ⱚ', - 'Ⱛ' => 'ⱛ', - 'Ⱜ' => 'ⱜ', - 'Ⱝ' => 'ⱝ', - 'Ⱞ' => 'ⱞ', - 'Ⱡ' => 'ⱡ', - 'Ɫ' => 'ɫ', - 'Ᵽ' => 'ᵽ', - 'Ɽ' => 'ɽ', - 'Ⱨ' => 'ⱨ', - 'Ⱪ' => 'ⱪ', - 'Ⱬ' => 'ⱬ', - 'Ɑ' => 'ɑ', - 'Ɱ' => 'ɱ', - 'Ɐ' => 'ɐ', - 'Ɒ' => 'ɒ', - 'Ⱳ' => 'ⱳ', - 'Ⱶ' => 'ⱶ', - 'Ȿ' => 'ȿ', - 'Ɀ' => 'ɀ', - 'Ⲁ' => 'ⲁ', - 'Ⲃ' => 'ⲃ', - 'Ⲅ' => 'ⲅ', - 'Ⲇ' => 'ⲇ', - 'Ⲉ' => 'ⲉ', - 'Ⲋ' => 'ⲋ', - 'Ⲍ' => 'ⲍ', - 'Ⲏ' => 'ⲏ', - 'Ⲑ' => 'ⲑ', - 'Ⲓ' => 'ⲓ', - 'Ⲕ' => 'ⲕ', - 'Ⲗ' => 'ⲗ', - 'Ⲙ' => 'ⲙ', - 'Ⲛ' => 'ⲛ', - 'Ⲝ' => 'ⲝ', - 'Ⲟ' => 'ⲟ', - 'Ⲡ' => 'ⲡ', - 'Ⲣ' => 'ⲣ', - 'Ⲥ' => 'ⲥ', - 'Ⲧ' => 'ⲧ', - 'Ⲩ' => 'ⲩ', - 'Ⲫ' => 'ⲫ', - 'Ⲭ' => 'ⲭ', - 'Ⲯ' => 'ⲯ', - 'Ⲱ' => 'ⲱ', - 'Ⲳ' => 'ⲳ', - 'Ⲵ' => 'ⲵ', - 'Ⲷ' => 'ⲷ', - 'Ⲹ' => 'ⲹ', - 'Ⲻ' => 'ⲻ', - 'Ⲽ' => 'ⲽ', - 'Ⲿ' => 'ⲿ', - 'Ⳁ' => 'ⳁ', - 'Ⳃ' => 'ⳃ', - 'Ⳅ' => 'ⳅ', - 'Ⳇ' => 'ⳇ', - 'Ⳉ' => 'ⳉ', - 'Ⳋ' => 'ⳋ', - 'Ⳍ' => 'ⳍ', - 'Ⳏ' => 'ⳏ', - 'Ⳑ' => 'ⳑ', - 'Ⳓ' => 'ⳓ', - 'Ⳕ' => 'ⳕ', - 'Ⳗ' => 'ⳗ', - 'Ⳙ' => 'ⳙ', - 'Ⳛ' => 'ⳛ', - 'Ⳝ' => 'ⳝ', - 'Ⳟ' => 'ⳟ', - 'Ⳡ' => 'ⳡ', - 'Ⳣ' => 'ⳣ', - 'Ⳬ' => 'ⳬ', - 'Ⳮ' => 'ⳮ', - 'Ⳳ' => 'ⳳ', - 'Ꙁ' => 'ꙁ', - 'Ꙃ' => 'ꙃ', - 'Ꙅ' => 'ꙅ', - 'Ꙇ' => 'ꙇ', - 'Ꙉ' => 'ꙉ', - 'Ꙋ' => 'ꙋ', - 'Ꙍ' => 'ꙍ', - 'Ꙏ' => 'ꙏ', - 'Ꙑ' => 'ꙑ', - 'Ꙓ' => 'ꙓ', - 'Ꙕ' => 'ꙕ', - 'Ꙗ' => 'ꙗ', - 'Ꙙ' => 'ꙙ', - 'Ꙛ' => 'ꙛ', - 'Ꙝ' => 'ꙝ', - 'Ꙟ' => 'ꙟ', - 'Ꙡ' => 'ꙡ', - 'Ꙣ' => 'ꙣ', - 'Ꙥ' => 'ꙥ', - 'Ꙧ' => 'ꙧ', - 'Ꙩ' => 'ꙩ', - 'Ꙫ' => 'ꙫ', - 'Ꙭ' => 'ꙭ', - 'Ꚁ' => 'ꚁ', - 'Ꚃ' => 'ꚃ', - 'Ꚅ' => 'ꚅ', - 'Ꚇ' => 'ꚇ', - 'Ꚉ' => 'ꚉ', - 'Ꚋ' => 'ꚋ', - 'Ꚍ' => 'ꚍ', - 'Ꚏ' => 'ꚏ', - 'Ꚑ' => 'ꚑ', - 'Ꚓ' => 'ꚓ', - 'Ꚕ' => 'ꚕ', - 'Ꚗ' => 'ꚗ', - 'Ꚙ' => 'ꚙ', - 'Ꚛ' => 'ꚛ', - 'Ꜣ' => 'ꜣ', - 'Ꜥ' => 'ꜥ', - 'Ꜧ' => 'ꜧ', - 'Ꜩ' => 'ꜩ', - 'Ꜫ' => 'ꜫ', - 'Ꜭ' => 'ꜭ', - 'Ꜯ' => 'ꜯ', - 'Ꜳ' => 'ꜳ', - 'Ꜵ' => 'ꜵ', - 'Ꜷ' => 'ꜷ', - 'Ꜹ' => 'ꜹ', - 'Ꜻ' => 'ꜻ', - 'Ꜽ' => 'ꜽ', - 'Ꜿ' => 'ꜿ', - 'Ꝁ' => 'ꝁ', - 'Ꝃ' => 'ꝃ', - 'Ꝅ' => 'ꝅ', - 'Ꝇ' => 'ꝇ', - 'Ꝉ' => 'ꝉ', - 'Ꝋ' => 'ꝋ', - 'Ꝍ' => 'ꝍ', - 'Ꝏ' => 'ꝏ', - 'Ꝑ' => 'ꝑ', - 'Ꝓ' => 'ꝓ', - 'Ꝕ' => 'ꝕ', - 'Ꝗ' => 'ꝗ', - 'Ꝙ' => 'ꝙ', - 'Ꝛ' => 'ꝛ', - 'Ꝝ' => 'ꝝ', - 'Ꝟ' => 'ꝟ', - 'Ꝡ' => 'ꝡ', - 'Ꝣ' => 'ꝣ', - 'Ꝥ' => 'ꝥ', - 'Ꝧ' => 'ꝧ', - 'Ꝩ' => 'ꝩ', - 'Ꝫ' => 'ꝫ', - 'Ꝭ' => 'ꝭ', - 'Ꝯ' => 'ꝯ', - 'Ꝺ' => 'ꝺ', - 'Ꝼ' => 'ꝼ', - 'Ᵹ' => 'ᵹ', - 'Ꝿ' => 'ꝿ', - 'Ꞁ' => 'ꞁ', - 'Ꞃ' => 'ꞃ', - 'Ꞅ' => 'ꞅ', - 'Ꞇ' => 'ꞇ', - 'Ꞌ' => 'ꞌ', - 'Ɥ' => 'ɥ', - 'Ꞑ' => 'ꞑ', - 'Ꞓ' => 'ꞓ', - 'Ꞗ' => 'ꞗ', - 'Ꞙ' => 'ꞙ', - 'Ꞛ' => 'ꞛ', - 'Ꞝ' => 'ꞝ', - 'Ꞟ' => 'ꞟ', - 'Ꞡ' => 'ꞡ', - 'Ꞣ' => 'ꞣ', - 'Ꞥ' => 'ꞥ', - 'Ꞧ' => 'ꞧ', - 'Ꞩ' => 'ꞩ', - 'Ɦ' => 'ɦ', - 'Ɜ' => 'ɜ', - 'Ɡ' => 'ɡ', - 'Ɬ' => 'ɬ', - 'Ʞ' => 'ʞ', - 'Ʇ' => 'ʇ', - 'A' => 'a', - 'B' => 'b', - 'C' => 'c', - 'D' => 'd', - 'E' => 'e', - 'F' => 'f', - 'G' => 'g', - 'H' => 'h', - 'I' => 'i', - 'J' => 'j', - 'K' => 'k', - 'L' => 'l', - 'M' => 'm', - 'N' => 'n', - 'O' => 'o', - 'P' => 'p', - 'Q' => 'q', - 'R' => 'r', - 'S' => 's', - 'T' => 't', - 'U' => 'u', - 'V' => 'v', - 'W' => 'w', - 'X' => 'x', - 'Y' => 'y', - 'Z' => 'z', - '𐐀' => '𐐨', - '𐐁' => '𐐩', - '𐐂' => '𐐪', - '𐐃' => '𐐫', - '𐐄' => '𐐬', - '𐐅' => '𐐭', - '𐐆' => '𐐮', - '𐐇' => '𐐯', - '𐐈' => '𐐰', - '𐐉' => '𐐱', - '𐐊' => '𐐲', - '𐐋' => '𐐳', - '𐐌' => '𐐴', - '𐐍' => '𐐵', - '𐐎' => '𐐶', - '𐐏' => '𐐷', - '𐐐' => '𐐸', - '𐐑' => '𐐹', - '𐐒' => '𐐺', - '𐐓' => '𐐻', - '𐐔' => '𐐼', - '𐐕' => '𐐽', - '𐐖' => '𐐾', - '𐐗' => '𐐿', - '𐐘' => '𐑀', - '𐐙' => '𐑁', - '𐐚' => '𐑂', - '𐐛' => '𐑃', - '𐐜' => '𐑄', - '𐐝' => '𐑅', - '𐐞' => '𐑆', - '𐐟' => '𐑇', - '𐐠' => '𐑈', - '𐐡' => '𐑉', - '𐐢' => '𐑊', - '𐐣' => '𐑋', - '𐐤' => '𐑌', - '𐐥' => '𐑍', - '𐐦' => '𐑎', - '𐐧' => '𐑏', - '𑢠' => '𑣀', - '𑢡' => '𑣁', - '𑢢' => '𑣂', - '𑢣' => '𑣃', - '𑢤' => '𑣄', - '𑢥' => '𑣅', - '𑢦' => '𑣆', - '𑢧' => '𑣇', - '𑢨' => '𑣈', - '𑢩' => '𑣉', - '𑢪' => '𑣊', - '𑢫' => '𑣋', - '𑢬' => '𑣌', - '𑢭' => '𑣍', - '𑢮' => '𑣎', - '𑢯' => '𑣏', - '𑢰' => '𑣐', - '𑢱' => '𑣑', - '𑢲' => '𑣒', - '𑢳' => '𑣓', - '𑢴' => '𑣔', - '𑢵' => '𑣕', - '𑢶' => '𑣖', - '𑢷' => '𑣗', - '𑢸' => '𑣘', - '𑢹' => '𑣙', - '𑢺' => '𑣚', - '𑢻' => '𑣛', - '𑢼' => '𑣜', - '𑢽' => '𑣝', - '𑢾' => '𑣞', - '𑢿' => '𑣟', -); - -$result =& $data; -unset($data); - -return $result; diff --git a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php b/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php deleted file mode 100644 index ec94221..0000000 --- a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +++ /dev/null @@ -1,1109 +0,0 @@ - 'A', - 'b' => 'B', - 'c' => 'C', - 'd' => 'D', - 'e' => 'E', - 'f' => 'F', - 'g' => 'G', - 'h' => 'H', - 'i' => 'I', - 'j' => 'J', - 'k' => 'K', - 'l' => 'L', - 'm' => 'M', - 'n' => 'N', - 'o' => 'O', - 'p' => 'P', - 'q' => 'Q', - 'r' => 'R', - 's' => 'S', - 't' => 'T', - 'u' => 'U', - 'v' => 'V', - 'w' => 'W', - 'x' => 'X', - 'y' => 'Y', - 'z' => 'Z', - 'µ' => 'Μ', - 'à' => 'À', - 'á' => 'Á', - 'â' => 'Â', - 'ã' => 'Ã', - 'ä' => 'Ä', - 'å' => 'Å', - 'æ' => 'Æ', - 'ç' => 'Ç', - 'è' => 'È', - 'é' => 'É', - 'ê' => 'Ê', - 'ë' => 'Ë', - 'ì' => 'Ì', - 'í' => 'Í', - 'î' => 'Î', - 'ï' => 'Ï', - 'ð' => 'Ð', - 'ñ' => 'Ñ', - 'ò' => 'Ò', - 'ó' => 'Ó', - 'ô' => 'Ô', - 'õ' => 'Õ', - 'ö' => 'Ö', - 'ø' => 'Ø', - 'ù' => 'Ù', - 'ú' => 'Ú', - 'û' => 'Û', - 'ü' => 'Ü', - 'ý' => 'Ý', - 'þ' => 'Þ', - 'ÿ' => 'Ÿ', - 'ā' => 'Ā', - 'ă' => 'Ă', - 'ą' => 'Ą', - 'ć' => 'Ć', - 'ĉ' => 'Ĉ', - 'ċ' => 'Ċ', - 'č' => 'Č', - 'ď' => 'Ď', - 'đ' => 'Đ', - 'ē' => 'Ē', - 'ĕ' => 'Ĕ', - 'ė' => 'Ė', - 'ę' => 'Ę', - 'ě' => 'Ě', - 'ĝ' => 'Ĝ', - 'ğ' => 'Ğ', - 'ġ' => 'Ġ', - 'ģ' => 'Ģ', - 'ĥ' => 'Ĥ', - 'ħ' => 'Ħ', - 'ĩ' => 'Ĩ', - 'ī' => 'Ī', - 'ĭ' => 'Ĭ', - 'į' => 'Į', - 'ı' => 'I', - 'ij' => 'IJ', - 'ĵ' => 'Ĵ', - 'ķ' => 'Ķ', - 'ĺ' => 'Ĺ', - 'ļ' => 'Ļ', - 'ľ' => 'Ľ', - 'ŀ' => 'Ŀ', - 'ł' => 'Ł', - 'ń' => 'Ń', - 'ņ' => 'Ņ', - 'ň' => 'Ň', - 'ŋ' => 'Ŋ', - 'ō' => 'Ō', - 'ŏ' => 'Ŏ', - 'ő' => 'Ő', - 'œ' => 'Œ', - 'ŕ' => 'Ŕ', - 'ŗ' => 'Ŗ', - 'ř' => 'Ř', - 'ś' => 'Ś', - 'ŝ' => 'Ŝ', - 'ş' => 'Ş', - 'š' => 'Š', - 'ţ' => 'Ţ', - 'ť' => 'Ť', - 'ŧ' => 'Ŧ', - 'ũ' => 'Ũ', - 'ū' => 'Ū', - 'ŭ' => 'Ŭ', - 'ů' => 'Ů', - 'ű' => 'Ű', - 'ų' => 'Ų', - 'ŵ' => 'Ŵ', - 'ŷ' => 'Ŷ', - 'ź' => 'Ź', - 'ż' => 'Ż', - 'ž' => 'Ž', - 'ſ' => 'S', - 'ƀ' => 'Ƀ', - 'ƃ' => 'Ƃ', - 'ƅ' => 'Ƅ', - 'ƈ' => 'Ƈ', - 'ƌ' => 'Ƌ', - 'ƒ' => 'Ƒ', - 'ƕ' => 'Ƕ', - 'ƙ' => 'Ƙ', - 'ƚ' => 'Ƚ', - 'ƞ' => 'Ƞ', - 'ơ' => 'Ơ', - 'ƣ' => 'Ƣ', - 'ƥ' => 'Ƥ', - 'ƨ' => 'Ƨ', - 'ƭ' => 'Ƭ', - 'ư' => 'Ư', - 'ƴ' => 'Ƴ', - 'ƶ' => 'Ƶ', - 'ƹ' => 'Ƹ', - 'ƽ' => 'Ƽ', - 'ƿ' => 'Ƿ', - 'Dž' => 'DŽ', - 'dž' => 'DŽ', - 'Lj' => 'LJ', - 'lj' => 'LJ', - 'Nj' => 'NJ', - 'nj' => 'NJ', - 'ǎ' => 'Ǎ', - 'ǐ' => 'Ǐ', - 'ǒ' => 'Ǒ', - 'ǔ' => 'Ǔ', - 'ǖ' => 'Ǖ', - 'ǘ' => 'Ǘ', - 'ǚ' => 'Ǚ', - 'ǜ' => 'Ǜ', - 'ǝ' => 'Ǝ', - 'ǟ' => 'Ǟ', - 'ǡ' => 'Ǡ', - 'ǣ' => 'Ǣ', - 'ǥ' => 'Ǥ', - 'ǧ' => 'Ǧ', - 'ǩ' => 'Ǩ', - 'ǫ' => 'Ǫ', - 'ǭ' => 'Ǭ', - 'ǯ' => 'Ǯ', - 'Dz' => 'DZ', - 'dz' => 'DZ', - 'ǵ' => 'Ǵ', - 'ǹ' => 'Ǹ', - 'ǻ' => 'Ǻ', - 'ǽ' => 'Ǽ', - 'ǿ' => 'Ǿ', - 'ȁ' => 'Ȁ', - 'ȃ' => 'Ȃ', - 'ȅ' => 'Ȅ', - 'ȇ' => 'Ȇ', - 'ȉ' => 'Ȉ', - 'ȋ' => 'Ȋ', - 'ȍ' => 'Ȍ', - 'ȏ' => 'Ȏ', - 'ȑ' => 'Ȑ', - 'ȓ' => 'Ȓ', - 'ȕ' => 'Ȕ', - 'ȗ' => 'Ȗ', - 'ș' => 'Ș', - 'ț' => 'Ț', - 'ȝ' => 'Ȝ', - 'ȟ' => 'Ȟ', - 'ȣ' => 'Ȣ', - 'ȥ' => 'Ȥ', - 'ȧ' => 'Ȧ', - 'ȩ' => 'Ȩ', - 'ȫ' => 'Ȫ', - 'ȭ' => 'Ȭ', - 'ȯ' => 'Ȯ', - 'ȱ' => 'Ȱ', - 'ȳ' => 'Ȳ', - 'ȼ' => 'Ȼ', - 'ȿ' => 'Ȿ', - 'ɀ' => 'Ɀ', - 'ɂ' => 'Ɂ', - 'ɇ' => 'Ɇ', - 'ɉ' => 'Ɉ', - 'ɋ' => 'Ɋ', - 'ɍ' => 'Ɍ', - 'ɏ' => 'Ɏ', - 'ɐ' => 'Ɐ', - 'ɑ' => 'Ɑ', - 'ɒ' => 'Ɒ', - 'ɓ' => 'Ɓ', - 'ɔ' => 'Ɔ', - 'ɖ' => 'Ɖ', - 'ɗ' => 'Ɗ', - 'ə' => 'Ə', - 'ɛ' => 'Ɛ', - 'ɜ' => 'Ɜ', - 'ɠ' => 'Ɠ', - 'ɡ' => 'Ɡ', - 'ɣ' => 'Ɣ', - 'ɥ' => 'Ɥ', - 'ɦ' => 'Ɦ', - 'ɨ' => 'Ɨ', - 'ɩ' => 'Ɩ', - 'ɫ' => 'Ɫ', - 'ɬ' => 'Ɬ', - 'ɯ' => 'Ɯ', - 'ɱ' => 'Ɱ', - 'ɲ' => 'Ɲ', - 'ɵ' => 'Ɵ', - 'ɽ' => 'Ɽ', - 'ʀ' => 'Ʀ', - 'ʃ' => 'Ʃ', - 'ʇ' => 'Ʇ', - 'ʈ' => 'Ʈ', - 'ʉ' => 'Ʉ', - 'ʊ' => 'Ʊ', - 'ʋ' => 'Ʋ', - 'ʌ' => 'Ʌ', - 'ʒ' => 'Ʒ', - 'ʞ' => 'Ʞ', - 'ͅ' => 'Ι', - 'ͱ' => 'Ͱ', - 'ͳ' => 'Ͳ', - 'ͷ' => 'Ͷ', - 'ͻ' => 'Ͻ', - 'ͼ' => 'Ͼ', - 'ͽ' => 'Ͽ', - 'ά' => 'Ά', - 'έ' => 'Έ', - 'ή' => 'Ή', - 'ί' => 'Ί', - 'α' => 'Α', - 'β' => 'Β', - 'γ' => 'Γ', - 'δ' => 'Δ', - 'ε' => 'Ε', - 'ζ' => 'Ζ', - 'η' => 'Η', - 'θ' => 'Θ', - 'ι' => 'Ι', - 'κ' => 'Κ', - 'λ' => 'Λ', - 'μ' => 'Μ', - 'ν' => 'Ν', - 'ξ' => 'Ξ', - 'ο' => 'Ο', - 'π' => 'Π', - 'ρ' => 'Ρ', - 'ς' => 'Σ', - 'σ' => 'Σ', - 'τ' => 'Τ', - 'υ' => 'Υ', - 'φ' => 'Φ', - 'χ' => 'Χ', - 'ψ' => 'Ψ', - 'ω' => 'Ω', - 'ϊ' => 'Ϊ', - 'ϋ' => 'Ϋ', - 'ό' => 'Ό', - 'ύ' => 'Ύ', - 'ώ' => 'Ώ', - 'ϐ' => 'Β', - 'ϑ' => 'Θ', - 'ϕ' => 'Φ', - 'ϖ' => 'Π', - 'ϗ' => 'Ϗ', - 'ϙ' => 'Ϙ', - 'ϛ' => 'Ϛ', - 'ϝ' => 'Ϝ', - 'ϟ' => 'Ϟ', - 'ϡ' => 'Ϡ', - 'ϣ' => 'Ϣ', - 'ϥ' => 'Ϥ', - 'ϧ' => 'Ϧ', - 'ϩ' => 'Ϩ', - 'ϫ' => 'Ϫ', - 'ϭ' => 'Ϭ', - 'ϯ' => 'Ϯ', - 'ϰ' => 'Κ', - 'ϱ' => 'Ρ', - 'ϲ' => 'Ϲ', - 'ϳ' => 'Ϳ', - 'ϵ' => 'Ε', - 'ϸ' => 'Ϸ', - 'ϻ' => 'Ϻ', - 'а' => 'А', - 'б' => 'Б', - 'в' => 'В', - 'г' => 'Г', - 'д' => 'Д', - 'е' => 'Е', - 'ж' => 'Ж', - 'з' => 'З', - 'и' => 'И', - 'й' => 'Й', - 'к' => 'К', - 'л' => 'Л', - 'м' => 'М', - 'н' => 'Н', - 'о' => 'О', - 'п' => 'П', - 'р' => 'Р', - 'с' => 'С', - 'т' => 'Т', - 'у' => 'У', - 'ф' => 'Ф', - 'х' => 'Х', - 'ц' => 'Ц', - 'ч' => 'Ч', - 'ш' => 'Ш', - 'щ' => 'Щ', - 'ъ' => 'Ъ', - 'ы' => 'Ы', - 'ь' => 'Ь', - 'э' => 'Э', - 'ю' => 'Ю', - 'я' => 'Я', - 'ѐ' => 'Ѐ', - 'ё' => 'Ё', - 'ђ' => 'Ђ', - 'ѓ' => 'Ѓ', - 'є' => 'Є', - 'ѕ' => 'Ѕ', - 'і' => 'І', - 'ї' => 'Ї', - 'ј' => 'Ј', - 'љ' => 'Љ', - 'њ' => 'Њ', - 'ћ' => 'Ћ', - 'ќ' => 'Ќ', - 'ѝ' => 'Ѝ', - 'ў' => 'Ў', - 'џ' => 'Џ', - 'ѡ' => 'Ѡ', - 'ѣ' => 'Ѣ', - 'ѥ' => 'Ѥ', - 'ѧ' => 'Ѧ', - 'ѩ' => 'Ѩ', - 'ѫ' => 'Ѫ', - 'ѭ' => 'Ѭ', - 'ѯ' => 'Ѯ', - 'ѱ' => 'Ѱ', - 'ѳ' => 'Ѳ', - 'ѵ' => 'Ѵ', - 'ѷ' => 'Ѷ', - 'ѹ' => 'Ѹ', - 'ѻ' => 'Ѻ', - 'ѽ' => 'Ѽ', - 'ѿ' => 'Ѿ', - 'ҁ' => 'Ҁ', - 'ҋ' => 'Ҋ', - 'ҍ' => 'Ҍ', - 'ҏ' => 'Ҏ', - 'ґ' => 'Ґ', - 'ғ' => 'Ғ', - 'ҕ' => 'Ҕ', - 'җ' => 'Җ', - 'ҙ' => 'Ҙ', - 'қ' => 'Қ', - 'ҝ' => 'Ҝ', - 'ҟ' => 'Ҟ', - 'ҡ' => 'Ҡ', - 'ң' => 'Ң', - 'ҥ' => 'Ҥ', - 'ҧ' => 'Ҧ', - 'ҩ' => 'Ҩ', - 'ҫ' => 'Ҫ', - 'ҭ' => 'Ҭ', - 'ү' => 'Ү', - 'ұ' => 'Ұ', - 'ҳ' => 'Ҳ', - 'ҵ' => 'Ҵ', - 'ҷ' => 'Ҷ', - 'ҹ' => 'Ҹ', - 'һ' => 'Һ', - 'ҽ' => 'Ҽ', - 'ҿ' => 'Ҿ', - 'ӂ' => 'Ӂ', - 'ӄ' => 'Ӄ', - 'ӆ' => 'Ӆ', - 'ӈ' => 'Ӈ', - 'ӊ' => 'Ӊ', - 'ӌ' => 'Ӌ', - 'ӎ' => 'Ӎ', - 'ӏ' => 'Ӏ', - 'ӑ' => 'Ӑ', - 'ӓ' => 'Ӓ', - 'ӕ' => 'Ӕ', - 'ӗ' => 'Ӗ', - 'ә' => 'Ә', - 'ӛ' => 'Ӛ', - 'ӝ' => 'Ӝ', - 'ӟ' => 'Ӟ', - 'ӡ' => 'Ӡ', - 'ӣ' => 'Ӣ', - 'ӥ' => 'Ӥ', - 'ӧ' => 'Ӧ', - 'ө' => 'Ө', - 'ӫ' => 'Ӫ', - 'ӭ' => 'Ӭ', - 'ӯ' => 'Ӯ', - 'ӱ' => 'Ӱ', - 'ӳ' => 'Ӳ', - 'ӵ' => 'Ӵ', - 'ӷ' => 'Ӷ', - 'ӹ' => 'Ӹ', - 'ӻ' => 'Ӻ', - 'ӽ' => 'Ӽ', - 'ӿ' => 'Ӿ', - 'ԁ' => 'Ԁ', - 'ԃ' => 'Ԃ', - 'ԅ' => 'Ԅ', - 'ԇ' => 'Ԇ', - 'ԉ' => 'Ԉ', - 'ԋ' => 'Ԋ', - 'ԍ' => 'Ԍ', - 'ԏ' => 'Ԏ', - 'ԑ' => 'Ԑ', - 'ԓ' => 'Ԓ', - 'ԕ' => 'Ԕ', - 'ԗ' => 'Ԗ', - 'ԙ' => 'Ԙ', - 'ԛ' => 'Ԛ', - 'ԝ' => 'Ԝ', - 'ԟ' => 'Ԟ', - 'ԡ' => 'Ԡ', - 'ԣ' => 'Ԣ', - 'ԥ' => 'Ԥ', - 'ԧ' => 'Ԧ', - 'ԩ' => 'Ԩ', - 'ԫ' => 'Ԫ', - 'ԭ' => 'Ԭ', - 'ԯ' => 'Ԯ', - 'ա' => 'Ա', - 'բ' => 'Բ', - 'գ' => 'Գ', - 'դ' => 'Դ', - 'ե' => 'Ե', - 'զ' => 'Զ', - 'է' => 'Է', - 'ը' => 'Ը', - 'թ' => 'Թ', - 'ժ' => 'Ժ', - 'ի' => 'Ի', - 'լ' => 'Լ', - 'խ' => 'Խ', - 'ծ' => 'Ծ', - 'կ' => 'Կ', - 'հ' => 'Հ', - 'ձ' => 'Ձ', - 'ղ' => 'Ղ', - 'ճ' => 'Ճ', - 'մ' => 'Մ', - 'յ' => 'Յ', - 'ն' => 'Ն', - 'շ' => 'Շ', - 'ո' => 'Ո', - 'չ' => 'Չ', - 'պ' => 'Պ', - 'ջ' => 'Ջ', - 'ռ' => 'Ռ', - 'ս' => 'Ս', - 'վ' => 'Վ', - 'տ' => 'Տ', - 'ր' => 'Ր', - 'ց' => 'Ց', - 'ւ' => 'Ւ', - 'փ' => 'Փ', - 'ք' => 'Ք', - 'օ' => 'Օ', - 'ֆ' => 'Ֆ', - 'ᵹ' => 'Ᵹ', - 'ᵽ' => 'Ᵽ', - 'ḁ' => 'Ḁ', - 'ḃ' => 'Ḃ', - 'ḅ' => 'Ḅ', - 'ḇ' => 'Ḇ', - 'ḉ' => 'Ḉ', - 'ḋ' => 'Ḋ', - 'ḍ' => 'Ḍ', - 'ḏ' => 'Ḏ', - 'ḑ' => 'Ḑ', - 'ḓ' => 'Ḓ', - 'ḕ' => 'Ḕ', - 'ḗ' => 'Ḗ', - 'ḙ' => 'Ḙ', - 'ḛ' => 'Ḛ', - 'ḝ' => 'Ḝ', - 'ḟ' => 'Ḟ', - 'ḡ' => 'Ḡ', - 'ḣ' => 'Ḣ', - 'ḥ' => 'Ḥ', - 'ḧ' => 'Ḧ', - 'ḩ' => 'Ḩ', - 'ḫ' => 'Ḫ', - 'ḭ' => 'Ḭ', - 'ḯ' => 'Ḯ', - 'ḱ' => 'Ḱ', - 'ḳ' => 'Ḳ', - 'ḵ' => 'Ḵ', - 'ḷ' => 'Ḷ', - 'ḹ' => 'Ḹ', - 'ḻ' => 'Ḻ', - 'ḽ' => 'Ḽ', - 'ḿ' => 'Ḿ', - 'ṁ' => 'Ṁ', - 'ṃ' => 'Ṃ', - 'ṅ' => 'Ṅ', - 'ṇ' => 'Ṇ', - 'ṉ' => 'Ṉ', - 'ṋ' => 'Ṋ', - 'ṍ' => 'Ṍ', - 'ṏ' => 'Ṏ', - 'ṑ' => 'Ṑ', - 'ṓ' => 'Ṓ', - 'ṕ' => 'Ṕ', - 'ṗ' => 'Ṗ', - 'ṙ' => 'Ṙ', - 'ṛ' => 'Ṛ', - 'ṝ' => 'Ṝ', - 'ṟ' => 'Ṟ', - 'ṡ' => 'Ṡ', - 'ṣ' => 'Ṣ', - 'ṥ' => 'Ṥ', - 'ṧ' => 'Ṧ', - 'ṩ' => 'Ṩ', - 'ṫ' => 'Ṫ', - 'ṭ' => 'Ṭ', - 'ṯ' => 'Ṯ', - 'ṱ' => 'Ṱ', - 'ṳ' => 'Ṳ', - 'ṵ' => 'Ṵ', - 'ṷ' => 'Ṷ', - 'ṹ' => 'Ṹ', - 'ṻ' => 'Ṻ', - 'ṽ' => 'Ṽ', - 'ṿ' => 'Ṿ', - 'ẁ' => 'Ẁ', - 'ẃ' => 'Ẃ', - 'ẅ' => 'Ẅ', - 'ẇ' => 'Ẇ', - 'ẉ' => 'Ẉ', - 'ẋ' => 'Ẋ', - 'ẍ' => 'Ẍ', - 'ẏ' => 'Ẏ', - 'ẑ' => 'Ẑ', - 'ẓ' => 'Ẓ', - 'ẕ' => 'Ẕ', - 'ẛ' => 'Ṡ', - 'ạ' => 'Ạ', - 'ả' => 'Ả', - 'ấ' => 'Ấ', - 'ầ' => 'Ầ', - 'ẩ' => 'Ẩ', - 'ẫ' => 'Ẫ', - 'ậ' => 'Ậ', - 'ắ' => 'Ắ', - 'ằ' => 'Ằ', - 'ẳ' => 'Ẳ', - 'ẵ' => 'Ẵ', - 'ặ' => 'Ặ', - 'ẹ' => 'Ẹ', - 'ẻ' => 'Ẻ', - 'ẽ' => 'Ẽ', - 'ế' => 'Ế', - 'ề' => 'Ề', - 'ể' => 'Ể', - 'ễ' => 'Ễ', - 'ệ' => 'Ệ', - 'ỉ' => 'Ỉ', - 'ị' => 'Ị', - 'ọ' => 'Ọ', - 'ỏ' => 'Ỏ', - 'ố' => 'Ố', - 'ồ' => 'Ồ', - 'ổ' => 'Ổ', - 'ỗ' => 'Ỗ', - 'ộ' => 'Ộ', - 'ớ' => 'Ớ', - 'ờ' => 'Ờ', - 'ở' => 'Ở', - 'ỡ' => 'Ỡ', - 'ợ' => 'Ợ', - 'ụ' => 'Ụ', - 'ủ' => 'Ủ', - 'ứ' => 'Ứ', - 'ừ' => 'Ừ', - 'ử' => 'Ử', - 'ữ' => 'Ữ', - 'ự' => 'Ự', - 'ỳ' => 'Ỳ', - 'ỵ' => 'Ỵ', - 'ỷ' => 'Ỷ', - 'ỹ' => 'Ỹ', - 'ỻ' => 'Ỻ', - 'ỽ' => 'Ỽ', - 'ỿ' => 'Ỿ', - 'ἀ' => 'Ἀ', - 'ἁ' => 'Ἁ', - 'ἂ' => 'Ἂ', - 'ἃ' => 'Ἃ', - 'ἄ' => 'Ἄ', - 'ἅ' => 'Ἅ', - 'ἆ' => 'Ἆ', - 'ἇ' => 'Ἇ', - 'ἐ' => 'Ἐ', - 'ἑ' => 'Ἑ', - 'ἒ' => 'Ἒ', - 'ἓ' => 'Ἓ', - 'ἔ' => 'Ἔ', - 'ἕ' => 'Ἕ', - 'ἠ' => 'Ἠ', - 'ἡ' => 'Ἡ', - 'ἢ' => 'Ἢ', - 'ἣ' => 'Ἣ', - 'ἤ' => 'Ἤ', - 'ἥ' => 'Ἥ', - 'ἦ' => 'Ἦ', - 'ἧ' => 'Ἧ', - 'ἰ' => 'Ἰ', - 'ἱ' => 'Ἱ', - 'ἲ' => 'Ἲ', - 'ἳ' => 'Ἳ', - 'ἴ' => 'Ἴ', - 'ἵ' => 'Ἵ', - 'ἶ' => 'Ἶ', - 'ἷ' => 'Ἷ', - 'ὀ' => 'Ὀ', - 'ὁ' => 'Ὁ', - 'ὂ' => 'Ὂ', - 'ὃ' => 'Ὃ', - 'ὄ' => 'Ὄ', - 'ὅ' => 'Ὅ', - 'ὑ' => 'Ὑ', - 'ὓ' => 'Ὓ', - 'ὕ' => 'Ὕ', - 'ὗ' => 'Ὗ', - 'ὠ' => 'Ὠ', - 'ὡ' => 'Ὡ', - 'ὢ' => 'Ὢ', - 'ὣ' => 'Ὣ', - 'ὤ' => 'Ὤ', - 'ὥ' => 'Ὥ', - 'ὦ' => 'Ὦ', - 'ὧ' => 'Ὧ', - 'ὰ' => 'Ὰ', - 'ά' => 'Ά', - 'ὲ' => 'Ὲ', - 'έ' => 'Έ', - 'ὴ' => 'Ὴ', - 'ή' => 'Ή', - 'ὶ' => 'Ὶ', - 'ί' => 'Ί', - 'ὸ' => 'Ὸ', - 'ό' => 'Ό', - 'ὺ' => 'Ὺ', - 'ύ' => 'Ύ', - 'ὼ' => 'Ὼ', - 'ώ' => 'Ώ', - 'ᾀ' => 'ᾈ', - 'ᾁ' => 'ᾉ', - 'ᾂ' => 'ᾊ', - 'ᾃ' => 'ᾋ', - 'ᾄ' => 'ᾌ', - 'ᾅ' => 'ᾍ', - 'ᾆ' => 'ᾎ', - 'ᾇ' => 'ᾏ', - 'ᾐ' => 'ᾘ', - 'ᾑ' => 'ᾙ', - 'ᾒ' => 'ᾚ', - 'ᾓ' => 'ᾛ', - 'ᾔ' => 'ᾜ', - 'ᾕ' => 'ᾝ', - 'ᾖ' => 'ᾞ', - 'ᾗ' => 'ᾟ', - 'ᾠ' => 'ᾨ', - 'ᾡ' => 'ᾩ', - 'ᾢ' => 'ᾪ', - 'ᾣ' => 'ᾫ', - 'ᾤ' => 'ᾬ', - 'ᾥ' => 'ᾭ', - 'ᾦ' => 'ᾮ', - 'ᾧ' => 'ᾯ', - 'ᾰ' => 'Ᾰ', - 'ᾱ' => 'Ᾱ', - 'ᾳ' => 'ᾼ', - 'ι' => 'Ι', - 'ῃ' => 'ῌ', - 'ῐ' => 'Ῐ', - 'ῑ' => 'Ῑ', - 'ῠ' => 'Ῠ', - 'ῡ' => 'Ῡ', - 'ῥ' => 'Ῥ', - 'ῳ' => 'ῼ', - 'ⅎ' => 'Ⅎ', - 'ⅰ' => 'Ⅰ', - 'ⅱ' => 'Ⅱ', - 'ⅲ' => 'Ⅲ', - 'ⅳ' => 'Ⅳ', - 'ⅴ' => 'Ⅴ', - 'ⅵ' => 'Ⅵ', - 'ⅶ' => 'Ⅶ', - 'ⅷ' => 'Ⅷ', - 'ⅸ' => 'Ⅸ', - 'ⅹ' => 'Ⅹ', - 'ⅺ' => 'Ⅺ', - 'ⅻ' => 'Ⅻ', - 'ⅼ' => 'Ⅼ', - 'ⅽ' => 'Ⅽ', - 'ⅾ' => 'Ⅾ', - 'ⅿ' => 'Ⅿ', - 'ↄ' => 'Ↄ', - 'ⓐ' => 'Ⓐ', - 'ⓑ' => 'Ⓑ', - 'ⓒ' => 'Ⓒ', - 'ⓓ' => 'Ⓓ', - 'ⓔ' => 'Ⓔ', - 'ⓕ' => 'Ⓕ', - 'ⓖ' => 'Ⓖ', - 'ⓗ' => 'Ⓗ', - 'ⓘ' => 'Ⓘ', - 'ⓙ' => 'Ⓙ', - 'ⓚ' => 'Ⓚ', - 'ⓛ' => 'Ⓛ', - 'ⓜ' => 'Ⓜ', - 'ⓝ' => 'Ⓝ', - 'ⓞ' => 'Ⓞ', - 'ⓟ' => 'Ⓟ', - 'ⓠ' => 'Ⓠ', - 'ⓡ' => 'Ⓡ', - 'ⓢ' => 'Ⓢ', - 'ⓣ' => 'Ⓣ', - 'ⓤ' => 'Ⓤ', - 'ⓥ' => 'Ⓥ', - 'ⓦ' => 'Ⓦ', - 'ⓧ' => 'Ⓧ', - 'ⓨ' => 'Ⓨ', - 'ⓩ' => 'Ⓩ', - 'ⰰ' => 'Ⰰ', - 'ⰱ' => 'Ⰱ', - 'ⰲ' => 'Ⰲ', - 'ⰳ' => 'Ⰳ', - 'ⰴ' => 'Ⰴ', - 'ⰵ' => 'Ⰵ', - 'ⰶ' => 'Ⰶ', - 'ⰷ' => 'Ⰷ', - 'ⰸ' => 'Ⰸ', - 'ⰹ' => 'Ⰹ', - 'ⰺ' => 'Ⰺ', - 'ⰻ' => 'Ⰻ', - 'ⰼ' => 'Ⰼ', - 'ⰽ' => 'Ⰽ', - 'ⰾ' => 'Ⰾ', - 'ⰿ' => 'Ⰿ', - 'ⱀ' => 'Ⱀ', - 'ⱁ' => 'Ⱁ', - 'ⱂ' => 'Ⱂ', - 'ⱃ' => 'Ⱃ', - 'ⱄ' => 'Ⱄ', - 'ⱅ' => 'Ⱅ', - 'ⱆ' => 'Ⱆ', - 'ⱇ' => 'Ⱇ', - 'ⱈ' => 'Ⱈ', - 'ⱉ' => 'Ⱉ', - 'ⱊ' => 'Ⱊ', - 'ⱋ' => 'Ⱋ', - 'ⱌ' => 'Ⱌ', - 'ⱍ' => 'Ⱍ', - 'ⱎ' => 'Ⱎ', - 'ⱏ' => 'Ⱏ', - 'ⱐ' => 'Ⱐ', - 'ⱑ' => 'Ⱑ', - 'ⱒ' => 'Ⱒ', - 'ⱓ' => 'Ⱓ', - 'ⱔ' => 'Ⱔ', - 'ⱕ' => 'Ⱕ', - 'ⱖ' => 'Ⱖ', - 'ⱗ' => 'Ⱗ', - 'ⱘ' => 'Ⱘ', - 'ⱙ' => 'Ⱙ', - 'ⱚ' => 'Ⱚ', - 'ⱛ' => 'Ⱛ', - 'ⱜ' => 'Ⱜ', - 'ⱝ' => 'Ⱝ', - 'ⱞ' => 'Ⱞ', - 'ⱡ' => 'Ⱡ', - 'ⱥ' => 'Ⱥ', - 'ⱦ' => 'Ⱦ', - 'ⱨ' => 'Ⱨ', - 'ⱪ' => 'Ⱪ', - 'ⱬ' => 'Ⱬ', - 'ⱳ' => 'Ⱳ', - 'ⱶ' => 'Ⱶ', - 'ⲁ' => 'Ⲁ', - 'ⲃ' => 'Ⲃ', - 'ⲅ' => 'Ⲅ', - 'ⲇ' => 'Ⲇ', - 'ⲉ' => 'Ⲉ', - 'ⲋ' => 'Ⲋ', - 'ⲍ' => 'Ⲍ', - 'ⲏ' => 'Ⲏ', - 'ⲑ' => 'Ⲑ', - 'ⲓ' => 'Ⲓ', - 'ⲕ' => 'Ⲕ', - 'ⲗ' => 'Ⲗ', - 'ⲙ' => 'Ⲙ', - 'ⲛ' => 'Ⲛ', - 'ⲝ' => 'Ⲝ', - 'ⲟ' => 'Ⲟ', - 'ⲡ' => 'Ⲡ', - 'ⲣ' => 'Ⲣ', - 'ⲥ' => 'Ⲥ', - 'ⲧ' => 'Ⲧ', - 'ⲩ' => 'Ⲩ', - 'ⲫ' => 'Ⲫ', - 'ⲭ' => 'Ⲭ', - 'ⲯ' => 'Ⲯ', - 'ⲱ' => 'Ⲱ', - 'ⲳ' => 'Ⲳ', - 'ⲵ' => 'Ⲵ', - 'ⲷ' => 'Ⲷ', - 'ⲹ' => 'Ⲹ', - 'ⲻ' => 'Ⲻ', - 'ⲽ' => 'Ⲽ', - 'ⲿ' => 'Ⲿ', - 'ⳁ' => 'Ⳁ', - 'ⳃ' => 'Ⳃ', - 'ⳅ' => 'Ⳅ', - 'ⳇ' => 'Ⳇ', - 'ⳉ' => 'Ⳉ', - 'ⳋ' => 'Ⳋ', - 'ⳍ' => 'Ⳍ', - 'ⳏ' => 'Ⳏ', - 'ⳑ' => 'Ⳑ', - 'ⳓ' => 'Ⳓ', - 'ⳕ' => 'Ⳕ', - 'ⳗ' => 'Ⳗ', - 'ⳙ' => 'Ⳙ', - 'ⳛ' => 'Ⳛ', - 'ⳝ' => 'Ⳝ', - 'ⳟ' => 'Ⳟ', - 'ⳡ' => 'Ⳡ', - 'ⳣ' => 'Ⳣ', - 'ⳬ' => 'Ⳬ', - 'ⳮ' => 'Ⳮ', - 'ⳳ' => 'Ⳳ', - 'ⴀ' => 'Ⴀ', - 'ⴁ' => 'Ⴁ', - 'ⴂ' => 'Ⴂ', - 'ⴃ' => 'Ⴃ', - 'ⴄ' => 'Ⴄ', - 'ⴅ' => 'Ⴅ', - 'ⴆ' => 'Ⴆ', - 'ⴇ' => 'Ⴇ', - 'ⴈ' => 'Ⴈ', - 'ⴉ' => 'Ⴉ', - 'ⴊ' => 'Ⴊ', - 'ⴋ' => 'Ⴋ', - 'ⴌ' => 'Ⴌ', - 'ⴍ' => 'Ⴍ', - 'ⴎ' => 'Ⴎ', - 'ⴏ' => 'Ⴏ', - 'ⴐ' => 'Ⴐ', - 'ⴑ' => 'Ⴑ', - 'ⴒ' => 'Ⴒ', - 'ⴓ' => 'Ⴓ', - 'ⴔ' => 'Ⴔ', - 'ⴕ' => 'Ⴕ', - 'ⴖ' => 'Ⴖ', - 'ⴗ' => 'Ⴗ', - 'ⴘ' => 'Ⴘ', - 'ⴙ' => 'Ⴙ', - 'ⴚ' => 'Ⴚ', - 'ⴛ' => 'Ⴛ', - 'ⴜ' => 'Ⴜ', - 'ⴝ' => 'Ⴝ', - 'ⴞ' => 'Ⴞ', - 'ⴟ' => 'Ⴟ', - 'ⴠ' => 'Ⴠ', - 'ⴡ' => 'Ⴡ', - 'ⴢ' => 'Ⴢ', - 'ⴣ' => 'Ⴣ', - 'ⴤ' => 'Ⴤ', - 'ⴥ' => 'Ⴥ', - 'ⴧ' => 'Ⴧ', - 'ⴭ' => 'Ⴭ', - 'ꙁ' => 'Ꙁ', - 'ꙃ' => 'Ꙃ', - 'ꙅ' => 'Ꙅ', - 'ꙇ' => 'Ꙇ', - 'ꙉ' => 'Ꙉ', - 'ꙋ' => 'Ꙋ', - 'ꙍ' => 'Ꙍ', - 'ꙏ' => 'Ꙏ', - 'ꙑ' => 'Ꙑ', - 'ꙓ' => 'Ꙓ', - 'ꙕ' => 'Ꙕ', - 'ꙗ' => 'Ꙗ', - 'ꙙ' => 'Ꙙ', - 'ꙛ' => 'Ꙛ', - 'ꙝ' => 'Ꙝ', - 'ꙟ' => 'Ꙟ', - 'ꙡ' => 'Ꙡ', - 'ꙣ' => 'Ꙣ', - 'ꙥ' => 'Ꙥ', - 'ꙧ' => 'Ꙧ', - 'ꙩ' => 'Ꙩ', - 'ꙫ' => 'Ꙫ', - 'ꙭ' => 'Ꙭ', - 'ꚁ' => 'Ꚁ', - 'ꚃ' => 'Ꚃ', - 'ꚅ' => 'Ꚅ', - 'ꚇ' => 'Ꚇ', - 'ꚉ' => 'Ꚉ', - 'ꚋ' => 'Ꚋ', - 'ꚍ' => 'Ꚍ', - 'ꚏ' => 'Ꚏ', - 'ꚑ' => 'Ꚑ', - 'ꚓ' => 'Ꚓ', - 'ꚕ' => 'Ꚕ', - 'ꚗ' => 'Ꚗ', - 'ꚙ' => 'Ꚙ', - 'ꚛ' => 'Ꚛ', - 'ꜣ' => 'Ꜣ', - 'ꜥ' => 'Ꜥ', - 'ꜧ' => 'Ꜧ', - 'ꜩ' => 'Ꜩ', - 'ꜫ' => 'Ꜫ', - 'ꜭ' => 'Ꜭ', - 'ꜯ' => 'Ꜯ', - 'ꜳ' => 'Ꜳ', - 'ꜵ' => 'Ꜵ', - 'ꜷ' => 'Ꜷ', - 'ꜹ' => 'Ꜹ', - 'ꜻ' => 'Ꜻ', - 'ꜽ' => 'Ꜽ', - 'ꜿ' => 'Ꜿ', - 'ꝁ' => 'Ꝁ', - 'ꝃ' => 'Ꝃ', - 'ꝅ' => 'Ꝅ', - 'ꝇ' => 'Ꝇ', - 'ꝉ' => 'Ꝉ', - 'ꝋ' => 'Ꝋ', - 'ꝍ' => 'Ꝍ', - 'ꝏ' => 'Ꝏ', - 'ꝑ' => 'Ꝑ', - 'ꝓ' => 'Ꝓ', - 'ꝕ' => 'Ꝕ', - 'ꝗ' => 'Ꝗ', - 'ꝙ' => 'Ꝙ', - 'ꝛ' => 'Ꝛ', - 'ꝝ' => 'Ꝝ', - 'ꝟ' => 'Ꝟ', - 'ꝡ' => 'Ꝡ', - 'ꝣ' => 'Ꝣ', - 'ꝥ' => 'Ꝥ', - 'ꝧ' => 'Ꝧ', - 'ꝩ' => 'Ꝩ', - 'ꝫ' => 'Ꝫ', - 'ꝭ' => 'Ꝭ', - 'ꝯ' => 'Ꝯ', - 'ꝺ' => 'Ꝺ', - 'ꝼ' => 'Ꝼ', - 'ꝿ' => 'Ꝿ', - 'ꞁ' => 'Ꞁ', - 'ꞃ' => 'Ꞃ', - 'ꞅ' => 'Ꞅ', - 'ꞇ' => 'Ꞇ', - 'ꞌ' => 'Ꞌ', - 'ꞑ' => 'Ꞑ', - 'ꞓ' => 'Ꞓ', - 'ꞗ' => 'Ꞗ', - 'ꞙ' => 'Ꞙ', - 'ꞛ' => 'Ꞛ', - 'ꞝ' => 'Ꞝ', - 'ꞟ' => 'Ꞟ', - 'ꞡ' => 'Ꞡ', - 'ꞣ' => 'Ꞣ', - 'ꞥ' => 'Ꞥ', - 'ꞧ' => 'Ꞧ', - 'ꞩ' => 'Ꞩ', - 'a' => 'A', - 'b' => 'B', - 'c' => 'C', - 'd' => 'D', - 'e' => 'E', - 'f' => 'F', - 'g' => 'G', - 'h' => 'H', - 'i' => 'I', - 'j' => 'J', - 'k' => 'K', - 'l' => 'L', - 'm' => 'M', - 'n' => 'N', - 'o' => 'O', - 'p' => 'P', - 'q' => 'Q', - 'r' => 'R', - 's' => 'S', - 't' => 'T', - 'u' => 'U', - 'v' => 'V', - 'w' => 'W', - 'x' => 'X', - 'y' => 'Y', - 'z' => 'Z', - '𐐨' => '𐐀', - '𐐩' => '𐐁', - '𐐪' => '𐐂', - '𐐫' => '𐐃', - '𐐬' => '𐐄', - '𐐭' => '𐐅', - '𐐮' => '𐐆', - '𐐯' => '𐐇', - '𐐰' => '𐐈', - '𐐱' => '𐐉', - '𐐲' => '𐐊', - '𐐳' => '𐐋', - '𐐴' => '𐐌', - '𐐵' => '𐐍', - '𐐶' => '𐐎', - '𐐷' => '𐐏', - '𐐸' => '𐐐', - '𐐹' => '𐐑', - '𐐺' => '𐐒', - '𐐻' => '𐐓', - '𐐼' => '𐐔', - '𐐽' => '𐐕', - '𐐾' => '𐐖', - '𐐿' => '𐐗', - '𐑀' => '𐐘', - '𐑁' => '𐐙', - '𐑂' => '𐐚', - '𐑃' => '𐐛', - '𐑄' => '𐐜', - '𐑅' => '𐐝', - '𐑆' => '𐐞', - '𐑇' => '𐐟', - '𐑈' => '𐐠', - '𐑉' => '𐐡', - '𐑊' => '𐐢', - '𐑋' => '𐐣', - '𐑌' => '𐐤', - '𐑍' => '𐐥', - '𐑎' => '𐐦', - '𐑏' => '𐐧', - '𑣀' => '𑢠', - '𑣁' => '𑢡', - '𑣂' => '𑢢', - '𑣃' => '𑢣', - '𑣄' => '𑢤', - '𑣅' => '𑢥', - '𑣆' => '𑢦', - '𑣇' => '𑢧', - '𑣈' => '𑢨', - '𑣉' => '𑢩', - '𑣊' => '𑢪', - '𑣋' => '𑢫', - '𑣌' => '𑢬', - '𑣍' => '𑢭', - '𑣎' => '𑢮', - '𑣏' => '𑢯', - '𑣐' => '𑢰', - '𑣑' => '𑢱', - '𑣒' => '𑢲', - '𑣓' => '𑢳', - '𑣔' => '𑢴', - '𑣕' => '𑢵', - '𑣖' => '𑢶', - '𑣗' => '𑢷', - '𑣘' => '𑢸', - '𑣙' => '𑢹', - '𑣚' => '𑢺', - '𑣛' => '𑢻', - '𑣜' => '𑢼', - '𑣝' => '𑢽', - '𑣞' => '𑢾', - '𑣟' => '𑢿', -); - -$result =& $data; -unset($data); - -return $result; diff --git a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/bootstrap.php b/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/bootstrap.php deleted file mode 100644 index 2fdcc5a..0000000 --- a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/bootstrap.php +++ /dev/null @@ -1,58 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Symfony\Polyfill\Mbstring as p; - -if (!function_exists('mb_strlen')) { - define('MB_CASE_UPPER', 0); - define('MB_CASE_LOWER', 1); - define('MB_CASE_TITLE', 2); - - function mb_convert_encoding($s, $to, $from = null) { return p\Mbstring::mb_convert_encoding($s, $to, $from); } - function mb_decode_mimeheader($s) { return p\Mbstring::mb_decode_mimeheader($s); } - function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent); } - function mb_decode_numericentity($s, $convmap, $enc = null) { return p\Mbstring::mb_decode_numericentity($s, $convmap, $enc); } - function mb_encode_numericentity($s, $convmap, $enc = null, $is_hex = false) { return p\Mbstring::mb_encode_numericentity($s, $convmap, $enc, $is_hex); } - function mb_convert_case($s, $mode, $enc = null) { return p\Mbstring::mb_convert_case($s, $mode, $enc); } - function mb_internal_encoding($enc = null) { return p\Mbstring::mb_internal_encoding($enc); } - function mb_language($lang = null) { return p\Mbstring::mb_language($lang); } - function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); } - function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); } - function mb_check_encoding($var = null, $encoding = null) { return p\Mbstring::mb_check_encoding($var, $encoding); } - function mb_detect_encoding($str, $encodingList = null, $strict = false) { return p\Mbstring::mb_detect_encoding($str, $encodingList, $strict); } - function mb_detect_order($encodingList = null) { return p\Mbstring::mb_detect_order($encodingList); } - function mb_parse_str($s, &$result = array()) { parse_str($s, $result); } - function mb_strlen($s, $enc = null) { return p\Mbstring::mb_strlen($s, $enc); } - function mb_strpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strpos($s, $needle, $offset, $enc); } - function mb_strtolower($s, $enc = null) { return p\Mbstring::mb_strtolower($s, $enc); } - function mb_strtoupper($s, $enc = null) { return p\Mbstring::mb_strtoupper($s, $enc); } - function mb_substitute_character($char = null) { return p\Mbstring::mb_substitute_character($char); } - function mb_substr($s, $start, $length = 2147483647, $enc = null) { return p\Mbstring::mb_substr($s, $start, $length, $enc); } - function mb_stripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_stripos($s, $needle, $offset, $enc); } - function mb_stristr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_stristr($s, $needle, $part, $enc); } - function mb_strrchr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrchr($s, $needle, $part, $enc); } - function mb_strrichr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrichr($s, $needle, $part, $enc); } - function mb_strripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strripos($s, $needle, $offset, $enc); } - function mb_strrpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strrpos($s, $needle, $offset, $enc); } - function mb_strstr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strstr($s, $needle, $part, $enc); } - function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); } - function mb_http_output($enc = null) { return p\Mbstring::mb_http_output($enc); } - function mb_strwidth($s, $enc = null) { return p\Mbstring::mb_strwidth($s, $enc); } - function mb_substr_count($haystack, $needle, $enc = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $enc); } - function mb_output_handler($contents, $status) { return p\Mbstring::mb_output_handler($contents, $status); } - function mb_http_input($type = '') { return p\Mbstring::mb_http_input($type); } - function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) { return p\Mbstring::mb_convert_variables($toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f); } -} -if (!function_exists('mb_chr')) { - function mb_ord($s, $enc = null) { return p\Mbstring::mb_ord($s, $enc); } - function mb_chr($code, $enc = null) { return p\Mbstring::mb_chr($code, $enc); } - function mb_scrub($s, $enc = null) { $enc = null === $enc ? mb_internal_encoding() : $enc; return mb_convert_encoding($s, $enc, $enc); } -} diff --git a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/composer.json b/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/composer.json deleted file mode 100644 index 4febcdd..0000000 --- a/modules/dkan_sci_citation/includes/vendor/symfony/polyfill-mbstring/composer.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "symfony/polyfill-mbstring", - "type": "library", - "description": "Symfony polyfill for the Mbstring extension", - "keywords": ["polyfill", "shim", "compatibility", "portable", "mbstring"], - "homepage": "https://symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "require": { - "php": ">=5.3.3" - }, - "autoload": { - "psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" }, - "files": [ "bootstrap.php" ] - }, - "suggest": { - "ext-mbstring": "For best performance" - }, - "minimum-stability": "dev", - "extra": { - "branch-alias": { - "dev-master": "1.7-dev" - } - } -} From 2a331ae07af2777a1f77341330da6feca2128471 Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 17:01:34 -0500 Subject: [PATCH 02/15] Remove additional composer artifacts --- autoload.php | 7 - composer.json | 1 - vendor/autoload.php | 7 - vendor/composer/ClassLoader.php | 445 ------------------------ vendor/composer/LICENSE | 56 --- vendor/composer/autoload_classmap.php | 9 - vendor/composer/autoload_namespaces.php | 9 - vendor/composer/autoload_psr4.php | 9 - vendor/composer/autoload_real.php | 52 --- vendor/composer/autoload_static.php | 15 - vendor/composer/installed.json | 1 - 11 files changed, 611 deletions(-) delete mode 100644 autoload.php delete mode 100644 composer.json delete mode 100644 vendor/autoload.php delete mode 100644 vendor/composer/ClassLoader.php delete mode 100644 vendor/composer/LICENSE delete mode 100644 vendor/composer/autoload_classmap.php delete mode 100644 vendor/composer/autoload_namespaces.php delete mode 100644 vendor/composer/autoload_psr4.php delete mode 100644 vendor/composer/autoload_real.php delete mode 100644 vendor/composer/autoload_static.php delete mode 100644 vendor/composer/installed.json diff --git a/autoload.php b/autoload.php deleted file mode 100644 index 71d3d93..0000000 --- a/autoload.php +++ /dev/null @@ -1,7 +0,0 @@ - - * Jordi Boggiano - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Composer\Autoload; - -/** - * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. - * - * $loader = new \Composer\Autoload\ClassLoader(); - * - * // register classes with namespaces - * $loader->add('Symfony\Component', __DIR__.'/component'); - * $loader->add('Symfony', __DIR__.'/framework'); - * - * // activate the autoloader - * $loader->register(); - * - * // to enable searching the include path (eg. for PEAR packages) - * $loader->setUseIncludePath(true); - * - * In this example, if you try to use a class in the Symfony\Component - * namespace or one of its children (Symfony\Component\Console for instance), - * the autoloader will first look for the class under the component/ - * directory, and it will then fallback to the framework/ directory if not - * found before giving up. - * - * This class is loosely based on the Symfony UniversalClassLoader. - * - * @author Fabien Potencier - * @author Jordi Boggiano - * @see http://www.php-fig.org/psr/psr-0/ - * @see http://www.php-fig.org/psr/psr-4/ - */ -class ClassLoader -{ - // PSR-4 - private $prefixLengthsPsr4 = array(); - private $prefixDirsPsr4 = array(); - private $fallbackDirsPsr4 = array(); - - // PSR-0 - private $prefixesPsr0 = array(); - private $fallbackDirsPsr0 = array(); - - private $useIncludePath = false; - private $classMap = array(); - private $classMapAuthoritative = false; - private $missingClasses = array(); - private $apcuPrefix; - - public function getPrefixes() - { - if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', $this->prefixesPsr0); - } - - return array(); - } - - public function getPrefixesPsr4() - { - return $this->prefixDirsPsr4; - } - - public function getFallbackDirs() - { - return $this->fallbackDirsPsr0; - } - - public function getFallbackDirsPsr4() - { - return $this->fallbackDirsPsr4; - } - - public function getClassMap() - { - return $this->classMap; - } - - /** - * @param array $classMap Class to filename map - */ - public function addClassMap(array $classMap) - { - if ($this->classMap) { - $this->classMap = array_merge($this->classMap, $classMap); - } else { - $this->classMap = $classMap; - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, either - * appending or prepending to the ones previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories - */ - public function add($prefix, $paths, $prepend = false) - { - if (!$prefix) { - if ($prepend) { - $this->fallbackDirsPsr0 = array_merge( - (array) $paths, - $this->fallbackDirsPsr0 - ); - } else { - $this->fallbackDirsPsr0 = array_merge( - $this->fallbackDirsPsr0, - (array) $paths - ); - } - - return; - } - - $first = $prefix[0]; - if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = (array) $paths; - - return; - } - if ($prepend) { - $this->prefixesPsr0[$first][$prefix] = array_merge( - (array) $paths, - $this->prefixesPsr0[$first][$prefix] - ); - } else { - $this->prefixesPsr0[$first][$prefix] = array_merge( - $this->prefixesPsr0[$first][$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, either - * appending or prepending to the ones previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories - * - * @throws \InvalidArgumentException - */ - public function addPsr4($prefix, $paths, $prepend = false) - { - if (!$prefix) { - // Register directories for the root namespace. - if ($prepend) { - $this->fallbackDirsPsr4 = array_merge( - (array) $paths, - $this->fallbackDirsPsr4 - ); - } else { - $this->fallbackDirsPsr4 = array_merge( - $this->fallbackDirsPsr4, - (array) $paths - ); - } - } elseif (!isset($this->prefixDirsPsr4[$prefix])) { - // Register directories for a new namespace. - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } elseif ($prepend) { - // Prepend directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - (array) $paths, - $this->prefixDirsPsr4[$prefix] - ); - } else { - // Append directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - $this->prefixDirsPsr4[$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, - * replacing any others previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 base directories - */ - public function set($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr0 = (array) $paths; - } else { - $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, - * replacing any others previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * - * @throws \InvalidArgumentException - */ - public function setPsr4($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr4 = (array) $paths; - } else { - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } - } - - /** - * Turns on searching the include path for class files. - * - * @param bool $useIncludePath - */ - public function setUseIncludePath($useIncludePath) - { - $this->useIncludePath = $useIncludePath; - } - - /** - * Can be used to check if the autoloader uses the include path to check - * for classes. - * - * @return bool - */ - public function getUseIncludePath() - { - return $this->useIncludePath; - } - - /** - * Turns off searching the prefix and fallback directories for classes - * that have not been registered with the class map. - * - * @param bool $classMapAuthoritative - */ - public function setClassMapAuthoritative($classMapAuthoritative) - { - $this->classMapAuthoritative = $classMapAuthoritative; - } - - /** - * Should class lookup fail if not found in the current class map? - * - * @return bool - */ - public function isClassMapAuthoritative() - { - return $this->classMapAuthoritative; - } - - /** - * APCu prefix to use to cache found/not-found classes, if the extension is enabled. - * - * @param string|null $apcuPrefix - */ - public function setApcuPrefix($apcuPrefix) - { - $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; - } - - /** - * The APCu prefix in use, or null if APCu caching is not enabled. - * - * @return string|null - */ - public function getApcuPrefix() - { - return $this->apcuPrefix; - } - - /** - * Registers this instance as an autoloader. - * - * @param bool $prepend Whether to prepend the autoloader or not - */ - public function register($prepend = false) - { - spl_autoload_register(array($this, 'loadClass'), true, $prepend); - } - - /** - * Unregisters this instance as an autoloader. - */ - public function unregister() - { - spl_autoload_unregister(array($this, 'loadClass')); - } - - /** - * Loads the given class or interface. - * - * @param string $class The name of the class - * @return bool|null True if loaded, null otherwise - */ - public function loadClass($class) - { - if ($file = $this->findFile($class)) { - includeFile($file); - - return true; - } - } - - /** - * Finds the path to the file where the class is defined. - * - * @param string $class The name of the class - * - * @return string|false The path if found, false otherwise - */ - public function findFile($class) - { - // class map lookup - if (isset($this->classMap[$class])) { - return $this->classMap[$class]; - } - if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { - return false; - } - if (null !== $this->apcuPrefix) { - $file = apcu_fetch($this->apcuPrefix.$class, $hit); - if ($hit) { - return $file; - } - } - - $file = $this->findFileWithExtension($class, '.php'); - - // Search for Hack files if we are running on HHVM - if (false === $file && defined('HHVM_VERSION')) { - $file = $this->findFileWithExtension($class, '.hh'); - } - - if (null !== $this->apcuPrefix) { - apcu_add($this->apcuPrefix.$class, $file); - } - - if (false === $file) { - // Remember that this class does not exist. - $this->missingClasses[$class] = true; - } - - return $file; - } - - private function findFileWithExtension($class, $ext) - { - // PSR-4 lookup - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; - - $first = $class[0]; - if (isset($this->prefixLengthsPsr4[$first])) { - $subPath = $class; - while (false !== $lastPos = strrpos($subPath, '\\')) { - $subPath = substr($subPath, 0, $lastPos); - $search = $subPath.'\\'; - if (isset($this->prefixDirsPsr4[$search])) { - foreach ($this->prefixDirsPsr4[$search] as $dir) { - $length = $this->prefixLengthsPsr4[$first][$search]; - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { - return $file; - } - } - } - } - } - - // PSR-4 fallback dirs - foreach ($this->fallbackDirsPsr4 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { - return $file; - } - } - - // PSR-0 lookup - if (false !== $pos = strrpos($class, '\\')) { - // namespaced class name - $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) - . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); - } else { - // PEAR-like class name - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; - } - - if (isset($this->prefixesPsr0[$first])) { - foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { - if (0 === strpos($class, $prefix)) { - foreach ($dirs as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - } - } - } - - // PSR-0 fallback dirs - foreach ($this->fallbackDirsPsr0 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - - // PSR-0 include paths. - if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { - return $file; - } - - return false; - } -} - -/** - * Scope isolated include. - * - * Prevents access to $this/self from included files. - */ -function includeFile($file) -{ - include $file; -} diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE deleted file mode 100644 index f0157a6..0000000 --- a/vendor/composer/LICENSE +++ /dev/null @@ -1,56 +0,0 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: Composer -Upstream-Contact: Jordi Boggiano -Source: https://github.com/composer/composer - -Files: * -Copyright: 2016, Nils Adermann - 2016, Jordi Boggiano -License: Expat - -Files: src/Composer/Util/TlsHelper.php -Copyright: 2016, Nils Adermann - 2016, Jordi Boggiano - 2013, Evan Coury -License: Expat and BSD-2-Clause - -License: BSD-2-Clause - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - . - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - . - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - . - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -License: Expat - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is furnished - to do so, subject to the following conditions: - . - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - . - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php deleted file mode 100644 index 7a91153..0000000 --- a/vendor/composer/autoload_classmap.php +++ /dev/null @@ -1,9 +0,0 @@ -= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); - if ($useStaticLoader) { - require_once __DIR__ . '/autoload_static.php'; - - call_user_func(\Composer\Autoload\ComposerStaticInitd84ea19983a46a07d7e0a63d9e244c78::getInitializer($loader)); - } else { - $map = require __DIR__ . '/autoload_namespaces.php'; - foreach ($map as $namespace => $path) { - $loader->set($namespace, $path); - } - - $map = require __DIR__ . '/autoload_psr4.php'; - foreach ($map as $namespace => $path) { - $loader->setPsr4($namespace, $path); - } - - $classMap = require __DIR__ . '/autoload_classmap.php'; - if ($classMap) { - $loader->addClassMap($classMap); - } - } - - $loader->register(true); - - return $loader; - } -} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php deleted file mode 100644 index 356d7fa..0000000 --- a/vendor/composer/autoload_static.php +++ /dev/null @@ -1,15 +0,0 @@ - Date: Thu, 20 Feb 2020 17:01:46 -0500 Subject: [PATCH 03/15] Add .gitignore --- modules/dkan_sci_citation/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 modules/dkan_sci_citation/.gitignore diff --git a/modules/dkan_sci_citation/.gitignore b/modules/dkan_sci_citation/.gitignore new file mode 100644 index 0000000..7d8642c --- /dev/null +++ b/modules/dkan_sci_citation/.gitignore @@ -0,0 +1 @@ +includes/vendor \ No newline at end of file From 0e270623cb5f5962abb9400561607263d4928606 Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 17:01:59 -0500 Subject: [PATCH 04/15] Restore composer.json files --- modules/dkan_sci_citation/composer.json | 38 + modules/dkan_sci_citation/composer.lock | 1188 +++++++++++++++++++++++ 2 files changed, 1226 insertions(+) create mode 100644 modules/dkan_sci_citation/composer.json create mode 100644 modules/dkan_sci_citation/composer.lock diff --git a/modules/dkan_sci_citation/composer.json b/modules/dkan_sci_citation/composer.json new file mode 100644 index 0000000..782d8fb --- /dev/null +++ b/modules/dkan_sci_citation/composer.json @@ -0,0 +1,38 @@ +{ + "require": { + "audiolabs/bibtexparser": "dev-master", + "citation-style-language/locales": "1.*", + "citation-style-language/styles-distribution": "1.*", + "renanbr/crossref-client": "dev-master", + "seboettg/citeproc-php": "2.1.1" + }, + "repositories": [ + { + "type": "package", + "package": { + "version": "1.0.0", + "name": "citation-style-language/locales", + "source": { + "url": "https://github.com/citation-style-language/locales.git", + "type": "git", + "reference": "master" + } + } + }, + { + "type": "package", + "package": { + "version": "1.0.0", + "name": "citation-style-language/styles-distribution", + "source": { + "url": "https://github.com/citation-style-language/styles-distribution.git", + "type": "git", + "reference": "master" + } + } + } + ], + "config": { + "vendor-dir": "includes/vendor" + } +} diff --git a/modules/dkan_sci_citation/composer.lock b/modules/dkan_sci_citation/composer.lock new file mode 100644 index 0000000..731f8ae --- /dev/null +++ b/modules/dkan_sci_citation/composer.lock @@ -0,0 +1,1188 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "a3e94ac47764612f89b2d60dff625e5c", + "packages": [ + { + "name": "audiolabs/bibtexparser", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/audiolabs/bibtexparser.git", + "reference": "b2d7794f49887ee7801c780b215d4d66b0f2e475" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/audiolabs/bibtexparser/zipball/b2d7794f49887ee7801c780b215d4d66b0f2e475", + "reference": "b2d7794f49887ee7801c780b215d4d66b0f2e475", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "AudioLabs": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Werner", + "email": "nils.werner@audiolabs-erlangen.de", + "homepage": "http://www.audiolabs-erlangen.de", + "role": "Developer" + } + ], + "description": "Bibtex parser for PHP 5.3", + "homepage": "http://github.com/alabs/bibtexparser", + "keywords": [ + "bibtex", + "latex", + "parsing" + ], + "time": "2014-04-07T10:08:24+00:00" + }, + { + "name": "cache/adapter-common", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-cache/adapter-common.git", + "reference": "6320bb5f5574cb88438059b59f8708da6b6f1d32" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-cache/adapter-common/zipball/6320bb5f5574cb88438059b59f8708da6b6f1d32", + "reference": "6320bb5f5574cb88438059b59f8708da6b6f1d32", + "shasum": "" + }, + "require": { + "cache/tag-interop": "^1.0", + "php": "^5.6 || ^7.0", + "psr/cache": "^1.0", + "psr/log": "^1.0", + "psr/simple-cache": "^1.0" + }, + "require-dev": { + "cache/integration-tests": "^0.16", + "phpunit/phpunit": "^5.7.21" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "Cache\\Adapter\\Common\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Scherer", + "email": "aequasi@gmail.com", + "homepage": "https://github.com/aequasi" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + } + ], + "description": "Common classes for PSR-6 adapters", + "homepage": "http://www.php-cache.com/en/latest/", + "keywords": [ + "cache", + "psr-6", + "tag" + ], + "time": "2018-07-08T13:04:33+00:00" + }, + { + "name": "cache/array-adapter", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-cache/array-adapter.git", + "reference": "6e9ae7f8bbf1b07bdd6144cb944059f91ae65a14" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-cache/array-adapter/zipball/6e9ae7f8bbf1b07bdd6144cb944059f91ae65a14", + "reference": "6e9ae7f8bbf1b07bdd6144cb944059f91ae65a14", + "shasum": "" + }, + "require": { + "cache/adapter-common": "^1.0", + "cache/hierarchical-cache": "^1.0", + "php": "^5.6 || ^7.0", + "psr/cache": "^1.0", + "psr/simple-cache": "^1.0" + }, + "provide": { + "psr/cache-implementation": "^1.0", + "psr/simple-cache-implementation": "^1.0" + }, + "require-dev": { + "cache/integration-tests": "^0.16", + "phpunit/phpunit": "^5.7.21" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Cache\\Adapter\\PHPArray\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Scherer", + "email": "aequasi@gmail.com", + "homepage": "https://github.com/aequasi" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + } + ], + "description": "A PSR-6 cache implementation using a php array. This implementation supports tags", + "homepage": "http://www.php-cache.com/en/latest/", + "keywords": [ + "array", + "cache", + "psr-6", + "tag" + ], + "time": "2017-11-19T11:08:05+00:00" + }, + { + "name": "cache/hierarchical-cache", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-cache/hierarchical-cache.git", + "reference": "97173a5115765f72ccdc90dbc01132a3786ef5fd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-cache/hierarchical-cache/zipball/97173a5115765f72ccdc90dbc01132a3786ef5fd", + "reference": "97173a5115765f72ccdc90dbc01132a3786ef5fd", + "shasum": "" + }, + "require": { + "cache/adapter-common": "^1.0", + "php": "^5.6 || ^7.0", + "psr/cache": "^1.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7.21" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Cache\\Hierarchy\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Scherer", + "email": "aequasi@gmail.com", + "homepage": "https://github.com/aequasi" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + } + ], + "description": "A helper trait and interface to your PSR-6 cache to support hierarchical keys.", + "homepage": "http://www.php-cache.com/en/latest/", + "keywords": [ + "cache", + "hierarchical", + "hierarchy", + "psr-6" + ], + "time": "2017-07-16T21:58:17+00:00" + }, + { + "name": "cache/simple-cache-bridge", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-cache/simple-cache-bridge.git", + "reference": "607a32c40587fd049ac40d4bb20dfd5f778d89d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-cache/simple-cache-bridge/zipball/607a32c40587fd049ac40d4bb20dfd5f778d89d5", + "reference": "607a32c40587fd049ac40d4bb20dfd5f778d89d5", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0", + "psr/cache": "^1.0", + "psr/simple-cache": "^1.0" + }, + "provide": { + "psr/simple-cache-implementation": "^1.0" + }, + "require-dev": { + "cache/integration-tests": "^0.16", + "mockery/mockery": "^0.9", + "phpunit/phpunit": "^5.7.21", + "symfony/cache": "^3.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Cache\\Bridge\\SimpleCache\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Magnus Nordlander", + "email": "magnus@fervo.se", + "homepage": "https://github.com/magnusnordlander" + } + ], + "description": "A PSR-6 bridge to PSR-16. This will make any PSR-6 cache compatible with SimpleCache.", + "homepage": "http://www.php-cache.com/en/latest/", + "keywords": [ + "Bridge", + "cache", + "psr-16", + "psr-6" + ], + "time": "2017-07-16T21:58:17+00:00" + }, + { + "name": "cache/tag-interop", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-cache/tag-interop.git", + "reference": "c7496dd81530f538af27b4f2713cde97bc292832" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-cache/tag-interop/zipball/c7496dd81530f538af27b4f2713cde97bc292832", + "reference": "c7496dd81530f538af27b4f2713cde97bc292832", + "shasum": "" + }, + "require": { + "php": "^5.5 || ^7.0", + "psr/cache": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "psr-4": { + "Cache\\TagInterop\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com", + "homepage": "https://github.com/nicolas-grekas" + } + ], + "description": "Framework interoperable interfaces for tags", + "homepage": "http://www.php-cache.com/en/latest/", + "keywords": [ + "cache", + "psr", + "psr6", + "tag" + ], + "time": "2017-03-13T09:14:27+00:00" + }, + { + "name": "citation-style-language/locales", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/citation-style-language/locales.git", + "reference": "master" + }, + "type": "library" + }, + { + "name": "citation-style-language/styles-distribution", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/citation-style-language/styles-distribution.git", + "reference": "master" + }, + "type": "library" + }, + { + "name": "guzzlehttp/guzzle", + "version": "6.5.2", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "43ece0e75098b7ecd8d13918293029e555a50f82" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/43ece0e75098b7ecd8d13918293029e555a50f82", + "reference": "43ece0e75098b7ecd8d13918293029e555a50f82", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.0", + "guzzlehttp/psr7": "^1.6.1", + "php": ">=5.5" + }, + "require-dev": { + "ext-curl": "*", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", + "psr/log": "^1.1" + }, + "suggest": { + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.5-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "homepage": "http://guzzlephp.org/", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "rest", + "web service" + ], + "time": "2019-12-23T11:57:10+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "v1.3.1", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", + "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", + "shasum": "" + }, + "require": { + "php": ">=5.5.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "time": "2016-12-20T10:07:11+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "1.6.1", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "239400de7a173fe9901b9ac7c06497751f00727a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a", + "reference": "239400de7a173fe9901b9ac7c06497751f00727a", + "shasum": "" + }, + "require": { + "php": ">=5.4.0", + "psr/http-message": "~1.0", + "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" + }, + "provide": { + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "ext-zlib": "*", + "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" + }, + "suggest": { + "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Schultze", + "homepage": "https://github.com/Tobion" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "time": "2019-07-01T23:21:34+00:00" + }, + { + "name": "kevinrob/guzzle-cache-middleware", + "version": "v3.3.1", + "source": { + "type": "git", + "url": "https://github.com/Kevinrob/guzzle-cache-middleware.git", + "reference": "f978b8da7484a16e26589a5518d6bacc6ccdee99" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Kevinrob/guzzle-cache-middleware/zipball/f978b8da7484a16e26589a5518d6bacc6ccdee99", + "reference": "f978b8da7484a16e26589a5518d6bacc6ccdee99", + "shasum": "" + }, + "require": { + "php": ">=5.5.0" + }, + "require-dev": { + "cache/array-adapter": "^0.4 || ^0.5 || ^1.0", + "cache/simple-cache-bridge": "^0.1 || ^1.0", + "doctrine/cache": "^1.0", + "guzzlehttp/guzzle": "^6.0", + "illuminate/cache": "^5.0", + "league/flysystem": "^1.0", + "phpunit/phpunit": "^4.8.36 || ^5.0", + "psr/cache": "^1.0", + "symfony/phpunit-bridge": "^4.4 || ^5.0" + }, + "suggest": { + "doctrine/cache": "This library has a lot of ready-to-use cache storage (to be used with Kevinrob\\GuzzleCache\\Storage\\DoctrineCacheStorage).", + "guzzlehttp/guzzle": "For using this library. It was created for Guzzle6 (but you can use it with any PSR-7 HTTP client).", + "laravel/framework": "To be used with Kevinrob\\GuzzleCache\\Storage\\LaravelCacheStorage", + "league/flysystem": "To be used with Kevinrob\\GuzzleCache\\Storage\\FlysystemStorage", + "psr/cache": "To be used with Kevinrob\\GuzzleCache\\Storage\\Psr6CacheStorage", + "psr/simple-cache": "To be used with Kevinrob\\GuzzleCache\\Storage\\Psr16CacheStorage" + }, + "type": "library", + "autoload": { + "psr-4": { + "Kevinrob\\GuzzleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kevin Robatel", + "email": "kevinrob2@gmail.com", + "homepage": "https://github.com/Kevinrob" + } + ], + "description": "A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)", + "homepage": "https://github.com/Kevinrob/guzzle-cache-middleware", + "keywords": [ + "Etag", + "Flysystem", + "Guzzle", + "cache", + "cache-control", + "doctrine", + "expiration", + "guzzle6", + "handler", + "http", + "http 1.1", + "middleware", + "performance", + "php", + "promise", + "psr6", + "psr7", + "rfc7234", + "validation" + ], + "time": "2020-02-14T11:17:02+00:00" + }, + { + "name": "myclabs/php-enum", + "version": "1.7.6", + "source": { + "type": "git", + "url": "https://github.com/myclabs/php-enum.git", + "reference": "5f36467c7a87e20fbdc51e524fd8f9d1de80187c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/php-enum/zipball/5f36467c7a87e20fbdc51e524fd8f9d1de80187c", + "reference": "5f36467c7a87e20fbdc51e524fd8f9d1de80187c", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7", + "squizlabs/php_codesniffer": "1.*", + "vimeo/psalm": "^3.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "MyCLabs\\Enum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP Enum contributors", + "homepage": "https://github.com/myclabs/php-enum/graphs/contributors" + } + ], + "description": "PHP Enum implementation", + "homepage": "http://github.com/myclabs/php-enum", + "keywords": [ + "enum" + ], + "time": "2020-02-14T08:15:52+00:00" + }, + { + "name": "psr/cache", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/cache.git", + "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", + "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "time": "2016-08-06T20:24:11+00:00" + }, + { + "name": "psr/http-message", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "time": "2016-08-06T14:39:51+00:00" + }, + { + "name": "psr/log", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801", + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "time": "2019-11-01T11:05:21+00:00" + }, + { + "name": "psr/simple-cache", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", + "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "time": "2017-10-23T01:57:42+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "renanbr/crossref-client", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/renanbr/crossref-client.git", + "reference": "613d27418a37dce41993442845a74ed98b278f65" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/renanbr/crossref-client/zipball/613d27418a37dce41993442845a74ed98b278f65", + "reference": "613d27418a37dce41993442845a74ed98b278f65", + "shasum": "" + }, + "require": { + "cache/array-adapter": "^1.0", + "cache/simple-cache-bridge": "^1.0", + "guzzlehttp/guzzle": "^6.2", + "kevinrob/guzzle-cache-middleware": "^3.1", + "php": ">=5.6.0", + "psr/simple-cache": "^1.0", + "rtheunissen/guzzle-rate-limiter": "^1.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7.10 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "RenanBr\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Renan de Lima Barbosa", + "email": "renandelima@gmail.com" + } + ], + "description": "Client for CrossRef REST API", + "keywords": [ + "API-Client", + "api", + "client", + "crossref", + "crossref-api", + "crossref-client", + "rest" + ], + "time": "2018-08-15T18:46:35+00:00" + }, + { + "name": "rtheunissen/guzzle-rate-limiter", + "version": "v1.0.1", + "source": { + "type": "git", + "url": "https://github.com/rtheunissen/guzzle-rate-limiter.git", + "reference": "0a7aa13f4ca191f913d19273d2e68083dc4f164c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/rtheunissen/guzzle-rate-limiter/zipball/0a7aa13f4ca191f913d19273d2e68083dc4f164c", + "reference": "0a7aa13f4ca191f913d19273d2e68083dc4f164c", + "shasum": "" + }, + "require": { + "guzzlehttp/guzzle": "~6.0", + "php": ">=5.5", + "psr/log": "~1.0" + }, + "require-dev": { + "mockery/mockery": "~0.9", + "phpunit/phpunit": "~4.6" + }, + "type": "library", + "autoload": { + "psr-4": { + "Concat\\Http\\Middleware\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Rudi Theunissen", + "email": "rudolf.theunissen@gmail.com" + } + ], + "description": "Guzzle 6 middleware used to delay requests dynamically", + "keywords": [ + "Guzzle", + "Rate", + "http", + "middleware", + "psr7", + "throttle" + ], + "time": "2017-04-03T22:36:02+00:00" + }, + { + "name": "seboettg/citeproc-php", + "version": "v2.1.1", + "source": { + "type": "git", + "url": "https://github.com/seboettg/citeproc-php.git", + "reference": "feca12395e3d2a1f89a98a6d886678cca578a5c9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/seboettg/citeproc-php/zipball/feca12395e3d2a1f89a98a6d886678cca578a5c9", + "reference": "feca12395e3d2a1f89a98a6d886678cca578a5c9", + "shasum": "" + }, + "require": { + "myclabs/php-enum": "^1.5", + "seboettg/collection": "^1.2", + "symfony/polyfill-mbstring": "^1.3" + }, + "require-dev": { + "phpunit/phpunit": "6.0.13", + "satooshi/php-coveralls": "^1" + }, + "type": "library", + "autoload": { + "psr-4": { + "": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sebastian Böttger", + "email": "seboettg@gmail.com", + "homepage": "http://sebastianboettger.net", + "role": "Developer" + } + ], + "description": "Full-featured CSL processor (https://citationstyles.org)", + "time": "2018-02-08T15:42:27+00:00" + }, + { + "name": "seboettg/collection", + "version": "v1.3.1", + "source": { + "type": "git", + "url": "https://github.com/seboettg/Collection.git", + "reference": "7f0bbf93dba9b261f6d8c725a4f1583f4402162a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/seboettg/Collection/zipball/7f0bbf93dba9b261f6d8c725a4f1583f4402162a", + "reference": "7f0bbf93dba9b261f6d8c725a4f1583f4402162a", + "shasum": "" + }, + "require-dev": { + "phpunit/phpunit": "6.5.*", + "satooshi/php-coveralls": "^v2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Seboettg\\Collection\\": "src/Seboettg/Collection" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sebastian Böttger", + "email": "seboettg@gmail.com" + } + ], + "description": "Simple PHP ArrayList collection", + "time": "2019-02-13T07:13:15+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.14.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "34094cfa9abe1f0f14f48f490772db7a775559f2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/34094cfa9abe1f0f14f48f490772db7a775559f2", + "reference": "34094cfa9abe1f0f14f48f490772db7a775559f2", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.14-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2020-01-13T11:15:53+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": { + "audiolabs/bibtexparser": 20, + "renanbr/crossref-client": 20 + }, + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} From dccae6b7e82a9d41e31d7435e0e0150619742c9a Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 18:23:53 -0500 Subject: [PATCH 05/15] Hide label for citation disaplay --- .../dkan_sci_citation.features.field_instance.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/dkan_sci_citation/dkan_sci_citation.features.field_instance.inc b/modules/dkan_sci_citation/dkan_sci_citation.features.field_instance.inc index 8ab7a2a..d9acedc 100644 --- a/modules/dkan_sci_citation/dkan_sci_citation.features.field_instance.inc +++ b/modules/dkan_sci_citation/dkan_sci_citation.features.field_instance.inc @@ -20,7 +20,7 @@ function dkan_sci_citation_field_default_field_instances() { 'description' => '', 'display' => array( 'default' => array( - 'label' => 'above', + 'label' => 'hidden', 'module' => 'text', 'settings' => array(), 'type' => 'text_plain', @@ -103,7 +103,7 @@ function dkan_sci_citation_field_default_field_instances() { 'description' => 'If no DOI available, enter a valid APA citation using plain text, HTML or Markdown.', 'display' => array( 'default' => array( - 'label' => 'above', + 'label' => 'hidden', 'module' => 'dkan_sci_citation', 'settings' => array(), 'type' => 'dkan_sci_cite', @@ -179,11 +179,11 @@ function dkan_sci_citation_field_default_field_instances() { // Included for use with string extractors like potx. t('Alternate Object ID'); t('Bibtex'); + t('Citation Text'); t('DOI'); t('Enter a DOI name in the form: 10.1000/123456 to autopopulate the article citation.'); t('Enter the APA citation manually by typing or pasting it into this field. (Examples: Bibtex Format Guide)'); - t('Free Text'); - t('Use this if no DOI is available. You can enter text with HTML and/or markdown or json in a valid citation format.'); + t('If no DOI available, enter a valid APA citation using plain text, HTML or Markdown.'); return $field_instances; } From 3895365f6b6cfae9faef353cbe9b64876e0e8871 Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 18:25:19 -0500 Subject: [PATCH 06/15] Add metadata table functionality to node display --- dkan_sci_metadata.module | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/dkan_sci_metadata.module b/dkan_sci_metadata.module index bca8f88..a3673a4 100644 --- a/dkan_sci_metadata.module +++ b/dkan_sci_metadata.module @@ -299,3 +299,50 @@ function dkan_sci_metadata_field_formatter_view($entity_type, $entity, $field, $ } return $element; } + +function dkan_sci_metadata_preprocess_node(&$variables) { + // Grab our citation paragraphs, and place in the main node table. + if ($variables['type'] === 'dataset' && $variables['view_mode'] === 'full') { + dkan_sci_metadata_metadata_table($variables); + } +} + +function dkan_sci_metadata_metadata_table(&$variables) { + if (!empty($variables['content']['field_metadata_extended']['#items'])) { + foreach($variables['content']['field_metadata_extended']['#items'] as $delta => $field_metadata_extended_item) { + // Load what we assume to be the main science metadata item, and make + // sure it's the right bundle. + $extended_metadata = paragraphs_item_load($field_metadata_extended_item['value']); + // Get our list of science fields and sort according to display. + $metadata_fields = array(); + foreach(field_info_instances('paragraphs_item', $extended_metadata->bundle) as $field) { + $metadata_fields[$field['display']['default']['weight']] = $field; + } + ksort($metadata_fields); + $rows = array(); + foreach($metadata_fields as $field_info) { + dkan_sci_metadata_table_add_field($rows, $field_info, $extended_metadata); + } + // Replace the whole extended metadata field with our table. + $field_instance = field_info_instance('node', 'field_metadata_extended', 'dataset'); + $extended_metadata_table = array( + '#theme' => 'table', + '#header' => array(t('Field'), t('Value')), + '#rows' => $rows, + '#weight' => $field_instance['display']['default']['weight'], + '#attributes' => array('class' => array('extended-metadata')), + ); + $variables['content']['field_metadata_extended'][$delta]['entity']['paragraphs_item'][$extended_metadata->item_id] = $extended_metadata_table; + } + } +} + +function dkan_sci_metadata_table_add_field(&$rows, $field_info, $extended_metadata) { + if (!empty($extended_metadata->{$field_info['field_name']})) { + $row_value = field_view_field('paragraphs_item', $extended_metadata, $field_info['field_name'], 'full'); + $row = array(); + $row[] = array('data' => $field_info['label'], 'class' => array('field-label')); + $row[] = array('data' => $row_value, 'class' => array('field-content')); + $rows[] = $row; + } +} From 99cc1534000c7aab27d4bd61b8c3de09168a197e Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 18:42:32 -0500 Subject: [PATCH 07/15] Update readme --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6830305..c86d49c 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,15 @@ -# About this module +# DKAN Science Metadata This module adds Science Metadata related paragraph bundles to the DKAN dataset content type, and Dkan Sci Search index logic. -## Metadata Paragraph Bundles -- Science Author: Includes Author ID, Author ID Type (ORCID, Google Scholar, ResearcherID, Scopus Author ID, USDA), Author Name, and Is Organization fields. Validates ORCID IDs and retrieve biography information to populate name field. +More documentation coming soon... ## Submodules -### DKAN Sci search (modules/dkan_sci_search) -- Provides solr index that allows for file attachment indexing. At present, the metadata source content type is the only node type -having files indexed. These attachments are associated with dataset content nodes via entityreferences. + +### DKAN Sci Author (modules/dkan_sci_author) + +- Provides a child paragraph bundle for adding authors. Includes Author ID, Author ID Type (ORCID, Google Scholar, ResearcherID, Scopus Author ID, USDA), Author Name, and Is Organization fields. Validates ORCID IDs and retrieve biography information to populate name field. ORCID IDs + +### DKAN Sci Citation (modules/dkan_sci_citation) + +- Support for DOI-based citations. Adds a citation bundle that allows adding via either a free text field or a DOI. If DOI is used, the full citation is retrieved from CrossRef and displayed properly on the dataset page. See module README for details. \ No newline at end of file From dd0841e2797a4863ba63974cb080a6ee96ef99bd Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 18:43:03 -0500 Subject: [PATCH 08/15] Citations module documentation --- modules/dkan_sci_citation/README.md | 17 +++++++++++++++++ .../dkan_sci_citation/dkan_sci_citation.info | 5 ++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/modules/dkan_sci_citation/README.md b/modules/dkan_sci_citation/README.md index adb1c88..dd77b71 100644 --- a/modules/dkan_sci_citation/README.md +++ b/modules/dkan_sci_citation/README.md @@ -1,3 +1,20 @@ +# DKAN Science Citations + +Add citations via DOI, Bibtex or free text. + +## Installation + +You must install some dependencies with [Composer](https://getcomposer.org/) for this module to work. Please run + +``` +composer install +``` + +from the dkan_sci_citation root folder (probably _sites/all/modules/contrib/dkan_sci_metadata/modules/dkan_sci_citation_ in your site docroot) before using. + ## Adding additional styles + +This module supports citation rendering in many common styles. Too add additional styles in .csl format: + - Add item name as indicated by `.csl` file to form options array in `dkan_sci_citation_form()` - Add `.csl` file to `./includes/vendor/citation-style-language/styles-distribution` diff --git a/modules/dkan_sci_citation/dkan_sci_citation.info b/modules/dkan_sci_citation/dkan_sci_citation.info index 8d29a80..9fa7a7a 100644 --- a/modules/dkan_sci_citation/dkan_sci_citation.info +++ b/modules/dkan_sci_citation/dkan_sci_citation.info @@ -1,13 +1,12 @@ name = DKAN Science Metadata - Citation core = 7.x -package = DKAN -version = 7.x-1.0 +description = Citation support. IMPORTANT: Read README for installation instructions. +package = DKAN Science dependencies[] = features dependencies[] = field_hidden dependencies[] = open_data_schema_map dependencies[] = paragraphs dependencies[] = text -dependencies[] = usda_content_types features[features_api][] = api:2 features[field_base][] = field_alt_object_id features[field_base][] = field_dkan_cite_bibtex From db730f2928251ef4a7aa838c49d794c7a18c3ffc Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 18:47:18 -0500 Subject: [PATCH 09/15] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c86d49c..8a8e238 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,6 @@ More documentation coming soon... ### DKAN Sci Citation (modules/dkan_sci_citation) -- Support for DOI-based citations. Adds a citation bundle that allows adding via either a free text field or a DOI. If DOI is used, the full citation is retrieved from CrossRef and displayed properly on the dataset page. See module README for details. \ No newline at end of file +- Support for DOI-based citations. Adds a citation bundle that allows adding via either a free text field or a DOI. If DOI is used, the full citation is retrieved from CrossRef and displayed properly on the dataset page. See module README for details. + +This module is the result of a joint partnership between [CivicActions](https://civicactions.com) and the [US Department of Agriculture](https://usda.gov), as part of the development of the [Ag Data Commons](https://data.nal.usda.gov/). \ No newline at end of file From eaa027fa92cbb85a63d80bf45f0477556bf8f4d1 Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 18:47:35 -0500 Subject: [PATCH 10/15] Remove some USDA references. --- dkan_sci_metadata.info | 1 - modules/dkan_sci_citation/dkan_sci_citation.module | 3 ++- modules/dkan_sci_citation/js/dkan_sci_citation.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dkan_sci_metadata.info b/dkan_sci_metadata.info index 68603d0..c832d97 100644 --- a/dkan_sci_metadata.info +++ b/dkan_sci_metadata.info @@ -15,7 +15,6 @@ dependencies[] = paragraphs_defaults dependencies[] = strongarm dependencies[] = taxonomy dependencies[] = text -dependencies[] = usda_content_types features[ctools][] = field_group:field_group:1 features[ctools][] = strongarm:strongarm:1 features[features_api][] = api:2 diff --git a/modules/dkan_sci_citation/dkan_sci_citation.module b/modules/dkan_sci_citation/dkan_sci_citation.module index 8891529..6891096 100644 --- a/modules/dkan_sci_citation/dkan_sci_citation.module +++ b/modules/dkan_sci_citation/dkan_sci_citation.module @@ -680,7 +680,8 @@ function dkan_sci_citation_get_doi_link($metadata) { } /** - * Creates PubAg link. + * Creates PubAg link. This is USDA-specific functionality that should be + * moved to a custom module. * * @param \ParagraphsItemEntity $metadata * The Paragraph entity for sci_meta_data. diff --git a/modules/dkan_sci_citation/js/dkan_sci_citation.js b/modules/dkan_sci_citation/js/dkan_sci_citation.js index 1534986..85c083b 100644 --- a/modules/dkan_sci_citation/js/dkan_sci_citation.js +++ b/modules/dkan_sci_citation/js/dkan_sci_citation.js @@ -3,7 +3,7 @@ // Context here allows your function to run on ajax calls attach: function (context, settings) { - // No other practical way to override this paragraph form label for USDA. + // No other practical way to override this paragraph form label. // Php would require foreach nesting 3 deep, and paragraphs api is // unfriendly (did try, but was unsuccessful via php). if (Drupal.settings.citations.themeName === 'ag_data') { From 35403b53d2fce68f75da4b89e1f7b4d02344f7c2 Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 18:49:51 -0500 Subject: [PATCH 11/15] Remove old CI artifacts --- circle.yml | 96 --------------------------------------------- dkan-module-init.sh | 67 ------------------------------- 2 files changed, 163 deletions(-) delete mode 100644 circle.yml delete mode 100644 dkan-module-init.sh diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 76999e5..0000000 --- a/circle.yml +++ /dev/null @@ -1,96 +0,0 @@ -## Customize the test machine -machine: - - timezone: - America/New_York # Set the timezone - - # Version of ruby to use - php: - version: '5.6.22' - - # Override /etc/hosts - #hosts: - #circlehost: 127.0.0.1 - #dev.mycompany.com: 127.0.0.1 - - # Add some environment variables - environment: - # For xvfb / selenium setup (not sure why) - #DISPLAY: ':99.0' - DATABASE_URL: mysql://ubuntu:@127.0.0.1:3306/circle_test -## Customize checkout -## Note: Only post is supported. -checkout: - post: - # Remove the extra composer stuff that circleci loads and that is causing conflicts with drush. - - rm -rf ~/.composer -## Customize dependencies -dependencies: - - cache_directories: - #- "test/vendor" - #- "~/.composer" - #- "~/.drush" - #- "~/backups" - #- "test/sites/default" - pre: - - rm /opt/circleci/php/$(phpenv global)/etc/conf.d/xdebug.ini - - echo "memory_limit = 256M" > $PHPENV_ROOT/versions/$(phpenv global)/etc/conf.d/memory.ini - - echo "always_populate_raw_post_data = -1" > $PHPENV_ROOT/versions/$(phpenv global)/etc/conf.d/deprecated.ini - override: - - mkdir $CIRCLE_ARTIFACTS/junit - - 'bash dkan-module-init.sh --deps --build=$DATABASE_URL' - - 'ahoy drush --yes runserver :8888': - background: true - - # Setup display for selenium - #- sh -e /etc/init.d/xvfb start - #- sleep 3 - - - wget http://selenium-release.storage.googleapis.com/2.48/selenium-server-standalone-2.48.2.jar - - java -jar selenium-server-standalone-2.48.2.jar -quiet -p 4444 -log shut_up_selenium : - background: true - post: - - sudo apt-get install -y x11vnc - - x11vnc -forever -nopw: - background: true - # we automatically cache and restore many dependencies between - # builds. If you need to, you can add custom paths to cache: - #cache_directories: - # - "custom_1" # relative to the build directory - # - "~/custom_2" # relative to the user's home directory - -## Customize database setup -database: - override: - # replace CircleCI's generated database.yml - #- cp config/database.yml.ci config/database.yml - #- bundle exec rake db:create db:schema:load - -## Customize test commands -test: - override: - # Fix for behat bug not recognizing symlinked feature files. - # - bash dkan/test/circle-behat.sh docroot/profiles/dkan/modules/dkan/dkan_workflow/test/features docroot/profiles/dkan/test/features: - - bash dkan/test/circle-behat.sh docroot/profiles/dkan/test/features: - parallel: true - post: - - echo $CIRCLE_ARTIFACTS; cp -av dkan/test/assets $CIRCLE_ARTIFACTS: - parallel: true -# - bundle exec rake jasmine:ci: # add an extra test type -# environment: -# RAILS_ENV: test -# RACK_ENV: test - -## Customize deployment commands -#deployment: -# staging: -# branch: master -# heroku: -# appname: foo-bar-123 - -## Custom notifications -#notify: -# webhooks: -# # A list of hashes representing hooks. Only the url field is supported. -# - url: https://someurl.com/hooks/circle diff --git a/dkan-module-init.sh b/dkan-module-init.sh deleted file mode 100644 index 1f511b9..0000000 --- a/dkan-module-init.sh +++ /dev/null @@ -1,67 +0,0 @@ - -# Name of the current module. -DKAN_MODULE=`ls *.info | cut -d'.' -f1` - -# DKAN branch or tag to use. -DKAN_VERSION="7.x-1.x" - -COMPOSER_PATH="$HOME/.config/composer/vendor/bin" - -if [[ "$PATH" != *"$COMPOSER_PATH"* ]]; then - echo "> Composer PATH is not set. Adding temporarily.. (you should add to your .bashrc)" - echo "PATH (prior) = $PATH" - export PATH="$PATH:$COMPOSER_PATH" -fi - -# Try to grab archived dkan to speed up bootstrap. -URL="https://s3-us-west-2.amazonaws.com/nucivic-data-dkan-archives/dkan-$DKAN_VERSION.tar.gz" -if wget -q "$URL"; then - mv dkan-$DKAN_VERSION.tar.gz ../ - cd .. - tar -xzf dkan-$DKAN_VERSION.tar.gz - # We need to fix the archive process to delete this file. - chmod 777 dkan/docroot/sites/default - rm -rf dkan/docroot/sites/default/settings.php - mv $DKAN_MODULE dkan/ - mv dkan $DKAN_MODULE - cd $DKAN_MODULE - set -e - cd dkan - bash dkan-init.sh dkan --skip-init --deps - cd .. - echo -ne 'y\n' | ahoy dkan drupal-rebuild $DATABASE_URL - ahoy dkan remake - echo -ne 'N\n' | ahoy dkan reinstall -else - wget -O /tmp/dkan-init.sh https://raw.githubusercontent.com/NuCivic/dkan/$DKAN_VERSION/dkan-init.sh - # Make sure the download was at least successful. - if [ $? -ne 0 ] ; then - echo "" - echo "[Error] Failed to download the dkan-init.sh script from github dkan. Branch: $DKAN_BRANCH . Perhaps someone deleted the branch?" - echo "" - exit 1 - fi - # Only stop on errors starting now. - set -e - # OK, run the script. - bash /tmp/dkan-init.sh $DKAN_MODULE $@ --skip-reinstall --branch=$DKAN_VERSION -fi - -echo "Linking/Building Module..." -ahoy dkan module-link $DKAN_MODULE -ahoy dkan module-make $DKAN_MODULE - -# Use the backup if available. -if [ -f backups/last_install.sql ];then - ahoy drush sql-drop -y && - ahoy dkan sqlc < backups/last_install.sql && \ - echo "Installed dkan from backup" -else - ahoy dkan reinstall -fi - -ahoy drush en $DKAN_MODULE -y -ahoy drush updb -y - - #Fix for behat bug not recognizing symlinked feature files or files outside it's root. See https://jira.govdelivery.com/browse/CIVIC-1005 -#cp dkan_workflow/test/features/dkan_workflow.feature dkan/test/features/. From 174921bdd2081ee976127137fcdbe203bde18769 Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 19:14:48 -0500 Subject: [PATCH 12/15] Attribution for citation styles and styles instructions --- modules/dkan_sci_citation/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/dkan_sci_citation/README.md b/modules/dkan_sci_citation/README.md index dd77b71..7239efa 100644 --- a/modules/dkan_sci_citation/README.md +++ b/modules/dkan_sci_citation/README.md @@ -18,3 +18,7 @@ This module supports citation rendering in many common styles. Too add additiona - Add item name as indicated by `.csl` file to form options array in `dkan_sci_citation_form()` - Add `.csl` file to `./includes/vendor/citation-style-language/styles-distribution` + +## Attribution + +The citation styling tools used in this module come from [CitationStyles.org](http://citationstyles.org/). \ No newline at end of file From d2ffcce3ea195febc6db86666abe8db3fcea7255 Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 19:15:03 -0500 Subject: [PATCH 13/15] Use getdkan fork of styles-distribution --- modules/dkan_sci_citation/composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/dkan_sci_citation/composer.json b/modules/dkan_sci_citation/composer.json index 782d8fb..9d7ef30 100644 --- a/modules/dkan_sci_citation/composer.json +++ b/modules/dkan_sci_citation/composer.json @@ -25,9 +25,9 @@ "version": "1.0.0", "name": "citation-style-language/styles-distribution", "source": { - "url": "https://github.com/citation-style-language/styles-distribution.git", + "url": "https://github.com/getdkan/styles-distribution.git", "type": "git", - "reference": "master" + "reference": "dkan-sci" } } } From cb7de0a572e5a33f24c24ad8b0e2ba29ce39bb04 Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Thu, 20 Feb 2020 19:15:14 -0500 Subject: [PATCH 14/15] Update README --- modules/dkan_sci_citation/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/dkan_sci_citation/README.md b/modules/dkan_sci_citation/README.md index 7239efa..0285576 100644 --- a/modules/dkan_sci_citation/README.md +++ b/modules/dkan_sci_citation/README.md @@ -14,10 +14,11 @@ from the dkan_sci_citation root folder (probably _sites/all/modules/contrib/dkan ## Adding additional styles -This module supports citation rendering in many common styles. Too add additional styles in .csl format: +This module supports citation rendering in many common styles. We are working on a better way to change the list of available styles, but currently we recommend: -- Add item name as indicated by `.csl` file to form options array in `dkan_sci_citation_form()` -- Add `.csl` file to `./includes/vendor/citation-style-language/styles-distribution` +- Create a fork of https://github.com/citation-style-language/styles-distribution.git +- Remove all csl files except the ones you want to use +- Update this module's composer.json to pull the styles-distribution library from your fork. ## Attribution From 8c26efc1693861020c0d6ad6dcf6fe5b3620586c Mon Sep 17 00:00:00 2001 From: Dan Feder Date: Mon, 24 Feb 2020 14:29:06 -0500 Subject: [PATCH 15/15] Add composer-cleanup-vcs-dirs --- modules/dkan_sci_citation/composer.json | 3 +- modules/dkan_sci_citation/composer.lock | 103 +++++++++++++++++++++++- 2 files changed, 102 insertions(+), 4 deletions(-) diff --git a/modules/dkan_sci_citation/composer.json b/modules/dkan_sci_citation/composer.json index 9d7ef30..ad8948d 100644 --- a/modules/dkan_sci_citation/composer.json +++ b/modules/dkan_sci_citation/composer.json @@ -4,7 +4,8 @@ "citation-style-language/locales": "1.*", "citation-style-language/styles-distribution": "1.*", "renanbr/crossref-client": "dev-master", - "seboettg/citeproc-php": "2.1.1" + "seboettg/citeproc-php": "2.1.1", + "topfloor/composer-cleanup-vcs-dirs": "^1.0" }, "repositories": [ { diff --git a/modules/dkan_sci_citation/composer.lock b/modules/dkan_sci_citation/composer.lock index 731f8ae..c3c1508 100644 --- a/modules/dkan_sci_citation/composer.lock +++ b/modules/dkan_sci_citation/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a3e94ac47764612f89b2d60dff625e5c", + "content-hash": "0c14b9944e7039a07d731a869ca60b53", "packages": [ { "name": "audiolabs/bibtexparser", @@ -368,6 +368,11 @@ "url": "https://github.com/citation-style-language/locales.git", "reference": "master" }, + "dist": { + "type": "zip", + "url": "https://github.com/citation-style-language/locales/archive/master.zip", + "reference": "master" + }, "type": "library" }, { @@ -375,8 +380,13 @@ "version": "1.0.0", "source": { "type": "git", - "url": "https://github.com/citation-style-language/styles-distribution.git", - "reference": "master" + "url": "https://github.com/getdkan/styles-distribution.git", + "reference": "dkan-sci" + }, + "dist": { + "type": "zip", + "url": "https://github.com/GetDKAN/styles-distribution/archive/dkan-sci.zip", + "reference": "dkan-sci" }, "type": "library" }, @@ -1114,6 +1124,55 @@ "description": "Simple PHP ArrayList collection", "time": "2019-02-13T07:13:15+00:00" }, + { + "name": "symfony/finder", + "version": "v5.0.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "4176e7cb846fe08f32518b7e0ed8462e2db8d9bb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/4176e7cb846fe08f32518b7e0ed8462e2db8d9bb", + "reference": "4176e7cb846fe08f32518b7e0ed8462e2db8d9bb", + "shasum": "" + }, + "require": { + "php": "^7.2.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Finder Component", + "homepage": "https://symfony.com", + "time": "2020-01-04T14:08:26+00:00" + }, { "name": "symfony/polyfill-mbstring", "version": "v1.14.0", @@ -1172,6 +1231,44 @@ "shim" ], "time": "2020-01-13T11:15:53+00:00" + }, + { + "name": "topfloor/composer-cleanup-vcs-dirs", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/TopFloorTech/composer-cleanup-vcs-dirs.git", + "reference": "0158853dd054321b5048108ed5532c4b5e002d1b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/TopFloorTech/composer-cleanup-vcs-dirs/zipball/0158853dd054321b5048108ed5532c4b5e002d1b", + "reference": "0158853dd054321b5048108ed5532c4b5e002d1b", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0.0", + "php": ">=5.5", + "symfony/finder": "*" + }, + "require-dev": { + "composer/composer": "dev-master" + }, + "type": "composer-plugin", + "extra": { + "class": "TopFloor\\ComposerCleanupVcsDirs\\Plugin" + }, + "autoload": { + "psr-4": { + "TopFloor\\ComposerCleanupVcsDirs\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-2.0+" + ], + "description": "Automatically deletes .git directories in newly installed or updated dependencies.", + "time": "2016-10-06T04:35:51+00:00" } ], "packages-dev": [],