{"id":22814584,"url":"https://github.com/kit-data-manager/com_mapping-service-input","last_synced_at":"2025-05-05T16:21:08.556Z","repository":{"id":161642439,"uuid":"599609734","full_name":"kit-data-manager/com_mapping-service-input","owner":"kit-data-manager","description":"Allows the user to set a file and choose a mapping for a request to our mapping service.","archived":false,"fork":false,"pushed_at":"2025-05-01T22:31:27.000Z","size":430,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-02T04:04:58.071Z","etag":null,"topics":["inactive","web-component"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kit-data-manager.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-09T14:03:29.000Z","updated_at":"2025-02-27T10:33:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"e81ec9f1-5de9-493f-90a4-183d62f74671","html_url":"https://github.com/kit-data-manager/com_mapping-service-input","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2Fcom_mapping-service-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2Fcom_mapping-service-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2Fcom_mapping-service-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2Fcom_mapping-service-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kit-data-manager","download_url":"https://codeload.github.com/kit-data-manager/com_mapping-service-input/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252531880,"owners_count":21763293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["inactive","web-component"],"created_at":"2024-12-12T13:09:21.801Z","updated_at":"2025-05-05T16:21:08.540Z","avatar_url":"https://github.com/kit-data-manager.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# com_mapping-service-input\n\n\n\nMapping Component Overview:\n\nThe Mapping component serves as a user-friendly interface to extract metadata from data generated by instruments and map it to metadata schema.Our mappings are designed to align with widely accepted community schemes, custom-tailored for various techniques.\n\n## Integration\n\nIf the dependency is up set properly (instructions will follow), the component can be used like this:\n\n**Add the Element**:\nTo integrate the Mapping component into your project, insert the following HTML element into your webpage:\n\n```html\n\u003chead\u003e\n     ...\n    \u003c!-- add the below code !--\u003e\n     \u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@kit-data-manager/mapping-service-input@latest/dist/com_mapping-service-input.es.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003c!-- use the component !--\u003e\n    \u003cmapping-input base-url=\"http://localhost:8090/\" id=\"input-component\"\u003e\u003c/mapping-input\u003e\n\u003c/body\u003e\n```\n**Invoke the Download Functionality**:\n\nFor enabling the download functionality, include the following HTML code in your page:\n```html\n\n`\u003cdiv class=\"ui center aligned grid\"\u003e\n  \u003cbutton type=\"submit\" class=\"ui primary button\" id=\"submit\" onclick=\"\n    var component = document.getElementById('input-component');\n    component.executeMapping(true)\"\u003eMap document\n  \u003c/button\u003e\n\u003c/div\u003e`\n\n```\n\nThe executeMapping(true) method call triggers both the mapping process and the subsequent download of the result.\n\nAdjusting Base URL:\nThe base-url attribute in the \u003cmapping-input\u003e element allows you to specify the base URL for your Mapping Service instance. You can modify this URL as needed to suit your requirements.\n\nBy following these steps, you can easily integrate the Mapping component into your project and utilize its capabilities for extracting metadata from instrument-generated data.\n\n\n## How to run - For developers\n\nTo start using the component clone this repo to a new directory:\n\n```bash\ngit clone https://github.com/kit-data-manager/com_mapping-service-input.git\n```\n\nand run:(Before running below command make sure node.js is installed in your system. You can check if it is there is your system or not by command: node -v or node --version (dependending on the operating system you are using) in your command prompt.\n\n```bash\nnpm install\n```\n\nTo run the component in developement mode\n\n```bash\nnpm run build\nnpm run dev\n```\n\n\n## Attributes\n\n- `base-url`: string, base-url to your Mapping Service instance\n\n\n## Methods\n- `executeMapping(true)`: To trigger the mapping process, you can include the following HTML code in your project:\n (true in the method argument will trigger mapping + download of the result)\n\n\n\n\n\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkit-data-manager%2Fcom_mapping-service-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkit-data-manager%2Fcom_mapping-service-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkit-data-manager%2Fcom_mapping-service-input/lists"}