Can't specify content type at import
rubinsztajn - December 30, 2007 - 02:39
| Project: | MARC |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hello,
When attempting to import a MARC file with the module's importer, the radio buttons to specify content type do not appear. Of course, the importer won't let me import my file without a content type specified. Has anyone found a way to fix this problem? It's also very possible I'm missing something obvious!
Thanks!

#1
The MARC module does not implement a new node type, instead it gives you the flexibility to import MARC records in to the node type of your choice. But this flexibility creates a little more work up front.
You need to go to your content types administration pages (admin/content/types). Make a new content type or choose an existing one.
Then when in the admin section for that content type, click the MARC tab.
Here you can map MARC fields to the fields in the Drupal node. On the most basic level, you could just map 245a to title and 520a to body. Once you have a mapping saved on your content type, it should show up for you on the import form.
#2
Must be missing a step, but I don't see any MARC tab from within my newly created content type. Is this a bug?
#3
Just to be certain, you are on the page admin/content/types/yourcontenttype
And you are seeing
* Manage fields
* Display fields
* Add field
* Add group
But no MARC?
Have you given yourself all of the MARC permissions? If you don't have "Administer MARC Imports" permission, you won't see the tab.
#4
Thanks for posting so quickly. Yes we are on the same page and the user permissions (access control) are set correctly for both marc module and node module. Unfortunately, I do not see any of these: manage fields, display fields, add field, add group at /admin/content/types/[marc]. Does the marc module create this functionality? Perhaps if I turn off all non core modules the problem disappears. I will try again in the morning.
#5
Are you using CCK? These may all be generated by the CCK module.
#6
Okay, I have installed the CCK module. As I suspected, I had initially missed this step. After installation of the CCK module, and mapping some basic fields, e.g. 245a --> title and 520a --> body, the content type appeared quite nicely here /admin/content --> marc import. As advertised this module's import feature appears to be working just fine. Now all I need to do is map all the fields we intend to use, and begin to import actual MARC records. Problem solved. Thanks!
#7
Installing the CCK module worked for me as well. Thanks for your help!
#8
I went through all of the above, mapping Marc to basic fields using the Biblio and Book Page content types. I then imported some Marc records for each content type and I get the message that the records will be processed incrementally at each cron run. I've set up cron to run previously so I left it there and checked back when I knew the cron job had already run. I don't see any new Biblio or Book Page created with the Marc data in them. What am I missing?
#9
Because the nodes are getting created when the cron runs but still is running through all the Drupal validation checks, if Drupal is not liking what is submitted, you don't get any error messages like you might if you were just submitting a node from the web interface.
I would start by checking your logs and see if there are any errors getting registered when the cron runs - and double check just to make sure the cron is running. The errors it might hit are required fields not having data or CCK fields not having the correct data, i.e. text in a number field. Let me know if that helps at all.
#10
I checked my logs and I didn't see any errors among all the usual cron run messages like "There is new content..." I checked my cron jobs and they are running as expected. Next, I checked my content type mapping and just to avoid complications, I whittled it to the minimum title and author. I then re-imported those Marc files. Cron jobs have run and still no new nodes.
Can anyone tell me of any Drupal site that is successfully using the Marc module? Thanks!
-- glenda
#11
I just added the fish4info.org site to the project home page as a demo. There are not a lot of books there right now. Instead, to see a site, select one from the drop down in the upper right hand side of the site.
If you could, could you attach your MARC records to a post so I can test them and see if I can recreate what is happening for you.
Thanks.
#12
Hi Andrew, I'm attaching one of them. I've downloaded these marc files from Springer. Thanks for looking into this. -- Glenda
#13
#14
Automatically closed -- issue fixed for two weeks with no activity.