Skip to content

CoreServices

Chris Delis edited this page Oct 15, 2015 · 1 revision

What are Core Services?

We're using the term "core" to identify which services are being managed by the XC team. The code for these services is held w/in XC's code repository. The current set of core services are:

  1. marc normalization
  2. marc-to-xc transformation
  3. dc-to-xc transformation
  4. aggregation

These services are at different stages of completeness, but we are working hard to finish them all.

If you would like to contribute to one of these services or would like to contribute a new service, please contact Randy Cook, XCO Director of Community Development rcook@library.rochester.edu

Instructions for Working on Core Services

  1. Do steps 1-3 from the Quick and Dirty Tutorial
  2. Checkout the entire MST code repo for the branch you wish to work on. This would currently be the trunk.
  3. From the top level directory (trunk), issue the following commands: * This will grab all dependencies and build all the sub-projects.
ant package-all
  1. you are now ready to use your service. cd to your service directory (mst-service/custom/specific_core_service) and issue the test commands (see this page}.

Notes for XC developer creating a new core service

  1. create example zip
$ cd ./mst-service/example/; ant zip-dev-env; cd ~-
  1. unzip mst-service/example/build/example-1.2.0-dev-env.zip in mst-service/custom (or later if available)
  2. rename example directory to new service name
  3. delete files * those which are automatically copied according to mst-service/impl/build.xml->ms.copy-example * new_service/test/java/xc/mst/services/example/* except for MockHarvestTest and StartToFinishTest
    • change the folder and package for these
    • note: can you find a better base for these?
  4. add a line to build.xml->copy-to-custom-services (here and here)
  5. rename ExampleMetadataService.java and move to a new package
  6. change custom.properties to use this new class
  7. create dev.properties
  8. svn ci
  9. ant ms.copy-example
  10. add ignores for the previously deleted files
  11. svn ci
  12. cd ./mst-service/custom/new_folder/; ant -Dtest=ProcessFile test; cd ~-;

Clone this wiki locally