First commit
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
namespace CustomLicenseTypes;
|
||||
|
||||
use Omeka\Module\AbstractModule;
|
||||
|
||||
class Module extends AbstractModule
|
||||
{
|
||||
public function getConfig()
|
||||
{
|
||||
return include __DIR__ . '/config/module.config.php';
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
# Custom License Types
|
||||
|
||||
Based on **RightsStatements**
|
||||
https://github.com/zerocrates/RightsStatements
|
||||
|
||||
An Omeka S module to allow users to easily select a license from a drop down list of standardized vocabulary.
|
||||
|
||||
The module adds a "CustomLicenseTypes" data type. To use it, assign it as the
|
||||
data type for a Property (i.e., Custom License Type) for a Resource Template.
|
||||
|
||||
When the "Custom License Type" type is used on a property, the UI for that
|
||||
property becomes a drop-down with the appropriate terms
|
||||
for the user to select. Both the human-readable name and the linked data URI
|
||||
for the selected statement are applied to the item.
|
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 5.8 KiB |
|
@ -0,0 +1 @@
|
|||
<svg id="FINAL" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.93 31.38"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#008cc8;}.cls-3{fill:#414042;}</style></defs><title>InC-EU-ORPHAN.dark-white-interior-blue-type</title><circle class="cls-1" cx="15.51" cy="15.68" r="13.91"/><path class="cls-2" d="M1753.51,2629.35h7.21v2.46h-4.57V2635h4v2.46h-4v3.29h4.65v2.46h-7.29v-13.86Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-2" d="M1762.41,2638.46v-9.11h2.65v9.25c0,1.6.69,2.36,1.76,2.36s1.76-.73,1.76-2.34v-9.27h2.63v9.09c0,3.39-1.78,5-4.42,5S1762.41,2641.81,1762.41,2638.46Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-2" d="M1776.52,2636.52v-0.46c0-4.38,2.06-6.93,5-6.93s5,2.55,5,6.91v0.46c0,4.36-2.06,6.93-5,6.93S1776.52,2640.87,1776.52,2636.52Zm7.37-.1v-0.26c0-3.13-1-4.59-2.34-4.59s-2.32,1.45-2.32,4.57v0.26c0,3.13,1,4.59,2.34,4.59S1783.89,2639.55,1783.89,2636.42Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-2" d="M1788.36,2629.35h3.92a4.78,4.78,0,0,1,3.47,1.23,4.43,4.43,0,0,1,1.15,3.25v0.12a4.17,4.17,0,0,1-2.12,3.9l2.44,5.37h-3l-2.08-4.69H1791v4.69h-2.65v-13.86Zm3.7,6.81a2,2,0,0,0,2.18-2.2,2,2,0,0,0-2.24-2.18h-1v4.38h1Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-2" d="M1798.61,2629.35h3.45c2.89,0,4.79,1.62,4.79,4.71v0c0,3.17-2,4.71-4.71,4.83h-0.87v4.28h-2.65v-13.86Zm3.35,7.17a2.1,2.1,0,0,0,2.22-2.36c0-1.52-.69-2.38-2.2-2.38h-0.71v4.73H1802Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-2" d="M1808.31,2629.35H1811V2635h3.39v-5.64H1817v13.86h-2.65v-5.72H1811v5.72h-2.65v-13.86Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-2" d="M1822.11,2629.29h2.67l3.86,13.92h-2.71l-0.75-2.89h-3.56l-0.73,2.89h-2.61Zm2.44,8.67-1.13-4.55-1.17,4.55h2.3Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-2" d="M1829.89,2629.35h2.46l3.94,7.56v-7.56h2.59v13.86h-2.3l-4.1-7.88v7.88h-2.59v-13.86Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-2" d="M1752.69,2646.43h2.77l1.7,8.83,1.9-8.85h2.38l1.9,8.85,1.7-8.83h2.71l-3.07,13.92h-2.59l-1.88-8.53-1.88,8.53h-2.57Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-2" d="M1768.31,2653.6v-0.46c0-4.38,2.06-6.93,5-6.93s5,2.55,5,6.91v0.46c0,4.36-2.06,6.93-5,6.93S1768.31,2658,1768.31,2653.6Zm7.37-.1v-0.26c0-3.13-1-4.59-2.34-4.59s-2.32,1.45-2.32,4.57v0.26c0,3.13,1,4.59,2.34,4.59S1775.68,2656.63,1775.68,2653.5Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-2" d="M1780.15,2646.43h3.92a4.78,4.78,0,0,1,3.47,1.23,4.43,4.43,0,0,1,1.15,3.25V2651a4.17,4.17,0,0,1-2.12,3.9l2.44,5.37h-3l-2.08-4.69h-1.17v4.69h-2.65v-13.86Zm3.7,6.81a2,2,0,0,0,2.18-2.2,2,2,0,0,0-2.24-2.18h-1v4.38h1Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-2" d="M1790.4,2646.43h2.65v5.9l3.31-5.9h3.09l-3.56,5.86,3.68,8h-3l-2.53-5.49-0.93,1.56v3.92h-2.65v-13.86Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-3" d="M1731.45,2629.35a15.5,15.5,0,0,0-15.5,15.5v15.5h15.5a15.5,15.5,0,0,0,15.5-15.5v-15.5h-15.5Zm0,28.17a12.67,12.67,0,1,1,12.67-12.67A12.67,12.67,0,0,1,1731.45,2657.53Z" transform="translate(-1715.95 -2629.13)"/><path class="cls-3" d="M1728,2648.61a4.53,4.53,0,0,0,3.32,1.37,5.35,5.35,0,0,0,4.37-2.12l2.32,2.39a8.77,8.77,0,0,1-12.71.74,8.59,8.59,0,0,1,0-12,8.34,8.34,0,0,1,6.06-2.42,8.59,8.59,0,0,1,6.7,3l-2.25,2.56a5.29,5.29,0,0,0-4.28-2.14,5,5,0,0,0-3.5,1.34,4.66,4.66,0,0,0-1.45,3.6A4.92,4.92,0,0,0,1728,2648.61Z" transform="translate(-1715.95 -2629.13)"/></svg>
|
After Width: | Height: | Size: 3.4 KiB |
|
@ -0,0 +1 @@
|
|||
<svg id="FINAL" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 151.28 31.38"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#008cc8;}.cls-3{fill:#414042;}</style></defs><title>InC-UNKNOWN.dark-white-interior-blue-type</title><circle class="cls-1" cx="15.51" cy="15.5" r="13.91"/><path class="cls-2" d="M1753.39,2701v-9.11H1756v9.25c0,1.6.69,2.36,1.76,2.36s1.76-.73,1.76-2.34v-9.27h2.63V2701c0,3.39-1.78,5-4.42,5S1753.39,2704.33,1753.39,2701Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1764.23,2691.87h2.45l3.94,7.56v-7.56h2.59v13.86h-2.3l-4.1-7.88v7.88h-2.59v-13.86Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1775.36,2691.87H1778v5.9l3.31-5.9h3.09l-3.56,5.86,3.68,8h-3l-2.53-5.49-0.93,1.56v3.92h-2.65v-13.86Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1785.73,2691.87h2.45l3.94,7.56v-7.56h2.59v13.86h-2.3l-4.1-7.88v7.88h-2.59v-13.86Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1796.48,2699v-0.46c0-4.38,2.06-6.93,5-6.93s5,2.55,5,6.91V2699c0,4.36-2.06,6.93-5,6.93S1796.48,2703.4,1796.48,2699Zm7.37-.1v-0.26c0-3.13-1-4.59-2.34-4.59s-2.32,1.45-2.32,4.57v0.26c0,3.13,1,4.59,2.34,4.59S1803.84,2702.07,1803.84,2698.94Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1807.08,2691.87h2.77l1.7,8.83,1.9-8.85h2.38l1.9,8.85,1.7-8.83h2.71l-3.07,13.92h-2.59l-1.88-8.53-1.88,8.53h-2.57Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1823.49,2691.87h2.46l3.94,7.56v-7.56h2.59v13.86h-2.3l-4.1-7.88v7.88h-2.59v-13.86Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1753.51,2709h3.92a4.78,4.78,0,0,1,3.46,1.23,4.43,4.43,0,0,1,1.15,3.25v0.12a4.17,4.17,0,0,1-2.12,3.9l2.44,5.37h-3l-2.08-4.69h-1.17v4.69h-2.65V2709Zm3.7,6.81a2,2,0,0,0,2.18-2.2,2,2,0,0,0-2.24-2.18h-1v4.38h1Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1763.84,2709h2.63v13.86h-2.63V2709Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1768.31,2716v-0.32c0-4.28,2.34-6.93,5.6-6.93a5.3,5.3,0,0,1,3.52,1.31l-1.46,2.18a2.61,2.61,0,0,0-2-1c-1.7,0-2.91,1.64-2.91,4.42V2716c0,3.21,1.37,4.53,2.93,4.53a2.2,2.2,0,0,0,1.13-.28v-3h-1.88v-2.34h4.36v6.87a6.86,6.86,0,0,1-3.78,1.19C1770.71,2723,1768.31,2720.66,1768.31,2716Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1779.47,2709h2.65v5.64h3.39V2709h2.65v13.86h-2.65v-5.72h-3.39v5.72h-2.65V2709Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1792.3,2711.45h-2.63V2709h7.92v2.49H1795v11.37h-2.65v-11.37Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1797.9,2721.11l1.58-2.06a4,4,0,0,0,2.65,1.45,1.42,1.42,0,0,0,1.54-1.43c0-.61-0.32-1.09-1.88-2-2.1-1.25-3.33-2.34-3.33-4.28v0a3.86,3.86,0,0,1,4.18-3.92,5.19,5.19,0,0,1,3.74,1.6l-1.62,2a3.2,3.2,0,0,0-2.24-1.19,1.25,1.25,0,0,0-1.39,1.21c0,0.65.32,1.13,2.24,2.32s3,2.28,3,4.12v0a4,4,0,0,1-4.18,4A5.92,5.92,0,0,1,1797.9,2721.11Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1807.84,2709h2.65v5.64h3.39V2709h2.65v13.86h-2.65v-5.72h-3.39v5.72h-2.65V2709Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1818.29,2716.12v-0.46c0-4.38,2.06-6.93,5-6.93s5,2.55,5,6.91v0.46c0,4.36-2.06,6.93-5,6.93S1818.29,2720.48,1818.29,2716.12Zm7.37-.1v-0.26c0-3.13-1-4.59-2.34-4.59s-2.32,1.45-2.32,4.57V2716c0,3.13,1,4.59,2.34,4.59S1825.65,2719.15,1825.65,2716Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1830.12,2709h2.65v11.39h4.16v2.48h-6.81V2709Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1838.4,2709h3.43c3.62,0,5.78,2.51,5.78,6.77V2716c0,4.24-2.16,6.77-5.78,6.77h-3.43V2709Zm2.65,2.42v9h0.73c1.84,0,3.09-1.33,3.09-4.42v-0.2c0-3.09-1.25-4.42-3.09-4.42h-0.73Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1849.34,2709h7.21v2.46H1852v3.21h4v2.46h-4v3.29h4.65v2.46h-7.29V2709Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-2" d="M1858.37,2709h3.92a4.78,4.78,0,0,1,3.46,1.23,4.43,4.43,0,0,1,1.15,3.25v0.12a4.17,4.17,0,0,1-2.12,3.9l2.44,5.37h-3l-2.08-4.69H1861v4.69h-2.65V2709Zm3.7,6.81a2,2,0,0,0,2.18-2.2,2,2,0,0,0-2.24-2.18h-1v4.38h1Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-3" d="M1731.45,2691.88a15.5,15.5,0,0,0-15.5,15.5v15.5h15.5a15.5,15.5,0,0,0,15.5-15.5v-15.5h-15.5Zm0,28.17a12.67,12.67,0,1,1,12.67-12.67A12.67,12.67,0,0,1,1731.45,2720.05Z" transform="translate(-1715.95 -2691.65)"/><path class="cls-3" d="M1728,2711.13a4.53,4.53,0,0,0,3.32,1.37,5.35,5.35,0,0,0,4.37-2.12l2.32,2.39a8.77,8.77,0,0,1-12.71.74,8.59,8.59,0,0,1,0-12,8.34,8.34,0,0,1,6.06-2.42,8.59,8.59,0,0,1,6.7,3l-2.25,2.56a5.29,5.29,0,0,0-4.28-2.14,5,5,0,0,0-3.5,1.34,4.66,4.66,0,0,0-1.45,3.6A4.92,4.92,0,0,0,1728,2711.13Z" transform="translate(-1715.95 -2691.65)"/></svg>
|
After Width: | Height: | Size: 4.6 KiB |
|
@ -0,0 +1 @@
|
|||
<svg id="FINAL" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 121.76 31.21"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#008cc8;}.cls-3{fill:#414042;}</style></defs><title>InC.dark-white-interior-blue-type</title><circle class="cls-1" cx="15.51" cy="15.7" r="13.91"/><path class="cls-2" d="M1753.13,2590.95v-0.32c0-4.51,2.22-6.93,5.21-6.93a4.49,4.49,0,0,1,3.31,1.35l-1.51,2.12a2.64,2.64,0,0,0-1.82-.93c-1.37,0-2.48,1.52-2.48,4.49v0.1c0,3.17,1.19,4.51,2.44,4.51a2.73,2.73,0,0,0,2-1l1.41,2.06a4.87,4.87,0,0,1-3.48,1.5C1755.09,2597.88,1753.13,2595.46,1753.13,2590.95Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-2" d="M1762.27,2591v-0.46c0-4.38,2.06-6.93,5-6.93s5,2.55,5,6.91V2591c0,4.36-2.06,6.93-5,6.93S1762.27,2595.38,1762.27,2591Zm7.37-.1v-0.26c0-3.13-1-4.59-2.34-4.59s-2.32,1.45-2.32,4.57v0.26c0,3.13,1,4.59,2.34,4.59S1769.64,2594.06,1769.64,2590.93Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-2" d="M1774.11,2583.86h3.45c2.89,0,4.79,1.62,4.79,4.71v0c0,3.17-2,4.71-4.71,4.83h-0.87v4.28h-2.65v-13.86Zm3.35,7.17a2.1,2.1,0,0,0,2.22-2.36c0-1.52-.69-2.38-2.2-2.38h-0.71V2591h0.69Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-2" d="M1786.22,2592.26l-3.6-8.4h2.89l2.06,5.33,2.08-5.33h2.81l-3.58,8.38v5.49h-2.65v-5.47Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-2" d="M1793.63,2583.86h3.92a4.78,4.78,0,0,1,3.46,1.23,4.43,4.43,0,0,1,1.15,3.25v0.12a4.17,4.17,0,0,1-2.12,3.9l2.44,5.37h-3l-2.08-4.69h-1.17v4.69h-2.65v-13.86Zm3.7,6.81a2,2,0,0,0,2.18-2.2,2,2,0,0,0-2.24-2.18h-1v4.38h1Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-2" d="M1804,2583.86h2.63v13.86H1804v-13.86Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-2" d="M1808.43,2590.95v-0.32c0-4.28,2.34-6.93,5.6-6.93a5.3,5.3,0,0,1,3.52,1.31l-1.46,2.18a2.61,2.61,0,0,0-2-1c-1.7,0-2.91,1.64-2.91,4.42v0.28c0,3.21,1.37,4.53,2.93,4.53a2.2,2.2,0,0,0,1.13-.28v-3h-1.88v-2.34h4.36v6.87a6.86,6.86,0,0,1-3.78,1.19C1810.83,2597.88,1808.43,2595.56,1808.43,2590.95Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-2" d="M1819.59,2583.86h2.65v5.64h3.39v-5.64h2.65v13.86h-2.65V2592h-3.39v5.72h-2.65v-13.86Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-2" d="M1832.42,2586.35h-2.63v-2.49h7.92v2.49h-2.63v11.37h-2.65v-11.37Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-2" d="M1753.13,2566.73h2.63v13.86h-2.63v-13.86Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-2" d="M1758,2566.73h2.45l3.94,7.56v-7.56H1767v13.86h-2.3l-4.1-7.88v7.88H1758v-13.86Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-3" d="M1731.45,2566.8a15.5,15.5,0,0,0-15.5,15.5v15.5h15.5a15.5,15.5,0,0,0,15.5-15.5v-15.5h-15.5Zm0,28.17a12.67,12.67,0,1,1,12.67-12.67A12.67,12.67,0,0,1,1731.45,2595Z" transform="translate(-1715.95 -2566.73)"/><path class="cls-3" d="M1728,2586.05a4.53,4.53,0,0,0,3.32,1.37,5.35,5.35,0,0,0,4.37-2.12l2.32,2.39a8.77,8.77,0,0,1-12.71.74,8.59,8.59,0,0,1,0-12,8.34,8.34,0,0,1,6.06-2.42,8.59,8.59,0,0,1,6.7,3l-2.25,2.56a5.29,5.29,0,0,0-4.28-2.14,5,5,0,0,0-3.5,1.34,4.66,4.66,0,0,0-1.45,3.6A4.92,4.92,0,0,0,1728,2586.05Z" transform="translate(-1715.95 -2566.73)"/></svg>
|
After Width: | Height: | Size: 3.1 KiB |
|
@ -0,0 +1 @@
|
|||
<svg id="FINAL" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 121.76 31.45"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#008cc8;}.cls-3{fill:#414042;}</style></defs><title>Other-UNKNOWN.dark-white-interior-blue-type</title><circle class="cls-1" cx="15.57" cy="15.79" r="13.91"/><path class="cls-2" d="M2192.51,2566.85H2195l3.94,7.56v-7.56h2.59v13.86h-2.3l-4.1-7.88v7.88h-2.59v-13.86Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2203.25,2574v-0.46c0-4.38,2.06-6.93,5-6.93s5,2.55,5,6.91V2574c0,4.36-2.06,6.93-5,6.93S2203.25,2578.38,2203.25,2574Zm7.37-.1v-0.26c0-3.13-1-4.59-2.34-4.59s-2.32,1.45-2.32,4.57v0.26c0,3.13,1,4.59,2.34,4.59S2210.62,2577.05,2210.62,2573.92Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2218.73,2566.85h2.65v5.9l3.31-5.9h3.09l-3.56,5.86,3.68,8h-3l-2.53-5.49-0.93,1.56v3.92h-2.65v-13.86Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2229.1,2566.85h2.46l3.94,7.56v-7.56h2.59v13.86h-2.3l-4.1-7.88v7.88h-2.59v-13.86Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2239.85,2574v-0.46c0-4.38,2.06-6.93,5-6.93s5,2.55,5,6.91V2574c0,4.36-2.06,6.93-5,6.93S2239.85,2578.38,2239.85,2574Zm7.37-.1v-0.26c0-3.13-1-4.59-2.34-4.59s-2.32,1.45-2.32,4.57v0.26c0,3.13,1,4.59,2.34,4.59S2247.22,2577.05,2247.22,2573.92Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2250.46,2566.85h2.77l1.7,8.83,1.9-8.85h2.38l1.9,8.85,1.7-8.83h2.71l-3.07,13.92h-2.59l-1.88-8.53-1.88,8.53h-2.57Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2266.87,2566.85h2.45l3.94,7.56v-7.56h2.59v13.86h-2.3l-4.1-7.88v7.88h-2.59v-13.86Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2192.13,2591.1v-0.32c0-4.51,2.22-6.93,5.21-6.93a4.49,4.49,0,0,1,3.31,1.35l-1.51,2.12a2.64,2.64,0,0,0-1.82-.93c-1.37,0-2.48,1.52-2.48,4.49v0.1c0,3.17,1.19,4.51,2.44,4.51a2.73,2.73,0,0,0,2-1l1.41,2.06a4.87,4.87,0,0,1-3.48,1.5C2194.09,2598,2192.13,2595.61,2192.13,2591.1Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2201.28,2591.18v-0.46c0-4.38,2.06-6.93,5-6.93s5,2.55,5,6.91v0.46c0,4.36-2.06,6.93-5,6.93S2201.28,2595.53,2201.28,2591.18Zm7.37-.1v-0.26c0-3.13-1-4.59-2.34-4.59s-2.32,1.45-2.32,4.57v0.26c0,3.13,1,4.59,2.34,4.59S2208.64,2594.21,2208.64,2591.08Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2213.11,2584h3.45c2.89,0,4.79,1.62,4.79,4.71v0c0,3.17-2,4.71-4.71,4.83h-0.87v4.28h-2.65V2584Zm3.35,7.17a2.1,2.1,0,0,0,2.22-2.36c0-1.52-.69-2.38-2.2-2.38h-0.71v4.73h0.69Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2225.23,2592.4l-3.6-8.4h2.89l2.06,5.33,2.08-5.33h2.81l-3.58,8.38v5.49h-2.65v-5.47Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2232.63,2584h3.92a4.78,4.78,0,0,1,3.46,1.23,4.43,4.43,0,0,1,1.15,3.25v0.12a4.17,4.17,0,0,1-2.12,3.9l2.44,5.37h-3l-2.08-4.69h-1.17v4.69h-2.65V2584Zm3.7,6.81a2,2,0,0,0,2.18-2.2,2,2,0,0,0-2.24-2.18h-1v4.38h1Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2243,2584h2.63v13.86H2243V2584Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2247.43,2591.1v-0.32c0-4.28,2.34-6.93,5.6-6.93a5.3,5.3,0,0,1,3.52,1.31l-1.46,2.18a2.61,2.61,0,0,0-2-1c-1.7,0-2.91,1.64-2.91,4.42v0.28c0,3.21,1.37,4.53,2.93,4.53a2.2,2.2,0,0,0,1.13-.28v-3h-1.88V2590h4.36v6.87a6.86,6.86,0,0,1-3.78,1.19C2249.83,2598,2247.43,2595.71,2247.43,2591.1Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2258.6,2584h2.65v5.64h3.39V2584h2.65v13.86h-2.65v-5.72h-3.39v5.72h-2.65V2584Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-2" d="M2271.42,2586.5h-2.63V2584h7.92v2.49h-2.63v11.37h-2.65V2586.5Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-3" d="M2185.95,2566.87v15.5a15.5,15.5,0,0,1-15.5,15.5h-15.5v-15.5a15.5,15.5,0,0,1,15.5-15.5h15.5Zm-28.17,15.5a12.67,12.67,0,1,0,12.67-12.67A12.67,12.67,0,0,0,2157.78,2582.36Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-3" d="M2175.54,2578.63a3.15,3.15,0,0,1-.24,1.41c-0.15.3-.26,0.51-0.33,0.65a3.25,3.25,0,0,1-.43.6l-0.46.51-1.07,1.05a3.41,3.41,0,0,0-.67.8,2.1,2.1,0,0,0-.16,1V2586h-3.58v-1.76a3.31,3.31,0,0,1,.25-1.44,6.65,6.65,0,0,1,1-1.31l1.59-1.64a1.6,1.6,0,0,0,.35-1.08,1.65,1.65,0,0,0-.38-1.12,1.2,1.2,0,0,0-1-.45,1.23,1.23,0,0,0-1,.53,2.58,2.58,0,0,0-.5,1.41h-3.74a5.62,5.62,0,0,1,1.72-3.69,5.17,5.17,0,0,1,3.64-1.34,5.23,5.23,0,0,1,3.58,1.2A4.13,4.13,0,0,1,2175.54,2578.63Z" transform="translate(-2154.95 -2566.64)"/><path class="cls-3" d="M2171.92,2587.56a2.06,2.06,0,1,0,0,2.92A2.08,2.08,0,0,0,2171.92,2587.56Z" transform="translate(-2154.95 -2566.64)"/></svg>
|
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 5.4 KiB |
|
@ -0,0 +1 @@
|
|||
<svg id="FINAL" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 148.03 31.21"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#008cc8;}.cls-3{fill:#414042;}</style></defs><title>NoC-US.dark-white-interior-blue-type</title><circle class="cls-1" cx="15.04" cy="15.16" r="13.91"/><path class="cls-2" d="M1972.18,2754.42h2.63v13.86h-2.63v-13.86Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M1977,2754.42h2.45l3.94,7.56v-7.56H1986v13.86h-2.3l-4.1-7.88v7.88H1977v-13.86Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M1993.8,2756.92h-2.63v-2.5h7.92v2.5h-2.63v11.37h-2.65v-11.37Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M2000.59,2754.42h2.65v5.64h3.39v-5.64h2.65v13.86h-2.65v-5.72h-3.39v5.72h-2.65v-13.86Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M2011.41,2754.42h7.21v2.46H2014v3.21h4v2.46h-4v3.29h4.65v2.46h-7.29v-13.86Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M1972,2780.69v-9.11h2.65v9.25c0,1.6.69,2.36,1.76,2.36s1.76-.73,1.76-2.34v-9.27h2.63v9.09c0,3.39-1.78,5-4.42,5S1972,2784,1972,2780.69Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M1982.83,2771.58h2.45l3.94,7.56v-7.56h2.59v13.86h-2.3l-4.1-7.88v7.88h-2.59v-13.86Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M1994,2771.58h2.63v13.86H1994v-13.86Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M2000.89,2774.07h-2.63v-2.5h7.92v2.5h-2.63v11.37h-2.65v-11.37Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M2007.67,2771.58h7.21V2774h-4.57v3.21h4v2.46h-4V2783H2015v2.46h-7.29v-13.86Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M2016.7,2771.58h3.43c3.62,0,5.78,2.52,5.78,6.77v0.32c0,4.24-2.16,6.77-5.78,6.77h-3.43v-13.86Zm2.65,2.42v9h0.73c1.84,0,3.09-1.33,3.09-4.42v-0.2c0-3.09-1.25-4.42-3.09-4.42h-0.73Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M2030.22,2783.74l1.58-2.06a4,4,0,0,0,2.65,1.45,1.42,1.42,0,0,0,1.54-1.43c0-.61-0.32-1.09-1.88-2-2.1-1.25-3.33-2.34-3.33-4.28v0a3.86,3.86,0,0,1,4.18-3.92,5.19,5.19,0,0,1,3.74,1.6l-1.62,2a3.2,3.2,0,0,0-2.24-1.19,1.25,1.25,0,0,0-1.39,1.21c0,0.65.32,1.13,2.24,2.32s3,2.28,3,4.12v0a4,4,0,0,1-4.18,4A5.92,5.92,0,0,1,2030.22,2783.74Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M2041.86,2774.07h-2.63v-2.5h7.92v2.5h-2.63v11.37h-2.65v-11.37Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M2050.59,2771.52h2.67l3.86,13.92h-2.71l-0.75-2.89h-3.56l-0.73,2.89h-2.61Zm2.44,8.67-1.13-4.55-1.17,4.55h2.3Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M2059.33,2774.07h-2.63v-2.5h7.92v2.5H2062v11.37h-2.65v-11.37Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M2066.12,2771.58h7.21V2774h-4.57v3.21h4v2.46h-4V2783h4.65v2.46h-7.29v-13.86Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-2" d="M2074.08,2783.74l1.58-2.06a4,4,0,0,0,2.65,1.45,1.42,1.42,0,0,0,1.54-1.43c0-.61-0.32-1.09-1.88-2-2.1-1.25-3.33-2.34-3.33-4.28v0a3.86,3.86,0,0,1,4.18-3.92,5.18,5.18,0,0,1,3.74,1.6l-1.62,2a3.2,3.2,0,0,0-2.24-1.19,1.25,1.25,0,0,0-1.39,1.21c0,0.65.32,1.13,2.24,2.32s3,2.28,3,4.12v0a4,4,0,0,1-4.18,4A5.92,5.92,0,0,1,2074.08,2783.74Z" transform="translate(-1934.55 -2754.42)"/><path class="cls-3" d="M1965.55,2754.43v15.5a15.5,15.5,0,0,1-15.5,15.5h-15.5v-15.5a15.5,15.5,0,0,1,15.5-15.5h15.5Zm-24,15.65a8.13,8.13,0,0,1,2.47-6,8.36,8.36,0,0,1,6.06-2.41,8.51,8.51,0,0,1,4.53,1.22l3.06-3.06a12.66,12.66,0,0,0-17.72,17.72l2.86-2.86A8.14,8.14,0,0,1,1941.51,2770.08Zm18.51-8-12.35,12.35a4.5,4.5,0,0,0,2.27.58,5.37,5.37,0,0,0,4.38-2.12l2.32,2.4a8.48,8.48,0,0,1-6.53,3.11,8.81,8.81,0,0,1-5-1.41l-2.86,2.86a12.54,12.54,0,0,0,7.79,2.7A12.66,12.66,0,0,0,1960,2762.13Zm-14.77,7.91a5.8,5.8,0,0,0,.28,1.87l6.49-6.49a5.06,5.06,0,0,0-1.81-.31,5,5,0,0,0-3.5,1.33A4.67,4.67,0,0,0,1945.25,2770Z" transform="translate(-1934.55 -2754.42)"/></svg>
|
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 5.2 KiB |
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
return [
|
||||
'data_types' => [
|
||||
'invokables' => [
|
||||
'work_type' => 'CustomLicenseTypes\DataType\LicenseType'
|
||||
],
|
||||
],
|
||||
];
|
|
@ -0,0 +1,8 @@
|
|||
[info]
|
||||
name = "Custom License Types"
|
||||
version = "1.0.0"
|
||||
author = "Arden Kirkland, based on work by John Flatness"
|
||||
author_link = "https://github.com/ArdenKirkland"
|
||||
module_link = "https://github.com/ArdenKirkland/CostumeCoreWorkTypes"
|
||||
support_link = "https://github.com/ArdenKirkland/CostumeCoreWorkTypes/issues"
|
||||
omeka_version_constraint = "^1.0.0 || ^2.0.0"
|
|
@ -0,0 +1,73 @@
|
|||
<?php
|
||||
namespace CustomLicenseTypes\DataType;
|
||||
|
||||
use Omeka\Api\Adapter\AbstractEntityAdapter;
|
||||
use Omeka\Api\Representation\ValueRepresentation;
|
||||
use Omeka\DataType\Uri;
|
||||
use Omeka\Entity\Value;
|
||||
use Zend\Form\Element\Select;
|
||||
use Zend\View\Renderer\PhpRenderer;
|
||||
|
||||
class LicenseType extends Uri
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $statements = [
|
||||
# http://rdflicense.appspot.com/
|
||||
'http://purl.org/NET/rdflicense/cc-by4.0' => 'Creative Commons CC-BY 4.0',
|
||||
'http://purl.org/NET/rdflicense/cc-by-sa4.0' => 'Creative Commons CC-BY-SA 4.0',
|
||||
'http://purl.org/NET/rdflicense/cc-by-nc4.0' => 'Creative Commons CC-BY-NC 4.0',
|
||||
'http://purl.org/NET/rdflicense/cc-by-nc-sa4.0' => 'Creative Commons CC-BY-NC-SA 4.0',
|
||||
'http://purl.org/NET/rdflicense/cc-by-nd4.0' => 'Creative Commons CC-BY-ND 4.0',
|
||||
'http://purl.org/NET/rdflicense/cc-by-nc-nd4.0' => 'Creative Commons CC-BY-NC-ND 4.0',
|
||||
'http://purl.org/NET/rdflicense/publicdomain' => 'Public domain',
|
||||
];
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return 'license_type';
|
||||
}
|
||||
|
||||
public function getLabel()
|
||||
{
|
||||
return 'Custom License Types';
|
||||
}
|
||||
|
||||
public function form(PhpRenderer $view)
|
||||
{
|
||||
$select = new Select('license-type');
|
||||
$select
|
||||
->setAttribute('data-value-key', '@id')
|
||||
->setEmptyOption('Select Below')
|
||||
->setValueOptions($this->statements);
|
||||
return $view->formSelect($select);
|
||||
|
||||
}
|
||||
|
||||
public function isValid(array $valueObject)
|
||||
{
|
||||
return parent::isValid($valueObject) && isset($this->statements[$valueObject['@id']]);
|
||||
}
|
||||
|
||||
public function hydrate(array $valueObject, Value $value, AbstractEntityAdapter $adapter)
|
||||
{
|
||||
$uri = $valueObject['@id'];
|
||||
if (isset($this->statements[$uri])) {
|
||||
$valueObject['o:label'] = $this->statements[$uri];
|
||||
}
|
||||
parent::hydrate($valueObject, $value, $adapter);
|
||||
}
|
||||
|
||||
public function render(PhpRenderer $view, ValueRepresentation $value)
|
||||
{
|
||||
$hyperlink = $view->plugin('hyperlink');
|
||||
$escape = $view->plugin('escapeHtml');
|
||||
|
||||
$uri = $value->uri();
|
||||
$uriLabel = $value->value();
|
||||
$content = $escape($uriLabel);
|
||||
|
||||
return $hyperlink->raw($content, $uri, ['class' => 'license-type-link']);
|
||||
}
|
||||
}
|