retorquere / zotero-safetylit-mods

http://retorque.re/zotero-safetylit-mods/
GNU Affero General Public License v3.0
0 stars 0 forks source link

When there is a volume and page range in the Zotero record the MODS export volume becomes ePub #4

Closed SafetyLit closed 2 years ago

SafetyLit commented 2 years ago

When there is a volume and page range in the Zotero record the MODS export volume metadata item is deleted and replaced with ePub.

See Zotero RDF for one of the items with this problem.

RDF ``` journalArticle Meyer Thomas D. Godfrey Christopher J. Walss-Bass Consuelo Copyright © 2022 Elsevier Ltd. All rights reserved. 221-227 2022 Oct 8 Place: England PMID: 36270060 eng Few studies have used psychological autopsies to evaluate large and diverse populations on transdiagnostically relevant variables such as personality, temperament, and trauma exposure; rather, they tend to focus on specific psychiatric disorders or manner of death. We therefore developed the UT Health Psychological Autopsy Interview Schedule (UTH-PAIS). The measure is described, and our results show that the PAIS diagnoses and dimensions can be reliably assessed. Furthermore, we were able to show that our sample of donated brains overall matches the demographic characteristics of a larger pool of individuals receiving a medical autopsy. In the Discussion we review the strengths and potential limitations of the study and outline in which context the PAIS will prove to be useful. The UT health Psychological Autopsy Interview Schedule (UTH- PAIS) - description and reliability of diagnoses and transdiagnostic personality measures. 156 Journal of psychiatric research ISSN 1879-1379 0022-3956 J Psychiatr Res DOI 10.1016/j.jpsychires.2022.10.014 ```
retorquere commented 2 years ago

What is the timestamp of the translator you used to reproduce this?

retorquere commented 2 years ago

Going back to the original request, I need a few terms cleared up:

  1. Strip journal abbreviations.

That is done

  1. For all journal article paginations without an ending page, prefix the numeric string with an "e". (Before we began editing our records by hand, this is the most-requested change to the SafetyLit display and export.)

When you say "paginations", do you mean the "Pages" field in Zotero, or a field (if so, which) in the MODS output?

  1. To accommodate my existing system that fetches volume, issue, pagination metadata for aheah-of-print articles, we replace empty fields with "ePub". We do this mostly by manual edits. (This is complicated a bit by publishers such as Elsevier) that do not publish issues within their volumes.) It would save the hand-editing time if there could be an auto-edit script to replace all empty volume, issue, pagination fields in the MODS file with "ePub". (My metadata fetch system already recognizes when metadata contains volume and pagination metadata and replaces ePub in the issue field with null.)

And this tests the Zotero "Pages", "Volume" and "Issue" field, yes?

retorquere commented 2 years ago

Assuming the above is correct: version 2022-10-24 08:03:59 is up with those changes.

SafetyLit commented 2 years ago

Yes, I am getting email notices of your changes. I apologize for the delay replying. I've been doing detective work to trace the nature of the problem issue.

Also, there are times that I do not have access to my computer but do have access to my iPad. For some reason I've not been able to login to github from my iPad for a couple of days. I'm working to fix that problem.

Version: 2022-10-24 08:03:59

Everything is now working except there is a new problem. When there is nothing in the Zotero Volume, Issue, Pages fields; the MODS exports do not contain the field tags but should contain those field tags and should have ePub in each of those fields.

The regular MODS export nor the SafetyLit MODS export do not contain tags for those fields when there is no data in the fields. Here is an example with data in the fields. Please note that angle brackets below have been replaced with square brackets. I don't know how to get my example to show angle brackets there but for some reason when I paste the files with declarations RDF and MODS the angle brackets are displayed.

<part><detail type="volume"><number>17</number></detail><detail type="issue"><number>4</number></detail><extent unit="pages"><start>246</start><end>256</end></extent></part>

Your exporter will need to recognize the missing volume, issue, and pages information from the Zotero record and then add

<part>< detail type="volume"><number>ePub</number></detail><detail type="issue"><number>ePub</number></detail><extent unit="pages"><list>ePub</list></extent></part>

Thanks!

Here is the Zotero RDF followed by the SafetyLit MODS export :

