Browse Source

initial commit

master
Paul Pound 9 years ago
commit
f47ec61a7c
  1. 69
      CONTRIBUTING.md
  2. 339
      LICENSE
  3. 7
      README.md
  4. 17
      composer.json
  5. 200
      config/install/core.entity_form_display.node.islandora_herbarium_object.default.yml
  6. 291
      config/install/core.entity_view_display.node.islandora_herbarium_object.default.yml
  7. 83
      config/install/core.entity_view_display.node.islandora_herbarium_object.teaser.yml
  8. 21
      config/install/field.field.node.islandora_herbarium_object.body.yml
  9. 18
      config/install/field.field.node.islandora_herbarium_object.field_dc_accessrights.yml
  10. 20
      config/install/field.field.node.islandora_herbarium_object.field_dc_language.yml
  11. 18
      config/install/field.field.node.islandora_herbarium_object.field_dc_rights.yml
  12. 20
      config/install/field.field.node.islandora_herbarium_object.field_dc_type.yml
  13. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_class.yml
  14. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_continent.yml
  15. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_country.yml
  16. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_countrycode.yml
  17. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_decimallatitude.yml
  18. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_decimallongitude.yml
  19. 20
      config/install/field.field.node.islandora_herbarium_object.field_dwc_eventdate.yml
  20. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_family.yml
  21. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_genus.yml
  22. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_kingdom.yml
  23. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_municipality.yml
  24. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_order.yml
  25. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_recordedby.yml
  26. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_scientificname.yml
  27. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_specificepithet.yml
  28. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_stateprovince.yml
  29. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwc_vernacularname.yml
  30. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwciri_municipality.yml
  31. 18
      config/install/field.field.node.islandora_herbarium_object.field_dwciri_scientificname.yml
  32. 21
      config/install/field.field.node.islandora_herbarium_object.field_herb_geo_field.yml
  33. 27
      config/install/field.field.node.islandora_herbarium_object.field_jp2.yml
  34. 27
      config/install/field.field.node.islandora_herbarium_object.field_tiff.yml
  35. 27
      config/install/field.field.node.islandora_herbarium_object.field_tn.yml
  36. 27
      config/install/field.field.node.islandora_herbarium_object.field_web_content.yml
  37. 21
      config/install/field.storage.node.field_dc_accessrights.yml
  38. 23
      config/install/field.storage.node.field_dc_language.yml
  39. 21
      config/install/field.storage.node.field_dc_rights.yml
  40. 23
      config/install/field.storage.node.field_dc_type.yml
  41. 21
      config/install/field.storage.node.field_dwc_class.yml
  42. 21
      config/install/field.storage.node.field_dwc_continent.yml
  43. 21
      config/install/field.storage.node.field_dwc_country.yml
  44. 23
      config/install/field.storage.node.field_dwc_countrycode.yml
  45. 23
      config/install/field.storage.node.field_dwc_decimallatitude.yml
  46. 23
      config/install/field.storage.node.field_dwc_decimallongitude.yml
  47. 22
      config/install/field.storage.node.field_dwc_eventdate.yml
  48. 21
      config/install/field.storage.node.field_dwc_family.yml
  49. 21
      config/install/field.storage.node.field_dwc_genus.yml
  50. 21
      config/install/field.storage.node.field_dwc_kingdom.yml
  51. 23
      config/install/field.storage.node.field_dwc_municipality.yml
  52. 21
      config/install/field.storage.node.field_dwc_order.yml
  53. 21
      config/install/field.storage.node.field_dwc_recordedby.yml
  54. 23
      config/install/field.storage.node.field_dwc_scientificname.yml
  55. 21
      config/install/field.storage.node.field_dwc_specificepithet.yml
  56. 21
      config/install/field.storage.node.field_dwc_stateprovince.yml
  57. 21
      config/install/field.storage.node.field_dwc_vernacularname.yml
  58. 21
      config/install/field.storage.node.field_dwciri_municipality.yml
  59. 23
      config/install/field.storage.node.field_dwciri_scientificname.yml
  60. 22
      config/install/field.storage.node.field_herb_geo_field.yml
  61. 17
      config/install/node.type.islandora_herbarium_object.yml
  62. 92
      config/install/rdf.mapping.node.islandora_herbarium_object.yml
  63. 17
      islandora_herbarium_object.info.yml
  64. 78
      islandora_herbarium_object.module
  65. 5
      islandora_herbarium_object.services.yml
  66. 30
      src/DataParser/DataParser.php
  67. 21
      src/DataParser/DataParserInterface.php
  68. 39
      src/DataParser/GeonamesParser.php
  69. 21
      src/DataParser/IpniParser.php

69
CONTRIBUTING.md

