Comments (9)
The bibliography, as it is now displayed, is not formatted properly. In the example below, from
https://library.brown.edu/iip/viewinscr/caes0305/ , shows a full bibliographic entry (the second part of bibliography, at the bottom right of the page.) You will see that there is the text (IIP-068)
right before "American Schools of Oriental Research" That shouldn't be there. I'm not even sure that we want to keep the bibliographic IIP id, but if we do, it should appear after "American Schools of Oriental Research" and be greyed out or otherwise not prominent. The bibliographic entry is retrieved from the Zotero API, and then some regular expressions are used to further format/massage the text. The bibliographic IIP id is probably added, or not removed, at that point. The bibliographic ID is a tag in Zotero that uniquely identifies an entry.
So we need to find where the bibliograhic entry is retrieved from Zotero and further processed.
Lehmann, C. M., & Holum, K. G. (2000). The Greek and Latin Inscriptions of Caesarea Maritima. In Joint Expedition to Caesarea Maritima Excavation Reports, vol. 5 (IIP-068). American Schools of Oriental Research. ( p. plate CXLV, no. 305 ) (See in Zotero)
from iip-production.
@emylonas Are all these "IIP-nnn" numbers 3 digits? If they're sometimes more or less, I'll need to make a minor change to this fix.
from iip-production.
@atbradley The bibliographic IDs are always IIP-000 (three numbers). We may have to change this in the future, but you could throw caution to the winds and use an expression like "IIP-\d+" because it's unlikely to be anything else than the bibID.
from iip-production.
@emylonas I was looking at a page like akld0003, where there's a page reference along with the IIP number: "(IIP-053; pp. 57–72)". On the assumption we don't need those page numbers, I used /\ \(IIP-\d{3}.*?\)/
. If we do, I can change it.
from iip-production.
@atbradley I have found 2 cases.
- https://library.brown.edu/iip/viewinscr/idum0047/, the bibliography appears as follows:
Porten, B., & Yardeni, A. (2014). Textbook of Aramaic Ostraca from Idumea. Volume 1. Dossiers 1-10: 401 Commodity Chits. (IIP-555). Eisenbrauns.
(See in Zotero)
( A1.47 )
This comes from a Zotero citation of a book. In this case, the string to remove is \(IIP-\d+\)
or \(IIP-\d{3}\)
- https://library.brown.edu/iip/viewinscr/bshe0015/ where the bibliography appears as follows: ```
Lifshitz, B. (1974). The Ancient Synagogue of Hamat-Tiberias, its Floor and Inscriptions. In B. Oded, U. Rappaport, A. Shochat, & J. Shatzmiller (Eds.), Studies in the History of the Jewish People and the Land of Israel (IIP-579; Vol. 3, pp. 99–109). University of Haifa.
(See in Zotero)
( 46-7 )
This comes from the Zotero citation of a book section and seems to want to provide the page range. Unfortunately, I think in this case, you are looking for something like: `(\()]IIP-\d{3}; ([^\)]\))` and returning `\1\2` - basically matching the whole expression in the parentheses that contains `IIP-\d{3}; ` and then writing out the parts that remain after you've removed that string.
Ugh. I don't know why Zotero wants to include the archive location information as part of this information. It makes no sense at all.
Maybe you could check what bibliographic format we are exporting, because I just tried a regular Chicago author date export from the Zotero app. and got no strange results at all.
from iip-production.
My current fix is two steps:
- Remove
/IIP-\d{3}\;\ /
, so the page numbers (if they exist) still appear. - Remove
/\(IIP-\d{3}\)/
, to remove all trace of any IIP references without page numbers.
Maybe you could check what bibliographic format we are exporting, because I just tried a regular Chicago author date export from the Zotero app. and got no strange results at all.
Looks like we're exporting APA style citations:
req.open("GET", "https://api.zotero.org/groups/" + GROUP + "/items?tag=" + ztag + "&include=bib" + "&style=apa", true);
According to the docs, Chicago style references are the default, so removing the &style=apa
bit from the URL should give us Chicago style data. This seems hit-or-miss.
https://api.zotero.org/groups/180188/items?tag=IIP-579&include=bib doesn't include an IIP reference number in the bibliography (the version we're currently displaying has one, with a page reference):
https://api.zotero.org/groups/180188/items?tag=IIP-563&include=bib does include one, at the end, without a page reference:
I've updated the dev instance to use Chicago citations and left my other fixes in place. This works fine on the pages I've checked.
from iip-production.
done, @emylonas has to check and approve.
from iip-production.
@atbradley this looks great and should go live.
from iip-production.
It's now live.
from iip-production.
Related Issues (20)
- doubletree url not working on deploy-servers HOT 1
- default noimage.jpg being loaded from old repository (2hrs?) HOT 1
- small map tiles also not working
- images not showing up as expected (3days?) HOT 16
- new iso language codes (2 hrs) HOT 19
- doubletree url not working HOT 1
- Existence of an orphan seems to break search page HOT 1
- invalid view-inscription should return a 404.
- wordlist cleanup HOT 2
- Word lists should not display words that are numbers HOT 1
- word segmentation and lemmatization should ignore <orig> when it's alone HOT 2
- Figure out what we are doing with MapBox and if there is a better option HOT 2
- IIP search isn't working. It always returns all files HOT 6
- rationalize django directory structure
- New back-end/update app for IIP and USEP
- Create separate script to add IDs to the elements in the divs that have word segmentation HOT 3
- Modify python word segmentation script so that it handles <div>s with @textParts HOT 1
- CSS change not working in dev branch HOT 5
- Make Word Lists work with new Latin data HOT 6
- API calls going to old IIP site
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iip-production.