Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Continued implementing RDA Core in project

  • Loading branch information...
commit 15a7c90bbc5a2d5c6a223360471e3f49b1199961 1 parent 27e6f95
@jermnelson authored
View
4 aristotle/apps/call_number/redis_helpers.py
@@ -14,8 +14,8 @@
except ImportError:
# Setup for local development
- REDIS_HOST = '172.25.1.108'
-# REDIS_HOST = '0.0.0.0'
+# REDIS_HOST = '172.25.1.108'
+ REDIS_HOST = '0.0.0.0'
REDIS_PORT = 6379
CALL_NUMBER_DB = 4
volatile_redis = None
View
25 features/marc21-to-rda-core-manifestation.feature
@@ -1,9 +1,9 @@
-Feature: Map MARC21 fields to RDA Core Items
+Feature: Map MARC21 fields to RDA Core Manifestation
In order to share bibliographic information across multiple platforms
As catalogers
- we need to map MARC21 fields to their RDA Core Item counterparts
+ we need to map MARC21 fields to their RDA Core Manifestation counterparts
- Scenario: Extracting RDA Manifestation Title Proper
+ Scenario: Extracting RDA Manifestation Applied Material
Given we have a MARC record
When "<code>" field subfield "<subfield>" exists
| code | subfield |
@@ -11,4 +11,21 @@ Feature: Map MARC21 fields to RDA Core Items
| 245 | c |
| 245 | n |
| 245 | p |
- Then the titleProper property of RDA Manifestation is set
+ Then the AppliedMaterial property of rdaManifestation is set
+
+ Scenario: Extracting RDA Manifestation Carrier Type
+ Given we have a MARC record
+ When "<code>" field subfield "<subfield>" exists
+ | code | subfield |
+ | 338 | c |
+ Then the CarrierType property of rdaManifestation is set
+
+ Scenario: Extracting RDA Manifestation Copyright Date
+ Given we have a MARC record
+ When "<code>" field subfield "<subfield>" exists
+ | code | subfield |
+ | 542 | g |
+ | 260 | c |
+ Then the CopyrightDate property of rdaManifestation is set
+
+
View
26 features/marc21-to-rda-core-work.feature
@@ -0,0 +1,26 @@
+Feature: Map MARC21 fields to rdaWork Core
+ In order to share bibliographic information across multiple platforms
+ As catalogers
+ we need to map MARC21 fields to their rdaWork Core counterparts
+
+ Scenario: Extracting rdaWork Cataloguers Note
+ Given we have a MARC record
+ When "<code>" field subfield "<subfield>" exists
+ | code | subfield |
+ Then the CataloguersNote property of rdaWork is set
+
+ Scenario: Extracting rdaWork Coordinates Of Cartographic Content
+ Given we have a MARC record
+ When "<code>" field subfield "<subfield>" exists
+ | code | subfield |
+ Then the CoordinatesOfCartographicContent property of rdaWork is set
+
+ Scenario: Extracting rdaWork Title Of Work
+ Given we have a MARC record
+ When "<code>" field subfield "<subfield>" exists
+ | code | subfield |
+ | 245 | a |
+ | 245 | c |
+ | 245 | n |
+ | 245 | p |
+ Then the TitleOfWork property of rdaWork is set
View
13 fixures/rdaCore_10_13_09.xsd
@@ -1535,6 +1535,19 @@
as: "The physical embodiment of an expression of a work."</xs:documentation>
</xs:annotation>
<xs:element name="rdaAppliedMaterial"/>
+ <xs:element name="rdaCarrierType"/>
+ <xs:element name="rdaCopyrightDate"/>
+ <xs:element name="rdaDistributionStatement"/>
+ <xs:element name="rdaExtent"/>
+ <xs:element name="rdaEditionStatement"/>
+ <xs:element name="rdaEditionStatement"/>
+ <xs:element name="rdaIdentifierForTheManifestation"/>
+ <xs:element name="rdaManufactureStatement"/>
+ <xs:element name="rdaNumberOfSerials"/>
+ <xs:element name="rdaPublicationStatement"/>
+ <xs:element name="rdaSeriesStatement"/>
+ <xs:element name="rdaStatementOfResponsibility"/>
+ <xs:element name="rdaTitle"/>
</xs:sequence>
</xs:complexType>
View
3  lib/rda_core.py
@@ -29,7 +29,8 @@ def setup_rda_core(rda_core_schema_file):
# Iterate through all of the element children of the complexType to
# extract all of the rda properties for this entity class
for row in properties:
- class_params[row.attrib['name']] = None
+ # Quick hack to remove redundant rda prefix for properties
+ class_params[row.attrib['name'].replace('rda','')] = None
new_class = type('%s' % class_name,
(BaseModel,),
class_params)
Please sign in to comment.
Something went wrong with that request. Please try again.