<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page trimDirectiveWhitespaces="true" %> <%@ page import="org.crosswire.community.projects.ntmss.data.Document" %> <%@ page import="org.crosswire.data.DataObject" %> <%@ page import="org.crosswire.utils.Utils" %> <%@ page import="org.crosswire.utils.HTTPUtils" %> <%@ page import="org.apache.log4j.Logger" %> <% Logger logger = Logger.getLogger("bibliography/get"); int docID = -1; try {docID = Integer.parseInt(request.getParameter("docID"));} catch (Exception e){} String gaNum = request.getParameter("gaNum"); if (docID > -1 || gaNum != null) { String docName = ""; if (docID > -1) gaNum = Document.getDocument(docID).getGANumber(); if (gaNum.startsWith("P")) docName = "Papyrus : P " + gaNum.substring(1); else if (gaNum.startsWith("0")) { docName = "Onciaux : " + ((Integer.parseInt(gaNum.substring(1)) < 201) ? "01 - 0200 : " : "0201 - : ") + gaNum; } else if (gaNum.startsWith("l")) { int num = Integer.parseInt(gaNum.substring(2).trim()); docName = "Lectionnaires : l" + ((num < 2401) ? (Integer.toString((num-1)/200*200+1) +" - l"+Integer.toString((((num-1)/200)+1)*200)) : "2400 -") + " : l" + Integer.toString(num); } else { int num = Integer.parseInt(gaNum.trim()); docName = "Minuscules : " + ((num < 2801) ? (Integer.toString((num-1)/200*200+1) +" - "+Integer.toString((((num-1)/200)+1)*200)) : "2800 -") + " : " + Integer.toString(num); } %>
<% if (true) return; response.setContentType("text/xml"); Document doc = Document.getDocument(docID); if (doc == null) { %> <% return; } response.setContentType("text/html"); String url = "https://bibil.unil.ch/bibil/public/publicThesaurusSearch.action?struts.enableJSONValidation=true"; String params = "vedetteId=5691"; StringBuffer z = HTTPUtils.postURL(url, params, HTTPUtils.POST); %> <%=z%> <% return; } %>

bibliography/get

Retrieve bibliographical material associated with a manuscript

Parameters

docIDmanuscript id to query, e.g., 10046
formatxhtml|rss