<field reporter:label="Holding Code" name="holding_code" reporter:datatype="text"/>
<field reporter:label="Holding Type" name="holding_type" reporter:datatype="text"/>
<field reporter:label="Holding Link ID" name="holding_link_id" reporter:datatype="int"/>
+ <field reporter:label="Items" name="items" oils_persist:virtual="true" reporter:datatype="link" />
</fields>
<links>
<link field="creator" reltype="has_a" key="id" map="" class="au"/>
<link field="editor" reltype="has_a" key="id" map="" class="au"/>
<link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
<link field="caption_and_pattern" reltype="has_a" key="id" map="" class="scap"/>
+ <link field="items" reltype="has_many" key="issuance" map="" class="sitem"/>
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
<actions>
serial::unit->has_many( items => 'serial::item' );
- serial::issuance->has_a( subscription => 'serial::subsription' );
+ serial::issuance->has_a( subscription => 'serial::subscription' );
serial::issuance->has_many( items => 'serial::item' );
serial::subscription->has_a( record_entry => 'biblio::record_entry' );
__PACKAGE__->columns( Primary => qw/id/ );
__PACKAGE__->columns( Essential => qw/creator editor create_date edit_date
subscription label date_published
- holding_code holding_type holding_link_id/ );
+ caption_and_pattern holding_code
+ holding_type holding_link_id/ );
#-------------------------------------------------------------------------------
package serial::item;
edit_date copy_number status loan_duration circ_lib
fine_level circulate deposit price ref opac_visible dummy_isbn
circ_as_type circ_modifier deposit_amount location mint_condition
- holdable dummy_title dummy_author deleted alert_message label
- age_protect floating label_sort_key contents/ );
+ holdable dummy_title dummy_author deleted alert_message
+ age_protect floating summary_contents detailed_contents/ );
#-------------------------------------------------------------------------------
package serial::record_entry;
# ... and add all /their/ items to the target issuance
for my $i ( @similar_iss ) {
for my $it ( $i->items() ) {
-
- next if ($it->unit->deleted);
+ next unless $it->unit and not $it->unit->deleted;
next unless (grep { $it->unit->circ_lib eq $_ } @$ou_list);
my $unit = $it->unit->to_fieldmapper;