Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Renamed identifier to id (#2381)
duwarakan85c5b44d26e8
diff --git a/frontend/src/assets/homepage_images/image_info.json b/frontend/src/assets/homepage_images/image_info.jsonindex 4679e43ef..ae87cccbd 100644--- a/frontend/src/assets/homepage_images/image_info.json+++ b/frontend/src/assets/homepage_images/image_info.json@@ -7,77 +7,77 @@{"index": 1,"title": "Mandela base",- "identifier": "cfa45160-a7be-4911-9b9f-4e66678ec7f7"+ "id": "cfa45160-a7be-4911-9b9f-4e66678ec7f7"},{"index": 2,"title": "Saturn's Rings in Ultraviolet Light",- "identifier": "47e4e857-07ef-4a97-b6ca-94126a3c4246"+ "id": "47e4e857-07ef-4a97-b6ca-94126a3c4246"},{"index": 3,"title": "Hubbell Revival-style Rug with Moki (Moqui) Stripes",- "identifier": "19d3e29b-c7a1-427a-925c-7ecb041fefcf"+ "id": "19d3e29b-c7a1-427a-925c-7ecb041fefcf"},{"index": 4,"title": "File:Astronomy; a meteor shower in the night sky. Mezzotint. Wellcome V0024753 ",- "identifier": "ae1a41d7-1994-49db-8e61-6f12c46c6227"+ "id": "ae1a41d7-1994-49db-8e61-6f12c46c6227"},{"index": 5,"title": "Old Japanese Star Map (large)",- "identifier": "8af4c811-867d-47f7-b165-ebef48d1570c"+ "id": "8af4c811-867d-47f7-b165-ebef48d1570c"},{"index": 6,"title": "Diagrams of the Universe: The Two-and-a-Half Continents, the Universe in the Shape of a Person, and the Seven Levels of Hell",- "identifier": "4ef9042a-2f04-4129-91cd-0fc659bfe91a"+ "id": "4ef9042a-2f04-4129-91cd-0fc659bfe91a"},{"index": 7,"title": "Carina Nebula Detail",- "identifier": "190ecf9b-acfa-4aef-8805-3445e7b91db1"+ "id": "190ecf9b-acfa-4aef-8805-3445e7b91db1"},{"index": 8,"title": "Sidney Hall’s (?-1831) astronomical chart illustration of the Taurus. Original from Library of Congress. Digitally enhanced by rawpixel.",- "identifier": "0f6e95c6-2cf9-4b44-bfe2-62895894edfe"+ "id": "0f6e95c6-2cf9-4b44-bfe2-62895894edfe"},{"index": 9,"title": "Total eclipse of the sun from the Trouvelot astronomical drawings (1881-1882) by E. L. Trouvelot (1827-1895)",- "identifier": "52544e9b-a420-4090-9c7d-89ddc742a8c3"+ "id": "52544e9b-a420-4090-9c7d-89ddc742a8c3"},{"index": 10,"title": "Astronomical map, aesthetic woodcut",- "identifier": "f64b3f5f-5bf4-4c9c-9106-edab2945b1d7"+ "id": "f64b3f5f-5bf4-4c9c-9106-edab2945b1d7"},{"index": 11,"title": "Planisphaerium Ptolemaicum siue machina orbium mundi ex hypothesi Ptolemaica in plano disposita",- "identifier": "bee966d9-8095-4349-abb9-576dedc1be1a"+ "id": "bee966d9-8095-4349-abb9-576dedc1be1a"},{"index": 12,"title": "Neutron Stars Rip Each Other Apart to Form Black Hole",- "identifier": "8da073a3-21bd-4722-87f1-2cf5104bb33f"+ "id": "8da073a3-21bd-4722-87f1-2cf5104bb33f"},{"index": 13,"title": "Starburst Cluster Shows Celestial Fireworks",- "identifier": "09e5cb23-db65-48a0-bb3a-2a6f7e028d84"+ "id": "09e5cb23-db65-48a0-bb3a-2a6f7e028d84"},{"index": 14,"title": "Sun Stone (or Calendar Stone), Aztec",- "identifier": "348a2bc3-fddf-4e2c-a343-60f6ea671d76"+ "id": "348a2bc3-fddf-4e2c-a343-60f6ea671d76"},{"index": 15,"title": "Astronomy: a star map of the night sky in the northern hemisphere, with the names of the constellations. Coloured engraving.",- "identifier": "dea12340-bda7-4772-b339-9c68a0a2a63e"+ "id": "dea12340-bda7-4772-b339-9c68a0a2a63e"}]},@@ -88,77 +88,77 @@{"index": 1,"title": "Impasto four-handled ovoid olla with lid, from S. Marzano sul Sarno",- "identifier": "802d76cd-84cf-45bc-81ac-610331dab420"+ "id": "802d76cd-84cf-45bc-81ac-610331dab420"},{"index": 2,"title": "Stem Cup with Buddhist Emblems: Shufu Ware",- "identifier": "5fd1f0be-fb14-4987-84bc-1108502d91f6"+ "id": "5fd1f0be-fb14-4987-84bc-1108502d91f6"},{"index": 3,"title": "Female Figurine Rattle",- "identifier": "80f0cae9-0574-48be-9458-c514dcb105be"+ "id": "80f0cae9-0574-48be-9458-c514dcb105be"},{"index": 4,"title": "Sake Flask",- "identifier": "e0a9c194-029c-4755-9fdc-d978bf0b447b"+ "id": "e0a9c194-029c-4755-9fdc-d978bf0b447b"},{"index": 5,"title": "Female Holding A Bowl Figurine",- "identifier": "03226074-7d2e-4a23-921a-3f76bf349ea2"+ "id": "03226074-7d2e-4a23-921a-3f76bf349ea2"},{"index": 6,"title": "Double-gourd Shaped Bottle",- "identifier": "34a205fb-e39d-424d-a4ad-7245d10160cd"+ "id": "34a205fb-e39d-424d-a4ad-7245d10160cd"},{"index": 7,"title": "The Pottery Seller",- "identifier": "2cdbbd36-f57a-483e-b36c-166b81a7135e"+ "id": "2cdbbd36-f57a-483e-b36c-166b81a7135e"},{"index": 8,"title": "Large cup or bowl with slightly",- "identifier": "097fb34d-0755-4027-9b4e-2af928f0dd15"+ "id": "097fb34d-0755-4027-9b4e-2af928f0dd15"},{"index": 9,"title": "Pottery Whistle",- "identifier": "9e7c9170-290c-480a-a734-2d1b1ad6bf64"+ "id": "9e7c9170-290c-480a-a734-2d1b1ad6bf64"},{"index": 10,"title": "Cincinnati Pottery Club Incised Pitcher",- "identifier": "00077111-7386-475f-a60e-e4578ff51934"+ "id": "00077111-7386-475f-a60e-e4578ff51934"},{"index": 11,"title": "Architectural Sculpture Fragment",- "identifier": "0a67002e-92ad-4d6a-9384-c9fd2eb41477"+ "id": "0a67002e-92ad-4d6a-9384-c9fd2eb41477"},{"index": 12,"title": "Octagonal bowl with The three friends of winter, floral scrolls and hôô, anonymous, c. 1670 - c. 1690",- "identifier": "9759c997-a17d-4784-bcc6-55f3852a25b3"+ "id": "9759c997-a17d-4784-bcc6-55f3852a25b3"},{"index": 13,"title": "Monkey-Shaped Aryballos (Oil Vessel)",- "identifier": "095f6516-9ba7-4b45-9e9e-f0c50bb645b1"+ "id": "095f6516-9ba7-4b45-9e9e-f0c50bb645b1"},{"index": 14,"title": "Pot gedecoreerd met 'lange lijs', anonymous, 1662 - 1722",- "identifier": "b73fc872-1a20-4810-b473-d32680c58abd"+ "id": "b73fc872-1a20-4810-b473-d32680c58abd"},{"index": 15,"title": "Pottery Whistle",- "identifier": "ff4bbcb2-4d5d-4be0-8e16-81cacafe6003"+ "id": "ff4bbcb2-4d5d-4be0-8e16-81cacafe6003"}]},@@ -169,77 +169,77 @@{"index": 1,"title": "Bob Beamon",- "identifier": "1663eec8-7b2c-4a84-8d25-0543482c23ef"+ "id": "1663eec8-7b2c-4a84-8d25-0543482c23ef"},{"index": 2,"title": "Olympic Games Los Angeles 1932 via Chicago & North Western Railway Union Pacific",- "identifier": "399707eb-c713-4d76-827b-4fdd4f3c1ebf"+ "id": "399707eb-c713-4d76-827b-4fdd4f3c1ebf"},{"index": 3,"title": "Olympic Games Seoul ´88",- "identifier": "53841492-9703-4892-96b4-10297dd84ed0"+ "id": "53841492-9703-4892-96b4-10297dd84ed0"},{"index": 4,"title": "Youth Olympic Games",- "identifier": "3dac0466-97d5-476f-8a02-7bdbe52714ee"+ "id": "3dac0466-97d5-476f-8a02-7bdbe52714ee"},{"index": 5,"title": "Seoul Olympics `88 ",- "identifier": "dbc5280c-a61b-43c2-9f3d-c29302897434"+ "id": "dbc5280c-a61b-43c2-9f3d-c29302897434"},{"index": 6,"title": "Day 5 Athletics (19 Aug 2010)",- "identifier": "2ad43cfd-3d5b-44bd-9b90-d13543e6756e"+ "id": "2ad43cfd-3d5b-44bd-9b90-d13543e6756e"},{"index": 7,"title": "Day 8 Gymnastics (22 Aug 2010)",- "identifier": "965d2b3f-4615-4ee2-8f94-25b5a8fe2027"+ "id": "965d2b3f-4615-4ee2-8f94-25b5a8fe2027"},{"index": 8,"title": "Olympic Games. Stockholm 1912",- "identifier": "32814c7e-2c3d-451b-b33e-12bf4c0d5413"+ "id": "32814c7e-2c3d-451b-b33e-12bf4c0d5413"},{"index": 9,"title": "File:The victorious English 400 m. women's relay swimming team at Wellcome V0048555.jpg",- "identifier": "648b566f-0228-4819-83d5-8f1d324ec06d"+ "id": "648b566f-0228-4819-83d5-8f1d324ec06d"},{"index": 10,"title": "File:Adrian Popa",- "identifier": "fc21e359-38c7-49e7-a3a7-17aa36452670"+ "id": "fc21e359-38c7-49e7-a3a7-17aa36452670"},{"index": 11,"title": "Youth Olympic Games",- "identifier": "2c8ce5eb-5031-4d38-9a65-967a919a6055"+ "id": "2c8ce5eb-5031-4d38-9a65-967a919a6055"},{"index": 12,"title": "People Man",- "identifier": "af7d55f0-1584-4d21-971b-718d7fea883d"+ "id": "af7d55f0-1584-4d21-971b-718d7fea883d"},{"index": 13,"title": "File:Medal of olympic summer games 1948",- "identifier": "99d553a3-fd7d-4e1e-a875-0d0df8625aa7"+ "id": "99d553a3-fd7d-4e1e-a875-0d0df8625aa7"},{"index": 14,"title": "File:Wrestling at the 2016 Summer Olympics – Men's freestyle 86 kg 5 (0).jpg",- "identifier": "31616f0d-3f70-4ea1-8132-d73f7c2145bf"+ "id": "31616f0d-3f70-4ea1-8132-d73f7c2145bf"},{"index": 15,"title": "Day 8 Diving (22 Aug 2010)",- "identifier": "c60dc095-2fd0-4137-9554-dcf39459ac35"+ "id": "c60dc095-2fd0-4137-9554-dcf39459ac35"}]}diff --git a/frontend/src/components/VHomeGallery/VHomeGallery.vue b/frontend/src/components/VHomeGallery/VHomeGallery.vueindex 5ae7cf661..871a2bd31 100644--- a/frontend/src/components/VHomeGallery/VHomeGallery.vue+++ b/frontend/src/components/VHomeGallery/VHomeGallery.vue@@ -29,7 +29,7 @@:class="idx >= imageCount ? 'hidden' : 'block'":style="{ '--delay': `${idx * 0.05}s` }":href="image.url"- @click="handleClick(image.identifier)"+ @click="handleClick(image.id)"><img:height="dimens"@@ -118,7 +118,7 @@ export default defineComponent({url: router.resolve(app.localePath({name: "image-id",- params: { id: image.identifier },+ params: { id: image.id },})).href,}))@@ -126,10 +126,10 @@ export default defineComponent({const imageCount = computed(() => columnCount.value * rowCount)const { sendCustomEvent } = useAnalytics()- const handleClick = (identifier: string) => {+ const handleClick = (id: string) => {sendCustomEvent("CLICK_HOME_GALLERY_IMAGE", {set: imageSet.value.key,- identifier,+ id,})}diff --git a/frontend/src/types/analytics.ts b/frontend/src/types/analytics.tsindex 596639f93..69fbf3f62 100644--- a/frontend/src/types/analytics.ts+++ b/frontend/src/types/analytics.ts@@ -37,8 +37,8 @@ export type Events = {CLICK_HOME_GALLERY_IMAGE: {/** the set to which the image belongs */set: string- /** the identifier of the image */- identifier: string+ /** The unique ID of the media */+ id: string}/*** Description: The user right clicks a single image result, most likely to download it.