Page 1 of 1

Changing 'Attached file “some file”. Reference metadata not found online.'

Posted: Tue Oct 20, 2020 5:33 pm
by ryanjamurphy
Is there any way to get Bookends to provide a more useful title when it fails to import metadata for a new item?

The title field becomes populated with the statement

Code: Select all

Changing 'Attached file “some file”. Reference metadata not found online.'
This is sad, because it makes it hard to use this field in e.g., OpenURL Search queries. Unsurprisingly, Google fails to find items with that title, but it has a 100% success rate at finding

Code: Select all

some file
.

Re: Changing 'Attached file “some file”. Reference metadata not found online.'

Posted: Tue Oct 20, 2020 5:42 pm
by Jon
If the metadata isn't found then the title isn't found either. So Bookends uses the name of the PDF (which is ofter garbage).

You do a Global Change -> Find/Replace to remove 'Reference metadata not found online.' from all your references.

Jon
Sonny Software

Re: Changing 'Attached file “some file”. Reference metadata not found online.'

Posted: Tue Oct 20, 2020 5:52 pm
by ryanjamurphy
Thanks for the swift response. It is never garbage for me, because I use a particular process to create the file I'm importing. It would be extremely helpful to just leave it as the PDF, or at least let the user decide if the noisy statement is necessary.

Re: Changing 'Attached file “some file”. Reference metadata not found online.'

Posted: Tue Oct 20, 2020 5:57 pm
by Jon
The statement is useful because it appears in the column view and users can see immediately that the metadata wasn't imported. They can they perform an Autocomplete Paper if they want to get it. So it has a purpose and is put in the title field by design.

As I said, it's a matter of 30 seconds to remove that information from all your references, if present, with Global Change.

Jon
Sonny Software

Re: Changing 'Attached file “some file”. Reference metadata not found online.'

Posted: Tue Oct 20, 2020 7:23 pm
by ryanjamurphy
Sadly, 30s x 5-10 times a day makes for a very infuriating experience, so it is a much bigger deal than the workaround you're offering makes it seem!

Re: Changing 'Attached file “some file”. Reference metadata not found online.'

Posted: Tue Oct 20, 2020 9:18 pm
by ryanjamurphy
Alternatively: I know I can use <title>, <doi>, and <pmid> in OpenURL searches—is there a way to use filename or attachment name or something? What I'm hoping for is a way to use the attachment's info in OpenURL search quickly and easily, without having to copy and paste info from the file.

Re: Changing 'Attached file “some file”. Reference metadata not found online.'

Posted: Tue Oct 20, 2020 10:00 pm
by ryanjamurphy
Found a faster route than the find-replace option: scripting! This is fine. Thanks Jon.

Code: Select all

tell application "Bookends"
	tell front library window
		set selectedPubs to selected publication items
		if selectedPubs is not {} then
			set aPub to first item of selectedPubs
			set publicationAttachments to attachment items of aPub
			if publicationAttachments is not {} then
				set theAttachment to first item of publicationAttachments
				set attachmentName to name of theAttachment
				set title of aPub to attachmentName
			end if
		end if
	end tell
end tell

Re: Changing 'Attached file “some file”. Reference metadata not found online.'

Posted: Wed Oct 21, 2020 7:51 am
by Jon
You've come up with a nice solution.

Jon
Sonny Software

Re: Changing 'Attached file “some file”. Reference metadata not found online.'

Posted: Thu Oct 22, 2020 11:02 am
by msteffens
This makes me happy! It's a great example of why scriptability is so useful in a productivity app such as Bookends! It empowers users by giving them lots of flexibility to achieve custom or alternate solutions.