@ -0,0 +1,69 @@
# Welcome!
If you are reading this document then you are interested in contributing to the Islandora CLAW. All contributions are welcome: use-cases, documentation, code, patches, bug reports, feature requests, etc. You do not need to be a programmer to speak up!
## Workflows
The group meets each Wednesday at 1:00 PM Eastern. Meeting notes and announcements are posted to the [Islandora community list](https://groups.google.com/forum/#!forum/islandora) and the [Islandora developers list](https://groups.google.com/forum/#!forum/islandora-dev). You can view meeting agendas, notes, and call-in information [here](https://github.com/Islandora-CLAW/CLAW/wiki#islandora-claw-tech-calls). Anybody is welcome to join the calls, and add items to the agenda.
### Use cases
If you would like to submit a use case to the Islandora CLAW project, please submit an issue [here](https://github.com/Islandora-CLAW/CLAW/issues/new) using the [Use Case template](https://github.com/Islandora-CLAW/CLAW/wiki/Use-Case-template), prepending "Use Case:" to the title of the issue.
### Documentation
You can contribute documentation in two different ways. One way is to create an issue [here](https://github.com/Islandora-CLAW/CLAW/issues/new), prepending "Documentation:" to the title of the issue. Another way is by pull request, which is the same process as [Contribute Code](https://github.com/Islandora-CLAW/CLAW/blob/master/CONTRIBUTING.md#contribute-code). All documentation resides in [`docs`](https://github.com/Islandora-CLAW/CLAW/tree/master/docs).
### Request a new feature
To request a new feature you should [open an issue in the CLAW repository](https://github.com/Islandora-CLAW/CLAW/issues/new) or create a use case (see the _Use cases_ section above), and summarize the desired functionality. Prepend "Enhancement:" if creating an issue on the project repo, and "Use Case:" if creating a use case.
### Report a bug
To report a bug you should [open an issue in the CLAW repository](https://github.com/Islandora-CLAW/CLAW/issues/new) that summarizes the bug. Prepend the label "Bug:" to the title of the issue.
In order to help us understand and fix the bug it would be great if you could provide us with:
1. The steps to reproduce the bug. This includes information about e.g. the Islandora version you were using along with the versions of stack components.
2. The expected behavior.
3. The actual, incorrect behavior.
Feel free to search the issue queue for existing issues (aka tickets) that already describe the problem; if there is such a ticket please add your information as a comment.
**If you want to provide a pull along with your bug report:**
That is great! In this case please send us a pull request as described in the section _Create a pull request_ below.
### Contribute code
Before you set out to contribute code you will need to have completed a [Contributor License Agreement](http://islandora.ca/sites/default/files/islandora_cla.pdf) or be covered by a [Corporate Contributor Licencse Agreement](http://islandora.ca/sites/default/files/islandora_ccla.pdf). The signed copy of the license agreement should be sent to <mailto:community@islandora.ca>
_If you are interested in contributing code to Islandora but do not know where to begin:_
In this case you should [browse open issues](https://github.com/Islandora-CLAW/CLAW/issues) and check out [use cases](https://github.com/Islandora-CLAW/CLAW/labels/use%20case).
If you are contributing Drupal code, it must adhere to [Drupal Coding Standards](https://www.drupal.org/coding-standards); Travis CI will check for this on pull requests.
Contributions to the Islandora codebase should be sent as GitHub pull requests. See section _Create a pull request_ below for details. If there is any problem with the pull request we can work through it using the commenting features of GitHub.
* For _small patches_, feel free to submit pull requests directly for those patches.
* For _larger code contributions_, please use the following process. The idea behind this process is to prevent any wasted work and catch design issues early on.
1. [Open an issue](https://github.com/Islandora-CLAW/CLAW/issues), prepending "Enhancement:" in the title if a similar issue does not exist already. If a similar issue does exist, then you may consider participating in the work on the existing issue.
2. Comment on the issue with your plan for implementing the issue. Explain what pieces of the codebase you are going to touch and how everything is going to fit together.
3. Islandora committers will work with you on the design to make sure you are on the right track.
4. Implement your issue, create a pull request (see below), and iterate from there.
### Create a pull request
Take a look at [Creating a pull request](https://help.github.com/articles/creating-a-pull-request). In a nutshell you need to:
1. [Fork](https://help.github.com/articles/fork-a-repo) this repository to your personal or institutional GitHub account (depending on the CLA you are working under). Be cautious of which branches you work from though (you'll want to base your work off master, or for Drupal modules use the most recent version branch). See [Fork a repo](https://help.github.com/articles/fork-a-repo) for detailed instructions.
2. Commit any changes to your fork.
3. Send a [pull request](https://help.github.com/articles/creating-a-pull-request) using the [pull request template](https://github.com/Islandora-CLAW/CLAW/blob/master/.github/PULL_REQUEST_TEMPLATE.md) to the Islandora GitHub repository that you forked in step 1. If your pull request is related to an existing issue -- for instance, because you reported a [bug/issue](https://github.com/Islandora-CLAW/CLAW/issues) earlier -- prefix the title of your pull request with the corresponding issue number (e.g. `issue-123: ...`). Please also include a reference to the issue in the description of the pull. This can be done by using '#' plus the issue number like so '#123', also try to pick an appropriate name for the branch in which you're issuing the pull request from.
You may want to read [Syncing a fork](https://help.github.com/articles/syncing-a-fork) for instructions on how to keep your fork up to date with the latest changes of the upstream (official) repository.
## License Agreements
The Islandora Foundation requires that contributors complete a [Contributor License Agreement](http://islandora.ca/sites/default/files/islandora_cla.pdf) or be covered by a [Corporate Contributor License Agreement](http://islandora.ca/sites/default/files/islandora_ccla.pdf). The signed copy of the license agreement should be sent to <a href="mailto:community@islandora.ca?Subject=Contributor%20License%20Agreement" target="_top">community@islandora.ca</a>. This license is for your protection as a contributor as well as the protection of the Foundation and its users; it does not change your rights to use your own contributions for any other purpose.

339
LICENSE

@ -0,0 +1,339 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

7
README.md

@ -0,0 +1,7 @@
## Islandora Herbarium
## Dependency
## License

17
composer.json

@ -0,0 +1,17 @@
{
"name": "islandora/islandora_herbarium_object",
"description": "Islandora Herbarium",
"type": "drupal-module",
"minimum-stability": "dev",
"prefer-stable": true,
"keywords": ["Drupal", "Islandora"],
"license": "GPL-2.0+",
"homepage": "https://github.com/roblib/islandora_herbarium_object",
"support": {
"issues": "https://github.com/islandora-claw/CLAW/issues",
"irc": "irc://irc.freenode.net/islandora"
},
"require": {
"islandora/islandora_collection": "dev-8.x-1.x"
}
}

200
config/install/core.entity_form_display.node.islandora_herbarium_object.default.yml

@ -0,0 +1,200 @@
langcode: en
status: true
dependencies:
config:
- field.field.node.islandora_herbarium_object.body
- field.field.node.islandora_herbarium_object.field_dc_accessrights
- field.field.node.islandora_herbarium_object.field_dc_language
- field.field.node.islandora_herbarium_object.field_dc_rights
- field.field.node.islandora_herbarium_object.field_dc_type
- field.field.node.islandora_herbarium_object.field_dwc_class
- field.field.node.islandora_herbarium_object.field_dwc_continent
- field.field.node.islandora_herbarium_object.field_dwc_country
- field.field.node.islandora_herbarium_object.field_dwc_countrycode
- field.field.node.islandora_herbarium_object.field_dwc_decimallatitude
- field.field.node.islandora_herbarium_object.field_dwc_decimallongitude
- field.field.node.islandora_herbarium_object.field_dwc_eventdate
- field.field.node.islandora_herbarium_object.field_dwc_family
- field.field.node.islandora_herbarium_object.field_dwc_genus
- field.field.node.islandora_herbarium_object.field_dwc_kingdom
- field.field.node.islandora_herbarium_object.field_dwc_municipality
- field.field.node.islandora_herbarium_object.field_dwc_order
- field.field.node.islandora_herbarium_object.field_dwc_recordedby
- field.field.node.islandora_herbarium_object.field_dwc_scientificname
- field.field.node.islandora_herbarium_object.field_dwc_specificepithet
- field.field.node.islandora_herbarium_object.field_dwc_stateprovince
- field.field.node.islandora_herbarium_object.field_dwc_vernacularname
- field.field.node.islandora_herbarium_object.field_dwciri_municipality
- field.field.node.islandora_herbarium_object.field_dwciri_scientificname
- field.field.node.islandora_herbarium_object.field_herb_geo_field
- field.field.node.islandora_herbarium_object.field_jp2
- field.field.node.islandora_herbarium_object.field_tiff
- field.field.node.islandora_herbarium_object.field_tn
- field.field.node.islandora_herbarium_object.field_web_content
- node.type.islandora_herbarium_object
module:
- datetime
- path
id: node.islandora_herbarium_object.default
targetEntityType: node
bundle: islandora_herbarium_object
mode: default
content:
created:
type: datetime_timestamp
weight: 1
region: content
settings: { }
third_party_settings: { }
field_dc_accessrights:
weight: 8
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: string_textarea
region: content
field_dc_language:
weight: 7
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_dc_rights:
weight: 11
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: string_textarea
region: content
field_dc_type:
weight: 6
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_dwc_eventdate:
weight: 10
settings: { }
third_party_settings: { }
type: datetime_default
region: content
field_dwc_recordedby:
weight: 9
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: string_textarea
region: content
field_dwciri_municipality:
type: string_textarea
weight: 13
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_dwciri_scientificname:
weight: 12
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_jp2:
type: entity_reference_autocomplete
weight: 17
region: content
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
third_party_settings: { }
field_tn:
type: entity_reference_autocomplete
weight: 15
region: content
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
third_party_settings: { }
field_web_content:
type: entity_reference_autocomplete
weight: 16
region: content
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
third_party_settings: { }
path:
type: path
weight: 4
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
settings:
display_label: true
weight: 2
region: content
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 5
region: content
third_party_settings: { }
sticky:
type: boolean_checkbox
settings:
display_label: true
weight: 3
region: content
third_party_settings: { }
title:
type: string_textfield
weight: 14
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 0
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
region: content
third_party_settings: { }
hidden:
body: true
field_dwc_class: true
field_dwc_continent: true
field_dwc_country: true
field_dwc_countrycode: true
field_dwc_decimallatitude: true
field_dwc_decimallongitude: true
field_dwc_family: true
field_dwc_genus: true
field_dwc_kingdom: true
field_dwc_municipality: true
field_dwc_order: true
field_dwc_scientificname: true
field_dwc_specificepithet: true
field_dwc_stateprovince: true
field_dwc_vernacularname: true
field_herb_geo_field: true
field_tiff: true

291
config/install/core.entity_view_display.node.islandora_herbarium_object.default.yml

@ -0,0 +1,291 @@
langcode: en
status: true
dependencies:
config:
- field.field.node.islandora_herbarium_object.body
- field.field.node.islandora_herbarium_object.field_dc_accessrights
- field.field.node.islandora_herbarium_object.field_dc_language
- field.field.node.islandora_herbarium_object.field_dc_rights
- field.field.node.islandora_herbarium_object.field_dc_type
- field.field.node.islandora_herbarium_object.field_dwc_class
- field.field.node.islandora_herbarium_object.field_dwc_continent
- field.field.node.islandora_herbarium_object.field_dwc_country
- field.field.node.islandora_herbarium_object.field_dwc_countrycode
- field.field.node.islandora_herbarium_object.field_dwc_decimallatitude
- field.field.node.islandora_herbarium_object.field_dwc_decimallongitude
- field.field.node.islandora_herbarium_object.field_dwc_eventdate
- field.field.node.islandora_herbarium_object.field_dwc_family
- field.field.node.islandora_herbarium_object.field_dwc_genus
- field.field.node.islandora_herbarium_object.field_dwc_kingdom
- field.field.node.islandora_herbarium_object.field_dwc_municipality
- field.field.node.islandora_herbarium_object.field_dwc_order
- field.field.node.islandora_herbarium_object.field_dwc_recordedby
- field.field.node.islandora_herbarium_object.field_dwc_scientificname
- field.field.node.islandora_herbarium_object.field_dwc_specificepithet
- field.field.node.islandora_herbarium_object.field_dwc_stateprovince
- field.field.node.islandora_herbarium_object.field_dwc_vernacularname
- field.field.node.islandora_herbarium_object.field_dwciri_municipality
- field.field.node.islandora_herbarium_object.field_dwciri_scientificname
- field.field.node.islandora_herbarium_object.field_herb_geo_field
- field.field.node.islandora_herbarium_object.field_jp2
- field.field.node.islandora_herbarium_object.field_tiff
- field.field.node.islandora_herbarium_object.field_tn
- field.field.node.islandora_herbarium_object.field_web_content
- node.type.islandora_herbarium_object
module:
- datetime
- geofield_map
- text
- user
id: node.islandora_herbarium_object.default
targetEntityType: node
bundle: islandora_herbarium_object
mode: default
content:
body:
label: hidden
type: text_default
weight: 1
settings: { }
third_party_settings: { }
region: content
field_dc_accessrights:
weight: 4
label: inline
settings: { }
third_party_settings: { }
type: basic_string
region: content
field_dc_language:
weight: 3
label: inline
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_dc_rights:
weight: 7
label: above
settings: { }
third_party_settings: { }
type: basic_string
region: content
field_dc_type:
weight: 2
label: inline
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_dwc_continent:
type: basic_string
weight: 17
region: content
label: inline
settings: { }
third_party_settings: { }
field_dwc_country:
type: basic_string
weight: 9
region: content
label: inline
settings: { }
third_party_settings: { }
field_dwc_countrycode:
type: string
weight: 10
region: content
label: inline
settings:
link_to_entity: false
third_party_settings: { }
field_dwc_decimallatitude:
type: string
weight: 24
region: content
label: inline
settings:
link_to_entity: false
third_party_settings: { }
field_dwc_decimallongitude:
type: string
weight: 25
region: content
label: inline
settings:
link_to_entity: false
third_party_settings: { }
field_dwc_eventdate:
weight: 6
label: inline
settings:
format_type: medium
timezone_override: ''
third_party_settings: { }
type: datetime_default
region: content
field_dwc_family:
type: basic_string
weight: 14
region: content
label: inline
settings: { }
third_party_settings: { }
field_dwc_genus:
type: basic_string
weight: 15
region: content
label: inline
settings: { }
third_party_settings: { }
field_dwc_kingdom:
type: basic_string
weight: 16
region: content
label: inline
settings: { }
third_party_settings: { }
field_dwc_municipality:
weight: 8
label: inline
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_dwc_order:
type: basic_string
weight: 18
region: content
label: inline
settings: { }
third_party_settings: { }
field_dwc_recordedby:
weight: 5
label: inline
settings: { }
third_party_settings: { }
type: basic_string
region: content
field_dwc_scientificname:
weight: 11
label: inline
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_dwc_specificepithet:
type: basic_string
weight: 13
region: content
label: inline
settings: { }
third_party_settings: { }
field_dwc_stateprovince:
type: basic_string
weight: 19
region: content
label: inline
settings: { }
third_party_settings: { }
field_dwc_vernacularname:
type: basic_string
weight: 12
region: content
label: inline
settings: { }
third_party_settings: { }
field_herb_geo_field:
weight: 23
label: inline
settings:
gmap_api_key: ''
map_dimensions:
width: 100%
height: 450px
map_empty:
empty_behaviour: '0'
empty_message: 'No Geofield Value entered for this field'
map_center:
lat: '42'
lon: '12.5'
center_force: 0
map_zoom_and_pan:
zoom:
initial: 6
force: 0
min: 1
max: 22
scrollwheel: 1
draggable: 1
map_reset: 0
map_controls:
disable_default_ui: 0
zoom_control: 1
map_type_id: roadmap
map_type_control: 1
map_type_control_options_type_ids:
roadmap: roadmap
satellite: satellite
hybrid: hybrid
terrain: terrain
scale_control: 1
street_view_control: 1
fullscreen_control: 1
map_marker_and_infowindow:
icon_image_path: ''
infowindow_field: title
multivalue_split: 0
force_open: 0
map_oms:
map_oms_control: 1
map_oms_options: '{"markersWontMove": "true", "markersWontHide": "true", "basicFormatEvents": "true", "nearbyDistance": 3}'
map_additional_options: ''
custom_style_map:
custom_style_control: 0
custom_style_name: ''
custom_style_options: ''
custom_style_default: 0
map_markercluster:
markercluster_control: 0
markercluster_additional_options: ''
third_party_settings: { }
type: geofield_google_map
region: content
field_jp2:
type: entity_reference_label
weight: 22
region: content
label: inline
settings:
link: true
third_party_settings: { }
field_tn:
type: entity_reference_label
weight: 20
region: content
label: inline
settings:
link: true
third_party_settings: { }
field_web_content:
type: entity_reference_label
weight: 21
region: content
label: inline
settings:
link: true
third_party_settings: { }
links:
weight: 0
region: content
settings: { }
third_party_settings: { }
hidden:
field_dwc_class: true
field_dwciri_municipality: true
field_dwciri_scientificname: true
field_tiff: true

83
config/install/core.entity_view_display.node.islandora_herbarium_object.teaser.yml

@ -0,0 +1,83 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.islandora_herbarium_object.body
- field.field.node.islandora_herbarium_object.field_dc_accessrights
- field.field.node.islandora_herbarium_object.field_dc_language
- field.field.node.islandora_herbarium_object.field_dc_rights
- field.field.node.islandora_herbarium_object.field_dc_type
- field.field.node.islandora_herbarium_object.field_dwc_class
- field.field.node.islandora_herbarium_object.field_dwc_continent
- field.field.node.islandora_herbarium_object.field_dwc_country
- field.field.node.islandora_herbarium_object.field_dwc_countrycode
- field.field.node.islandora_herbarium_object.field_dwc_decimallatitude
- field.field.node.islandora_herbarium_object.field_dwc_decimallongitude
- field.field.node.islandora_herbarium_object.field_dwc_eventdate
- field.field.node.islandora_herbarium_object.field_dwc_family
- field.field.node.islandora_herbarium_object.field_dwc_genus
- field.field.node.islandora_herbarium_object.field_dwc_kingdom
- field.field.node.islandora_herbarium_object.field_dwc_municipality
- field.field.node.islandora_herbarium_object.field_dwc_order
- field.field.node.islandora_herbarium_object.field_dwc_recordedby
- field.field.node.islandora_herbarium_object.field_dwc_scientificname
- field.field.node.islandora_herbarium_object.field_dwc_specificepithet
- field.field.node.islandora_herbarium_object.field_dwc_stateprovince
- field.field.node.islandora_herbarium_object.field_dwc_vernacularname
- field.field.node.islandora_herbarium_object.field_dwciri_municipality
- field.field.node.islandora_herbarium_object.field_dwciri_scientificname
- field.field.node.islandora_herbarium_object.field_herb_geo_field
- field.field.node.islandora_herbarium_object.field_jp2
- field.field.node.islandora_herbarium_object.field_tiff
- field.field.node.islandora_herbarium_object.field_tn
- field.field.node.islandora_herbarium_object.field_web_content
- node.type.islandora_herbarium_object
module:
- text
- user
id: node.islandora_herbarium_object.teaser
targetEntityType: node
bundle: islandora_herbarium_object
mode: teaser
content:
body:
label: hidden
type: text_summary_or_trimmed
weight: 101
settings:
trim_length: 600
third_party_settings: { }
region: content
links:
weight: 100
region: content
hidden:
field_dc_accessrights: true
field_dc_language: true
field_dc_rights: true
field_dc_type: true
field_dwc_class: true
field_dwc_continent: true
field_dwc_country: true
field_dwc_countrycode: true
field_dwc_decimallatitude: true
field_dwc_decimallongitude: true
field_dwc_eventdate: true
field_dwc_family: true
field_dwc_genus: true
field_dwc_kingdom: true
field_dwc_municipality: true
field_dwc_order: true
field_dwc_recordedby: true
field_dwc_scientificname: true
field_dwc_specificepithet: true
field_dwc_stateprovince: true
field_dwc_vernacularname: true
field_dwciri_municipality: true
field_dwciri_scientificname: true
field_herb_geo_field: true
field_jp2: true
field_tiff: true
field_tn: true
field_web_content: true

21
config/install/field.field.node.islandora_herbarium_object.body.yml

@ -0,0 +1,21 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.body
- node.type.islandora_herbarium_object
module:
- text
id: node.islandora_herbarium_object.body
field_name: body
entity_type: node
bundle: islandora_herbarium_object
label: Body
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
display_summary: true
field_type: text_with_summary

18
config/install/field.field.node.islandora_herbarium_object.field_dc_accessrights.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dc_accessrights
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dc_accessrights
field_name: field_dc_accessrights
entity_type: node
bundle: islandora_herbarium_object
label: dc_accessRights
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

20
config/install/field.field.node.islandora_herbarium_object.field_dc_language.yml

@ -0,0 +1,20 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dc_language
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dc_language
field_name: field_dc_language
entity_type: node
bundle: islandora_herbarium_object
label: dc_language
description: ''
required: false
translatable: false
default_value:
-
value: en
default_value_callback: ''
settings: { }
field_type: string

18
config/install/field.field.node.islandora_herbarium_object.field_dc_rights.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dc_rights
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dc_rights
field_name: field_dc_rights
entity_type: node
bundle: islandora_herbarium_object
label: dc_rights
description: 'Dublin Core Rights'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

20
config/install/field.field.node.islandora_herbarium_object.field_dc_type.yml

@ -0,0 +1,20 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dc_type
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dc_type
field_name: field_dc_type
entity_type: node
bundle: islandora_herbarium_object
label: dc_type
description: 'dc:type'
required: false
translatable: false
default_value:
-
value: occurence
default_value_callback: ''
settings: { }
field_type: string

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_class.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_class
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_class
field_name: field_dwc_class
entity_type: node
bundle: islandora_herbarium_object
label: dwc_class
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_continent.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_continent
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_continent
field_name: field_dwc_continent
entity_type: node
bundle: islandora_herbarium_object
label: dwc_continent
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_country.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_country
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_country
field_name: field_dwc_country
entity_type: node
bundle: islandora_herbarium_object
label: 'dwc:country'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_countrycode.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_countrycode
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_countrycode
field_name: field_dwc_countrycode
entity_type: node
bundle: islandora_herbarium_object
label: 'dwc:countryCode'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_decimallatitude.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_decimallatitude
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_decimallatitude
field_name: field_dwc_decimallatitude
entity_type: node
bundle: islandora_herbarium_object
label: dwc_decimalLatitude
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_decimallongitude.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_decimallongitude
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_decimallongitude
field_name: field_dwc_decimallongitude
entity_type: node
bundle: islandora_herbarium_object
label: dwc_decimalLongitude
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

20
config/install/field.field.node.islandora_herbarium_object.field_dwc_eventdate.yml

@ -0,0 +1,20 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_eventdate
- node.type.islandora_herbarium_object
module:
- datetime
id: node.islandora_herbarium_object.field_dwc_eventdate
field_name: field_dwc_eventdate
entity_type: node
bundle: islandora_herbarium_object
label: dwc_eventDate
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: datetime

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_family.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_family
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_family
field_name: field_dwc_family
entity_type: node
bundle: islandora_herbarium_object
label: dwc_family
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_genus.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_genus
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_genus
field_name: field_dwc_genus
entity_type: node
bundle: islandora_herbarium_object
label: dwc_genus
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_kingdom.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_kingdom
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_kingdom
field_name: field_dwc_kingdom
entity_type: node
bundle: islandora_herbarium_object
label: dwc_kingdom
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_municipality.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_municipality
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_municipality
field_name: field_dwc_municipality
entity_type: node
bundle: islandora_herbarium_object
label: dwc_municipality
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_order.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_order
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_order
field_name: field_dwc_order
entity_type: node
bundle: islandora_herbarium_object
label: dwc_order
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_recordedby.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_recordedby
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_recordedby
field_name: field_dwc_recordedby
entity_type: node
bundle: islandora_herbarium_object
label: dwc_recordedBy
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_scientificname.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_scientificname
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_scientificname
field_name: field_dwc_scientificname
entity_type: node
bundle: islandora_herbarium_object
label: dwc_scientificName
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_specificepithet.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_specificepithet
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_specificepithet
field_name: field_dwc_specificepithet
entity_type: node
bundle: islandora_herbarium_object
label: dwc_specificEpithet
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_stateprovince.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_stateprovince
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_stateprovince
field_name: field_dwc_stateprovince
entity_type: node
bundle: islandora_herbarium_object
label: dwc_stateProvince
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwc_vernacularname.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwc_vernacularname
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwc_vernacularname
field_name: field_dwc_vernacularname
entity_type: node
bundle: islandora_herbarium_object
label: dwc_vernacularName
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwciri_municipality.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwciri_municipality
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwciri_municipality
field_name: field_dwciri_municipality
entity_type: node
bundle: islandora_herbarium_object
label: dwciri_municipality
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

18
config/install/field.field.node.islandora_herbarium_object.field_dwciri_scientificname.yml

@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_dwciri_scientificname
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_dwciri_scientificname
field_name: field_dwciri_scientificname
entity_type: node
bundle: islandora_herbarium_object
label: dwciri_scientificName
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

21
config/install/field.field.node.islandora_herbarium_object.field_herb_geo_field.yml

@ -0,0 +1,21 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_herb_geo_field
- node.type.islandora_herbarium_object
module:
- geofield
id: node.islandora_herbarium_object.field_herb_geo_field
field_name: field_herb_geo_field
entity_type: node
bundle: islandora_herbarium_object
label: herb_geo_field
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
backend: geofield_backend_default
field_type: geofield

27
config/install/field.field.node.islandora_herbarium_object.field_jp2.yml

@ -0,0 +1,27 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_jp2
- media_entity.bundle.jp2
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_jp2
field_name: field_jp2
entity_type: node
bundle: islandora_herbarium_object
label: JP2
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
jp2: jp2
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

27
config/install/field.field.node.islandora_herbarium_object.field_tiff.yml

@ -0,0 +1,27 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_tiff
- media_entity.bundle.image_tiff
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_tiff
field_name: field_tiff
entity_type: node
bundle: islandora_herbarium_object
label: 'Tiff image'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
image_tiff: image_tiff
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

27
config/install/field.field.node.islandora_herbarium_object.field_tn.yml

@ -0,0 +1,27 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_tn
- media_entity.bundle.tn
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_tn
field_name: field_tn
entity_type: node
bundle: islandora_herbarium_object
label: TN
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
tn: tn
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

27
config/install/field.field.node.islandora_herbarium_object.field_web_content.yml

@ -0,0 +1,27 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_web_content
- media_entity.bundle.web_content
- node.type.islandora_herbarium_object
id: node.islandora_herbarium_object.field_web_content
field_name: field_web_content
entity_type: node
bundle: islandora_herbarium_object
label: 'Web Image'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
web_content: web_content
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

21
config/install/field.storage.node.field_dc_accessrights.yml

@ -0,0 +1,21 @@
uuid: 490f9a2c-ea55-4406-9c9b-e8390b6d5389
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: epkRYesg00lvVbwbeSFv2gt3fMcfouOY4UVgdEh7li8
id: node.field_dc_accessrights
field_name: field_dc_accessrights
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

23
config/install/field.storage.node.field_dc_language.yml

@ -0,0 +1,23 @@
uuid: c999a7b7-b792-44e2-8371-06a826693264
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: KCjjxqHTF_LqvY8uo9kqzrf8Sjf1tAibGGwRs1cZ-YU
id: node.field_dc_language
field_name: field_dc_language
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dc_rights.yml

@ -0,0 +1,21 @@
uuid: 2bb113ce-7095-472c-a5ac-9ad176cc5316
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: '-w3rLwprSbPfjZIJlK_la96AtyeSrS58bvVag2BuQzA'
id: node.field_dc_rights
field_name: field_dc_rights
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

23
config/install/field.storage.node.field_dc_type.yml

@ -0,0 +1,23 @@
uuid: 36f88eb3-36f2-40cd-b9cc-1468f5607813
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: D-EX9BozBBfGxZGNcZQF1VhZlkyTZcjaPS55T1p7KG4
id: node.field_dc_type
field_name: field_dc_type
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwc_class.yml

@ -0,0 +1,21 @@
uuid: 11025af3-f618-4748-a7d3-d8cef19aa29b
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: nVpqpHs7S0sGJTEMI2NuXw0M6SqefjjUe3Fvn9tWB38
id: node.field_dwc_class
field_name: field_dwc_class
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwc_continent.yml

@ -0,0 +1,21 @@
uuid: 29769d57-390b-4fbf-bbeb-4f98bc864cd2
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: j1o9X5rSjhtE-oWzxDl79JXolsRTg4ZmXMkSAU1Smps
id: node.field_dwc_continent
field_name: field_dwc_continent
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwc_country.yml

@ -0,0 +1,21 @@
uuid: fe1c254e-0253-4511-be44-aefe3916389d
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: kwNRpkH8-kNY5qDVYIMpQo6pB4Hbki4CmJvbHZmOU6Q
id: node.field_dwc_country
field_name: field_dwc_country
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

23
config/install/field.storage.node.field_dwc_countrycode.yml

@ -0,0 +1,23 @@
uuid: 8b847e7f-ee4c-44ac-85f9-e4bd85bb622d
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: XK2tQyfYov8Er-bDdiZPjAIOV-bX-w0pRGtmaS9Q2-E
id: node.field_dwc_countrycode
field_name: field_dwc_countrycode
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

23
config/install/field.storage.node.field_dwc_decimallatitude.yml

@ -0,0 +1,23 @@
uuid: fbd7c3f6-f7e5-4dbe-901c-d87514827f35
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: pJmDr_vCyHkR8NYRfg8BtvPYS0K0tEqQUzyxIxKbgFA
id: node.field_dwc_decimallatitude
field_name: field_dwc_decimallatitude
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

23
config/install/field.storage.node.field_dwc_decimallongitude.yml

@ -0,0 +1,23 @@
uuid: a2957f0c-804d-4bd2-bf30-a3bd3ae08d04
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: T6pKJtf5cumryyHPSS_vW8i0iPVHt1Ojfbkz_vx87WQ
id: node.field_dwc_decimallongitude
field_name: field_dwc_decimallongitude
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

22
config/install/field.storage.node.field_dwc_eventdate.yml

@ -0,0 +1,22 @@
uuid: e919259b-77b5-477a-bf4a-8af912bdcb8e
langcode: en
status: true
dependencies:
module:
- datetime
- node
_core:
default_config_hash: 6yOuXrk_kVfYulneiPcOTobCYkErhQm-nWjwR7hwDQI
id: node.field_dwc_eventdate
field_name: field_dwc_eventdate
entity_type: node
type: datetime
settings:
datetime_type: datetime
module: datetime
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwc_family.yml

@ -0,0 +1,21 @@
uuid: 60aa1eb7-65f0-479f-924c-88109e46fef1
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: Ce9_eBIY_rkshsDuNnIfCT3hzwUE5j2CsPEapbX72rk
id: node.field_dwc_family
field_name: field_dwc_family
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwc_genus.yml

@ -0,0 +1,21 @@
uuid: 4c76c744-19b2-41bb-b36a-3beeb6fd1941
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: TncWOq5nLgMGrYdUUN-YjUACaIZ-4gnX6UDymD4VrfU
id: node.field_dwc_genus
field_name: field_dwc_genus
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwc_kingdom.yml

@ -0,0 +1,21 @@
uuid: a579ab71-748e-44e6-ac3a-b2d7357292a4
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: KftAnAiNChcih8cf6HD-flz0Z8HiwZUZ_dWd274sPSk
id: node.field_dwc_kingdom
field_name: field_dwc_kingdom
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

23
config/install/field.storage.node.field_dwc_municipality.yml

@ -0,0 +1,23 @@
uuid: a062f4bb-af25-4e79-b02f-e88f9b1254d1
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: yDKbpp3EUFQ3fA76N2knem22268UQagOHkpXEeFcimA
id: node.field_dwc_municipality
field_name: field_dwc_municipality
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwc_order.yml

@ -0,0 +1,21 @@
uuid: d635d6ce-5df8-46a5-b5b2-b3e64fdf4491
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: Vf_l5dzsoDKXpKMJKPyL-uy0TnXEJxGCq-7MlQy9lbM
id: node.field_dwc_order
field_name: field_dwc_order
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwc_recordedby.yml

@ -0,0 +1,21 @@
uuid: ec4e9374-e1e1-4ace-9a92-66f99a69d4b0
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: 5ca5kvghp0w38FCMdJo-s1Cb-_PUOY-g7iSdyCw9XFs
id: node.field_dwc_recordedby
field_name: field_dwc_recordedby
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

23
config/install/field.storage.node.field_dwc_scientificname.yml

@ -0,0 +1,23 @@
uuid: 608462f0-54f1-4488-91f3-bb607cfbe15b
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: MJdZQhcR-AyMmt9PRUCxefAmE0bi5ON0yUoMiUhjAxc
id: node.field_dwc_scientificname
field_name: field_dwc_scientificname
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwc_specificepithet.yml

@ -0,0 +1,21 @@
uuid: 801105a9-a763-41e4-a359-74af8259a36e
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: PhFJJNb_9xzyfZDfLgHpwZoHVGIVLAqmKGtXvpl1HsQ
id: node.field_dwc_specificepithet
field_name: field_dwc_specificepithet
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwc_stateprovince.yml

@ -0,0 +1,21 @@
uuid: 7044257a-356a-4142-85d4-51a95d444c7e
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: Ic3Ikj57HBlilta4KTyAv7YOz5SNcxZj_3slsK-T30E
id: node.field_dwc_stateprovince
field_name: field_dwc_stateprovince
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwc_vernacularname.yml

@ -0,0 +1,21 @@
uuid: e39272ff-2f29-43ac-bebe-d59b9429d828
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: eHFVdkhz-oKAUL0lMX3xnvo-NVij2Vwlt9KptRF7YiQ
id: node.field_dwc_vernacularname
field_name: field_dwc_vernacularname
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

21
config/install/field.storage.node.field_dwciri_municipality.yml

@ -0,0 +1,21 @@
uuid: 28b55d28-ef0e-4d00-b105-108b3d0ffa9f
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: bHsgEY9rB7-_2t60_Nm_1bjyfCjDYyhTuWP0DCAjKLw
id: node.field_dwciri_municipality
field_name: field_dwciri_municipality
entity_type: node
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

23
config/install/field.storage.node.field_dwciri_scientificname.yml

@ -0,0 +1,23 @@
uuid: e803eab2-89a6-4a8e-a1d7-39cca02a7e9f
langcode: en
status: true
dependencies:
module:
- node
_core:
default_config_hash: qR_Zl-07of0iVls__lNZIM8HAW_m_VZUTZCpXFsBnoU
id: node.field_dwciri_scientificname
field_name: field_dwciri_scientificname
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

22
config/install/field.storage.node.field_herb_geo_field.yml

@ -0,0 +1,22 @@
uuid: 3d18d412-1aac-44ee-a08a-7b8cabab11eb
langcode: en
status: true
dependencies:
module:
- geofield
- node
_core:
default_config_hash: QrT9zPk9uENNLXto3IY8MJPfCi8xrXGxAS5ynmNk7NQ
id: node.field_herb_geo_field
field_name: field_herb_geo_field
entity_type: node
type: geofield
settings:
backend: geofield_backend_default
module: geofield
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

17
config/install/node.type.islandora_herbarium_object.yml

@ -0,0 +1,17 @@
langcode: en
status: true
dependencies:
module:
- menu_ui
third_party_settings:
menu_ui:
available_menus:
- main
parent: 'main:'
name: 'Islandora Herbarium Object'
type: islandora_herbarium_object
description: 'Islandora Herbarium Object'
help: ''
new_revision: true
preview_mode: 1
display_submitted: false

92
config/install/rdf.mapping.node.islandora_herbarium_object.yml

@ -0,0 +1,92 @@
langcode: en
status: true
dependencies:
config:
- node.type.islandora_herbarium_object
module:
- node
id: node.islandora_herbarium_object
targetEntityType: node
bundle: islandora_herbarium_object
types:
- 'pcdm:Object'
- 'schema:ImageObject'
fieldMappings:
field_dc_accessrights:
properties:
- 'dc:accessRights'
field_dc_rights:
properties:
- 'dc:rights'
field_dc_language:
properties:
- 'dc:language'
field_dc_type:
properties:
- 'dc:type'
field_dwciri_municipality:
properties:
- 'dwciri:municipality'
mapping_type: rel
field_dwc_municipality:
properties:
- 'dwc:municipality'
field_dwc_recordedby:
properties:
- 'dwc:recordedBy'
field_herb_geo_field:
properties:
- 'dwc:verbatimCoordinates'
field_dwciri_scientificname:
properties:
- 'dwciri:scientificName'
mapping_type: rel
field_dwc_scientificname:
properties:
- 'dwc:scientificName'
field_dwc_specificepithet:
properties:
- 'dwc:specificepithet'
field_dwc_genus:
properties:
- 'dwc:genus'
field_dwc_eventdate:
properties:
- 'dwc:eventDate'
field_memberof:
properties:
- 'pcdm:memberOf'
mapping_type: rel
field_tiff:
properties:
- 'pcdm:hasFile'
mapping_type: rel
field_jp2:
properties:
- 'pcdm:hasFile'
mapping_type: rel
field_web_content:
properties:
- 'pcdm:hasFile'
mapping_type: rel
field_tn:
properties:
- 'pcdm:hasFile'
mapping_type: rel
title:
properties:
- 'dc:title'
created:
properties:
- 'schema:dateCreated'
datatype_callback:
callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value'
changed:
properties:
- 'schema:dateModified'
datatype_callback:
callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value'
uid:
properties:
- 'schema:author'
mapping_type: rel

17
islandora_herbarium_object.info.yml

@ -0,0 +1,17 @@
name: 'Islandora Herbarium Object'
description: 'Provides Islandora Herbarium Object content type and related configuration. Islandora Herbarium Object'
type: module
core: 8.x
dependencies:
- datetime
- field
- link
- menu_ui
- node
- path
- rdf
- text
- user
- islandora_collection
- geofield_map
- openseadragon

78
islandora_herbarium_object.module

@ -0,0 +1,78 @@
<?php
/**
* @file
* Contains islandora_pdf.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Entity\EntityInterface;
/**
* Implements hook_help().
*/
function islandora_herbarium_object_help($route_name, RouteMatchInterface $route_match)
{
switch ($route_name) {
// Main module help for the islandora_pdf module.
case 'help.page.islandora_herbarium':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Islandora Herbarium') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_entity_presave().
*/
function islandora_herbarium_object_entity_presave(Drupal\Core\Entity\EntityInterface $entity)
{
if ($entity->bundle() == 'islandora_herbarium_object') {
try {
$dwciri = $entity->get("field_dwciri_municipality")->getValue();
$geo = \Drupal::service('islandora_herbarium_object.geoparser');
$geo->getRemoteData($dwciri[0]['value']);
$geo->parseData();
} catch (Exception $e) {
watchdog_exception('islandora_herbarium_object', $e, 'Error getting dwciri');
//todo drupal_set_message
return;
}
$entity->set('field_dwc_municipality', $geo->data_arr['name']);
$entity->set('field_dwc_countrycode', $geo->data_arr['countryCode']);
$entity->set('field_dwc_country', $geo->data_arr['countryName']);
$entity->set('field_dwc_continent', $geo->data_arr['countinentCode']);
$entity->set('field_dwc_decimallatitude', $geo->data_arr['lat']);
$entity->set('field_dwc_decimallongitude', $geo->data_arr['lng']);
$entity->set('field_dwc_stateprovince', $geo->data_arr['adminName1']);
$point = array(
'lon' => $geo->data_arr['lng'],
'lat' => $geo->data_arr['lat'],
);
$geo_field_value = \Drupal::service('geofield.wkt_generator')->WktBuildPoint($point);
$entity->set('field_herb_geo_field', $geo_field_value);
try {
$taxoniri = $entity->get("field_dwciri_scientificname")->getValue();
$taxon = \Drupal::service('islandora_herbarium_object.taxonparser');
$taxon->getRemoteData($taxoniri[0]['value']);
$taxon->parseData();
} catch (Exception $e) {
watchdog_exception('islandora_herbarium_object', $e, 'Error getting dwciri');
//todo drupal_set_message
return;
}
$entity->set('field_dwc_scientificname', $taxon->data_arr['nameComplete']);
$entity->set('field_dwc_specificepithet', $taxon->data_arr['specificEpithet']);
$entity->set('field_dwc_genus', $taxon->data_arr['genusPart']);
// todo translate
$title = $taxon->data_arr['nameComplete'] . ' - ' . $geo->data_arr['name'];
if(!empty($title)) {
$entity->setTitle( $taxon->data_arr['nameComplete'] . ' - ' . $geo->data_arr['name']);
}
}
}

5
islandora_herbarium_object.services.yml

@ -0,0 +1,5 @@
services:
islandora_herbarium_object.taxonparser:
class: Drupal\islandora_herbarium_object\DataParser\IpniParser
islandora_herbarium_object.geoparser:
class: Drupal\islandora_herbarium_object\DataParser\GeonamesParser

30
src/DataParser/DataParser.php

@ -0,0 +1,30 @@
<?php
/**
* Created by IntelliJ IDEA.
* User: ppound
* Date: 2018-04-30
* Time: 11:25 AM
*/
namespace Drupal\islandora_herbarium_object\DataParser;
abstract class DataParser implements DataParserInterface
{
public $data;
public $data_arr = array();
public function getXmlNodeValue($xml_doc, $element_name)
{
$this->data_arr[$element_name] = $xml_doc->getElementsByTagName($element_name)[0]->nodeValue;
}
public function getRemoteData($uri) {
$client = \Drupal::httpClient();
$request = $client->get(trim($uri));
$data = $request->getBody()->getContents();
$this->data = $data;
}
}

21
src/DataParser/DataParserInterface.php

@ -0,0 +1,21 @@
<?php
/**
* Created by IntelliJ IDEA.
* User: ppound
* Date: 2018-04-30
* Time: 1:10 PM
*/
namespace Drupal\islandora_herbarium_object\DataParser;
interface DataParserInterface
{
public function getXmlNodeValue($xml_doc, $element_name);
public function getRemoteData($uri) ;
public function parseData();
}

39
src/DataParser/GeonamesParser.php

@ -0,0 +1,39 @@
<?php
/**
* Created by IntelliJ IDEA.
* User: ppound
* Date: 2018-04-30
* Time: 11:35 AM
*/
namespace Drupal\islandora_herbarium_object\DataParser;
class GeonamesParser extends DataParser
{
public function parseData()
{
$xml_doc = new \DOMDocument();
$xml_doc->loadXML($this->data);
parent::getXmlNodeValue($xml_doc, 'toponymName');
parent::getXmlNodeValue($xml_doc, 'name');
parent::getXmlNodeValue($xml_doc, 'lat');
parent::getXmlNodeValue($xml_doc, 'lng');
parent::getXmlNodeValue($xml_doc, 'geonameId');
parent::getXmlNodeValue($xml_doc, 'countryCode');
parent::getXmlNodeValue($xml_doc, 'countryName');
parent::getXmlNodeValue($xml_doc, 'fcodeName');
parent::getXmlNodeValue($xml_doc, 'toponymName');
parent::getXmlNodeValue($xml_doc, 'population');
parent::getXmlNodeValue($xml_doc, 'asciiName');
parent::getXmlNodeValue($xml_doc, 'elevation');
parent::getXmlNodeValue($xml_doc, 'continentCode');
parent::getXmlNodeValue($xml_doc, 'adminName1');
parent::getXmlNodeValue($xml_doc, 'timezone');
parent::getXmlNodeValue($xml_doc, 'west');
parent::getXmlNodeValue($xml_doc, 'north');
parent::getXmlNodeValue($xml_doc, 'east');
parent::getXmlNodeValue($xml_doc, 'south');
}
}

21
src/DataParser/IpniParser.php

@ -0,0 +1,21 @@
<?php
/**
* Created by IntelliJ IDEA.
* User: ppound
* Date: 2018-04-30
* Time: 11:23 AM
*/
namespace Drupal\islandora_herbarium_object\DataParser;
class IpniParser extends DataParser
{
public function parseData() {
$xml_doc = new \DOMDocument();
$xml_doc->loadXML($this->data);
parent::getXmlNodeValue($xml_doc, 'nameComplete');
parent::getXmlNodeValue($xml_doc, 'genusPart');
parent::getXmlNodeValue($xml_doc, 'specificEpithet');
}
}
Loading…
Cancel
Save