Sha256: 94763a7256561b315db51fe1a9cf5c1d2a1942bee84acf982d3ba9a1cab5ba3c
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 Bytes
Contents
class SampleAFObjRelationshipQueryParam < ActiveFedora::Base #points to all parents linked via is_member_of has_relationship "parents", :is_member_of #returns only parents that have a level value set to "series" has_relationship "series_parents", :is_member_of, :query_params=>{:q=>{"level_t"=>"series"}} #returns all parts has_relationship "parts", :is_part_of, :inbound=>true #returns only parts that have level to "series" has_relationship "series_parts", :is_part_of, :inbound=>true, :query_params=>{:q=>{"level_t"=>"series"}} has_bidirectional_relationship "bi_series_parts", :has_part, :is_part_of, :query_params=>{:q=>{"level_t"=>"series"}} end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active-fedora-2.3.1 | lib/active_fedora/samples/sample_af_obj_relationship_query_param.rb |