RDF ``` journalArticle Okun Michael S. Mayberg Helen S. DeLong Mahlon R. 2022 Oct 24 Place: United States PMID: 36279117 eng Following Muhammad Ali’s death, there has been persistent dialogue about the degree to which Parkinson disease vs repetitive boxing-related head trauma contributed to his progressive motor and cognitive impairments. During one of Ali’s most famous public moments, the lighting of the 1996 Olympic torch, Bob Costas from NBC sports commented, “once the most dynamic figure in sports and now trapped by a mask created by parkinson syndrome.”1 Ali manifested a classic Parkinson disease left-arm rest tremor, which was suppressed as he raised his left hand to steady his right arm in order to light the torch.1 Ali underwent a series of single medical examinations during his professional career from 1981 to 1984 at University of California, Los Angeles, the Mayo Clinic in Rochester, Minnesota, and at Columbia-Presbyterian in New York, New York, which raised the possible diagnoses of both head trauma and Parkinson disease or a parkinsonian syndrome. Postretirement from 1995 until his death, he received his neurological care largely at 1 institution, Emory University in Atlanta, Georgia. He also received local care at ... Muhammad Ali and young-onset idiopathic Parkinson disease-the missing evidence. JAMA neurology ISSN 2168-6157 2168-6149 JAMA Neurol DOI 10.1001/jamaneurol.2022.3584 journalArticle Barut Tusun Ruken Emiroğlu Oya Nuran Occupational health opinion public health nursing 2022 Oct 17 Place: Netherlands PMID: 36278386 eng BACKGROUND: Taxi drivers are prone to musculoskeletal problems and can suffer from cardiovascular disease, respiratory disease, and psychosocial problems. For occupational health and safety it is crucial to know the risk factors and initiatives to be taken for protection. OBJECTIVES: This study was carried out to evaluate the opinions of taxi drivers regarding occupational risks and prevention strategies. METHODS: This was a descriptive and cross-sectional study including 524 taxi drivers. A questionnaire was developed to determine the opinions of taxi drivers regarding occupational risks and intervention strategies. For the analysis of data, Mann-Whitney U (Z-table value), descriptive statistics (number, percentage) and Chi-square (χ2) test between dependent and independent variables were used. RESULTS: Among the taxi drivers, the occupation was reported to be risky for musculoskeletal system disorders by 67%, for cardiovascular diseases by 68.3%, for respiratory diseases by 46.9% and for psychosocial problems by 63.3%. When the opinions of taxi drivers regarding prevention from these risks were examined, 30.2% of them stated prevention from musculoskeletal system disorders, 34.0% from cardiovascular diseases, 31.3% from respiratory diseases and 40.1% from psychosocial problems. It was a prominent finding to see a decrease in the number of drivers who stated to show prevention behavior towards these risks compared to their states of recognizing them.CONCLUSİON:Drivers were insufficient both in recognizing health risks of their jobs and implementing intervention strategies. Education concerning health risks of their jobs and prevention from these risks is required. Opinions of taxi drivers regarding occupational risks and prevention strategies:aA cross- sectional study in Turkey. Work (Reading, Mass.) ISSN 1875-9270 1051-9815 Work DOI 10.3233/WOR-211235 ```
SafetyLIt MODS ``` Muhammad Ali and young-onset idiopathic Parkinson disease-the missing evidence.textjournalArticleOkunMichael S.autMaybergHelen S.autDeLongMahlon R.aut10.1001/jamaneurol.2022.3584Following Muhammad Ali’s death, there has been persistent dialogue about the degree to which Parkinson disease vs repetitive boxing-related head trauma contributed to his progressive motor and cognitive impairments. During one of Ali’s most famous public moments, the lighting of the 1996 Olympic torch, Bob Costas from NBC sports commented, “once the most dynamic figure in sports and now trapped by a mask created by parkinson syndrome.”1 Ali manifested a classic Parkinson disease left-arm rest tremor, which was suppressed as he raised his left hand to steady his right arm in order to light the torch.1 Ali underwent a series of single medical examinations during his professional career from 1981 to 1984 at University of California, Los Angeles, the Mayo Clinic in Rochester, Minnesota, and at Columbia-Presbyterian in New York, New York, which raised the possible diagnoses of both head trauma and Parkinson disease or a parkinsonian syndrome. Postretirement from 1995 until his death, he received his neurological care largely at 1 institution, Emory University in Atlanta, Georgia. He also received local care at ...engPlace: United States PMID: 36279117journal2022 Oct 24continuing2168-6157 2168-6149JAMA neurology ```
retorquere commented 2 years ago

I don't know how to get my example to show angle brackets

You can enclose them with triple backquotes like so:

....
retorquere commented 2 years ago

Version 2022-10-26 04:04:47 is up which should fix these problems.

I'd prefer it if you open new issues for new problems, I prefer to handle and close earlier issues before moving on to new ones.

retorquere commented 2 years ago

Does this mean #1 and #3 can be closed?

SafetyLit commented 2 years ago

Success! Everything is working just as I desire.