/** * Wrap the item, parse all configured fields and generate metadata field * values. * * @param context context * @param item The item being viewed to extract metadata from * @throws SQLException if database error */ public GoogleMetadata(Context context, Item item) throws SQLException { // Hold onto the item in case we need to refresh a stale parse this.item = item; this.itemService = ContentServiceFactory.getInstance().getItemService(); itemURL = HandleServiceFactory.getInstance().getHandleService().resolveToURL(context, item.getHandle()); googleBitstreamComparator = new GoogleBitstreamComparator(context, googleScholarSettings); parseItem(); }