{"action":"created","issue":{"url":"https://api.github.com/repos/MarcusBarnes/mik/issues/492","repository_url":"https://api.github.com/repos/MarcusBarnes/mik","labels_url":"https://api.github.com/repos/MarcusBarnes/mik/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/MarcusBarnes/mik/issues/492/comments","events_url":"https://api.github.com/repos/MarcusBarnes/mik/issues/492/events","html_url":"https://github.com/MarcusBarnes/mik/issues/492","id":370798996,"node_id":"MDU6SXNzdWUzNzA3OTg5OTY=","number":492,"title":"Toolchain: CONTENTdm compound PDFs","user":{"login":"xing93111","id":37555562,"node_id":"MDQ6VXNlcjM3NTU1NTYy","avatar_url":"https://avatars2.githubusercontent.com/u/37555562?v=4","gravatar_id":"","url":"https://api.github.com/users/xing93111","html_url":"https://github.com/xing93111","followers_url":"https://api.github.com/users/xing93111/followers","following_url":"https://api.github.com/users/xing93111/following{/other_user}","gists_url":"https://api.github.com/users/xing93111/gists{/gist_id}","starred_url":"https://api.github.com/users/xing93111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xing93111/subscriptions","organizations_url":"https://api.github.com/users/xing93111/orgs","repos_url":"https://api.github.com/users/xing93111/repos","events_url":"https://api.github.com/users/xing93111/events{/privacy}","received_events_url":"https://api.github.com/users/xing93111/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-10-16T21:04:18Z","updated_at":"2018-10-18T22:47:32Z","closed_at":null,"author_association":"NONE","body":"On this page:\r\nhttps://github.com/MarcusBarnes/mik/wiki/Toolchain:-CONTENTdm-compound-PDFs\r\nI read for compound PDFs, `CdmPhpDocuments` class should be used. However, when I run `mik` \r\n\r\n```\r\nbillg@lib10:/data/projects/arca$ ./mik/mik -c ./collections/AUebooks/config.ini\r\nCommencing MIK.\r\nPHP Fatal error:  Uncaught Error: Class 'mik\\filegetters\\CdmPhpDocuments' not found in /data/projects/arca/mik/mik:170\r\nStack trace:\r\n#0 {main}\r\n  thrown in /data/projects/arca/mik/mik on line 170\r\n```\r\nThen, I went to `mik/src/filegetters` and `mik/src/writers`. I found a class named `CdmPdfDocuments`. So I thought maybe there are typos on the document, and changed the class name to `CdmPdfDocuments`. However, it still does not work. The output gives corrupted PDFs.\r\n\r\nThis is the collection: http://digicon.athabascau.ca/cdm/landingpage/collection/AUebooks\r\n\r\nThe following is my configuration ini file:\r\n```\r\n; Trying out the compound thing\r\n\r\n[CONFIG]\r\nconfig_id = AUebooks\r\nlast_updated_on = \"2018-10-11\"\r\nlast_update_by = \"hx\"\r\n\r\n[FETCHER]\r\nclass = Cdm\r\n; The alias of the CONTENTdm collection.\r\nalias = AUebooks\r\nws_url = \"http://deck.cs.athabascau.ca/dmwebservices/index.php?q=\"\r\n; 'record_key' should always be 'pointer' for CONTENTdm fetchers.\r\nrecord_key = pointer\r\ntemp_directory = \"/data/projects/arca/tmp\"\r\n\r\n[METADATA_PARSER]\r\nclass = mods\\CdmToMods\r\nalias = AUebooks\r\nws_url = \"http://deck.cs.athabascau.ca/dmwebservices/index.php?q=\"\r\n; Path to the csv file that contains the CONTENTdm to MODS mappings.\r\nmapping_csv_path = '/data/projects/arca/collections/AUebooks/mapping.csv'\r\n; Include the migrated from uri into your generated metadata (e.g., MODS)\r\ninclude_migrated_from_uri = \"http://digicon.athabascau.ca/cdm/ref/collection/\"\r\nrepeatable_wrapper_elements[] = extension\r\nrepeatable_wrapper_elements[] = name\r\nrepeatable_wrapper_elements[] = subject\r\nrepeatable_wrapper_elements[] = identifier\r\nrepeatable_wrapper_elements[] = titleInfo\r\nrepeatable_wrapper_elements[] = title\r\nrepeatable_wrapper_elements[] = relatedItem\r\nuse_nicknames = true\r\n\r\n[FILE_GETTER]\r\nclass = CdmPdfDocuments\r\nalias = AUebooks\r\ninput_directories[] =\r\nws_url = \"http://deck.cs.athabascau.ca/dmwebservices/index.php?q=\"\r\nutils_url = \"http://deck.cs.athabascau.ca/utils/\"\r\ntemp_directory = \"/data/projects/arca/tmp\"\r\n\r\n[WRITER]\r\nclass = CdmPdfDocuments\r\nalias = AUebooks\r\noutput_directory = \"/data/projects/arca/collections/AUebooks/output\"\r\nmetadata_filename =\r\npostwritehooks[] = \"php extras/scripts/postwritehooks/move_packages_by_extension.php\"\r\npostwritehooks[] = \"php extras/scripts/postwritehooks/validate_mods.php\"\r\npostwritehooks[] = \"php extras/scripts/postwritehooks/object_timer.php\"\r\npostwritehooks[] = \"php extras/scripts/shutdownhooks/delete_temp_files.php\"\r\n; Note: During testing we only generate MODS datastreams. In production, comment this line out.\r\n; datastreams[] = MODS\r\n\r\n[MANIPULATORS]\r\n; filegettermanipulators[] = \"CdmSingleFile|pdf\"\r\n; filegettermanipulators[] = \"CdmCompound|Document-PDF\"\r\nfetchermanipulators[] = \"CdmCompound|Document-PDF\"\r\n;metadatamanipulators[] = \"FilterModsTopic|subject\"\r\n;metadatamanipulators[] = \"AddContentdmData\"\r\n;metadatamanipulators[] = \"AddUuidToMods\"\r\n;metadatamanipulators[] = \"InsertXmlFromTemplate|null0|/Users/brandon/sfuvault/mik/manipulations/athabasca_manipulations/origininfo.xml\"\r\n;metadatamanipulators[] = \"InsertXmlFromTemplate|null1|/Users/brandon/sfuvault/mik/manipulations/athabasca_manipulations/physicalDescription.xml\"\r\n\r\n[LOGGING]\r\npath_to_log = \"/data/projects/arca/tmp/mik.log\"\r\npath_to_manipulator_log = \"/data/projects/arca/tmp/manipulator.log\"\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/MarcusBarnes/mik/issues/comments/431189357","html_url":"https://github.com/MarcusBarnes/mik/issues/492#issuecomment-431189357","issue_url":"https://api.github.com/repos/MarcusBarnes/mik/issues/492","id":431189357,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTE4OTM1Nw==","user":{"login":"mjordan","id":403918,"node_id":"MDQ6VXNlcjQwMzkxOA==","avatar_url":"https://avatars1.githubusercontent.com/u/403918?v=4","gravatar_id":"","url":"https://api.github.com/users/mjordan","html_url":"https://github.com/mjordan","followers_url":"https://api.github.com/users/mjordan/followers","following_url":"https://api.github.com/users/mjordan/following{/other_user}","gists_url":"https://api.github.com/users/mjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/mjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjordan/subscriptions","organizations_url":"https://api.github.com/users/mjordan/orgs","repos_url":"https://api.github.com/users/mjordan/repos","events_url":"https://api.github.com/users/mjordan/events{/privacy}","received_events_url":"https://api.github.com/users/mjordan/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T22:47:32Z","updated_at":"2018-10-18T22:47:32Z","author_association":"COLLABORATOR","body":"At http://digicon.athabascau.ca/cdm/ref/collection/auarchives/id/499, if I wanted to download the entire document as a single PDF, how would I do that? I don't see a link that will allow me to do that. Is there an admin option that turns off that feature, and if so, do you have it turned off?"}}
{"actor":{"display_login":"mjordan"}}