anything.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. return {
  2. uri = "pas:Anything",
  3. label = "Anything",
  4. description = "Superclass of every resource type in the system.",
  5. abstract = true,
  6. properties = {
  7. source_path = {
  8. uri = "pas:sourcePath",
  9. label = "Source path",
  10. description =
  11. "Path of the resource at deposit time, relative to the SIP \z
  12. root.",
  13. type = "string",
  14. max_cardinality = 1,
  15. system = true,
  16. },
  17. content_type = {
  18. uri = "pas:contentType",
  19. label = "Content type",
  20. type = "resource",
  21. min_cardinality = 1,
  22. max_cardinality = 1,
  23. system = true,
  24. },
  25. --[[
  26. id = {
  27. uri = "pas:id",
  28. label = "Primary ID",
  29. type = "string",
  30. min_cardinality = 1,
  31. max_cardinality = 1,
  32. },
  33. --]]
  34. sub_id = {
  35. uri = "pas:submissionID",
  36. label = "Submission ID",
  37. description = "Unique ID for the submission that the resource \z
  38. was created or updated in.",
  39. type = "resource",
  40. min_cardinality = 1,
  41. system = true,
  42. },
  43. label = {
  44. uri = "dc:title",
  45. label = "Title",
  46. type = "string",
  47. max_cardinality = 1,
  48. },
  49. submitted = {
  50. uri = "dc:dateSubmitted",
  51. label = "Submitted On",
  52. type = "datetime",
  53. min_cardinality = 1,
  54. max_cardinality = 1,
  55. system = true,
  56. },
  57. last_modified = {
  58. uri = "dc:modified",
  59. label = "Last Updated On",
  60. type = "datetime",
  61. min_cardinality = 1,
  62. max_cardinality = 1,
  63. system = true,
  64. },
  65. },
  66. }