From 22ed8b376b2b91cb31457eff2d27120171d8d389 Mon Sep 17 00:00:00 2001 From: Ben Woodhead Date: Thu, 15 Sep 2011 13:30:31 -0300 Subject: [PATCH] Visiblity Problem --- .CollectionClass.inc.swp | Bin 40960 -> 40960 bytes CollectionClass.inc | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.CollectionClass.inc.swp b/.CollectionClass.inc.swp index be96c5845215ffe475318a8f005b7360401f9414..4672c0ca8df7d485e2e91c61f6282cda6530a653 100644 GIT binary patch delta 419 zcmZoTz|?SnNg>G~%+puFT+fIB2m}}yPO2CA{pDw22w`MkD9X<-nYdA9ql<+AW60)O zfp&S`gFs|$$|!_>pQp@7~FyQGA9GWG$0NFVtydL!NI^V6Npc+Gcarh;<-TF z1;k}Q90J60K+F!rr`Q-6T7WnNh^>J5B`X8Nb|5YTVhbQ<17Zds{=>q+FbjxXf%qNJ z1rvcdhM7T%K^@2dIcXmg14A1ShXSz`5TBpCaia9Z1NM^@jU^{{7^`dN=BH$)RmP_z zmLwLJ6s0ES#wS(AmnG(urfR69BdKB zzq!MB1>Y9`1 MO?TMLWBnxs02FI$bN~PV delta 337 zcmZoTz|?SnNg>G~%+puFT+fIB2m}}y#6^qzuE?=4oGxWxD9X<-nYdA9ql<+AWANr$ zfp&RbekKNnd}fH!;K_mpr|WyU7#Jjh_zoun!(1Sa0%Bz#e!{`PAPmI+*cljJ0P$5I zJ_y9~fjAS0gMe5Rh|jYD#eldKh)sZ)35XA}GB7j)aUc+T1F<_0KVe~D=m%m8AifQB z!7?B&WM+^CJ0}asu>xX6ApQk(;yNIn&9rf&Dx+{MCYXHQ&|&f{V;&%_4#bi`Y`|K} zprDWfl@ZxoX`IW*SiJd}Nj{5Ua(+%uYH~?teqMZDVs5H}?d17M5|h{1aBuFjG-RCo Mz+G^&nDwg^06#!dW&i*H diff --git a/CollectionClass.inc b/CollectionClass.inc index 7f191c80..964cd457 100644 --- a/CollectionClass.inc +++ b/CollectionClass.inc @@ -753,10 +753,11 @@ function collection_creation_form_validate($form, &$form_state) { function collection_creation_form_submit($form, &$form_state) { global $user; module_load_include('inc', 'fedora_repository', 'api/fedora_item'); + module_load_include('inc', 'fedora_repository', 'api/dublin_core'); $module_path = drupal_get_path('module', 'fedora_repository'); $thumbnail = drupal_get_path('module', 'Fedora_Repository') . '/images/Crystal_Clear_filesystem_folder_grey.png'; $collection_pid = $form_state['values']['collection_pid']; - $collection_name = $form_state['values']['collection_name']; + $new_collection_label = $form_state['values']['collection_name']; $parent_collection = $form_state['values']['parent_collection']; $all_cModels = get_content_models_as_option_array(); $collection_policy = ' @@ -779,7 +780,7 @@ function collection_creation_form_submit($form, &$form_state) { $node->addAttribute('pid', $content_model); } } - $item = fedora_item::ingest_new_item($collection_pid, 'A', $new_collections_label, $user->name); + $item = fedora_item::ingest_new_item($collection_pid, 'A', $new_collection_label, $user->name); $item->add_relationship('isMemberOfCollection', $parent_collection, RELS_EXT_URI); $item->add_relationship('hasModel', 'islandora:collectionCModel', FEDORA_MODEL_URI); $item->add_datastream_from_string($collection_policy_xml->saveXML(), 'COLLECTION_POLICY');