Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-31-2022, 08:58 PM   #1
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
'Unknown identifier' when using stored template.

This works:

Code:
program: columnupdate_kobopath()
This doesn't:

Code:
program:
	
	if 
		$#kobopath == ''
	then 
		columnupdate_kobopath()
	else 
		$#kobopath
	fi


(context: run the template only if text column #kobopath is empty, otherwise keep what's already in there).

This error happens
Code:
TEMPLATE_ERROR:  Interpreter: Unknown identifier 'columnupdate_kobopath' - line number 6
Is it something I'm doing wrong?

Last edited by ownedbycats; 01-31-2022 at 09:09 PM.
ownedbycats is offline   Reply With Quote
Old 01-31-2022, 09:08 PM   #2
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I figured it out. I had this bit in columnupdate_kobopath. I'd had it commented out for a bit but at some point I'd inadvertedly uncommented it.

Code:
## Returns blank for paperbooks
## Not needed since run on demand
	elif $formats == 'PAPERBOOK' then ''
I'm not sure why it specifically returned 'unknown identifier' though.

Last edited by ownedbycats; 01-31-2022 at 09:20 PM.
ownedbycats is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Template: Specifying that an identifier does not exist ownedbycats Library Management 7 03-31-2021 08:46 PM
Importing Books-- often Unknown by Unknown MarjaE Library Management 4 02-10-2019 06:17 PM
How to produce author_sort using a template but only if it is not "Unknown"? geras Library Management 0 05-17-2018 06:21 PM
How would one create an identifier template? Sidetrack Library Management 0 06-06-2014 01:38 AM
Template error value:unknown field null sfuller Calibre 4 06-13-2011 03:02 PM


All times are GMT -4. The time now is 02:16 AM.


MobileRead.com is a privately owned, operated and funded community.