Compare commits
349 Commits
Author | SHA1 | Date |
---|---|---|
Rosie Le Faive | b8f0b9c966 | 6 months ago |
Akanksha Singh | da47bcfb08 | 6 months ago |
Rosie Le Faive | 5e958a5e10 | 6 months ago |
Rosie Le Faive | 3902cce0ac | 6 months ago |
Aron Novak | c80769580c | 7 months ago |
Adam | 54206de712 | 7 months ago |
Joe Corall | 9b2661696d | 7 months ago |
Alexander O'Neill | 089a3654ba | 7 months ago |
Rosie Le Faive | 263666f5fc | 7 months ago |
Rosie Le Faive | 95c2d6c0c9 | 7 months ago |
Rosie Le Faive | cde2c133e1 | 7 months ago |
Rosie Le Faive | a2c31fcaad | 7 months ago |
Rosie Le Faive | 9ed3637339 | 7 months ago |
Rosie Le Faive | 13bc15ea43 | 8 months ago |
Rosie Le Faive | 9f2277fc51 | 8 months ago |
Rosie Le Faive | 89261c17ae | 8 months ago |
Rosie Le Faive | 3784def287 | 8 months ago |
Rosie Le Faive | e30cdbf681 | 8 months ago |
Rosie Le Faive | 3065c87874 | 11 months ago |
Alan Stanley | d0e0c29921 | 11 months ago |
Alan Stanley | 28174c3ce4 | 11 months ago |
ajstanley | 4404dff246 | 11 months ago |
ajstanley | c93c1ff940 | 11 months ago |
ajstanley | b65881625a | 11 months ago |
ajstanley | c149781da0 | 11 months ago |
Seth Shaw | c6341649ca | 12 months ago |
Annie Oelschlager | 4630439760 | 12 months ago |
Rosie Le Faive | 056695c79c | 1 year ago |
Rosie Le Faive | 4b2b9b221b | 1 year ago |
Joe Corall | f29fef2bac | 1 year ago |
Adam | 095e0ecf67 | 1 year ago |
Rosie Le Faive | d5556f445d | 1 year ago |
Rosie Le Faive | 2c91dc6f58 | 1 year ago |
Rosie Le Faive | 16617a9dd7 | 1 year ago |
Rosie Le Faive | c05236ac8c | 1 year ago |
Rosie Le Faive | 6cfaca36e7 | 1 year ago |
Rosie Le Faive | f077af677b | 1 year ago |
Adam | 572ffcf2e1 | 1 year ago |
Alexander O'Neill | f7a77820d3 | 1 year ago |
Annie Oelschlager | 58d1b37f11 | 1 year ago |
Rosie Le Faive | 76eb4717a2 | 1 year ago |
Annie Oelschlager | e2ec673017 | 1 year ago |
Rosie Le Faive | d6e07491d2 | 1 year ago |
Rosie Le Faive | c2cd14cfd5 | 1 year ago |
Rosie Le Faive | fdfdd87472 | 1 year ago |
Rosie Le Faive | 84c6ca85d8 | 1 year ago |
Rosie Le Faive | 91253bef14 | 1 year ago |
dannylamb | e3399d3968 | 1 year ago |
aOelschlager | fd8319b7b2 | 1 year ago |
Rosie Le Faive | 5d83504778 | 1 year ago |
aOelschlager | 33340c2722 | 1 year ago |
Rosie Le Faive | d1357d347d | 1 year ago |
Rosie Le Faive | 0408edb93f | 1 year ago |
Alexander O'Neill | 71f0945e3c | 1 year ago |
Alexander O'Neill | 11afd42c8a | 1 year ago |
Rosie Le Faive | 4eef5f566d | 1 year ago |
Rosie Le Faive | 5331b0b7d5 | 1 year ago |
Alexander O'Neill | 8f1537670d | 1 year ago |
Rosie Le Faive | 0fe2a8f559 | 1 year ago |
Alexander O'Neill | ac818a0f27 | 1 year ago |
Rosie Le Faive | 408776437b | 1 year ago |
Rosie Le Faive | 6b05ff5f99 | 1 year ago |
Rosie Le Faive | 5c09a1e3f4 | 1 year ago |
Rosie Le Faive | 6d59c526d3 | 1 year ago |
Rosie Le Faive | 91016fd237 | 1 year ago |
Rosie Le Faive | 9ef509b0ad | 1 year ago |
Rosie Le Faive | 621b7a2c7d | 1 year ago |
Rosie Le Faive | aec8178846 | 1 year ago |
Rosie Le Faive | 8adc44859c | 1 year ago |
Rosie Le Faive | d1861de270 | 1 year ago |
Rosie Le Faive | d293d7702a | 1 year ago |
Rosie Le Faive | a88486ca28 | 1 year ago |
Rosie Le Faive | 8ef277527b | 1 year ago |
Rosie Le Faive | e67e8e5f25 | 1 year ago |
Rosie Le Faive | 52947f3f96 | 1 year ago |
Rosie Le Faive | e4dc48fca2 | 1 year ago |
Rosie Le Faive | 7470327871 | 1 year ago |
Rosie Le Faive | 8f8e6a3c35 | 1 year ago |
Jordan Dukart | 9cabfc2e23 | 1 year ago |
Rosie Le Faive | ffd128db80 | 1 year ago |
Rosie Le Faive | 2c332348dc | 1 year ago |
Rosie Le Faive | 7d7f97746a | 1 year ago |
Seth Shaw | 91490ddbe2 | 1 year ago |
Alexander O'Neill | e492b92d9f | 1 year ago |
Alexander O'Neill | d4cac72993 | 1 year ago |
Alexander O'Neill | 9f5eceea07 | 1 year ago |
Alexander O'Neill | cf243f368d | 1 year ago |
Alexander O'Neill | f41dc59f1b | 1 year ago |
Alexander O'Neill | 7527b1fa6f | 1 year ago |
Alexander O'Neill | 723f102365 | 1 year ago |
Alexander O'Neill | 9ef3bcf440 | 1 year ago |
Alexander O'Neill | 622eaab6a0 | 1 year ago |
Rosie Le Faive | 374ab02d07 | 1 year ago |
Alexander O'Neill | a7eaacc1d5 | 1 year ago |
Alexander O'Neill | 61c6e737c1 | 1 year ago |
Alexander O'Neill | 17b5049578 | 1 year ago |
Alexander O'Neill | 5bc1584dd7 | 1 year ago |
Alexander O'Neill | 43f32d1bcf | 1 year ago |
Alexander O'Neill | 78baec07e8 | 1 year ago |
kstapelfeldt | 0bd05b6c44 | 1 year ago |
Alexander O'Neill | 06dd1651ac | 1 year ago |
Alexander O'Neill | 138eab2016 | 1 year ago |
Jared Whiklo | 7b0ff739cd | 1 year ago |
Jared Whiklo | ff4e0cafc4 | 1 year ago |
Jared Whiklo | ba93ad35a3 | 1 year ago |
Jared Whiklo | 860abf3c06 | 1 year ago |
Jared Whiklo | 5dd96b8f22 | 1 year ago |
Jared Whiklo | 2c1d88f400 | 1 year ago |
Jared Whiklo | 8ce1ad2cda | 1 year ago |
Noah W. Smith | 58da2a6af1 | 1 year ago |
Noah W. Smith | 7d54a42d48 | 1 year ago |
Lucas van Schaik | ee451667d4 | 1 year ago |
Lucas van Schaik | 4bcc7d4417 | 1 year ago |
Lucas van Schaik | b82accf763 | 1 year ago |
Lucas van Schaik | 1bbb48f70f | 1 year ago |
Lucas van Schaik | 088f1fcdd0 | 1 year ago |
Lucas van Schaik | 50685aebe6 | 1 year ago |
Lucas van Schaik | 2c48c8795f | 1 year ago |
Lucas van Schaik | 9f83322902 | 1 year ago |
Lucas van Schaik | 709938cf29 | 1 year ago |
Rosie Le Faive | c67f3185ec | 1 year ago |
Jordan Dukart | 46cd2f9950 | 1 year ago |
Seth Shaw | 4e091e524f | 1 year ago |
Ant Brown | ee2b964a07 | 1 year ago |
JojoVes | 2376f77831 | 1 year ago |
Rosie Le Faive | 8686dbf74b | 1 year ago |
Rosie Le Faive | a77bd2d949 | 1 year ago |
Rosie Le Faive | cb2e1c4809 | 1 year ago |
Rosie Le Faive | 2040952740 | 1 year ago |
Rosie Le Faive | 8f77733c84 | 1 year ago |
Rosie Le Faive | 0665310346 | 1 year ago |
Rosie Le Faive | bf17ed9bbc | 1 year ago |
Rosie Le Faive | 354341988b | 1 year ago |
Jordan Dukart | 8502a347ff | 1 year ago |
Rosie Le Faive | f474f7b745 | 1 year ago |
Jordan Dukart | ece94a24f5 | 1 year ago |
Rosie Le Faive | 58ab9a3b70 | 1 year ago |
Rosie Le Faive | 0d7f5d927f | 1 year ago |
Rosie Le Faive | 05fc3f9b88 | 1 year ago |
Rosie Le Faive | 4eae636383 | 1 year ago |
Rosie Le Faive | dd514a3eb0 | 1 year ago |
Rosie Le Faive | c49c131ed8 | 1 year ago |
Rosie Le Faive | 760593b4e0 | 1 year ago |
Rosie Le Faive | 54116efbab | 1 year ago |
Rosie Le Faive | 41e4dc6fff | 1 year ago |
Rosie Le Faive | 8ee4fb5aff | 1 year ago |
Rosie Le Faive | 1f09439e1e | 1 year ago |
Jordan Dukart | d1ac274543 | 1 year ago |
Rosie Le Faive | b3f2c006b1 | 1 year ago |
Alexander O'Neill | c41f574268 | 1 year ago |
Seth Shaw | cc5b5f838d | 1 year ago |
Alexander O'Neill | da3311825c | 1 year ago |
Alexander O'Neill | 6fe405ee93 | 1 year ago |
Alexander O'Neill | 30296b4566 | 1 year ago |
Alexander O'Neill | 97f3b2daf1 | 1 year ago |
Alexander O'Neill | 4ca6a0c88a | 1 year ago |
Alexander O'Neill | e1fde43e21 | 1 year ago |
Alexander O'Neill | cf7b09f097 | 1 year ago |
Alexander O'Neill | 2307dc6936 | 1 year ago |
Alexander O'Neill | 8f5154c24e | 1 year ago |
Rosie Le Faive | aa4d10649b | 1 year ago |
Willow Gillingham | b0057d1895 | 1 year ago |
Rosie Le Faive | 879dc2091d | 1 year ago |
Willow Gillingham | 7a57d2dfc8 | 1 year ago |
Alexander O'Neill | c1c0f21cb5 | 1 year ago |
Alexander O'Neill | 2e1df20b0c | 1 year ago |
Alexander O'Neill | 1bdb7323e3 | 1 year ago |
Rosie Le Faive | 06f2a5754e | 1 year ago |
Willow Gillingham | 48b73c562d | 2 years ago |
kstapelfeldt | c80e687168 | 2 years ago |
Willow Gillingham | 66401baec9 | 2 years ago |
Alexander O'Neill | e4fbbb375a | 2 years ago |
Alexander O'Neill | e8712d85f7 | 2 years ago |
Jared Whiklo | 3ef2f1038e | 2 years ago |
Jared Whiklo | 8370383e83 | 2 years ago |
Jared Whiklo | a02738bd3f | 2 years ago |
Jared Whiklo | 492338c653 | 2 years ago |
Jared Whiklo | 97c3ddbdd1 | 2 years ago |
Jared Whiklo | a4b9f7fc4e | 2 years ago |
Jared Whiklo | 7e09750dee | 2 years ago |
Alexander O'Neill | 994545798b | 2 years ago |
Alexander O'Neill | 8286dfe423 | 2 years ago |
Alexander O'Neill | 8bc98e062f | 2 years ago |
Don Richards | e5b223a7a1 | 2 years ago |
Noah W. Smith | 718af168f4 | 2 years ago |
Noah W. Smith | 539952e89c | 2 years ago |
Jordan Dukart | e366da3257 | 2 years ago |
Lucas van Schaik | d041ec3bf5 | 2 years ago |
Lucas van Schaik | 233a65d871 | 2 years ago |
Lucas van Schaik | ee425d2c1f | 2 years ago |
Rosie Le Faive | bb06d8143c | 2 years ago |
Jordan Dukart | c721f9ba07 | 2 years ago |
Jordan Dukart | db85922765 | 2 years ago |
Lucas van Schaik | b89da473f1 | 2 years ago |
Lucas van Schaik | aba5052308 | 2 years ago |
Lucas van Schaik | a409d402aa | 2 years ago |
Lucas van Schaik | 4250109c63 | 2 years ago |
Lucas van Schaik | 87f475d81c | 2 years ago |
Lucas van Schaik | 74755f8074 | 2 years ago |
Seth Shaw | b57f8ff64d | 2 years ago |
Ant Brown | 2794f01164 | 2 years ago |
Simon Hieu Mai | 488a82b741 | 2 years ago |
Simon Hieu Mai | 71c720736f | 2 years ago |
JojoVes | c36f7d9978 | 2 years ago |
Simon Hieu Mai | da35fb8950 | 2 years ago |
Simon Hieu Mai | af224e42cf | 2 years ago |
Simon Hieu Mai | 0d2e584316 | 2 years ago |
Adam | fe7e450a51 | 2 years ago |
Alexander O'Neill | 4f4e661e38 | 2 years ago |
Adam | 6f2955b061 | 2 years ago |
Rosie Le Faive | cefee615c0 | 2 years ago |
Jordan Dukart | 4ec340744c | 2 years ago |
Rosie Le Faive | 12e28f1284 | 2 years ago |
Rosie Le Faive | b326d967a6 | 2 years ago |
Nigel Banks | dfa095951e | 2 years ago |
Nigel Banks | f780c69556 | 2 years ago |
Nigel Banks | db31d1438d | 2 years ago |
Nigel Banks | f63dce64ce | 2 years ago |
Rosie Le Faive | 7df45a083a | 2 years ago |
Rosie Le Faive | 665abfbd6c | 2 years ago |
Rosie Le Faive | 41f8710122 | 2 years ago |
Jordan Dukart | 5472f6d7e1 | 2 years ago |
dannylamb | f86f2bedb1 | 2 years ago |
Jordan Dukart | 33965b4ca6 | 2 years ago |
Rosie Le Faive | 0b7f12d3ba | 2 years ago |
Rosie Le Faive | b47d37b1b6 | 2 years ago |
Jordan Dukart | 023b24b5d3 | 2 years ago |
shriram1056 | ee85472dc8 | 2 years ago |
Rosie Le Faive | 6c582a8702 | 2 years ago |
Jason Hildebrand | f71f6dc2e8 | 2 years ago |
Jason Hildebrand | 5f4a6ab3ae | 2 years ago |
Rosie Le Faive | def4fda5b6 | 2 years ago |
Rosie Le Faive | 541620493b | 2 years ago |
shriram1056 | e15b6322ff | 2 years ago |
shriram1056 | 48b5333b2d | 2 years ago |
Rosie Le Faive | 74dcfd0fa4 | 2 years ago |
Rosie Le Faive | 72eaaf659a | 2 years ago |
Rosie Le Faive | 4bed36dede | 2 years ago |
Rosie Le Faive | b0c43accb8 | 2 years ago |
shriram | 5c24c19018 | 2 years ago |
shriram | 9b58fc9ecb | 2 years ago |
shriram | ef1f36f283 | 2 years ago |
shriram | 7ef1afffa2 | 2 years ago |
Rosie Le Faive | 386ba0ceb1 | 2 years ago |
Rosie Le Faive | 7eebb65c2b | 2 years ago |
Rosie Le Faive | e3c7e6edda | 2 years ago |
Adam | 3f7ca2ca10 | 2 years ago |
shriram | fd5c38a107 | 2 years ago |
shriram | 5bd2cdd851 | 2 years ago |
shriram | 3602bb441b | 2 years ago |
shriram | 33ce9e4e13 | 2 years ago |
Willow Gillingham | bdbef45baa | 2 years ago |
Alexander O'Neill | 2e4780163e | 2 years ago |
shriram | aa3c71893e | 2 years ago |
Jared Whiklo | 0948436395 | 2 years ago |
Mark Jordan | ca1d9f6f60 | 2 years ago |
Adam | a250c2ac78 | 2 years ago |
Islandora Foundation Community | 0e8c05cc7b | 2 years ago |
Alexander O'Neill | c07d1f6540 | 2 years ago |
Alexander O'Neill | a41ecaa754 | 2 years ago |
Alexander O'Neill | 78cee0a35a | 2 years ago |
Alexander O'Neill | bf25e2447a | 2 years ago |
Alexander O'Neill | 5e1d53d377 | 2 years ago |
Alexander O'Neill | 49c48a1493 | 2 years ago |
Alexander O'Neill | 4179f5cee7 | 2 years ago |
Alexander O'Neill | 0644795c54 | 2 years ago |
Alexander O'Neill | bd17a381ea | 2 years ago |
Alexander O'Neill | 0bea8da572 | 2 years ago |
Adam | 725b559280 | 2 years ago |
Rosie Le Faive | 3048594a8b | 2 years ago |
Alan Stanley | 62fbc6d288 | 2 years ago |
Seth Shaw | d405a2f14f | 2 years ago |
Rosie Le Faive | 7bca3d5675 | 2 years ago |
Seth Shaw | 3c194cc7b7 | 2 years ago |
dannylamb | a297796f47 | 2 years ago |
Rosie Le Faive | eb53ff474e | 2 years ago |
Rosie Le Faive | 07e3c49ecc | 2 years ago |
Rosie Le Faive | 87231dc5c0 | 2 years ago |
Rosie Le Faive | 705f623fdb | 2 years ago |
Rosie Le Faive | 1415bd509b | 2 years ago |
Rosie Le Faive | cebeeaec5c | 2 years ago |
Rosie Le Faive | 724d0845f4 | 2 years ago |
Rosie Le Faive | dd58302b98 | 2 years ago |
Jordan Dukart | 573d6878ed | 2 years ago |
Rosie Le Faive | 704405e3da | 2 years ago |
Rosie Le Faive | 2d8df5a226 | 2 years ago |
Rosie Le Faive | cdb83ece92 | 2 years ago |
Rosie Le Faive | f4e91b20a3 | 2 years ago |
Rosie Le Faive | 551a6673bf | 2 years ago |
Rosie Le Faive | 5644a68a06 | 2 years ago |
Rosie Le Faive | 98c9ba4c63 | 2 years ago |
Rosie Le Faive | 85cf0822f5 | 2 years ago |
Rosie Le Faive | 4d565164d7 | 2 years ago |
Rosie Le Faive | 887cd8791e | 2 years ago |
Rosie Le Faive | 19db152531 | 2 years ago |
Alan Stanley | 72c7dff3e8 | 2 years ago |
Seth Shaw | 39c7b3180a | 2 years ago |
Seth Shaw | 352631099e | 2 years ago |
Seth Shaw | f6a66fe082 | 2 years ago |
Seth Shaw | 472f487b35 | 2 years ago |
Seth Shaw | a90630d976 | 2 years ago |
Seth Shaw | cc958f4164 | 2 years ago |
Seth Shaw | 62211ff909 | 2 years ago |
Alexander O'Neill | 491631c4db | 2 years ago |
Jordan Dukart | 019572a778 | 2 years ago |
Adam | 3d122af5d6 | 2 years ago |
Adam Vessey | 61f9ec9106 | 2 years ago |
Adam Vessey | 63a77bd834 | 2 years ago |
Rosie Le Faive | 222c9601c1 | 2 years ago |
Jordan Dukart | ba74759f03 | 3 years ago |
Jordan Dukart | 93c19b6c6e | 3 years ago |
Seth Shaw | b38f195a50 | 3 years ago |
Alexander O'Neill | e5a1f99c57 | 3 years ago |
Rosie Le Faive | 032280827f | 3 years ago |
Jordan Dukart | 1a13b3e713 | 3 years ago |
Seth Shaw | e1428bb13a | 3 years ago |
Seth Shaw | 73d0d66402 | 3 years ago |
Seth Shaw | 9c283ea0c0 | 3 years ago |
Seth Shaw | ed0979f97c | 3 years ago |
Alexander O'Neill | f6fa77984b | 3 years ago |
Alexander O'Neill | 11bc7886ea | 3 years ago |
Alexander O'Neill | 52d3df1462 | 3 years ago |
Alexander O'Neill | 92d5a7fbbd | 3 years ago |
Jared Whiklo | d8d101e571 | 3 years ago |
Alexander O'Neill | 71b1cb5d64 | 3 years ago |
Alexander O'Neill | e9f9aad49c | 3 years ago |
Simon Hieu Mai | a04a72c483 | 3 years ago |
Jordan Dukart | e0152eaa8c | 3 years ago |
Jordan Dukart | a7e4c1659e | 3 years ago |
Ant Brown | bd98028f00 | 3 years ago |
Jordan Dukart | 4c439d4817 | 3 years ago |
Jordan Dukart | 6d752e479e | 3 years ago |
Alexander O'Neill | 4c08d5a274 | 3 years ago |
Alexander O'Neill | ac749ce3b5 | 3 years ago |
Alexander O'Neill | f7287be012 | 3 years ago |
Alexander O'Neill | 9c8193b75a | 3 years ago |
Islandora Foundation Community | 081183bc71 | 3 years ago |
Alexander O'Neill | 20f7ebb332 | 3 years ago |
Alexander O'Neill | 1a61b17875 | 3 years ago |
Alexander O'Neill | 2199336446 | 3 years ago |
Alexander O'Neill | 7709425358 | 3 years ago |
Jared Whiklo | c1aa0a5f2f | 3 years ago |
Seth Shaw | 90d6795172 | 3 years ago |
Alan Stanley | 4f45cb8c06 | 3 years ago |
ajstanley | b733713610 | 3 years ago |
Jordan Dukart | adbfea79a4 | 3 years ago |
Seth Shaw | 01f22b717f | 3 years ago |
Rosie Le Faive | e9448b0b00 | 3 years ago |
Rosie Le Faive | 4b9493210e | 3 years ago |
223 changed files with 4605 additions and 1335 deletions
@ -0,0 +1,26 @@ |
|||||||
|
name: Mirror and run GitLab CI |
||||||
|
|
||||||
|
on: |
||||||
|
push: |
||||||
|
branches: [2.x] |
||||||
|
tags: '*' |
||||||
|
|
||||||
|
jobs: |
||||||
|
build: |
||||||
|
runs-on: ubuntu-latest |
||||||
|
steps: |
||||||
|
- uses: actions/checkout@v3 |
||||||
|
with: |
||||||
|
fetch-depth: 0 |
||||||
|
- name: Mirror + trigger CI |
||||||
|
uses: SvanBoxel/gitlab-mirror-and-ci-action@master |
||||||
|
with: |
||||||
|
args: "https://git.drupalcode.org/project/islandora" |
||||||
|
env: |
||||||
|
FOLLOW_TAGS: "true" |
||||||
|
FORCE_PUSH: "false" |
||||||
|
GITLAB_HOSTNAME: "git.drupal.org" |
||||||
|
GITLAB_USERNAME: "project_34868_bot" |
||||||
|
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} |
||||||
|
GITLAB_PROJECT_ID: "34868" |
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@ -1,4 +1,4 @@ |
|||||||
broker_url: 'tcp://localhost:61613' |
broker_url: 'tcp://localhost:61613' |
||||||
jwt_expiry: '+2 hour' |
jwt_expiry: '+2 hour' |
||||||
gemini_url: '' |
delete_media_and_files: TRUE |
||||||
gemini_pseudo_bundles: [] |
gemini_pseudo_bundles: [] |
||||||
|
@ -0,0 +1,3 @@ |
|||||||
|
.container .islandora-media-items { |
||||||
|
margin: 0; |
||||||
|
} |
@ -0,0 +1,5 @@ |
|||||||
|
islandora: |
||||||
|
version: VERSION |
||||||
|
css: |
||||||
|
theme: |
||||||
|
css/islandora.css: {} |
@ -0,0 +1,16 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
/** |
||||||
|
* @file |
||||||
|
* Post updates. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* Set default value for delete_media_and_files field in settings. |
||||||
|
*/ |
||||||
|
function islandora_post_update_delete_media_and_files() { |
||||||
|
$config_factory = \Drupal::configFactory(); |
||||||
|
$config = $config_factory->getEditable('islandora.settings'); |
||||||
|
$config->set('delete_media_and_files', TRUE); |
||||||
|
$config->save(TRUE); |
||||||
|
} |
@ -1,147 +0,0 @@ |
|||||||
//# sourceURL=modules/contrib/islandora/modules/islandora_advanced_search/js/facets/facets-view.ajax.js
|
|
||||||
/** |
|
||||||
* @file |
|
||||||
* Overrides the facets-view-ajax.js behavior from the 'facets' module. |
|
||||||
*/ |
|
||||||
(function ($, Drupal) { |
|
||||||
"use strict"; |
|
||||||
|
|
||||||
// Generate events on push state.
|
|
||||||
(function (history) { |
|
||||||
var pushState = history.pushState; |
|
||||||
history.pushState = function (state, title, url) { |
|
||||||
var ret = pushState.apply(this, arguments); |
|
||||||
var event = new Event("pushstate"); |
|
||||||
window.dispatchEvent(event); |
|
||||||
return ret; |
|
||||||
}; |
|
||||||
})(window.history); |
|
||||||
|
|
||||||
function reload(url) { |
|
||||||
// Update View.
|
|
||||||
if (drupalSettings && drupalSettings.views && drupalSettings.views.ajaxViews) { |
|
||||||
var view_path = drupalSettings.views.ajax_path; |
|
||||||
$.each(drupalSettings.views.ajaxViews, function (views_dom_id) { |
|
||||||
var views_parameters = Drupal.Views.parseQueryString(url); |
|
||||||
var views_arguments = Drupal.Views.parseViewArgs(url, "search"); |
|
||||||
var views_settings = $.extend( |
|
||||||
{}, |
|
||||||
Drupal.views.instances[views_dom_id].settings, |
|
||||||
views_arguments, |
|
||||||
views_parameters |
|
||||||
); |
|
||||||
var views_ajax_settings = |
|
||||||
Drupal.views.instances[views_dom_id].element_settings; |
|
||||||
views_ajax_settings.submit = views_settings; |
|
||||||
views_ajax_settings.url = |
|
||||||
view_path + "?" + $.param(Drupal.Views.parseQueryString(url)); |
|
||||||
Drupal.ajax(views_ajax_settings).execute(); |
|
||||||
}); |
|
||||||
} |
|
||||||
|
|
||||||
// Replace filter, pager, summary, and facet blocks.
|
|
||||||
var blocks = {}; |
|
||||||
$( |
|
||||||
".block[class*='block-plugin-id--islandora-advanced-search-result-pager'], .block[class*='block-plugin-id--views-exposed-filter-block'], .block[class*='block-plugin-id--facet']" |
|
||||||
).each(function () { |
|
||||||
var id = $(this).attr("id"); |
|
||||||
var block_id = id |
|
||||||
.slice("block-".length, id.length) |
|
||||||
.replace(/--.*$/g, "") |
|
||||||
.replace(/-/g, "_"); |
|
||||||
blocks[block_id] = "#" + id; |
|
||||||
}); |
|
||||||
Drupal.ajax({ |
|
||||||
url: Drupal.url("islandora-advanced-search-ajax-blocks"), |
|
||||||
submit: { |
|
||||||
link: url, |
|
||||||
blocks: blocks, |
|
||||||
}, |
|
||||||
}).execute(); |
|
||||||
} |
|
||||||
|
|
||||||
// On location change reload all the blocks / ajax view.
|
|
||||||
window.addEventListener("pushstate", function (e) { |
|
||||||
reload(window.location.href); |
|
||||||
}); |
|
||||||
|
|
||||||
window.addEventListener("popstate", function (e) { |
|
||||||
if (e.state != null) { |
|
||||||
reload(window.location.href); |
|
||||||
} |
|
||||||
}); |
|
||||||
|
|
||||||
/** |
|
||||||
* Push state on form/pager/facet change. |
|
||||||
*/ |
|
||||||
Drupal.behaviors.islandoraAdvancedSearchViewsAjax = { |
|
||||||
attach: function (context, settings) { |
|
||||||
window.historyInitiated = true; |
|
||||||
|
|
||||||
// Remove existing behavior from form.
|
|
||||||
if (settings && settings.views && settings.views.ajaxViews) { |
|
||||||
$.each(settings.views.ajaxViews, function (index, settings) { |
|
||||||
var exposed_form = $( |
|
||||||
"form#views-exposed-form-" + |
|
||||||
settings.view_name.replace(/_/g, "-") + |
|
||||||
"-" + |
|
||||||
settings.view_display_id.replace(/_/g, "-") |
|
||||||
); |
|
||||||
exposed_form |
|
||||||
.once() |
|
||||||
.find("input[type=submit], input[type=image]") |
|
||||||
.not("[data-drupal-selector=edit-reset]") |
|
||||||
.each(function (index) { |
|
||||||
$(this).unbind("click"); |
|
||||||
$(this).click(function (e) { |
|
||||||
// Let ctrl/cmd click open in a new window.
|
|
||||||
if (e.shiftKey || e.ctrlKey || e.metaKey) { |
|
||||||
return; |
|
||||||
} |
|
||||||
e.preventDefault(); |
|
||||||
e.stopPropagation(); |
|
||||||
var href = window.location.href; |
|
||||||
var params = Drupal.Views.parseQueryString(href); |
|
||||||
// Remove the page if set as submitting the form should always take
|
|
||||||
// the user to the first page (facets do the same).
|
|
||||||
delete params.page; |
|
||||||
// Include values from the form in the URL.
|
|
||||||
$.each(exposed_form.serializeArray(), function () { |
|
||||||
params[this.name] = this.value; |
|
||||||
}); |
|
||||||
href = href.split("?")[0] + "?" + $.param(params); |
|
||||||
window.history.pushState(null, document.title, href); |
|
||||||
}); |
|
||||||
}); |
|
||||||
}); |
|
||||||
} |
|
||||||
|
|
||||||
// Attach behavior to pager, summary, facet links.
|
|
||||||
$("[data-drupal-pager-id], [data-drupal-facets-summary-id], [data-drupal-facet-id]") |
|
||||||
.once() |
|
||||||
.find("a:not(.facets-soft-limit-link)") |
|
||||||
.click(function (e) { |
|
||||||
// Let ctrl/cmd click open in a new window.
|
|
||||||
if (e.shiftKey || e.ctrlKey || e.metaKey) { |
|
||||||
return; |
|
||||||
} |
|
||||||
e.preventDefault(); |
|
||||||
window.history.pushState(null, document.title, $(this).attr("href")); |
|
||||||
}); |
|
||||||
|
|
||||||
// Trigger on sort change.
|
|
||||||
$('[data-drupal-pager-id] select[name="order"]') |
|
||||||
.once() |
|
||||||
.change(function () { |
|
||||||
var href = window.location.href; |
|
||||||
var params = Drupal.Views.parseQueryString(href); |
|
||||||
var selection = $(this).val(); |
|
||||||
var option = $('option[value="' + selection + '"]'); |
|
||||||
params.sort_order = option.data("sort_order"); |
|
||||||
params.sort_by = option.data("sort_by"); |
|
||||||
href = href.split("?")[0] + "?" + $.param(params); |
|
||||||
window.history.pushState(null, document.title, href); |
|
||||||
}); |
|
||||||
}, |
|
||||||
}; |
|
||||||
})(jQuery, Drupal); |
|
@ -1,70 +0,0 @@ |
|||||||
//# sourceURL=modules/contrib/islandora/modules/islandora_advanced_search/js/facets/soft-limit.js
|
|
||||||
/** |
|
||||||
* @file |
|
||||||
* Overrides the soft-limit.js behavior from the 'facets' module. |
|
||||||
* As when having many facets the original version causes the page to slow down and snap to hidden when rendering. |
|
||||||
*/ |
|
||||||
(function ($) { |
|
||||||
|
|
||||||
'use strict'; |
|
||||||
|
|
||||||
Drupal.behaviors.facetSoftLimit = { |
|
||||||
attach: function (context, settings) { |
|
||||||
if (settings.facets.softLimit !== 'undefined') { |
|
||||||
$.each(settings.facets.softLimit, function (facet, limit) { |
|
||||||
Drupal.facets.applySoftLimit(facet, limit, settings); |
|
||||||
}); |
|
||||||
} |
|
||||||
} |
|
||||||
}; |
|
||||||
|
|
||||||
Drupal.facets = Drupal.facets || {}; |
|
||||||
|
|
||||||
/** |
|
||||||
* Applies the soft limit UI feature to a specific facets list. |
|
||||||
* |
|
||||||
* @param {string} facet |
|
||||||
* The facet id. |
|
||||||
* @param {string} limit |
|
||||||
* The maximum amount of items to show. |
|
||||||
* @param {object} settings |
|
||||||
* Settings. |
|
||||||
*/ |
|
||||||
Drupal.facets.applySoftLimit = function (facet, limit, settings) { |
|
||||||
var zero_based_limit = (limit - 1); |
|
||||||
var facet_id = facet; |
|
||||||
var facetsList = $('ul[data-drupal-facet-id="' + facet_id + '"]'); |
|
||||||
|
|
||||||
// In case of multiple instances of a facet, we need to key them.
|
|
||||||
if (facetsList.length > 1) { |
|
||||||
facetsList.each(function (key, $value) { |
|
||||||
$(this).attr('data-drupal-facet-id', facet_id + '-' + key); |
|
||||||
}); |
|
||||||
} |
|
||||||
|
|
||||||
// Add "Show more" / "Show less" links.
|
|
||||||
facetsList.filter(function () { |
|
||||||
return $(this).next('ul').length == 1; // Has expanding list.
|
|
||||||
}).each(function () { |
|
||||||
var facet = $(this); |
|
||||||
var expand = facet.next('ul'); |
|
||||||
var link = expand.next('a'); |
|
||||||
var showLessLabel = settings.facets.softLimitSettings[facet_id].showLessLabel; |
|
||||||
var showMoreLabel = settings.facets.softLimitSettings[facet_id].showMoreLabel; |
|
||||||
link.text(showMoreLabel) |
|
||||||
.once() |
|
||||||
.on('click', function () { |
|
||||||
if (!expand.is(":visible")) { |
|
||||||
expand.slideDown(); |
|
||||||
$(this).addClass('open').text(showLessLabel); |
|
||||||
} |
|
||||||
else { |
|
||||||
expand.slideUp(); |
|
||||||
$(this).removeClass('open').text(showMoreLabel); |
|
||||||
} |
|
||||||
return false; |
|
||||||
}) |
|
||||||
}); |
|
||||||
}; |
|
||||||
|
|
||||||
})(jQuery); |
|
@ -1,9 +1,4 @@ |
|||||||
maxDepth: -1 |
maxDepth: -1 |
||||||
includeSelf: FALSE |
includeSelf: FALSE |
||||||
referenceField: field_member_of |
referenceFields: |
||||||
dependencies: |
- field_member_of |
||||||
module: |
|
||||||
- islandora |
|
||||||
enforced: |
|
||||||
module: |
|
||||||
- islandora_breadcrumbs |
|
||||||
|
@ -1,8 +1,7 @@ |
|||||||
name: 'Islandora Breadcrumbs' |
name: 'Islandora Breadcrumbs' |
||||||
type: module |
type: module |
||||||
description: 'Builds breadcrumbs based on field_member_of relationships.' |
description: 'Builds breadcrumbs based on field_member_of relationships.' |
||||||
core: 8.x |
core_version_requirement: ^9 || ^10 |
||||||
core_version_requirement: ^8 || ^9 |
|
||||||
package: Islandora |
package: Islandora |
||||||
dependencies: |
dependencies: |
||||||
- drupal:islandora |
- islandora:islandora |
||||||
|
@ -0,0 +1,18 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
/** |
||||||
|
* @file |
||||||
|
* Install/update hook implementations. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* Update referenceField config to referenceFields. |
||||||
|
*/ |
||||||
|
function islandora_breadcrumbs_update_8001() { |
||||||
|
$config_factory = \Drupal::configFactory(); |
||||||
|
$config = $config_factory->getEditable('islandora_breadcrumbs.breadcrumbs'); |
||||||
|
$config->set('referenceFields', [$config->get('referenceField')]); |
||||||
|
$config->clear('referenceField'); |
||||||
|
$config->save(); |
||||||
|
return "Updated referenceFields config."; |
||||||
|
} |
@ -0,0 +1,5 @@ |
|||||||
|
system.islandora_breadcrumbs_settings: |
||||||
|
title: 'Breadcrumbs Settings' |
||||||
|
parent: system.admin_config_islandora |
||||||
|
route_name: system.islandora_breadcrumbs_settings |
||||||
|
description: 'Configure Islandora breadcrumb settings' |
@ -0,0 +1,7 @@ |
|||||||
|
system.islandora_breadcrumbs_settings: |
||||||
|
path: '/admin/config/islandora/breadcrumbs' |
||||||
|
defaults: |
||||||
|
_form: 'Drupal\islandora_breadcrumbs\Form\IslandoraBreadcrumbsSettingsForm' |
||||||
|
_title: 'Islandora Breadcrumbs Settings' |
||||||
|
requirements: |
||||||
|
_permission: 'administer site configuration' |
@ -1,6 +1,6 @@ |
|||||||
services: |
services: |
||||||
islandora_breadcrumbs.breadcrumb: |
islandora_breadcrumbs.breadcrumb: |
||||||
class: Drupal\islandora_breadcrumbs\IslandoraBreadcrumbBuilder |
class: Drupal\islandora_breadcrumbs\IslandoraBreadcrumbBuilder |
||||||
arguments: ['@entity_type.manager', '@config.factory'] |
arguments: ['@entity_type.manager', '@config.factory', '@islandora.utils'] |
||||||
tags: |
tags: |
||||||
- { name: breadcrumb_builder, priority: 100 } |
- { name: breadcrumb_builder, priority: 100 } |
||||||
|
@ -0,0 +1,132 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace Drupal\islandora_breadcrumbs\Form; |
||||||
|
|
||||||
|
use Drupal\Core\Form\ConfigFormBase; |
||||||
|
use Drupal\Core\Form\FormStateInterface; |
||||||
|
|
||||||
|
/** |
||||||
|
* Configure islandora_breadcrumbs settings. |
||||||
|
*/ |
||||||
|
class IslandoraBreadcrumbsSettingsForm extends ConfigFormBase { |
||||||
|
|
||||||
|
/** |
||||||
|
* Config settings. |
||||||
|
* |
||||||
|
* @var string |
||||||
|
*/ |
||||||
|
const SETTINGS = 'islandora_breadcrumbs.breadcrumbs'; |
||||||
|
|
||||||
|
/** |
||||||
|
* {@inheritdoc} |
||||||
|
*/ |
||||||
|
public function getFormId() { |
||||||
|
return 'islandora_breadcrumbs_settings'; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* {@inheritdoc} |
||||||
|
*/ |
||||||
|
protected function getEditableConfigNames() { |
||||||
|
return [ |
||||||
|
static::SETTINGS, |
||||||
|
]; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* {@inheritdoc} |
||||||
|
*/ |
||||||
|
public function buildForm(array $form, FormStateInterface $form_state) { |
||||||
|
|
||||||
|
$config = $this->config(static::SETTINGS); |
||||||
|
|
||||||
|
$form['maxDepth'] = [ |
||||||
|
'#type' => 'number', |
||||||
|
'#default_value' => $config->get('maxDepth'), |
||||||
|
'#min' => -1, |
||||||
|
'#step' => 1, |
||||||
|
'#title' => $this->t('Maximum number of ancestor breadcrumbs'), |
||||||
|
'#description' => $this->t("Stops adding ancestor references when the chain reaches this number. The count does not include the current node when enabled. The default value, '-1' disables this feature."), |
||||||
|
]; |
||||||
|
|
||||||
|
$form['includeSelf'] = [ |
||||||
|
'#type' => 'checkbox', |
||||||
|
'#title' => $this->t('Include the current node in the breadcrumbs?'), |
||||||
|
'#default_value' => $config->get('includeSelf'), |
||||||
|
]; |
||||||
|
|
||||||
|
// Using the textarea instead of a select so the site maintainer can |
||||||
|
// provide an ordered list of items rather than simply selecting from a |
||||||
|
// list which enforces it's own order. |
||||||
|
$form['referenceFields'] = [ |
||||||
|
'#type' => 'textarea', |
||||||
|
'#title' => $this->t('Entity Reference fields to follow'), |
||||||
|
'#default_value' => implode("\n", $config->get('referenceFields')), |
||||||
|
'#description' => $this->t("Entity Reference field machine names to follow when building the breadcrumbs.<br>One per line.<br>Valid options: @options", |
||||||
|
[ |
||||||
|
"@options" => implode(", ", static::getNodeEntityReferenceFields()), |
||||||
|
] |
||||||
|
), |
||||||
|
'#element_validate' => [[get_class($this), 'validateReferenceFields']], |
||||||
|
|
||||||
|
]; |
||||||
|
|
||||||
|
return parent::buildForm($form, $form_state); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns a list of node entity reference field machine names. |
||||||
|
* |
||||||
|
* We use this for building the form field description and for |
||||||
|
* validating the reference fields value. |
||||||
|
*/ |
||||||
|
protected static function getNodeEntityReferenceFields() { |
||||||
|
return array_keys(\Drupal::service('entity_field.manager')->getFieldMapByFieldType('entity_reference')['node']); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Turns a text area into an array of values. |
||||||
|
* |
||||||
|
* Used for validating the field reference text area |
||||||
|
* and saving the form state. |
||||||
|
*/ |
||||||
|
protected static function textToArray($string) { |
||||||
|
return array_filter(array_map('trim', explode("\n", $string)), 'strlen'); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Callback for settings form. |
||||||
|
* |
||||||
|
* @param array $element |
||||||
|
* An associative array containing the properties and children of the |
||||||
|
* generic form element. |
||||||
|
* @param \Drupal\Core\Form\FormStateInterface $form_state |
||||||
|
* The current state of the form for the form this element belongs to. |
||||||
|
* |
||||||
|
* @see \Drupal\Core\Render\Element\FormElement::processPattern() |
||||||
|
*/ |
||||||
|
public static function validateReferenceFields(array $element, FormStateInterface $form_state) { |
||||||
|
|
||||||
|
$valid_fields = static::getNodeEntityReferenceFields(); |
||||||
|
|
||||||
|
foreach (static::textToArray($element['#value']) as $value) { |
||||||
|
if (!in_array($value, $valid_fields)) { |
||||||
|
$form_state->setError($element, t('"@field" is not a valid entity reference field!', ["@field" => $value])); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* {@inheritdoc} |
||||||
|
*/ |
||||||
|
public function submitForm(array &$form, FormStateInterface $form_state) { |
||||||
|
$this->configFactory->getEditable(static::SETTINGS) |
||||||
|
->set('referenceFields', static::textToArray($form_state->getValue('referenceFields'))) |
||||||
|
->set('maxDepth', $form_state->getValue('maxDepth')) |
||||||
|
->set('includeSelf', $form_state->getValue('includeSelf')) |
||||||
|
->save(); |
||||||
|
|
||||||
|
parent::submitForm($form, $form_state); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -1,100 +0,0 @@ |
|||||||
langcode: en |
|
||||||
status: true |
|
||||||
dependencies: |
|
||||||
enforced: |
|
||||||
module: |
|
||||||
- islandora_core_feature |
|
||||||
name: Islandora |
|
||||||
machine_name: islandora |
|
||||||
description: 'Features for islandora' |
|
||||||
assignments: |
|
||||||
alter: |
|
||||||
core: true |
|
||||||
uuid: true |
|
||||||
user_permissions: true |
|
||||||
enabled: true |
|
||||||
weight: 0 |
|
||||||
base: |
|
||||||
types: |
|
||||||
config: |
|
||||||
comment_type: comment_type |
|
||||||
node_type: node_type |
|
||||||
content: |
|
||||||
user: user |
|
||||||
enabled: true |
|
||||||
weight: -2 |
|
||||||
core: |
|
||||||
types: |
|
||||||
config: |
|
||||||
date_format: date_format |
|
||||||
field_storage_config: field_storage_config |
|
||||||
entity_form_mode: entity_form_mode |
|
||||||
image_style: image_style |
|
||||||
menu: menu |
|
||||||
responsive_image_style: responsive_image_style |
|
||||||
user_role: user_role |
|
||||||
entity_view_mode: entity_view_mode |
|
||||||
enabled: true |
|
||||||
weight: 5 |
|
||||||
dependency: |
|
||||||
enabled: true |
|
||||||
weight: 15 |
|
||||||
exclude: |
|
||||||
types: |
|
||||||
config: |
|
||||||
features_bundle: features_bundle |
|
||||||
curated: true |
|
||||||
module: |
|
||||||
installed: true |
|
||||||
profile: true |
|
||||||
namespace: true |
|
||||||
namespace_any: false |
|
||||||
enabled: true |
|
||||||
weight: -5 |
|
||||||
existing: |
|
||||||
enabled: true |
|
||||||
weight: 12 |
|
||||||
forward_dependency: |
|
||||||
enabled: true |
|
||||||
weight: 4 |
|
||||||
namespace: |
|
||||||
enabled: true |
|
||||||
weight: 0 |
|
||||||
optional: |
|
||||||
types: |
|
||||||
config: { } |
|
||||||
enabled: true |
|
||||||
weight: 0 |
|
||||||
packages: |
|
||||||
enabled: true |
|
||||||
weight: -20 |
|
||||||
profile: |
|
||||||
curated: true |
|
||||||
standard: |
|
||||||
files: true |
|
||||||
dependencies: true |
|
||||||
types: |
|
||||||
config: |
|
||||||
block: block |
|
||||||
language_content_settings: language_content_settings |
|
||||||
configurable_language: configurable_language |
|
||||||
migration: migration |
|
||||||
shortcut_set: shortcut_set |
|
||||||
tour: tour |
|
||||||
enabled: true |
|
||||||
weight: 10 |
|
||||||
site: |
|
||||||
types: |
|
||||||
config: |
|
||||||
action: action |
|
||||||
contact_form: contact_form |
|
||||||
block_content_type: block_content_type |
|
||||||
rdf_mapping: rdf_mapping |
|
||||||
search_page: search_page |
|
||||||
taxonomy_vocabulary: taxonomy_vocabulary |
|
||||||
editor: editor |
|
||||||
filter_format: filter_format |
|
||||||
enabled: true |
|
||||||
weight: 7 |
|
||||||
profile_name: '' |
|
||||||
is_profile: false |
|
@ -1,5 +0,0 @@ |
|||||||
algos: |
|
||||||
sha1: sha1 |
|
||||||
md5: '0' |
|
||||||
sha256: '0' |
|
||||||
dedupe: false |
|
@ -0,0 +1,24 @@ |
|||||||
|
algos: |
||||||
|
blake2b_128: '0' |
||||||
|
blake2b_160: '0' |
||||||
|
blake2b_224: '0' |
||||||
|
blake2b_256: '0' |
||||||
|
blake2b_384: '0' |
||||||
|
blake2b_512: '0' |
||||||
|
md5: '0' |
||||||
|
sha1: sha1 |
||||||
|
sha224: '0' |
||||||
|
sha256: '0' |
||||||
|
sha384: '0' |
||||||
|
sha512_224: '0' |
||||||
|
sha512_256: '0' |
||||||
|
sha512: '0' |
||||||
|
sha3_224: '0' |
||||||
|
sha3_256: '0' |
||||||
|
sha3_384: '0' |
||||||
|
sha3_512: '0' |
||||||
|
dedupe: 0 |
||||||
|
rehash: true |
||||||
|
original: true |
||||||
|
dedupe_original: false |
||||||
|
mime_types: { } |
@ -1,16 +0,0 @@ |
|||||||
bundle: islandora |
|
||||||
excluded: |
|
||||||
- language.content_settings.taxonomy_term.islandora_media_use |
|
||||||
- language.content_settings.taxonomy_term.islandora_models |
|
||||||
required: |
|
||||||
- features.bundle.islandora |
|
||||||
- field.storage.media.field_file_size |
|
||||||
- field.storage.media.field_height |
|
||||||
- field.storage.media.field_media_of |
|
||||||
- field.storage.media.field_media_use |
|
||||||
- field.storage.media.field_mime_type |
|
||||||
- field.storage.media.field_width |
|
||||||
- field.storage.node.field_member_of |
|
||||||
- field.storage.node.field_model |
|
||||||
- field.storage.node.field_weight |
|
||||||
- field.storage.taxonomy_term.field_external_uri |
|
@ -0,0 +1,20 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
/** |
||||||
|
* @file |
||||||
|
* Post-update hooks. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* Add index to field_weight. |
||||||
|
*/ |
||||||
|
function islandora_core_feature_post_update_add_index_to_field_weight() { |
||||||
|
$storage = \Drupal::entityTypeManager()->getStorage('field_storage_config'); |
||||||
|
$field = $storage->load('node.field_weight'); |
||||||
|
$indexes = $field->getIndexes(); |
||||||
|
$indexes += [ |
||||||
|
'value' => ['value'], |
||||||
|
]; |
||||||
|
$field->setIndexes($indexes); |
||||||
|
$field->save(); |
||||||
|
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue